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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user