View Single Post
Old 01-08-2019, 04:01 AM   #2
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,900
Default

use a while loop like


Quote:
track = reaper.GetSelectedTrack(0,0) -- Get first selected track, you can put that into a track loop too



programNumber = 0 -- First index

retval = true -- Start loop

while retval then

retval, programName = reaper.EnumTrackMIDIProgramNames( track, programNumber, '' )
programNumber = programNumber + 1
if retval then
-- DO WHAT YOU WANT HERE
end

end -- this will stop once there is no value returned



(not tested bu you get the idea)
X-Raym is offline   Reply With Quote