Fix a bug where the BPM is modulo'd by 256 on MIDI export (#6215)

Also fixes code formatting of the relevant function.
This commit is contained in:
JGHFunRun
2021-11-08 23:53:31 -06:00
committed by GitHub
parent 1dabd75267
commit 99d887610d

View File

@@ -239,10 +239,15 @@ class MIDITrack
addEvent(event);
}
inline void addTempo(uint8_t tempo, uint32_t time)
inline void addTempo(uint32_t tempo, uint32_t time)
{
Event event; event.channel = channel;
event.type = Event::TEMPO; event.time=time; event.tempo = tempo;
Event event;
event.channel = channel;
event.type = Event::TEMPO;
event.time = time;
event.tempo = tempo;
addEvent(event);
}