Old 10-04-2019, 03:04 PM   #1
o_e
Human being with feelings
 
Join Date: May 2016
Posts: 354
Default 'smart' cut of midi items possible?

Hi,

Is it possible to read out the positon of the cursor in an item and the length of Midi notes left and right from the cursor in a script? I asked myself if it is possible to write a 'smart' cut function for midi items, deleting the small chunks left and right of the cursor (see attached pict)?

o_e is offline   Reply With Quote
Old 10-04-2019, 04:06 PM   #2
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 6,029
Default

yes it is possible. You can get midi content of midi item independant of the contect (arrange view, midi editor etc)
X-Raym is offline   Reply With Quote
Old 10-05-2019, 01:08 AM   #3
o_e
Human being with feelings
 
Join Date: May 2016
Posts: 354
Default

Quote:
Originally Posted by X-Raym View Post
yes it is possible. You can get midi content of midi item independant of the contect (arrange view, midi editor etc)
Thanks for your answer!

So it would be possible to write a script which compares the length right and left of the cursor and delete the side which is shorter. Or delete one side if it falls under a certain length threshold or a certain percentage.
I'am willing to give a little bounty if someone is interested in writing such a script..

edit:
Before someone start working on that, in the german-speaking part of the forum solger delivered a script which does what I'am looking for
https://forum.cockos.com/showthread.php?t=225694 (in combination with other scripts)

Last edited by o_e; 10-05-2019 at 02:37 AM.
o_e is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 03:23 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.