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 @Christoph Hart
      last edited by

      @Christoph-Hart still getting a LFO delay in an FX Plugin....

      HiseSnippet 2273.3oc0Y80aajaDmxxzIVwW5Ej.bEEn.D4k5flSmVIYYoVTT++DgFaqdR0I.2C4n2kRZg2kTc2U1V8vAzG6Gq9QneK5q8aP6LjqztqjrrrtbGttAv1jyvY9wgy+HSq.ksHLTEPxsYmQCDjbaQaORF0+v9bWIo4QjbOk9tSNuSy271NcNtcGxAiFvCCENjb4x+FjmbatNQ+8e9iGv83RaQxTDxEJWaw6b8ciRls0d+IWOuS3NhNt9o3t5dMsUxCUdpg.dxSKQFvsuh2SbFGYaMJI2FG63FoBZGwiDgjbqefxYT69pajF9uvMz8ROANvhzFDjY5STdNHhwYIG120yo038cHgji1JwJj2XEdA8TWG2IymXM9bMAVxJRaOxsVV3kOC7rRCuRof2bfTtTPZcCjdFsscf6fnDJHddBsoLRDzkCl8zPwvKYs+cd5gJfCYTQe9UhSBfASVw10JU50L3Gu52WnvW8UrCCD.vYbVT.WFNPEDw5ykNdhfBL3jILhcMOHg3aMzX+A1wxdtRQQa856LE8sAoyJv.42ouf0Kv0gYy87tDNaYRgvIjEoXWJXBIGLNNrtJPG.mfamdU.0vQRalaTnvqKNDoZ6orupXgYPSwPQzwZI8FPSaGELT7ZV8LPPuT1MfOHSptgMHPzUXTo3VvxH4dwrDBNh1hhvhbC0q1W.JC3jGw3gLOkrG964rR2P4uIhELTJck8zKcajqi1+8rAd7Q58taHKLRMXfv4UvdyfmggBs3bkoEmV.v1CUVnRIGqzYEGOHBrfikVf.Mb5UmX774Q18SVtJzMxUImugDREXepxQr8LDaoMZGGuqmXdaiH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0r6Jrl5KbMXu.w2z.C4fIZcrICdtIkOxkm7+.34PghG
      

      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 DanH

        I bounced off some audio so you can see the delay - the LFO is a square shape routed a HPF so basically on / off. You can see the tail at the beginning and a gap / delay on the second region.

        Could someone else test please? Unless there's something wrong with the snippet @Christoph-Hart ?!

        Screenshot 2023-07-22 at 19.17.42.png

        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

          If anyone has a chance to test I'd be super grateful!

          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 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.+1I1cjCvz1odg7FuvCQGx7YSmO0a7oZB3zcX6OxsRV0KeF0y0V8JYodyQkxYoRqZTo6i53ExFISonzm6fZwk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+wh9jxiV3mTNW9E9JKtK7smxs5GqmP9F8xnO3BGSQW+qO+g4QuuuQMQpdxi8Zy7fDuSEaG1HQ.Q07S9Tf8ozeXSUzRKtcjk5QM5k7nFVOT0yo8AYZy6tzgiDpWG0dxoPgYiAcbdtPLJAzwZ8sGPhTuSXDUZuZEa6JNjDAo35GdzlXq9bnETyaOZO+tiifJVIFfStMQUpUL6mSOpWoeWwek0X3G8ziarqdrFuzTz8OgpUsXV5UN5CyXmqQDyUeQWn4sEMvVE7LMJQEF8+3uKjQimF29C.M9JeIq7+n+krb+95gXrL2OyXt2Q+5r5uFWsw9YnDbA7SoPE2Khe9Qup6QdRPEh+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

                                    38

                                    Online

                                    1.8k

                                    Users

                                    12.1k

                                    Topics

                                    105.1k

                                    Posts