View Single Post
Old 07-01-2017, 04:35 PM   #37
James HE
Human being with feelings
 
James HE's Avatar
 
Join Date: Mar 2007
Location: I'm in a barn
Posts: 4,467
Default

Quote:
Originally Posted by juliansader View Post

In case of a script, what should the ideal behavior be?
ideal behavior is the hard part. If I'm writing this i think...

first check if the time selection starts and ends at a measure start / end. alert the user if it doesn't, ask to proceed and extend time selection to nearest measures, proceed with no changes, or just cancel the script.

if the user proceeds with no changes, the script could possibly just create a new measure with the left over bit(s)

I personally have not dealt with the API regarding time / tempo markers - I'm assuming enough is there to do this. But yeah I think the thing to do is to break it up into individual time selections - from one marker to the other, and remove those bits one at a time.
James HE is offline   Reply With Quote