HISE Logo Forum
    • Categories
    • Register
    • Login

    Syncing LFO modulation on fx plugin

    Scheduled Pinned Locked Moved General Questions
    9 Posts 3 Posters 456 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.
    • B
      BWSounds
      last edited by

      Hello,
      Working on a fx plugin and I'm stuck...

      Is it possible to have the LFO play in sync with the DAW?
      Or a better question, can you somehow script a way for the lfo to START once it starts receiving data (or you start playing something in the DAW)?

      Hopes this makes since..

      1 Reply Last reply Reply Quote 0
      • B
        BWSounds
        last edited by

        NVM I didnt know what to look for, but I see

        Engine.getPlayHead()
        

        Could solve this problem as it was brought up quite a few times in the last month.

        I'll leave this here in case someone else is searching in the direction I was.

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

          @BWSounds Yes, this is needed , but not available at the moment as far as I can tell.

          https://lalalandaudio.com/

          https://lalalandsynth.com/

          https://www.facebook.com/lalalandsynth

          https://www.facebook.com/lalalandsynth

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

            @lalalandsynth Is there a chance of getting this feature ?
            Most plugins have the capability to track and offset LFO's etc according to placement on the timeline.

            Very old school always having to start at the beginning of a bar.

            If this is implemented already , well , I would love to know 🤠

            https://lalalandaudio.com/

            https://lalalandsynth.com/

            https://www.facebook.com/lalalandsynth

            https://www.facebook.com/lalalandsynth

            Matt_SFM 2 Replies Last reply Reply Quote 0
            • Matt_SFM
              Matt_SF @lalalandsynth
              last edited by

              @lalalandsynth wouldn't this be what you're looking for ? https://docs.hise.audio/scripting/scripting-api/transporthandler/index.html 🙂

              Develop branch
              Win10 & VS17 / Ventura & Xcode 14. 3

              1 Reply Last reply Reply Quote 0
              • Matt_SFM
                Matt_SF @lalalandsynth
                last edited by

                @lalalandsynth this and maybe Engine.getHostBpm()

                Develop branch
                Win10 & VS17 / Ventura & Xcode 14. 3

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

                  @matt_sf Not sure if this achieves what I need.

                  Lets say I have a Sine LFO that is set to 1/1 and I start playing in the daw at 1/4 into the bar, the LFO should start playing offset by that amount.

                  In other words it should track the "offset".

                  https://lalalandaudio.com/

                  https://lalalandsynth.com/

                  https://www.facebook.com/lalalandsynth

                  https://www.facebook.com/lalalandsynth

                  Matt_SFM 1 Reply Last reply Reply Quote 0
                  • Matt_SFM
                    Matt_SF @lalalandsynth
                    last edited by

                    @lalalandsynth that sounds a bit convoluted but what about using TransportHandler.setOnBeatChange(bool sync, var f) and change the phase of the LFO depending on the beat index ?
                    Maybe someone will have a proper way to do it but, (not being in front of my computer) that would be my idea of doing it...

                    Develop branch
                    Win10 & VS17 / Ventura & Xcode 14. 3

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

                      @matt_sf Well , I might also start at any random place within the bar and the lfo should sync up to that , most synths do this.

                      Imagine a drum machine that would only sync if started at the beginning of a bar , that would not be acceptable these days.

                      Feels like there should be a "follow playhead" feature ?

                      https://lalalandaudio.com/

                      https://lalalandsynth.com/

                      https://www.facebook.com/lalalandsynth

                      https://www.facebook.com/lalalandsynth

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

                      23

                      Online

                      1.7k

                      Users

                      11.7k

                      Topics

                      102.0k

                      Posts