Generating midi, must unselect before it works
I have a script that generates some midi by inserting midi notes in to an item. What is strange is that I have to deselect the midi notes before they work. It's as if reaper is not playing them back until I move the cursor or interact with it somehow. The notes are inserted and everything looks to be playing, but it isn't(no midi notes are showing in the vol meter).
I guess I have to call some function in inform reaper of the changes?
BTW, I tried 40214 - unselect all, which works when I call it from the action menu but not from my script
DeselectAll = lambda : RPR_Main_OnCommand(40214, 0);
Last edited by Airal; 08-29-2016 at 12:13 AM.
|