From aabd4facc1e2f3e48fc7553e41068983cc407467 Mon Sep 17 00:00:00 2001 From: Matthias Neeracher Date: Fri, 24 Nov 2017 06:19:29 +0100 Subject: [PATCH] Represent 5/24 as 1/8 + 1/8 triplet, not 1/4 triplet + 1/16 triplet --- Sources/VLModel.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Sources/VLModel.cpp b/Sources/VLModel.cpp index 8d08f80..24a3933 100644 --- a/Sources/VLModel.cpp +++ b/Sources/VLModel.cpp @@ -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) { - fDuration = triplet; - fVisual |= kTriplet; - return; + if (fDuration == triplet || (fDuration-triplet) >= VLFraction(1,16)) { + fDuration = triplet; + fVisual |= kTriplet; + return; + } } part /= 2; triplet /= 2;