Old 03-18-2019, 06:14 PM   #1
J Reverb
Human being with feelings
 
Join Date: Jul 2009
Posts: 1,071
Default [Solved] Q. How to use "I_MIDIFLAGS" ?

It seems that MIDIFLAGS doesn't carry through in for loop in my code.
Maybe someone can help, I can set flag from send to first track but not the rest. Try with 4-5 new tracks selected. Any pointers would be great.

Thank you.

Code:
          for i = 1, reaper.CountSelectedTracks() -1 do  
          local tr = reaper.GetSelectedTrack(0,0)
          local next_trk=reaper.GetSelectedTrack(0,i)
          reaper.CreateTrackSend(tr,next_trk)
          reaper.SetTrackSendInfo_Value(tr,0 ,0, "I_MIDIFLAGS", 0 )                          
          end

Last edited by J Reverb; 03-18-2019 at 10:05 PM.
J Reverb is offline   Reply With Quote
Old 03-18-2019, 07:43 PM   #2
cfillion
Human being with feelings
 
cfillion's Avatar
 
Join Date: May 2015
Location: Québec, Canada
Posts: 4,970
Default

SetTrackSendInfo_Value is always changing the first selected track's first send (sendidx is 0). CreateTrackSend returns the new send's index which you can give to SetTrackSendInfo_Value so it edits the newly added send.
cfillion is offline   Reply With Quote
Old 03-18-2019, 08:50 PM   #3
J Reverb
Human being with feelings
 
Join Date: Jul 2009
Posts: 1,071
Default

Ah yes got it, it's late lol

Thanks cfillion
J Reverb is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 12:10 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.