MUSX Document Model
|
class to track tuplets in the frame More...
#include <Entries.h>
Public Member Functions | |
TupletInfo (const std::weak_ptr< const EntryFrame > &parent, const std::shared_ptr< const details::TupletDef > &tup, size_t index, util::Fraction start, bool forVoice2) | |
Constructor. | |
bool | calcIsTremolo () const |
Calculates if this tuplet represents a tremolo based on the following criteria. | |
bool | calcCreatesSingletonRight () const |
Calculates if this tuplet is being used to create a singleton beam to the right. | |
bool | calcCreatesSingletonLeft () const |
Calculates if this tuplet is being used to create a singleton beam to the left. | |
bool | calcCreatesBeamContinuationRight () const |
Calculates if this tuplet creates a beam continuation over a barline to the right, as created by the Beam Over Barlines plugin. | |
bool | calcCreatesBeamContinuationLeft () const |
Calculates if this tuplet creates a beam continuation over a barline to the left, as created by the Beam Over Barlines plugin. | |
Public Attributes | |
std::shared_ptr< const details::TupletDef > | tuplet |
the tuplet | |
size_t | startIndex |
the index of the first entry in the tuplet | |
size_t | endIndex |
the index of the last entry in the tuplet | |
util::Fraction | startDura |
the actual duration where the tuplet starts | |
util::Fraction | endDura |
the actual duration where the tuplet ends | |
bool | voice2 |
whether this tuplet is for voice2 | |
class to track tuplets in the frame
bool musx::dom::EntryFrame::TupletInfo::calcCreatesBeamContinuationLeft | ( | ) | const |
Calculates if this tuplet creates a beam continuation over a barline to the left, as created by the Beam Over Barlines plugin.
bool musx::dom::EntryFrame::TupletInfo::calcCreatesBeamContinuationRight | ( | ) | const |
Calculates if this tuplet creates a beam continuation over a barline to the right, as created by the Beam Over Barlines plugin.
|
inline |
Calculates if this tuplet is being used to create a singleton beam to the left.
See comments at calcCreatesSingletonRight.
hidden
flag, however, will still be false. (This function guarantees these conditions if it returns true
.)
|
inline |
Calculates if this tuplet is being used to create a singleton beam to the right.
Finale has no built-in support for beams on singleton notes. As a workaround, users and (especially) plugins such as Beam Over Barline create singleton beams using a 0-length tuplet and hiding either the tuplet note or its next neighbor, depending on whether the beam goes to the left or the right. You should never encounter a 0-length tuplet encompassing more than one entry, but these functions guarantee this if they return true
.
hidden
flag, however, will still be false. (This function guarantees these conditions if it returns true
.) bool musx::dom::EntryFrame::TupletInfo::calcIsTremolo | ( | ) | const |
Calculates if this tuplet represents a tremolo based on the following criteria.
EntryInfoPtr::calcNumberOfBeams
on either entry to determine the number of beams. Use details::TupletDef::calcReferenceDuration
to get the total length of the tremolo.