06-25-2017, 02:22 AM
|
#1481
|
Human being with feelings
Join Date: Mar 2017
Location: Wales, UK
Posts: 75
|
Quote:
Originally Posted by mpl
lua
Code:
me = reaper.MIDIEditor_GetActive()
if me then take = reaper.MIDIEditor_GetTake( me ) end
if take then
for i = 1, ({reaper.MIDI_CountEvts( take )})[2] do
_, _, m, s, e, c, p, v = reaper.MIDI_GetNote( take, i-1 )
if v > 28 and v < 41 then
reaper.MIDI_SetNote( take, i-1, true, m, s, e, c, p, v, true )
end
end
end
reaper.MIDI_Sort( take )
|
Fantastic! Many thanks!
|
|
|