MIDI.js provides real-time musical tone generation for browser applications, hiding much of the complexity of the Web Audio API. It can load an acoustic piano soundfont and play notes from interactive components. section 5.4
Playing a harp-string note
A string component converts its index to a MIDI note, uses strum power as velocity, starts the note, and schedules noteOff after 0.75 seconds. Playback is skipped until the plugin is ready.
