mudcube / MIDI.js

:musical_keyboard: Making life easy to create a MIDI-app on the web. Includes a library to program synesthesia into your app for memory recognition or for creating trippy effects. Convert soundfonts for Guitar, Bass, Drums, ect. into code that can be read by the browser. Supports multiple simultaneous instruments and perfect timing.
http://mudcu.be/midi-js/
MIT License
3.82k stars 641 forks source link

What is the easiest way to put a midi file in reverse order (first note last, last note first)? #244

Open hatgit opened 5 years ago

hatgit commented 5 years ago

Trying to find an easy way to put a midi file in reverse order (first note last, last note first)?

hmoffatt commented 5 years ago

Complicated, because you need to find the note off event for each note on event and then reorder the pairs. Also, what timing between notes do you want when this is reversed?

I suggest you search the web for algorithms. This has nothing to do with MIDI.js.