I didn`t found a way to add specific HW send, only default config with CreateTrackSend(). But you simply can add HWOUT line to TrackStateChunk.
Quote:
Originally Posted by Reaktor:[Dave]
I have to route a signal to 384 output tracks in Reaper. Is there a fast way to do this?
|
so if you need to send a track to 384 HW outputs , this may will work for you (but I`m not sure of course)
Code:
cnt_HW = 384
tr = reaper.GetSelectedTrack(0,0)
_, chunk = reaper.GetTrackStateChunk(tr, '')
str_add = ''
for i = 1, cnt_HW do str_add = str_add..'HWOUT '..(1024+i)..' 0 1 0 0 0 0 -1:U -1\n' end
chunk = chunk:gsub('MAINSEND',str_add..'MAINSEND')
reaper.SetTrackStateChunk(tr, chunk, false)