MIDI.js
MIDI.js copied to clipboard
MIDI.Player ignoring tempo changes ?
The jasmid replayer is handling them to this format:
event:Object
deltaTime:0
microsecondsPerBeat:600000
subtype:"setTempo"
type:"meta"
But then MIDI.Player > startAudio ignores meta events:
if (event.type !== 'channel') {
continue;
}
So it seems that there is no tempo support whatsoever ? Am i missing something ?
So it turns out there's a bpm override set to true when loading a file, which can be avoided by setting MIDI.Player.BPM to null before loading...
@entibo thanks, you just saved me a lot of time.
I want to modify the playback speed of music. What do I need to do