Script for new macro - start record or stop and loop
Hello all,
I have programmed macros to give me basic looper-type actions. The thing I'm trying to solve is using one action to start recording, and to stop recording and create a loop if already recording. Currently I have a custom action to stop recording and create a loop, thus:
Custom: Create region/loop from recording
Transport: Record
SWS: Create regions from selected items (name by active take)
Xenakios/SWS: Loop and play selected items
But I have to have a separate command/controller button to start recording, and then my custom action stops recording and creates the loop. Ideally I would like to have one button that does both.
I'm thinking I could write a script with an if/then statement to do this but I don't know where/how to start scripting.
Does anyone have any suggestions either for how to write a script, or for doing this using the onboard actions? Thanks in advance!
|