Skip to content

Commit

Permalink
set initial tempo only if not default
Browse files Browse the repository at this point in the history
  • Loading branch information
rettinghaus committed Sep 16, 2024
1 parent d1d3497 commit 1ef8959
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/doc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,10 @@ void Doc::ExportMIDI(smf::MidiFile *midiFile)
else if (scoreDef->HasMm()) {
tempo = Tempo::CalcTempo(scoreDef);
}
midiFile->addTempo(0, 0, tempo);

if (tempo != MIDI_TEMPO) {
midiFile->addTempo(0, 0, tempo);
}

// Capture information for MIDI generation, i.e. from control elements
InitMIDIFunctor initMIDI;
Expand Down

0 comments on commit 1ef8959

Please sign in to comment.