Programmatically Change Track Routing
I'm trying to develop a web remote for musicians to select from a list of backing tracks and have their "more_me" tracks be dynamically routed to based on the active song selection.
For example, in Reaper I have track folders:
/BACKING_TRACK_STEMS
//SONG1
///SONG1_TR1
///SONG1_TR2
///SONG1_TR3
///ETC
//SONG2
///SONG2_TR1
///SONG2_TR2
///SONG2_TR3
///ETC
/MORE_ME_STEMS
//STEM1
//STEM2
//STEM3
//ETC
Upon selecting "SONG1" in the web interface, I'd like to clear any pre-existing routing going to MORE_ME_STEMS/STEM1,STEM2,STEM3,ETC and then route:
/BACKING_TRACK_STEMS/SONG1/SONG1_TR1 --> /MORE_ME_STEMS/STEM1
/BACKING_TRACK_STEMS/SONG1/SONG1_TR2 --> /MORE_ME_STEMS/STEM2
etc
I believe this is possible and I have a few ideas for how to do it but I'd like to hear opinions from more experienced programmers than myself.
I've only done ReaScript programming in .lua if that makes any difference.
Any suggestions? Is this possible?
|