HISE Logo Forum
    • Categories
    • Register
    • Login

    Global Modulator Delay in Scriptnode

    Scheduled Pinned Locked Moved Bug Reports
    33 Posts 3 Posters 1.3k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • DanHD
      DanH @DanH
      last edited by

      @Christoph-Hart ok so without Clock Sync checked on the Global LFO this is much tighter, in fact it's a little ahead...

      So perhaps there's an issue there? Or in my code?

      Screenshot 2023-07-25 at 09.04.07.png

      HiseSnippet 2512.3oc4Z0saajaEdjkoSrR1zMMYwtn.EfHn.0AMqVMRxxRsnXk+MQswwpQpIAnWjkdFJIBOhTcFJaqtXA5k8wpOB8Qn20a6aP6gjyngirrirRh2taU.bL4g77GOmuygTtcnviFEIBcxsd2IinN4tKpyDtbvtCHLtSq8bxcOzyO3ntsd5y51c+Ncc1YxHRTD02IWt7OUslbqupi9y+9q2gDP3dzzobbdkf4QeNaHSlNa6l+dVPvADeZW1PqUWsYKOAeWQfXLnO4QkbFQ7Ngzm9BhZYqfbxs199LoHrijHoQN4VcGg+jNCDmwMq+UrH1wAT0.WmN.iLSefHvWowpe2Y2Ar.+1I1cjCvz1odg7FuvCQGx7YSmO0a7oZB3zcX6OxsRV0KeF0y0V8JYodyQkxYoRqZTo6i53ExFISonzm6fZwkzvdDvsaqJl05rx+JOZWArBtr3PxIzCBgAS2wF0JU5IX3GO92TnvW8U3cCofhiIXYHgGMRDJwCHb+.ZXALbxDIwmRBSI9LCM7uEuOuOiSK5o2e2YnuAvcbALv+tCn39gLerGIH3X3rEyoT+HrTfOlhobB3b7w8DfLfUBgc5cATilv8vLYDMnmZnhpWfv6jhEtf1TLhJ2WyomBRZCY3X5Sv0ynB5shOChAwbwY3QgzdTiHomCdFNIHdIQPfnGsHrIVjd2CofvfURjXRDNPv6q9+4rSVD+WJwgi4bFuudqanV0da+Z7n.xDssyhvQRwnQT+GC1lQeFGQ0riwsYml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7SoPE2Khe9Qup6QdRPEh+lAint1bdFZksosGUNlmc4loJOKts5wncsev3jIKaOYaBOCyfwY3zgLqmo9e90FP6NTvZ7OJxCLVhteXKL7wAQzWy7kCbs2X5zksm9YjP+rUMbV1FRx9J2Vq+l7K39FEf48+k8+vzZx5I5XGl5Rs6yOkF.8Lq0weJzjr9a1HY1r4YGJ3hj20LMB3kT.dneeZl.q4ZPaKkD69AdXyWRCnPWDoS8KZ9bnqZRn91SKmuv8Z+2lvbOu9BjQcwJvA7ON9FY9+z5XKbFJfe9CmS5OGAX5kw5ia72+m22DMKbSHigDuPwa8LeYWJ.iaqmArat9uiq0QGpFicS9KBv71MCgxNu0ySES+kf+Y96o7RrmJKwdptD6YykXO0Vh8r0Rrm5W4dTU7iewSU7OLQ68MWCL2zqslKuy+ECjSwQA
      

      DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
      https://dhplugins.com/ | https://dcbreaks.com/
      London, UK

      DanHD 1 Reply Last reply Reply Quote 0
      • DanHD
        DanH @DanH
        last edited by

        @Christoph-Hart ok so additionally I began tweaking Audio settings in Logic and the process buffer range makes a big difference to the delay size... (but nothing get's it to zero).

        Below I made 3 tracks of the 3 different sizes available:

        Screenshot 2023-07-25 at 09.32.15.png Screenshot 2023-07-25 at 09.31.04.png

        Will test some other DAWs now

        DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
        https://dhplugins.com/ | https://dcbreaks.com/
        London, UK

        DanHD Christoph HartC 2 Replies Last reply Reply Quote 0
        • DanHD
          DanH @DanH
          last edited by

          @Christoph-Hart ok tested on Ableton, BitWig and FL (Win + Mac) and it's all a little delayed. It's also different each time the filter moves, the sound, the waveshape created etc.

          Is there anything else I can test?!

          Screenshot 2023-07-25 at 11.16.41.png

          DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
          https://dhplugins.com/ | https://dcbreaks.com/
          London, UK

          1 Reply Last reply Reply Quote 0
          • Christoph HartC
            Christoph Hart @DanH
            last edited by

            @DanH yeah you need to enable the clock sync module if you want it to be sample accurate. If you disable it, it will just react to a dummy note on message that is added to the MIDI buffer but that's a hack that I wrote 8 years ago and is not going to be accurate.

            I'm trying to improve the accuracy when using the clock sync mode, there is already a system in place that allows sample accurate syncing but I haven't hooked up the LFO there yet.

            DanHD 1 Reply Last reply Reply Quote 0
            • DanHD
              DanH @Christoph Hart
              last edited by

              @Christoph-Hart Right, sorry this is all WITH clock-sync mode engaged - I ran a test earlier to see what happens with it not engaged and it was better - but not the behaviour I want obviously... That was the only post without clock-sync, if that make sense.

              Any timescale for hooking up the LFO?! :folded_hands_light_skin_tone: 😃

              DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
              https://dhplugins.com/ | https://dcbreaks.com/
              London, UK

              Christoph HartC 1 Reply Last reply Reply Quote 0
              • Christoph HartC
                Christoph Hart @DanH
                last edited by

                @DanH I'm sitting on it right now.

                DanHD 1 Reply Last reply Reply Quote 1
                • DanHD
                  DanH @Christoph Hart
                  last edited by

                  @Christoph-Hart Thank you!

                  DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                  https://dhplugins.com/ | https://dcbreaks.com/
                  London, UK

                  Christoph HartC 1 Reply Last reply Reply Quote 0
                  • Christoph HartC
                    Christoph Hart @DanH
                    last edited by

                    @DanH Alright I've pushed the fix for the clock synced LFO, please check if that helps.

                    I've also removed the sync by note-on hack so that the only way to sync the LFO is to actually enable Sync to Clock (I don't see a reason for keeping this around any longer).

                    DanHD 1 Reply Last reply Reply Quote 3
                    • DanHD
                      DanH @Christoph Hart
                      last edited by DanH

                      @Christoph-Hart ok definitely tighter! It is still different on every oscillation however, but I compared it to a couple of Logic's modulators doing a similar thing and it's in the same ballpark so I'm far more comfortable using it now :)

                      I'd say it looks and sounds like it could still be a bit tighter, but I've no idea what's going on under the hood, and is much better than before.

                      Thank you! :folded_hands_light_skin_tone:

                      DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                      https://dhplugins.com/ | https://dcbreaks.com/
                      London, UK

                      1 Reply Last reply Reply Quote 0
                      • DanHD
                        DanH @Lindon
                        last edited by

                        @Lindon

                        But hold on --- Lindon removes the smoo he put on the slider - and bingo all good...

                        When you remove the smoo how is the code supposed to look?

                        import("stdfaust.lib");
                        
                        Q = hslider("Q",1,0.7072,25,0.01);
                        normFreq = hslider("freq",0.1,0,1,0.001):si.smoo;
                        
                        process = ve.moogLadder(normFreq,Q) <:_:_;
                        

                        DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                        https://dhplugins.com/ | https://dcbreaks.com/
                        London, UK

                        LindonL 1 Reply Last reply Reply Quote 0
                        • LindonL
                          Lindon @DanH
                          last edited by

                          @DanH
                          like this:

                          import("stdfaust.lib");
                          
                          Q = hslider("Q",1,0.7072,25,0.01);
                          normFreq = hslider("freq",0.1,0,1,0.001);
                          
                          process = ve.moogLadder(normFreq,Q) <:_:_;
                          

                          HISE Development for hire.
                          www.channelrobot.com

                          DanHD 1 Reply Last reply Reply Quote 0
                          • DanHD
                            DanH @Lindon
                            last edited by

                            @Lindon Thanks :)

                            I'm still getting clicks when the filter snaps back after triggering notes. Is yours fixed you think?

                            DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                            https://dhplugins.com/ | https://dcbreaks.com/
                            London, UK

                            Christoph HartC 1 Reply Last reply Reply Quote 0
                            • Christoph HartC
                              Christoph Hart @DanH
                              last edited by

                              @DanH You either get clicks because you're not smoothing or you get a delayed modulation because of the smoothing. Pick one.

                              1 Reply Last reply Reply Quote 0
                              • First post
                                Last post

                              29

                              Online

                              1.8k

                              Users

                              12.1k

                              Topics

                              105.0k

                              Posts