HISE Logo Forum
    • Categories
    • Register
    • Login

    Gate FX plugin going in and out of time/off grid

    Scheduled Pinned Locked Moved General Questions
    6 Posts 2 Posters 354 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.
    • MorsM
      Mors
      last edited by

      Hey! I've made a tremelo effect with script FX (see screenshot) however when using the plugin the effect either starts perfectly in time or slightly late knocking it out of time by a few milliseconds, any ideas to fix this? Cheers!!

      Screenshot 2024-03-08 at 19.34.57.png

      NatanN MorsM 2 Replies Last reply Reply Quote 0
      • NatanN
        Natan @Mors
        last edited by

        @Mors

        // 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);
        
        MorsM 1 Reply Last reply Reply Quote 0
        • MorsM
          Mors @Mors
          last edited by

          this video show exactly what i mean - https://drive.google.com/file/d/1QOEwYcJiNzrsrUMv2AVOH3xw9dTnWRZC/view?usp=sharing

          1 Reply Last reply Reply Quote 0
          • MorsM
            Mors @Natan
            last edited by

            @Natan where do i put this?

            NatanN 1 Reply Last reply Reply Quote 0
            • NatanN
              Natan @Mors
              last edited by

              @Mors On Top of your Script, Under the UI Size, and you are good to go

              Please note, It will Sync WIth your DAW

              1 Reply Last reply Reply Quote 0
              • NatanN
                Natan
                last edited by

                @Mors Do you want to make A SidechainPlugin?
                Like Kickstart? LfoTool?

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

                50

                Online

                1.7k

                Users

                11.7k

                Topics

                101.8k

                Posts