 andrewdkaiser
|
Hello:
I have a MIDI file (created from an SDIF file that I generated using ASAnnotation). The file is very dense, by design…but it all came out as one channel. I’d like to filter the midi values similar to how a low pass or hipass audio filter would work.
Is there a midi function in OM that allows me to (for example) extract all MIDI events above a certain pitch value? I also think if the SDIF file had generated multiple channels, I could create a chord seq with those, and then get what I need by deleting tracks. Not sure.
thanks for any help.
Cheers,
andrew
|
 Jean
|
Hi Andrew,
The function get-MIDIevents converts any OM object into a list of MIDIEvents (which you can then reconvert to objects or save in a MIDI file).
It has an optional argument “test” that allows you to plug a lambda function or patch, that will filter the events.
This may allow you to split into several lists of events, according to a given pitch.
See for example the example 03-filters in the MIDI tutorial patches (Workspace window, menu Help/Import tutorial patches)
Jean
|
 andrewdkaiser
|
Jean – Thanks very much, that is exactly what I’m looking for.
,andrew
|