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.
    • 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+W5k30ymJJXi5BSjpZzoC77c6LdslfPFU6jux2Psxe.9BOWuI0m6AturAy7Qn6CLprHHYuBPxPCRUUP5Svcch8h34sHvyGfaGBAj9DvUqCEUeQF+J9TFzgPdi.xP54wPgICXmVVVO1D9uG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+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

                                        17

                                        Online

                                        1.7k

                                        Users

                                        11.9k

                                        Topics

                                        103.4k

                                        Posts