JS stops when midi item ends
A JS take FX will "terminate" when an item ends.
I have a JS that generates midi. It queues the item then, depending on a parameter, will play midi for some time.
e.g., It generate 10 seconds of midi notes while the item has a length of 5 seconds. The problem is then only about half of the items are generated.
The purpose of a take FX is so I can assign various midi generation to midi items and move and copy them around. One can't do this if the FX is on a track.
I propose 2 solutions:
2. Allow one to specify not to terminate the JS FX.
1. Allow one to queue up midi items by specifying the time to play them. (basically extend midisend so that mpos can be specified in seconds.
midisenddelay(10, ...)
sends the midi data 10 seconds in to to the future.
This is desired as I had to write code to do the queuing and it is not fun in JS. Should be trivial for reaper to implement(after all, it basically already does this with mpos.
|