View Single Post
Old 06-25-2017, 02:22 AM   #1481
Chris Hurst Music
Human being with feelings
 
Chris Hurst Music's Avatar
 
Join Date: Mar 2017
Location: Wales, UK
Posts: 75
Default

Quote:
Originally Posted by mpl View Post
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!
Chris Hurst Music is offline   Reply With Quote