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.81k stars 640 forks source link

iOS - MIDI NoteOff does not work #230

Open idekterev opened 6 years ago

idekterev commented 6 years ago

I'm using MIDI.JS to manually play some notes (one note at a time, nothing complicated). When running under Android, everything works fine. Under iOS the sounds get 'stuck', like someone leaving the sustain pedal on. I've traced the problem to noteOff commands, which do not seem to function correctly.

Running iOS 12.2.6 MIDI.JS v0.4.2 running in Cordova, SoundFont files loaded locally.

As an example, the following code works correctly in Android: MIDI.noteOn(0, 50, 127, 0); MIDI.noteOff(0, 50, 0.01);

Under iOS, the sound keeps playing and does not cut-off (the noteOff command has no effect).

mscuthbert commented 5 years ago

I believe that this has been fixed in the https://github.com/mscuthbert/midicube fork.