There is a collection of MIDI plugins known as PizMidi — one of those will be able to do what you need