Hey Jeff or anyone willing to help me, I've been messing around with MSL and trying to build a better workflow for my foot controller. I'm on Build 47 currently.
What I'm trying to do is make each track button act like a dedicated Record button. So for example, pressing my Track 2 button would:
switch to Track 2
if there is already something on the track, clear/reset it first
start recording
then continue behaving like the normal Record function (second press stops recording, long press resets, etc.)
I got most of the way there with this:
SelectTrack(2)
if loopFrames > 0 {
TrackReset
}
Record
This actually works great for the basic workflow. The track switches, clears if needed, and Record behaves normally when tapping the button again.
The only thing I can't figure out is preserving the built-in Record long press behavior. If I hold the keyboard key, it doesn't do the reset like the normal Record function does.
I also tried looking into #sustain / OnSustain, but I couldn't get anything to happen with a keyboard binding. Not sure if I'm missing something, or if that behavior isn't available yet in MSL.
Is there a way to call Record in a script while keeping its built-in long press behavior, or is there another approach you'd recommend?
Thanks in advance!