View Single Post
Old 01-11-2016, 07:50 AM   #2062
aspiringSynthesisingAlch
Human being with feelings
 
Join Date: Feb 2014
Posts: 277
Default

Quote:
Originally Posted by FnA View Post
You can edit S&M.ini in your AppData folder to get more of those kinds of actions usually up to 99. There's (some) instructions in the file itself.



I think SWS is in low gear at the moment. Here's a step towards what you describe anyway. I think it might be possible to do something more advanced that would take changing configurations into effect, but haven't figured it all out personally. (The numbers change) I think the second two things you mention should be possible with actions. So you would put the script in a custom action along with the regular actions too.

"Get" the code to paste in the other scripts:
Code:
// display input code for first selected track.eel

trk = GetSelectedTrack(0, 0);
trk ? (
  InputNum = GetMediaTrackInfo_Value(trk, "I_RECINPUT");
  ShowConsoleMsg(sprintf(#,"%{InputNum}i\n"));
):(MB("SELECT A TRACK!!!", "input code number", 0));
Some examples of "Set" the code:
Code:
//set selected tracks input to Audio 1.eel

input = 0;//paste it in place of 0

cst = CountSelectedTracks(0);
us = cst;
Undo_BeginBlock2(0);
loop(cst,
  SetMediaTrackInfo_Value(GetSelectedTrack(0, cst - 1), "I_RECINPUT", input);
  cst -= 1;
);
#u = sprintf(#,"Set %{us}i tracks input to Mono 1");
Undo_EndBlock2(0, #u, -1);
Code:
//set selected tracks input to Audio 2.eel

input = 1;

cst = CountSelectedTracks(0);
us = cst;
Undo_BeginBlock2(0);
loop(cst,
  SetMediaTrackInfo_Value(GetSelectedTrack(0, cst - 1), "I_RECINPUT", input);
  cst -= 1;
);
#u = sprintf(#,"Set %{us}i tracks input to Mono 2");
Undo_EndBlock2(0, #u, -1);
Code:
//set selected tracks input to Audio 1 and 2.eel

input = 1024;

cst = CountSelectedTracks(0);
us = cst;
Undo_BeginBlock2(0);
loop(cst,
  SetMediaTrackInfo_Value(GetSelectedTrack(0, cst - 1), "I_RECINPUT", input);
  cst -= 1;
);
#u = sprintf(#,"Set %{us}i tracks input to Stereo 1/2");
Undo_EndBlock2(0, #u, -1);
Code:
//set selected tracks input to sl mkII all channels.eel

input = 4192;

cst = CountSelectedTracks(0);
us = cst;
Undo_BeginBlock2(0);
loop(cst,
  SetMediaTrackInfo_Value(GetSelectedTrack(0, cst - 1), "I_RECINPUT", input);
  cst -= 1;
);
#u = sprintf(#,"Set %{us}i tracks input to SLmkII all");
Undo_EndBlock2(0, #u, -1);
edit- S&M.ini is probably here.
C:\Users\you\AppData\Roaming\REAPER
edit it when REAPER's off.

thanks for this, exactly what I was looking for!
Will loading tracktemplates like this also load linked program change midi config data?

I have reasynth mapped to program change, to cycle presets via midi program change from my mk461c (Which i've JUST LEARNED can be issued directly from the num.keypad on the controller, thanks to piz and his midi monitor, no thanks to the manual!)

If I open another track with ReaSynth, this linked PC breaks. (I thought i might change preset on BOTH instances of reasynth, but don't yet understand if I'm configuring a project, a track, a vst preset, or if it's just one P.Change linkable)
aspiringSynthesisingAlch is offline   Reply With Quote