mirror of
https://github.com/microtherion/VocalEasel.git
synced 2024-12-22 03:04:00 +00:00
Fix dangling else
This commit is contained in:
parent
5b6d4feaa6
commit
33529254f1
|
@ -116,7 +116,7 @@ void VLMMAWriter::VisitNote(VLLyricsNote & n)
|
||||||
{
|
{
|
||||||
char buf[4];
|
char buf[4];
|
||||||
std::string dur;
|
std::string dur;
|
||||||
if (n.fDuration.fNum == 1)
|
if (n.fDuration.fNum == 1) {
|
||||||
if (n.fDuration.IsPowerOfTwo()) {
|
if (n.fDuration.IsPowerOfTwo()) {
|
||||||
sprintf(buf, "%d", n.fDuration.fDenom);
|
sprintf(buf, "%d", n.fDuration.fDenom);
|
||||||
dur = buf;
|
dur = buf;
|
||||||
|
@ -135,6 +135,7 @@ void VLMMAWriter::VisitNote(VLLyricsNote & n)
|
||||||
} else if (n.fDuration.fDenom == 24) {
|
} else if (n.fDuration.fDenom == 24) {
|
||||||
dur = "6"; // 16th note triplet
|
dur = "6"; // 16th note triplet
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (fTied) {
|
if (fTied) {
|
||||||
fMeasures.replace(fLastDur+1, 0, '+'+dur);
|
fMeasures.replace(fLastDur+1, 0, '+'+dur);
|
||||||
fLastDur += 1+dur.size();
|
fLastDur += 1+dur.size();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user