I found a bug that I can't seem to get around. If a user wants to add bars to the beginning of the session there are adverse affects with this script and the native one in Reaper.
Test:
1) set left locator to bar 1
2) set right locator to bar 5
3) trigger the insert empty space or js empty bars script
Reaper adds 4 bars of an incorrect tempo ( as in not the same tempo as what's in bar 1-4.
I believe it's because Reaper doesn't know what the tempo is for any bars before bar 1 so it defaults to whatever the default session tempo is set to.
|