surikov / webaudiofont

Use full GM set of musical instruments to play MIDI and single sounds or effects. Support for reverberation and equaliser. No plugins, no Flash. Pure HTML5 implementation compatible with desktop and mobile browser. See live examples.
https://surikov.github.io/webaudiofont/
GNU General Public License v3.0
891 stars 92 forks source link

Sound should play onMouseDown, not onClick / onMouseUp #81

Closed dezman closed 2 years ago

dezman commented 2 years ago

To more accurately mimic real instruments, the sound should play when you initiate the action, rather than when the user is finishing the 'click'

Presumably we can just change the event to onMouseDown.

surikov commented 2 years ago

Use any event that you like. WebAudioFont is library for music not UI events.