Still need to skip tied notes

This commit is contained in:
Matthias Neeracher 2008-03-30 19:39:07 +00:00
parent b8206f9f13
commit d16a8be705

View File

@ -1388,11 +1388,12 @@ void VLSong::SetWord(size_t stanza, size_t measure, VLFraction at, std::string w
VLFraction now(0);
while (note != meas.fMelody.end()) {
if (note->fPitch != VLNote::kNoPitch
&& !(note->fTied & VLNote::kTiedWithPrev)
)
switch (state) {
case kFindFirst:
if (now < at || note->fPitch == VLNote::kNoPitch
|| (note->fTied & VLNote::kTiedWithPrev)
)
if (now < at)
break; // Not yet there, skip this note
state = kOverwrite;
// Fall through