Syncing LFO modulation on fx plugin
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..
NVM I didnt know what to look for, but I see
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.
@BWSounds Yes, this is needed , but not available at the moment as far as I can tell.
@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
@lalalandsynth wouldn't this be what you're looking for ? https://docs.hise.audio/scripting/scripting-api/transporthandler/index.html
@lalalandsynth this and maybe
@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".
@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...
@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 ?