Much faster, approximate method.
Piano roll function for entire MIDI file.