MIDI.js icon indicating copy to clipboard operation
MIDI.js copied to clipboard

MIDI.Player ignoring tempo changes ?

Open entibo opened this issue 9 years ago • 3 comments

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 ?

entibo avatar Apr 11 '16 15:04 entibo

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 avatar Apr 11 '16 15:04 entibo

@entibo thanks, you just saved me a lot of time.

gburlet avatar Dec 20 '17 18:12 gburlet

I want to modify the playback speed of music. What do I need to do

zhouxiang233 avatar Jul 11 '22 02:07 zhouxiang233