I've been trying to improve the functionality of a mixer I built similar to the 4 channel Mixer template. Open it up and you can see that the crossfader can be controlled manually or by a few LFO functions. The problem is when you switch between these modes, the fader jumps here and there to catch up with the new receiver. Now, a cool and collected VJ might like to go from manual to auto to slow auto and back without all this bouncing around. I'm sure someone's figured out how to do this already but I'm stumped. Below is the nitty gritty of my logic thus far.
I assigned the TCM to always receive from the LFO and always send data to my TouchOSC fader control surface. I made a multi-toggle in TouchOSC for Manual, Auto, and Slow Auto and set them to bang the play button of the LFO. Both Autos bang 'On', manual bangs 'Off' using the rise and fall settings.
The waveforms in the LFO need to be identical to be able to pick up where one preset left off so you only need one, I used a bezier, with the duration as long as you want your auto to take. I wanted slow auto to take twice as long so I set my Slow Auto button to trigger a mark of 0.5 in the rate slider of the LFO, and made sure the reg. Auto button triggered it back to 1.0 when it gets hit.
Finally, I needed my TouchOSC fader to control the LFO when it got to manual mode. But there's no way of grabbing the actual data of the LFO waveform and sliding it around. The closest thing is the LFO's time slider which is fine since the LFO data is still going to the TCM. So I make presets for the time slider to receive from OSC fader when I hit the Manual button and back to no receiver when I hit one of the Auto buttons.
It works great, I can be in Manual mode, fading around to my heart's desire, get bored and hit Auto, the LFO starts playing from exactly where I left it, I hit Slow Auto, the rate slows from exactly where auto left it, back to Auto, all seamless. BUT when I go from either of the Autos back to Manual, the 'playhead' always jumps back to wherever Manual was before when I engaged one of the Autos. Stop jumping!
As far as I can tell, even though the TCM is sending the LFO waveform via OSC data to my TouchOSC fader, either the fader or the time slider is remembering it's last position. Of course I have the value box unchecked in the preset inspector, so I'm out of ideas.