Tempo Sync button
-
Re: A Button that shows/hides knobs?
Hi all,
I have been trying to work out a tempo sync button on my interface, which will switch something like a delay's time parameter between synced and unsynced. I accomplish this pretty easy on the back end creating a "TimeFree" knob, a "TimeSync" knob, and a "TempoSync" button to toggle between the two.
I followed @Christoph-Hart example linked here to make this in the UI. Everything seems to work except that when I actually link my button to the TempoSync (in the processorID and parameterID) the UI interface hiding and showing the knobs stops functioning. Has this something to do with the script being overwritten? Just trying to wrap my head around this. Thanks
-
@HISEnberg You can use either Parameter/Processor ID or a control callback, not both. If you want to have your cake and eat it you can use a broadcaster but a lot of the time it's simpler to do everything within the callback and drop the Parameter/Processor ID assignment.
-
@d-healey Thanks I figured as much and pushed ahead with using just the control callback, which was a bit time consuming but worth it in the end.
-
@HISEnberg setting up tempo sync controls for LFO’s and a delay inside a current project for the first time and came across this thread while searching up tempo sync.
I was wondering if you could point me in the right direction for the appropriate callbacks? I’ve made the knobs switch which is displaying and am now trying to get the button to switch the device to tempo synced or not.
Thanks
Chris -
@bfaudio
Try this:// inside the button callback knob.set("mode", "TempoSync"); // for tempo sync // and knob.set("mode", "Frequency");// for unsynced // and for the lfo lfo.setAttribute(lfo.TemoSync, value);
-
@CyberGen amazing, worked. Thankyou so much.