View Single Post
Old 12-30-2015, 06:52 PM   #2053
FnA
Human being with feelings
 
FnA's Avatar
 
Join Date: Jun 2012
Posts: 2,173
Default

Quote:
Originally Posted by Secret View Post
The current 04 limit is too low. I need 01 .. 08 actions because I use templates for (1), (2), (1,2), (3,4), (MIDI 1), (MIDI 2), (Default).
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.

Quote:
Originally Posted by Secret View Post
Hello, I've always wished for a faster way to switch a track between different setups for audio input, MIDI input, recording, monitoring.

I would like to right click on a track and then instantly pick between some templates in the context menu:

(MIDI In), (In 1), (In 2), (In 1,2), (Default)

Each of these would apply a track template..

The MIDI In track template:
- Sets the input to my MIDI controller's MIDI input
- Enables input monitoring
- Enables automatic record arm when track selected
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.

Last edited by FnA; 12-30-2015 at 07:24 PM.
FnA is offline   Reply With Quote