mudcube/MIDI.js — pull request #83 by kpj (2014-05-20 12:52:20+00:00)
Title: Added program change detection

I thought that it might be useful to be able to actually use the instruments proposed in the midi file. This modification just passes program changes to MIDI.

Is there any good way to load only the instruments needed for the processed midi-file? Maybe iterating over all events once in the beginning and simply checking for programChange events?