UNPKG

jsynth-midi

Version:

time based function for reading events from midi files

25 lines (11 loc) 431 B
### jsynth-midi require it pass it a midi file it returns a function(time) call that function over and over again, passing the time it will sometimes return midi events look for event.subType == noteOn || noteOff in those objects you will find event.noteNumber and event.velocity properties ### known bug tempo changes may cause a problem, but so far only very complex midi files has those. want to fix bug soon tho.