mirror of
https://github.com/microtherion/VocalEasel.git
synced 2025-01-03 17:04:00 +00:00
Be more conservative about triplets
This commit is contained in:
parent
40a84a82e9
commit
2fdd04ac45
|
@ -477,8 +477,7 @@ void VLMeasure::DecomposeNotes(const VLProperties & prop, VLNoteList & decompose
|
||||||
VLFraction grid(2*swung);
|
VLFraction grid(2*swung);
|
||||||
if (p.fDuration == 4*swung/3 && (at % grid == 0)) {
|
if (p.fDuration == 4*swung/3 && (at % grid == 0)) {
|
||||||
if (p.fDuration == c.fDuration && n!=e
|
if (p.fDuration == c.fDuration && n!=e
|
||||||
&& (n->fDuration == p.fDuration
|
&& n->fDuration == p.fDuration
|
||||||
|| (n->fDuration == 2*p.fDuration))
|
|
||||||
) {
|
) {
|
||||||
; // Triplet, not swing note
|
; // Triplet, not swing note
|
||||||
} else {
|
} else {
|
||||||
|
@ -494,8 +493,9 @@ void VLMeasure::DecomposeNotes(const VLProperties & prop, VLNoteList & decompose
|
||||||
// Second swing note (8th triplet -> 8th)
|
// Second swing note (8th triplet -> 8th)
|
||||||
//
|
//
|
||||||
p.fVisual &= VLNote::kNoteHead;
|
p.fVisual &= VLNote::kNoteHead;
|
||||||
} else if (p.fDuration != c.fDuration
|
} else if ((at % p.fDuration != 0)
|
||||||
&& 2*p.fDuration != c.fDuration
|
|| (p.fDuration != c.fDuration
|
||||||
|
&& 2*p.fDuration != c.fDuration)
|
||||||
) {
|
) {
|
||||||
//
|
//
|
||||||
// Get rid of awkward triplets
|
// Get rid of awkward triplets
|
||||||
|
|
Loading…
Reference in New Issue
Block a user