So, I’ve got a template with a set of faders, let’s say fader0 to fader4.
According to the track I’m selecting in Logic, those faders are dynamically assigned to different CCs.
I’d like to save & recall all fader values in a section every time I select a track.
A simple example:
I select Track A, fader0 is assigned to CC1, I move the fader to 78.
I select Track B, fader0 is assigned to CC1 also, I move fader to 32.
I select Track A again and fader0 is auto-set to value 78.
And so forth.
Is there a best way to do it?
I thought about several scenario but I guess some are quite daunting to implement.
Here the widget that's used to select the track saves the state of the faders when switching and restores it according to the new selection (check out its onValue and onCreate properties)