Skip to content

Commit

Permalink
Merge pull request #3623 from fernandoherreradelasheras/fix_midi_lyri…
Browse files Browse the repository at this point in the history
…cs_on_quarter_notes

Fix issue #3622: wrong lyrics position in midi output for <syl> in notes <= quarter
  • Loading branch information
lpugin authored Mar 12, 2024
2 parents 36a50ed + b0092bf commit 24dd9de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/midifunctor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,7 @@ FunctorCode GenerateMIDIFunctor::VisitStaffDef(const StaffDef *staffDef)

FunctorCode GenerateMIDIFunctor::VisitSyl(const Syl *syl)
{
const int startTime = m_totalTime + m_lastNote->GetScoreTimeOnset();
const double startTime = m_totalTime + m_lastNote->GetScoreTimeOnset();
const std::string sylText = UTF32to8(syl->GetText());

m_midiFile->addLyric(m_midiTrack, startTime * m_midiFile->getTPQ(), sylText);
Expand Down

0 comments on commit 24dd9de

Please sign in to comment.