HISE Logo Forum
    • Categories
    • Register
    • Login

    LFO start Sync....

    Scheduled Pinned Locked Moved General Questions
    7 Posts 2 Posters 415 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.
    • LindonL
      Lindon
      last edited by Lindon

      I want my LFO to start on the beat or bar - is that what Clock Sync(aka SyncToMasterClock) is doing? I cant find any documentation online for this...its present - it just doesn't say what it does...

      hmm, early experimentation seems to say that LFOS with this set will "sync together" on note start....which is nice but not the same thing I think.

      HISE Development for hire.
      www.channelrobot.com

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

        @Lindon this is what I use:

        // Create a transport handler
         const var transportHandler = Engine.createTransportHandler();
         
         // The grid callback needs to be enabled for the LFO
         // to sync itself to the clock.
         transportHandler.setEnableGrid(true, 8);
         
         // 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
         transportHandler.setSyncMode(transportHandler.PreferExternal);
         
         // 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).
         transportHandler.startInternalClock(0);
        

        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 Lindon

          @DanH yeah , I think thats not the same thing....thats about starting and stopping on DAW start and stop - not bar start or beat start....I want the DAW to start at say1:1:0:23 and the LFO to start at 1:2:0:0 or 2:0:0:0

          HISE Development for hire.
          www.channelrobot.com

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

            @Lindon is this for an instrument or fx?

            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 instrument...

              HISE Development for hire.
              www.channelrobot.com

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

                @Lindon ah assumed it was fx. I'm happy with note sync for my instruments so haven't tried this. But the code above keeps the lfo at the correct position according to the beat grid, so if you start the daw halfway through a loop the LFO movement should pick up where it should in the cycle rather than being random or starting from the beginning.

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

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

                  @DanH Ok I think thats sort of what I need thanks.

                  HISE Development for hire.
                  www.channelrobot.com

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

                  24

                  Online

                  1.7k

                  Users

                  11.8k

                  Topics

                  102.8k

                  Posts