mirror of
https://github.com/microtherion/VocalEasel.git
synced 2024-12-22 03:04:00 +00:00
Represent 5/24 as 1/8 + 1/8 triplet, not 1/4 triplet + 1/16 triplet
This commit is contained in:
parent
8cdf61cf07
commit
aabd4facc1
|
@ -5,7 +5,7 @@
|
|||
//
|
||||
// (MN) Matthias Neeracher
|
||||
//
|
||||
// Copyright © 2005-2011 Matthias Neeracher
|
||||
// Copyright © 2005-2017 Matthias Neeracher
|
||||
//
|
||||
|
||||
#include "VLModel.h"
|
||||
|
@ -129,9 +129,11 @@ void VLNote::MakeRepresentable()
|
|||
fDuration = part;
|
||||
return;
|
||||
} else if (fVisual > kWhole && !nonTriplet && fDuration >= triplet) {
|
||||
if (fDuration == triplet || (fDuration-triplet) >= VLFraction(1,16)) {
|
||||
fDuration = triplet;
|
||||
fVisual |= kTriplet;
|
||||
return;
|
||||
}
|
||||
}
|
||||
part /= 2;
|
||||
triplet /= 2;
|
||||
|
|
Loading…
Reference in New Issue
Block a user