How do I play arbitrary MIDI notes with javascript?
问题 To clarify: I don't want to generate a MIDI file nor do I want to play a MIDI file, I wish to play MIDI notes on the fly. I tried using https://github.com/mudcube/MIDI.js as the MIDI library, and it works somewhat. I am able to play notes by calling MIDI.noteOn(0,midiNumber,100); . However, this plays a note for a couple seconds and then tapers off even if I never call MIDI.noteOff . I don't believe this is how MIDI is intended to work. I wish to be able to call noteOn and have a note play