grimmdude / MidiPlayerJS

♬ MIDI parser & player engine for browser or Node. As a parser converts MIDI events into JSON. Works well with single or multitrack MIDI files.
https://grimmdude.com/MidiPlayerJS/
MIT License
357 stars 52 forks source link

Emit velocity as a raw value for all events #102

Open pdillon opened 10 months ago

pdillon commented 10 months ago

Instead of emitting a velocity as a percentage for specific cases, could the consumer handle the raw value as needed? In my case, need the velocity set in the DAW before exporting MIDI to remain unchanged when handling the event and making decisions. Based on this demo, the change shouldn't be a problem since the gain is calculated? https://github.com/grimmdude/MidiPlayerJS/blob/master/demo/js/app.js#L75