Filters MIDI events.