View Single Post
Old 02-09-2019, 06:22 PM   #74
ReaMike
Human being with feelings
 
ReaMike's Avatar
 
Join Date: Feb 2017
Location: Sydney Australia
Posts: 140
Default

Quote:
Originally Posted by ThrashJazzAssassin View Post
Hey! I've been using this script a lot recently but was having problems using it with looped MIDI items.

MIDI Ex Machina currently ignores the loop point of MIDI items, instead it will fill the whole item with notes. A quick hack to change this behaviour is add (sws extension needed)
Code:
	mItemTake = reaper.GetTake(mItem, 0)
	ItemPPQN = reaper.BR_GetMidiSourceLenPPQ(mItemTake)
to the end of the GetItemLength() function,

just before
Code:
return ItemPPQN
Nice!
ReaMike is offline   Reply With Quote