HISE Logo Forum
    • Categories
    • Register
    • Login

    Global Mod LFO in ScriptNode

    Scheduled Pinned Locked Moved General Questions
    36 Posts 4 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

      Can anyone give me some advice please. I'd like the LFO I've made in scriptnode to keep in time with the stock Hise LFOs, which seem to follow the DAW playhead / track position. @Christoph-Hart suggested using a PPQ node (as above) but the LFO doesn't reset when beginning the track from 0 bars (for example). I see that people have been using the clock-ramp. Perhaps that might be helpful - I've never used it...

      HiseSnippet 2300.3oc2ZstaabbEdVQMThxJtJINooEs.KDBPU.bD3RIKam9CSc0lHlRzhzxs+IFi1cn3.t6Na1cokUCBP+YeL5iheDJPeAB5SPdCROyL6xcVJRQJZZKmHCXn4L29N2OmYUiPtMMJhGhLJ05h.JxXYbyK7i6raGByGUaOjwh3lGZ9zCNBsyEAjnHpCxvnviEyZTZdj7me9Q6PbI91zLRHzIblM8oLOVbF0FU+Vlq6ADGZKlm1p2rZMat+tbWdO.IEvkQAD6tjynGRDKaNLxn39NrXdXyXRLMBYL+NbmKZ1getuZ8mvhXm5RECrPMgCRQ9.tqi.wBpnc6vbcZjxwQH3Pajw+ET7+cv0YNr9zyjCqHmvLaG5xCi4xCuB4fmkN7JqAug.ICMHMuBReLtocHKHNaFAdtEtleLMrMAD65PQsVjwav6xgE3GutGoK8fPXP+Mr1VkKeWS3+9p+Z6d91wLtuI2+PdL8H+09pk9gkJszOtj4fS0t8PmSbMgbWWZ3PmVnoCupMtleOuSog207UD2dz9KDX+7xT7nko5pbaEWqsPteMeV7QAT+QYHfRDUf7uPBpfeKVJ8uchzuoKygFhXfPtH93sasORh2Li3Eqhlf8t.t4S1twk1bBFFylAc9gs1+vl0Z82G7.94Ggdds8HwDgMTB6.rX.MLlIjdF6QeE3PprnJg2iF0MlG.B4c4dAbeAyaTJN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Fk6T8XpKUThWeReY0mx7ojv7e1tqkrv5Z+mhyP0WeAVAW0Wz5WueQ4eimJZh89fPfeXqE+8XHTbESopz7lQW99Hu96i6viXGxeYxCOIb5WTRA3ae4e5gkv0EiMsR+6sR0Ik3IseoscZOKCeOUlh8rwTrmMmh8buoXOaME649SwddvUtGQl5jV6E17.gF6q9n+FoOaLX9i9+zIhOgF
      

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

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

        @DanH You need this for the Clockramp to sync to playhead, works great.

          // Create a transport handler
        
        const var transportHandler = Engine.createTransportHandler();
        transportHandler.setEnableGrid(true, 8);
        transportHandler.setSyncMode(transportHandler.PreferExternal);
        transportHandler.startInternalClock(0);
        
         
         // The grid callback needs to be enabled for the LFO
         // to sync itself to the clock.
         
         // The clock will now prefer the external clock source. This
         // means that as long as the external clock isn't running
         // (the DAW playback is stopped) it will use the internal clock
         // and as soon as the DAW playback is started it will resync
         // itself to match the DAW position
         
         // Start the internal clock. This will cause the LFO to run
         // even if the DAW playback is stopped. (if you omit this line
         // the LFO will not move unless the DAW playback is started).
         
        

        https://lalalandaudio.com/

        https://lalalandsynth.com/

        https://www.facebook.com/lalalandsynth

        https://www.facebook.com/lalalandsynth

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

          @lalalandsynth amazing thanks, where does the clock ramp sit in the chain normally?

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

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

            @DanH

            Here the clock ramp is controlling a table.

            Tempo sync is used for retriggering a tempo synced table.
            Input toggle is used for switching between, clocksync and temposynced or free running, retriggerable table.

            Ramp clock.png

            https://lalalandaudio.com/

            https://lalalandsynth.com/

            https://www.facebook.com/lalalandsynth

            https://www.facebook.com/lalalandsynth

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

              @lalalandsynth Thank you this is super helpful! Forgive me if I'm being stupid but I'm confused as to where I should send the clock ramp's modulation (it's target). In my example I mean

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

              lalalandsynthL 2 Replies Last reply Reply Quote 0
              • lalalandsynthL
                lalalandsynth @DanH
                last edited by lalalandsynth

                @DanH You mean to sync an LFO, good question ! :)
                I just used a Global MOD LFO with a global mod Node into scriptnode as I could not figure out how to sync an lfo/Osc.

                Maybe the clockramp cannot be used for the LFO, in which case I wonder how the osc can be clocksynced ?

                https://lalalandaudio.com/

                https://lalalandsynth.com/

                https://www.facebook.com/lalalandsynth

                https://www.facebook.com/lalalandsynth

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

                  @DanH Here is how I ended up doing a clocksynced lfo controlling a filter in scriptnode.
                  global mod.png

                  https://lalalandaudio.com/

                  https://lalalandsynth.com/

                  https://www.facebook.com/lalalandsynth

                  https://www.facebook.com/lalalandsynth

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

                    @lalalandsynth are you on OSX?

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

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

                      @DanH no

                      https://lalalandaudio.com/

                      https://lalalandsynth.com/

                      https://www.facebook.com/lalalandsynth

                      https://www.facebook.com/lalalandsynth

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

                        @lalalandsynth have you tested the global modulator in scriptnode on an exported plugin yet? Because it doesn’t seem to keep the right time on windows. Which is why I’m trying to make an lfo in scriptnode 😅

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

                        Christoph HartC lalalandsynthL 2 Replies Last reply Reply Quote 1
                        • Christoph HartC
                          Christoph Hart @DanH
                          last edited by

                          You can just waveshape the clock ramp into any LFO waveform you want, no?

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

                            @Christoph-Hart how do I do that? And is there zero chance of this global mod bug being fixed?

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

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

                              @DanH good point, no i havent.

                              https://lalalandaudio.com/

                              https://lalalandsynth.com/

                              https://www.facebook.com/lalalandsynth

                              https://www.facebook.com/lalalandsynth

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

                                Took a look at this and I could in fact reproduce the issue with our most beloved DAW (who shall not be named).

                                Turns out that if you throw random buffer sizes at it, the global modulator containers still got the full buffer size for each call which explains why it's calculating the LFO faster than it should be.

                                It should be fixed now.

                                Now for the other question: in order to transform the ramp to any shape, just use the expr node with a formula for each shaper.

                                HiseSnippet 1968.3oc4Y0saaajEdnrF4XU21Tz.r2r.kW5rIUfT1VwtEXsisi2UXicDpbC5cFiHGYQHRNrjCis1hdeeA5E8hhceM5c8EnuK8MX2yLCk3PIJEI07yEUAHVyumu4b9NeyOpSLygljvhQFac0nHJxXab2Qg7AmNf3EhZeFx3ivWPR3zXSUUmLJhjjPcQFFa7ODUXrUUj7yuezIDeRnCMuJD5kLOG5y8B7340143+kmu+4DW5UdAZ8duia6vBOk4yRA7rA1BEQbFRtgdIQzsJXjQsm45wYwc4DNMA5yIL2QcGvtMT0+W5k30ymJJXi5BSjpZz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e89Q1dW7CQDPbhYWm8lXhE28j0.oAgxeI5sfq4.kMsQuRmQE345csiyXo8xGSy0XL6tFiYu0XL6uFio0ZLlmrFi4fENFwOPel1qfLCUz4YRxkgwyBI87UmOC8+AI5p9E
                                

                                d5f45e95-da71-42e4-b6d2-f6b6810f3376-image.png

                                BTW, If you compile this network, it will create a modulation output so you can reuse it on a higher level.

                                lalalandsynthL 1 Reply Last reply Reply Quote 6
                                • lalalandsynthL
                                  lalalandsynth @Christoph Hart
                                  last edited by lalalandsynth

                                  @Christoph-Hart Oh NICE ! Look at that switcher !
                                  Can I somehow add that to a project without using the softbypass template?
                                  Or is the softbypass module needed to use this for routing ?

                                  What if I want to use this switcher to route stuff that is not in that container ?

                                  https://lalalandaudio.com/

                                  https://lalalandsynth.com/

                                  https://www.facebook.com/lalalandsynth

                                  https://www.facebook.com/lalalandsynth

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

                                    @lalalandsynth If you want to use the switcher for bypassing something, you need to add a soft_bypass container and connect it to its power button.

                                    But you could also connect it to any math.mul node in order to silence all signals except for one.

                                    And they don't have to be in this container.

                                    lalalandsynthL DanHD 3 Replies Last reply Reply Quote 1
                                    • lalalandsynthL
                                      lalalandsynth @Christoph Hart
                                      last edited by

                                      @Christoph-Hart I see for a moment I thought it was a multiplex style router.

                                      https://lalalandaudio.com/

                                      https://lalalandsynth.com/

                                      https://www.facebook.com/lalalandsynth

                                      https://www.facebook.com/lalalandsynth

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

                                        @Christoph-Hart amazing! testing new build now

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

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

                                          @Christoph-Hart seems solid!! Thanks so much for fixing this, massively appreciated 😎

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

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

                                          15

                                          Online

                                          1.7k

                                          Users

                                          11.8k

                                          Topics

                                          103.2k

                                          Posts