LFO start Sync....
-
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.
-
@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);
-
@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
-
@Lindon is this for an instrument or fx?
-
@DanH instrument...
-
@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.
-
@DanH Ok I think thats sort of what I need thanks.