Finale PDK Framework 0.77
Power Up Your Finale Music Software
|
Encapsulates a note entry from an owner class (for example FCNoteEntryCell, FCNoteEntryLayer) class. More...
#include <ff_noteframe.h>
Public Types | |
enum | ENTRY_DURATIONS { BREVE = 8192 , WHOLE_NOTE = 4096 , NOTE_WHOLE = 4096 , HALF_NOTE = 2048 , NOTE_HALF = 2048 , QUARTER_NOTE = 1024 , NOTE_QUARTER = 1024 , EIGHTH_NOTE = 512 , NOTE_8TH = 512 , SIXTEENTH_NOTE = 256 , NOTE_16TH = 256 , THIRTYSECOND_NOTE = 128 , NOTE_32ND = 128 , SIXTYFOURTH_NOTE = 64 , NOTE_64TH = 64 , NOTE_128TH = 32 } |
Defintions of common note durations, for use with any operation where the TimeEdu32 type is used. More... | |
Public Types inherited from __FCBase | |
enum | PDKFRAMEWORK_CLASSID { FCID_UNKNOWN = 0 , FCID_ACCIDENTALMOD , FCID_ACTIVELYRIC , FCID_ALLOTMENT , FCID_ARTICULATION , FCID_ARTICULATIONDEF , FCID_BACKWARDREPEAT , FCID_BASELINE , FCID_BEAMMOD , FCID_BEATCHARTELEMENT , FCID_BOOKMARK , FCID_BROKENBEAMMOD , FCID_CATEGORYDEF , FCID_CELLCLEFCHANGE , FCID_CELLFRAMEHOLD , FCID_CELLGRAPHIC , FCID_CELLTEXT , FCID_CENTERSMARTSHAPE , FCID_CHORD , FCID_CHORDPREFS , FCID_CHORDSUFFIXELEMENT , FCID_CHORUSSYLLABLE , FCID_CLEFDEF , FCID_COMPOSITETIMESIGBOTTOMELEMENT , FCID_COMPOSITETIMESIGTOPELEMENT , FCID_CROSSSTAFFMOD , FCID_CUSTOMSMARTLINEDEF , FCID_CUSTOMSTEMMOD , FCID_DISTANCEPREFS , FCID_DOTMOD , FCID_ENCLOSURE , FCID_ENDINGREPEAT , FCID_ENIGMATEXTSTYLE , FCID_ENTRYALTERMOD , FCID_EXECUTABLESHAPEDEF , FCID_EXPRESSION , FCID_FONTINFO , FCID_FONTPREFS , FCID_FREEZESYSTEM , FCID_FRETBOARDSTYLEDEF , FCID_FRETBOARDSTYLEDEFS , FCID_FRETBOARDGROUPDEF , FCID_FRETBOARDGROUPDEFS , FCID_FRETINSTRUMENTDEF , FCID_GENERALPREFS , FCID_GRIDSGUIDESPREFS , FCID_GROUP , FCID_GROUPNAMEPOSITIONPREFS , FCID_HUMANPLAYBACKPREFS , FCID_INDEPENDENTCELLDETAIL , FCID_INSTRUMENTDEF , FCID_INSTRUMENTPLAYBACKDATA , FCID_KEYMODEDEF , FCID_KEYSIGNATURE , FCID_LAYERPREFS , FCID_LYRICSBASELINE , FCID_LYRICSPREFS , FCID_MEASURE , FCID_MEASURENUMBERREGION , FCID_METATOOLASSIGNMENT , FCID_MIDIEXPRESSION , FCID_MISCDOCPREFS , FCID_MULTIMEASUREREST , FCID_MULTIMEASURERESTPREFS , FCID_MULTISTAFFINSTRUMENT , FCID_MULTISTAFFINSTRUMENTS , FCID_MUSICCHARACTERPREFS , FCID_MUSICSPACINGPREFS , FCID_NUMBER , FCID_NOTEHEADMOD , FCID_OTHERINCI , FCID_PERCUSSIONLAYOUTNOTE , FCID_PERCUSSIONSTAFF , FCID_PERFORMANCEMOD , FCID_PAGE , FCID_PAGEFORMATPREFS , FCID_PAGEGRAPHIC , FCID_PAGETEXT , FCID_PART , FCID_PARTEXTRACTPREFS , FCID_PARTSCOPEPREFS , FCID_PARTSTAFFVOICING , FCID_PERCUSSIONNOTEMOD , FCID_PIANOBRACEPREFS , FCID_PLAYBACKPREFS , FCID_RAWTEXT , FCID_REPEATPREFS , FCID_SECONDARYBEAMBREAKMOD , FCID_BEAMEXTENSIONMOD , FCID_SECTIONSYLLABLE , FCID_SEPARATEMEASURENUMBER , FCID_SEPARATEPLACEMENT , FCID_SHAPEDEF , FCID_SHAPEEXPRESSIONDEF , FCID_SLURCONTOURPREFS , FCID_SIZEPREFS , FCID_SMARTSHAPE , FCID_SMARTSHAPEENTRYMARK , FCID_SMARTSHAPEMEASUREMARK , FCID_SMARTSHAPEPREFS , FCID_STAFF , FCID_STAFFLIST , FCID_STAFFNAMEPOSITION , FCID_STAFFNAMEPOSITIONPREFS , FCID_STAFFSTYLEASSIGN , FCID_STAFFSTYLEDEF , FCID_STAFFSYSTEM , FCID_STEMCONNECTIONTABLE , FCID_STEMMOD , FCID_STRING , FCID_SYLLABLEENTRYMOD , FCID_SYSTEMSTAFF , FCID_TABLATURENOTEMOD , FCID_TEMPOELEMENT , FCID_TEXTBLOCK , FCID_TEXTEXPRESSIONDEF , FCID_TEXTREPEAT , FCID_TEXTREPEATDEF , FCID_TIEMOD , FCID_TIEPREFS , FCID_TIECONTOURPREFS , FCID_TIEPLACEMENTPREFS , FCID_TIMESIGNATURE , FCID_TUPLET , FCID_TUPLETPREFS , FCID_VERSESYLLABLE } |
Constants for the GetClassID method. More... | |
enum | MEASUREMENTUNITS { MEASUREMENTUNIT_DEFAULT = UNIT_DEFAULT , MEASUREMENTUNIT_EVPUS = UNIT_EVPUS , MEASUREMENTUNIT_INCHES = UNIT_INCHES , MEASUREMENTUNIT_CENTIMETERS = UNIT_CENTS , MEASUREMENTUNIT_POINTS = UNIT_POINTS , MEASUREMENTUNIT_PICAS = UNIT_PICAS , MEASUREMENTUNIT_SPACES = UNIT_SPACES , MEASUREMENTUNIT_MILLIMETERS = 100 } |
Constants for Finale's standard measurement units. More... | |
Public Member Functions | |
FCNote * | GetItemAt (int index) const |
Overload version of GetItemAt(), which returns a note object (if available) for the note entry. | |
const char * | ClassName () const override |
Returns the name of the class, for diagnostic purposes. This method MUST be overwritten in each child class. | |
FCNoteEntry (EXENTRY *pEntry, EXTGF2005a *pFrame, FCNoteEntry *pPrevious) | |
The constructor. | |
virtual | ~FCNoteEntry () |
FCNote * | FindNoteID (twobyte noteID) |
void | SetRestDisplacement (twobyte value) |
Sets the displacement for a rest entry. | |
twobyte | GetRestDisplacement () |
Returns the rest displacement. | |
FCNoteEntry * | Previous () |
Returns the previous note entry in the linked collection (layer or cell). | |
FCNoteEntry * | PreviousInFrame () |
Returns the previous note entry in the linked collection (layer or cell), but only within the frame. | |
FCNoteEntry * | PreviousSameVInFrame () |
Returns the previous note entry in the same V1 or V2 within the current frame. If the current instance of FCNoteEntry is V2, only the current V2 launch is searched. | |
FCNoteEntry * | NextInBeamedGroup () |
Returns the next note entry in a beamed group or NULL if there is none. | |
FCNoteEntry * | PreviousInBeamedGroup () |
Returns the previous note entry in a beamed group or NULL if there is none. | |
FCArticulations * | CreateArticulations () |
Creates a collection for all the articulations attached to the note entry. | |
FCNoteheadMods * | CreateNoteheadMods () |
Creates a collection for all the notehead modifications attached to the note entry. | |
FCPerformanceMods * | CreatePerformanceMods () |
Creates a collection for all the MIDI performance modifications attached to the note entry. | |
FCTuplets * | CreateTuplets () |
Creates a collection for all the tuplets connected to the note entry. | |
ENTNUM | GetEntryNumber () const |
Returns the internal entry number (ID) for the note entry. | |
bool | RelinkToCurrentView () |
Relinks the unlinkable items in the current view so that the score and part(s) match. | |
bool | RelinkToScore () |
Relinks the unlinkable items in all parts to the contents of the score. | |
void | SetNoteFlag (bool state) |
Sets if the entry is a note or a rest. | |
void | SetPlayback (bool state) |
Sets the playback state of the note entry. | |
void | SetCombineRests (bool state) |
Sets the flag for if the rest should combine. | |
void | SetFlipTie (bool state) |
Sets the "flip tie" of the note entry. | |
void | SetSpacing (bool state) |
Sets the music spacing state of the note entry. | |
void | SetVisible (bool state) |
Sets the visibility state of the note entry. | |
void | SetGraceNote (bool state) |
Sets the grace note state of the note entry. | |
void | SetSplitRest (bool state) |
Sets the split rest state of the note entry. (Applies if note entry is a rest.) | |
void | SetVoice2 (bool state) |
Sets the voice 2 status for the entry. | |
void | SetVoice2Launch (bool state) |
Sets the entry that controls the launch of voice 2. | |
void | SetGraceNoteSlash (bool state) |
Sets the slashed state for a grace note entry. | |
void | SetCrossStaff (bool state) |
Sets the cross staff state for the entry. | |
void | SetBeamBeat (bool state) |
Sets the "beam/beat" state of the entry. | |
void | SetFreezeBeam (bool state) |
Sets the freeze state for the "beam/beat". | |
void | SetFlatBeam (bool state) |
Sets the "flat beam" state of the entry. | |
void | SetLedgerLines (bool state) |
Sets the ledger line state for the note entry. | |
void | SetFreezeStem (bool state) |
Sets the "Freeze Stem" state for the note entry. | |
void | SetReverseUpStem (bool state) |
Sets the reverse stem setting for up stem. | |
void | SetReverseDownStem (bool state) |
Sets the reverse stem setting for down stem. | |
void | SetSplitStem (bool state) |
Sets the "Split Stem" state for the note entry. | |
void | SetCheckAccidentals (bool state) |
Marks the entry that the accidentals should be verified when the frame is saved. | |
void | SetLegality (bool state) |
Sets the legality bit, marking that the entry is valid. | |
void | SetManualPosition (Evpu16 pos) |
Sets the manual positioning of the entry. | |
void | SetClefIndex (eClef clef) |
Sets the clef index for the entry. | |
void | SetStemUp (bool state) |
Sets the "stem up" flag for the entry. | |
void | SetDuration (TimeEdu32 duration) |
Sets the symbolic duration of the note. For tuplet entries, the symbolic duration would be different from the actual duration. | |
void | SetFloatingRest (bool state) |
Sets the floating rest status of the entry. | |
void | SetNoteDetailFlag (bool state) |
Sets the flag state for note detail records. | |
void | SetPerformanceDataFlag (bool state) |
Sets the flag state for performance data records. | |
void | SetSpecialAltsFlag (bool state) |
Sets the flag state for special alteration records. | |
void | SetArticulationFlag (bool state) |
Sets the flag that marks that an articulation is attached to the entry. | |
void | SetSmartShapeFlag (bool state) |
Sets the flag that marks that a smart shape is attached to the entry. | |
void | SetTupletStartFlag (bool state) |
Sets the flag that marks that a tuplet starts on the entry. | |
void | SetLyricFlag (bool state) |
Sets the flag that marks that an entry has syllable attached to it. | |
void | SetStemDetailFlag (bool state) |
Sets the flag state for stem detail records. | |
void | SetSecondaryBeamFlag (bool state) |
Sets the flag state for secondary beam detail records. | |
void | SetBeamExtensionFlag (bool state) |
Sets the flag state for beam extension detail records. | |
void | SetActualDuration (TimeEdu32 value) |
Sets the actual duration for the entry. | |
void | SetMeasurePos (TimeEdu32 value) |
Sets the elapsed position in the measure for the entry. | |
bool | GetBeamBeat () const |
Gets the "beam/beat" flag state of the entry. | |
bool | GetCheckAccidentals () const |
Returns the accidental "refresh" flag. | |
bool | GetLedgerLines () const |
Gets the ledger line state for the note entry. | |
bool | GetFreezeStem () const |
Gets the "Freeze Stem" state for the note entry. | |
bool | GetReverseUpStem () const |
Gets the reverse stem setting for up stem. | |
bool | GetReverseDownStem () const |
Gets the reverse stem setting for down stem. | |
bool | GetSplitStem () const |
Gets the "Split Stem" state for the note entry. | |
bool | GetLegality () const |
Gets the legality bit, that marks that the entry is valid. | |
bool | GetFreezeBeam () const |
Gets the freeze state for the "beam/beat". | |
bool | GetFlatBeam () const |
Gets the "flat beam" state of the entry. | |
bool | GetPlayback () const |
Gets the playback state of the note entry. | |
bool | GetCombineRests () const |
Returns the flag for if the rest should combine. | |
bool | GetFlipTie () const |
Gets the "flip tie" state of the note entry. | |
bool | GetSpacing () const |
Gets the music spacing state of the note entry. | |
bool | GetVisible () const |
Gets the visibility state of the note entry. | |
bool | GetGraceNote () const |
Gets the grace note state of the note entry. | |
bool | GetSplitRest () const |
Gets the split rest state of the note entry. (Applies if note entry is a rest.) | |
bool | GetGraceNoteSlash () const |
Gets the grace note slash state of the note entry. | |
bool | GetVoice2 () const |
Returns true if it's a voice 2 entry. | |
bool | GetVoice2Launch () const |
Returns true if the entry launches voice 2. | |
bool | GetStemUp () const |
Returns the state of the "up" bit for the entry. This is NOT the same as the true direction for the stem! | |
bool | GetCrossStaff () const |
Returns the cross staff state for the entry. | |
TimeEdu32 | GetDuration () const |
Gets the symbolic duration of the entry. For tuplet entries, the symbolic duration would be different from the actual duration. Compare with the GetActualDuration method. | |
bool | GetFloatingRest () const |
Gets the floating rest status of the entry. | |
TimeEdu32 | GetActualDuration () const |
Gets the actual duration of the entry. For tuplet entries, the symbolic duration would be different from the actual duration. Compare with the GetDuration method. | |
TimeEdu32 | CalcNondottedDuration () |
Returns the non-dotted symbolic duration of the entry. | |
twobyte | CalcDots () |
Returns the number of dots for a dotted entry. | |
bool | CalcUniquePitchString (FCString *pString) |
Creates a "pitch ID" string for the entry. | |
twobyte | GetLayerNumber () const |
Returns the 1-based layer number that the entry belongs to. | |
Evpu16 | GetManualPosition () const |
Gets the manual positioning of the entry. | |
eClef | GetClefIndex () const |
Gets the clef that's used for the entry. | |
int | CalcGraceNoteIndex () |
Returns the grace note index for the entry. | |
int | CalcNumberOfVisibleNotes () const |
Calculates the number of notes visible in the current score or part view, taking into account any that may not be displayed due to voiced part settings. (See FCPartStaffVoicing.) | |
bool | CalcDisplaysAsRest () const |
Calculates if this entry displays as a rest in the current score or part view, taking into account the FCPartStaffVoicing settings for a voiced part (if any). | |
twobyte | CalcHighestStaffPosition () |
Calculates the highest staff position for a note in the entry's chord. | |
twobyte | CalcLowestStaffPosition () |
Calculates the lowest staff position for a note in the entry's chord. | |
twobyte | CalcHighestDisplacement () |
Calculates the highest displacement value found in the entry's chord. | |
twobyte | CalcLowestDisplacement () |
Calculates the lowest displacement value found in the entry's chord. | |
twobyte | CalcDisplacementRange () |
Calculates the range of the highest and lowest note in a chord. | |
twobyte | CalcBeamCount () |
Returns the number of beams/flags for the entry, based on the duration. | |
bool | CalcMultiLayeredCell () |
Returns true if the entry is in a cell with multiple layers of music. | |
int | CalcDisplacementMatchCount (FCNoteEntry *pCompareEntry) |
Calculates the number of matching note displacements between the entries. | |
FCNote * | CalcHighestNote (FCNote *pCeiling=NULL) |
Finds the note with the highest pitch in the chord. | |
FCNote * | CalcLowestNote (FCNote *pFloor=NULL) |
Finds the note with the lowest pitch in the chord. | |
bool | CalcHiddenThroughAltNotation () |
Calculates if entry is hidden through alternate notation. | |
FCNote * | CalcHighestPercussionNote () |
For percussion notation, calculates the topmost percussion note. | |
FCNote * | CalcLowestPercussionNote () |
For percussion notation, calculates the bottommost percussion note. | |
bool | HasSameNotes (FCNoteEntry *pEntry) |
Compares the notes with the notes in another note entry. | |
FCNote * | FindDisplacement (twobyte displacement) |
Tries to finds a note in the chord with a specific displacement value. | |
FCNote * | FindPitch (FCNote *pPitchNote) |
Tries to finds a note in the chord with the identical pitch as the suppied note. | |
TimeEdu32 | GetMeasurePos () const |
Returns the elapsed duration position in the measure for the entry. | |
bool | GetNoteDetailFlag () const |
Returns true for existing note detail records. | |
bool | GetPerformanceDataFlag () const |
Returns true for existing performance data records. | |
bool | GetSpecialAltsFlag () const |
Returns true for existing special alteration records. | |
bool | GetTupletStartFlag () const |
Returns true if the entry is marked to start a tuplet. | |
bool | GetLyricFlag () const |
Returns the flag that marks that an entry has syllable attached to it. | |
bool | GetStemDetailFlag () const |
Gets the flag state for stem detail records. | |
bool | GetSecondaryBeamFlag () const |
Returns true for secondary beam detail records. | |
bool | GetBeamExtensionFlag () const |
Returns true for beam extension detail records. | |
bool | GetArticulationFlag () const |
Returns true if the entry is marked to contain articulations. | |
bool | GetSmartShapeFlag () const |
Returns true if the entry is marked to contain smart shapes. | |
twobyte | GetMeasure () const |
Returns the entry's measure. | |
twobyte | GetStaff () const |
Returns the entry's staff. | |
FCNoteEntry * | Next () |
Returns the next entry in the loaded entry chain (within the same layer). | |
FCNoteEntry * | NextInFrame () |
Returns the next note entry in the linked collection (layer or cell), but only within the frame. | |
FCNoteEntry * | NextSameVInFrame () |
Returns the next note entry in the same V1 or V2 within the current frame. If the current instance of FCNoteEntry is V2, only the current V2 launch is searched. | |
bool | IsNote () |
Returns true if entry is a note. | |
bool | IsRest () const |
Returns true if entry is a rest. | |
bool | IsDotted () |
Returns true if it's a dotted entry. | |
bool | IsStartOfTuplet () |
Returns true if the entry is the start of a tuplet. | |
bool | IsSameMeasurePosAs (FCNoteEntry *pCompareEntry) |
Returns true if the compared entry is at the same measure/measure position as the object. | |
bool | IsStartOfTupletParam (TupletInfo *pInfoStorage=NULL) |
Returns true if the entry is the start of a tuplet (parameter version). | |
bool | IsPartOfTuplet () |
Returns true if the entry is part of a tuplet. | |
bool | IsOverlappedEntry (FCNoteEntry *pTestEntry) |
Returns true if the test entry is at least partly overlapping the current entry. | |
bool | IsPartOfTupletParam (TupletInfo *pInfoStorage=NULL) |
Returns true if the entry is part of a tuplet (parameter version). | |
bool | IsLastInMeasure () |
Returns true if it's the last entry in the measure frame. | |
FCNoteEntry * | CalcLastTupletEntry (FCTuplet *pTuplet) |
Scans forward and returns the end entry of a tuplet that's connected to this entry object. | |
bool | CalcFlippable () |
Signals if the entry would flip when the up/down state is changed. | |
bool | CalcBeamedGroupEnd () |
Returns true if it's the end entry in a beamed group. | |
bool | CalcUnbeamedNote () |
Returns true if the entry is a non-beamed note (=not part of a beamed group.) | |
FCNoteEntry * | CalcBeamStartEntry () |
Returns the start entry of the beamed group where the entry belongs. If the "Extend beams over rests" option is set, this method might return a rest. | |
int | CalcLowestBeamStart () |
Returns the lowest beam number starting at this entry, where 1 = 8th note beam, 2 = 16th note beam, etc. | |
int | CalcLowestBeamEnd () |
Returns the lowest beam number ending at this entry, where 1 = 8th note beam, 2 = 16th note beam, etc. | |
int | CalcLowestBeamStub () |
Returns the lowest beam number that is a stand-alone beam stub. 1 = 8th note beam, 2 = 16th note beam, etc. | |
bool | CalcLargestNoteheadResize (FCNumber *pLargestFontSize, FCNumber *pLargestResize) |
Calculates the largest point size and the largest notehead % resize for the entry. | |
bool | CalcSmallestNoteheadResize (FCNumber *pSmallestFontSize, FCNumber *pSmallestResize) |
Calculates the smallest point size and the smallest notehead % resize for the entry. | |
twobyte | CalcWidestNoteheadWidth () |
Returns the widest width of a notehead in the entry, as the non-printing width. | |
bool | CalcStemUp () |
Returns the direction of the beam. | |
twobyte | CalcResize () |
Calculates the resize percent for the note entry. | |
twobyte | CalcStemLength () |
Calculates the stem length, based on the entry metrics. | |
bool | IsTied () |
Returns true if any of the notes in the chord is tied to the next entry. | |
bool | IsTiedBackwards () |
Returns true if any of the notes in the chord is flagged to be tied from the previous entry. | |
bool | IsTiedToPrevious () |
Return true if the previous entry has a tie to this entry. | |
bool | IsAllTied () |
Returns true if all of the notes in the chord is tied to the next entry. | |
bool | IsAllTiedBackwards () |
Returns true if all of the notes in the chord has a flagged to be tied from the previous entry. | |
void | ClearPitches () |
Clears all pitches from the entry, to prepare to add new notes. | |
FCNote * | AddNewNote () |
Adds a new note to the chord. | |
int | AddPitches (FCNoteEntry *pSourceEntry, bool unique, bool settie=false) |
Adds (appends to the existing notes) all notes from another entry. | |
int | AddPitches (FCNotePitches *pPitches, bool unique) |
Adds (appends to the existing notes) all notes from a pith collection. | |
int | AddPitch (FCNote *pNote) |
Adds a note to a chord. | |
int | AddArticulations (FCNoteEntry *pSourceEntry, bool bNoDuplicates=true) |
Adds (appends to the existing ones) all articulations from another entry. | |
void | TieAll (bool bTie) |
Ties or unties all chord notes for the entry. | |
void | SetAccidentals (bool bAccidental) |
Sets/removes accidental display for all chord notes in the entry. | |
void | CopyNotes (FCNoteEntry *pFrom) |
Copies all pitches and other note information from another entry. The old notes for the entry will be erased. The tie information and other note flags will also be identical to the source. | |
void | CopyNote (FCNote *pFrom) |
Copies all pitches and other note information from one single note. The old notes for the entry will be erased. The tie information and other note flags will also be identical to the source. | |
void | CopyEntry (FCNoteEntry *pFromEntry) |
Copies the duration and notes (or rest) from the source entry. | |
void | CopyEntryDetails (FCNoteEntry *pFromEntry, bool copytuplets) |
Copies note-related data from another entry. | |
void | CopyEntryPercussionDetails (FCNoteEntry *pFromEntry) |
Copies note-related data between percussion entries. | |
bool | DeleteNote (FCNote *pNote) |
Deletes a note from a chord. The note collection is rebuilt after the deletion. | |
void | CacheArticulations () |
Stores the available articulations in a cache memory. | |
bool | IsRestMovable () |
Returns true if it's a movable rest. | |
void | MakeRest () |
Turns the entry into a rest (without any displacement). | |
void | MakeMovableRest () |
Turns the entry into a movable rest. | |
void | MakeNote () |
Turns the entry into a note. | |
FCNoteEntry * | CreateShallowClone () |
Creates a shallow copy of the note entry, meaning that the reference to the entry, TGF and notes are the same. The object instance is new, though. | |
FCNotePitches * | CreateNotePitches () |
Create local copies of the note pitches in a collection. | |
Public Member Functions inherited from __FCCollection | |
__FCCollection () | |
The constructor. | |
virtual | ~__FCCollection () |
The virtual destructor, which deallocates the array and also all its elements. | |
int | GetCount () const |
Returns the number of elements of the collection. | |
void | Add (__FCBase *pNewItem) |
Adds an element to the end of the collection. | |
bool | UniqueAdd (__FCBase *pNewItem) |
Adds an element to the end of the collection, but only if it doesn't exist in the collection before. | |
void | InsertItemAt (__FCBase *pNewItem, int index) |
Inserts an item into the collection. | |
bool | ElementExists (__FCBase *pQueryItem) |
Returns true if the element is found in the collection, otherwise false. | |
void | ClearAll () |
Destroys all the objects in the collection and empties the collection. | |
void | DetachAll () |
Removes all the objects from the collection, without freeing/destroying the objects. | |
__FCBase * | GetItemAt (int index) const |
Returns the object at the index position. Index is 0-based. | |
__FCBase * | GetLastItem () const |
Returns the last item in the collection. | |
__FCBase * | operator[] (int index) const |
Identical to the GetItemAt method. | |
int | GetIndexOf (__FCBase *pObject) const |
Returns the 0-based order index for the object within the collection. | |
__FCBase * | DetachItemAt (int index) |
Removes the object at the index position. Index is 0-based. | |
bool | ClearItemAt (int index) |
Deletes the object at the index position and disposes the object. Index is 0-based. | |
int | ToEndFrom (int index, FCIteratorHandler *pIterator) |
Processes one element after another and iterates from one specific index to the end of the collection. | |
int | ForEach (FCIteratorHandler *pIterator) override |
Processes all elements in the collection (starting with item 0), or until the iterator Iterate() returns false. | |
virtual int | ForEachIndex (FCIteratorHandler *pIterator) |
Same as ForEach, but the IterateIndex callback of the iterator handler is used instead. | |
__FCBase * | FindFirst (FCIteratorHandler *pIterator) override |
Process elements until a match is found. | |
__FCBase * | FindUserData (void *data_to_find) |
Returns the first element in the collection that has the indicated userdata. | |
bool | Sort (FCIteratorHandler *pIterator) |
Sorts the elements of. | |
bool | Swap (int index1, int index2) |
Swaps to items in the collection. | |
bool | IsEmpty () const |
Returns true if the collection contains no elements. | |
int | MoveFrom (__FCCollection *pOtherCollection, bool unique=false) |
Moves elements from another collection into this collection. The other will be empty after the operation. | |
bool | IsIdentical (const __FCBase *pCompareObject) const override |
Returns true if two collections are considered to be identical. | |
void | DebugDump () override |
Outputs the class data/information for debugging purposes. | |
Public Member Functions inherited from __FCIteratorBase | |
__FCIteratorBase () | |
The constructor. | |
Public Member Functions inherited from __FCBase | |
virtual const PDKFRAMEWORK_CLASSID | GetClassID () const |
Returns the internal class ID for the PDK Framework class. This is implemented mostly because Lua has problems to resolve the true classes of inherited objects. | |
virtual | ~__FCBase () |
Virtual destructor, so all inherited classes get the virtual destructor. | |
void | DebugMsgInt (const char *pszPrefixText, int i) |
Creates a simple Message Box for debug purposes. The text appears with the extra digit (in decimal presentation) appearing afterwards. | |
void | DebugMsgHex (const char *pszPrefixText, int i) |
Creates a simple Message Box for debug purposes. The text appears with the extra digit (as a hexadecimal number) appearing afterwards. | |
void | DebugMsgString (const char *pszPrefixText, const char *thestring) |
Creates a simple Message Box for debug purposes. The text appears with the extra string appearing afterwards. | |
void | DebugMsg (const char *pszMsg) |
Creates a simple Message Box for debug purposes with just one text string. | |
void | DebugOutMenuInfo (FCUI *pUI, int menuixd_horiz, int menuixd_vert) const |
Outputs the menu command info for debugging purposes. | |
int | DebugOutFormat (const char *fmt,...) |
Outputs debug text using C style "printf" syntax. | |
virtual void | DebugDataDump () |
Outputs a memory dump of the data block in the object for debugging purposes. | |
virtual void | DebugDataByteArrayDump () |
Outputs a memory dump of the data block in the object for debugging purposes, as a C++ byte array. | |
void | Set16BitFlag (FLAG_16 *flag, FLAG_16 flagbits, bool state) |
Sets a 16 bit flag. | |
void | Set32BitFlag (FLAG_32 *flag, FLAG_32 flagbits, bool state) |
Sets/resets a 32 bit flag, by using a bit mask. | |
bool | GetBitFlag (FLAG_32 flag, FLAG_32 flagbits) const |
Gets a state from flag bits. Returns true if any bit in the mask is set. | |
int | GetBitCount (FLAG_32 flag) |
Returns the total number of set bits in a 32-bit unsigned int. | |
void | SetSpecific32Bit (FLAG_32 *flag, int bitnumber, bool state) |
Sets/resets a single bit in a 32 bit flag, by specifying one specific bit. | |
void | SetUserData (void *pData) |
Sets the user data attached to the instance of an object. | |
void | SetUserData2 (void *pData) |
Sets the additional user data attached to the instance of an object. | |
void * | GetUserData () const |
Gets the user data attached to the instance of an object. | |
void * | GetUserData2 () const |
Gets the additional user data attached to the instance of an object. | |
void | StoreXML_String (tinyxml2::XMLElement *pParentNode, const char *pszElementName, FCString *pStringValue) |
Helper function to store FCString objects in the XML file. | |
void | StoreXML_Integer (tinyxml2::XMLElement *pParentNode, const char *pszElementName, int value) |
Helper function to store integer objects in the XML file. | |
void | StoreXML_Bool (tinyxml2::XMLElement *pParentNode, const char *pszElementName, bool value) |
Helper function to store boolean objects in the XML file. | |
void | StoreXML_StringAttribute (tinyxml2::XMLElement *pNode, const char *pszAttributeName, FCString *pStringValue) |
Helper function to store FCString objects in the XML file, as an attribute to a node. | |
void | StoreXML_IntegerAttribute (tinyxml2::XMLElement *pNode, const char *pszAttributeName, int value) |
Helper function to store integer objects in the XML file, as an attribute to a node. | |
void | StoreXML_BoolAttribute (tinyxml2::XMLElement *pNode, const char *pszAttributeName, bool value) |
Helper function to store boolean objects in the XML file, as an attribute to a node. | |
void | StoreXML_FloatAttribute (tinyxml2::XMLElement *pNode, const char *pszAttributeName, float value) |
Helper function to store floating point objects in the XML file, as an attribute to a node. | |
virtual void | StoreToXML (tinyxml2::XMLElement *pParentNode) |
Virtual method that is used to store an object's data. | |
bool | ReadXML_String (tinyxml2::XMLElement *pParentNode, const char *pszElementName, FCString *pStringValue) |
Helper method to read FCString objects from the XML file. | |
bool | ReadXML_Integer (tinyxml2::XMLElement *pParentNode, const char *pszElementName, int *pValue) |
Helper method to read integer objects from the XML file. | |
bool | ReadXML_Bool (tinyxml2::XMLElement *pParentNode, const char *pszElementName, bool *pValue) |
Helper method to read boolean objects from the XML file. | |
bool | ReadXML_StringAttribute (tinyxml2::XMLElement *pNode, const char *pszAttributeName, FCString *pStringValue) |
Helper method to read FCString objects from the XML file, as an attribute to a node. | |
bool | ReadXML_IntegerAttribute (tinyxml2::XMLElement *pNode, const char *pszAttributeName, int *pValue) |
Helper method to read integer objects from the XML file, as an attribute to a node. | |
bool | ReadXML_BoolAttribute (tinyxml2::XMLElement *pNode, const char *pszAttributeName, bool *pValue) |
Helper method to read boolean objects from the XML file, as an attribute to a node. | |
bool | ReadXML_FloatAttribute (tinyxml2::XMLElement *pNode, const char *pszAttributeName, float *pValue) |
Helper method to read floating point objects from the XML file, as an attribute to a node. | |
virtual bool | ReadFromXML (tinyxml2::XMLElement *pParentNode) |
Virtual method that is used to read object data. | |
Static Public Member Functions | |
static void | MarkEntryMetricsForUpdate () |
Static method that mark that the entry-related layout info needs to be rebuilt (for CalcStemUp(), for example). | |
static TimeEdu32 | CalcNondottedDurationForDuration (TimeEdu32 duration) |
Static method that truncates duration to give only return the non-dotted duration value. | |
static int | CalcDotsForDuration (TimeEdu32 duration) |
Static method that calculates the number of dots a specific duration would get. | |
static bool | IsValidDuration (TimeEdu32 duration) |
Static method that evaluates the validity of a duration value. | |
static TimeEdu32 | CalcValidDuration (TimeEdu32 duration) |
Static method that calculates a valid note duration value by truncating the value if necessary. | |
Static Public Member Functions inherited from __FCBase | |
static void | DebugOutPtr (const char *pszPrefixText, void *ptr) |
Static method that outputs a line for debugging purposes. The prefix text appears with the extra ptr (in hexadeximal representation) appearing afterwards. | |
static void | DebugOutInt (const char *pszPrefixText, int i) |
Static method that outputs a line for debugging purposes. The text appears with the extra digit (in decimal presentation) appearing afterwards. | |
static void | DebugOutFloat (const char *pszPrefixText, double f) |
Static method that outputs a line for debugging purposes. The text appears with the extra float value appearing afterwards. | |
static void | DebugOutTag (const char *pszPrefixText, EXTAG extag) |
Static method that outputs a line for debugging purposes. The text appears with the EXTAG (in text) appearing afterwards. | |
static void | DebugOutHex (const char *pszPrefixText, int i) |
Static method that outputs a line for debugging purposes. The text appears with the extra digit (in hexadecimal presentation) appearing afterwards. | |
static void | DebugOutBin (const char *pszPrefixText, int i) |
Static method that outputs a line for debugging purposes. The text appears with the extra digit (in binary presentation) appearing afterwards. | |
static void | DebugOutString (const char *pszPrefixText, const char *thestring) |
Static method that outputs a line for debugging purposes (C string version). The text appears with the extra string appearing afterwards. | |
static void | DebugOutString (const char *pszPrefixText, FCString *pString) |
Static method that outputs a line for debugging purposes (FCString version). The text appears with the extra string appearing afterwards. | |
static void | DebugOutBool (const char *pszPrefixText, bool state) |
Static method that outputs a line for debugging purposes. The boolean state appears afterwards as either "TRUE" or "FALSE". | |
static void | DebugOutBlock (const void *pBuffer, int startoffset, int size) |
Static method that outputs a memory block for debugging purposes. Eight bytes per line will appear (as hex digits) until the whole memory block is dumped. | |
static void | DebugOutByteArrayBlock (const void *pBuffer, int startoffset, int size) |
Static method that outputs a memory block for debugging purposes. Eight bytes per line will appear (as hex digits) as a C++ onebyte array, until the whole memory block is dumped. | |
static void | DebugOut (const char *pszLine) |
Static method to output a line of text for debugging purposes. | |
Additional Inherited Members | |
Protected Member Functions inherited from __FCBase | |
__FCBase () | |
The constructor. | |
Encapsulates a note entry from an owner class (for example FCNoteEntryCell, FCNoteEntryLayer) class.
This class requires PDK_FRAMEWORK_ENTRIES to be defined.
The class is also a collection of notes (of the FCNote class).
When a note entry that uses standard notation is loaded from Finale, the notes are sorted in pitch order from lowest to highest. For percussion and tabulature notation however, there is no relation between displayed position and order in the entry. It's safest to not assume that entries are sorted.
Defintions of common note durations, for use with any operation where the TimeEdu32 type is used.
Lua-supported.
|
virtual |
The destructor
int FCNoteEntry::AddArticulations | ( | FCNoteEntry * | pSourceEntry, |
bool | bNoDuplicates = true ) |
Adds (appends to the existing ones) all articulations from another entry.
It's the caller's responsibility that the both source and destination entries are in the same document.
If the source entry has an articulation cache, that will be used as source. Otherwise, the articulations will load from the Finale database.
If articulations were added, the articulation flag is set for the entry. (The entry has to be saved separately through the TGF frame.)
Lua-supported.
pSourceEntry | The entry to copy from. |
bNoDuplicates | If true (default), articulations duplicates will not be copied. |
FCNote * FCNoteEntry::AddNewNote | ( | ) |
Adds a new note to the chord.
Lua-supported.
int FCNoteEntry::AddPitch | ( | FCNote * | pNote | ) |
Adds a note to a chord.
Method will not do anything on rests.
Lua-supported.
pNote | The note to copy from. |
int FCNoteEntry::AddPitches | ( | FCNoteEntry * | pSourceEntry, |
bool | unique, | ||
bool | settie = false ) |
Adds (appends to the existing notes) all notes from another entry.
This method will not do anything on rests.
March 10, 2013: Changed so the full entry is now automatically set to update the accidentals for the frame.
Lua-supported.
pSourceEntry | The entry to copy from. |
unique | If true, only add note pitches that don't exist. |
settie | If true, copy the tie state. |
int FCNoteEntry::AddPitches | ( | FCNotePitches * | pPitches, |
bool | unique ) |
Adds (appends to the existing notes) all notes from a pith collection.
Method will not do anything on rests.
pPitches | The pitch collection to copy from. |
unique | If true, only add note pitches that don't exist. |
void FCNoteEntry::CacheArticulations | ( | ) |
Stores the available articulations in a cache memory.
This is for the instances where the entry has been removed from the document (and the articulation data gets removed as well).
A cache will not be created if there isn't any articulations attached to the note.
If a articulation cache is available, it's used by the AddArticulations method.
Lua-supported.
|
inline |
Returns the number of beams/flags for the entry, based on the duration.
This method will handle dotted values.
Lua-supported.
bool FCNoteEntry::CalcBeamedGroupEnd | ( | ) |
Returns true if it's the end entry in a beamed group.
If the document preferences is set to extend beams over rests, rests might end beams.
true
. You can use NextInBeamedGroup to iterate the entries in a beam from first to last entry.This method requires that PDK_FRAMEWORK_PREFS is defined.
Lua-supported.
FCNoteEntry * FCNoteEntry::CalcBeamStartEntry | ( | ) |
Returns the start entry of the beamed group where the entry belongs. If the "Extend beams over rests" option is set, this method might return a rest.
This method requires that PDK_FRAMEWORK_PREFS is defined.
Lua-supported.
int FCNoteEntry::CalcDisplacementMatchCount | ( | FCNoteEntry * | pCompareEntry | ) |
Calculates the number of matching note displacements between the entries.
This method only checks matching displacements. (Keys, accidentals and everything else might differ between the entries.)
Lua-supported.
[in] | pCompareEntry | The entry containing the notes to compare. |
twobyte FCNoteEntry::CalcDisplacementRange | ( | ) |
Calculates the range of the highest and lowest note in a chord.
Starting in v0.65, this method skips any notes that are suppressed due to voiced parts. (See FCPartStaffVoicing.) If you wish to process all notes, switch to the score before calling this function. (See FCPart::SwitchTo.)
Lua-supported.
|
inline |
Calculates if this entry displays as a rest in the current score or part view, taking into account the FCPartStaffVoicing settings for a voiced part (if any).
Note that Finale may combine several entries into a single displayed rest if all the notes have been suppressed in the current voiced part. There is no straightforward or reliable way to detect the actual displayed rest in this case.
Lua-supported (0.65)
|
inline |
Returns the number of dots for a dotted entry.
Lua-supported.
|
static |
Static method that calculates the number of dots a specific duration would get.
Lua-supported.
duration | The duration in EDUs. |
bool FCNoteEntry::CalcFlippable | ( | ) |
Signals if the entry would flip when the up/down state is changed.
If the document preferences is set to extend beams over rests, rests might end beams.
This method requires that PDK_FRAMEWORK_PREFS is defined.
Lua-supported.
int FCNoteEntry::CalcGraceNoteIndex | ( | ) |
Returns the grace note index for the entry.
The leftmost grace note in a grace note group has index 0, the second in the same group has index 1, and so on.
Lua-supported.
bool FCNoteEntry::CalcHiddenThroughAltNotation | ( | ) |
Calculates if entry is hidden through alternate notation.
Since alternate notation might show the notes in different layers dependent on the settings, this method verifies if the entry really is hidden.
Lua-supported.
twobyte FCNoteEntry::CalcHighestDisplacement | ( | ) |
Calculates the highest displacement value found in the entry's chord.
Starting in v0.65, this method skips any notes that are suppressed due to voiced parts. (See FCPartStaffVoicing.) If you wish to process all notes, switch to the score before calling this function. (See FCPart::SwitchTo.)
Lua-supported.
Finds the note with the highest pitch in the chord.
Starting in v0.65, this method skips any notes that are suppressed due to voiced parts. (See FCPartStaffVoicing.) If you wish to process all notes, switch to the score before calling this function. (See FCPart::SwitchTo.)
Lua-supported.
pCeiling | If NULL, the highest pitch in the whole chord will be returned. Otherwise, the highest pitch that's lower than the "ceiling note" is returned. This note doesn't need to belong to the entry. |
FCNote * FCNoteEntry::CalcHighestPercussionNote | ( | ) |
For percussion notation, calculates the topmost percussion note.
Starting in v0.65, this method skips any notes that are suppressed due to voiced parts. (See FCPartStaffVoicing.) If you wish to process all notes, switch to the score before calling this function. (See FCPart::SwitchTo.)
Lua-supported.
twobyte FCNoteEntry::CalcHighestStaffPosition | ( | ) |
Calculates the highest staff position for a note in the entry's chord.
Starting in v0.65, this method skips any notes that are suppressed due to voiced parts. (See FCPartStaffVoicing.) If you wish to process all notes, switch to the score before calling this function. (See FCPart::SwitchTo.)
Lua-supported.
bool FCNoteEntry::CalcLargestNoteheadResize | ( | FCNumber * | pLargestFontSize, |
FCNumber * | pLargestResize ) |
Calculates the largest point size and the largest notehead % resize for the entry.
This method requires that PDK_FRAMEWORK_PREFS are defined.
Lua-supported.
pLargestFontSize | Pointer to FCNumber object where the largest font size will be stored. |
pLargestResize | Pointer to FCNumber where the largest % resize will be stored. |
FCNoteEntry * FCNoteEntry::CalcLastTupletEntry | ( | FCTuplet * | pTuplet | ) |
Scans forward and returns the end entry of a tuplet that's connected to this entry object.
Lua-supported.
int FCNoteEntry::CalcLowestBeamEnd | ( | ) |
Returns the lowest beam number ending at this entry, where 1 = 8th note beam, 2 = 16th note beam, etc.
This method requires that PDK_FRAMEWORK_PREFS is defined.
Lua-supported (0.74).
int FCNoteEntry::CalcLowestBeamStart | ( | ) |
Returns the lowest beam number starting at this entry, where 1 = 8th note beam, 2 = 16th note beam, etc.
This method requires that PDK_FRAMEWORK_PREFS is defined.
Lua-supported (0.74).
int FCNoteEntry::CalcLowestBeamStub | ( | ) |
Returns the lowest beam number that is a stand-alone beam stub. 1 = 8th note beam, 2 = 16th note beam, etc.
This method requires that PDK_FRAMEWORK_PREFS is defined.
Lua-supported (0.74).
twobyte FCNoteEntry::CalcLowestDisplacement | ( | ) |
Calculates the lowest displacement value found in the entry's chord.
Starting in v0.65, this method skips any notes that are suppressed due to voiced parts. (See FCPartStaffVoicing.) If you wish to process all notes, switch to the score before calling this function. (See FCPart::SwitchTo.)
Lua-supported (0.55).
Finds the note with the lowest pitch in the chord.
Starting in v0.65, this method skips any notes that are suppressed due to voiced parts. (See FCPartStaffVoicing.) If you wish to process all notes, switch to the score before calling this function. (See FCPart::SwitchTo.)
Lua-supported.
pFloor | If NULL, the lowest pitch in the whole chord will be returned. Otherwise, the lowest pitch that's higher than the "floor note" is returned. This note doesn't need to belong to the entry. |
FCNote * FCNoteEntry::CalcLowestPercussionNote | ( | ) |
For percussion notation, calculates the bottommost percussion note.
Starting in v0.65, this method skips any notes that are suppressed due to voiced parts. (See FCPartStaffVoicing.) If you wish to process all notes, switch to the score before calling this function. (See FCPart::SwitchTo.)
Lua-supported.
twobyte FCNoteEntry::CalcLowestStaffPosition | ( | ) |
Calculates the lowest staff position for a note in the entry's chord.
Starting in v0.65, this method skips any notes that are suppressed due to voiced parts. (See FCPartStaffVoicing.) If you wish to process all notes, switch to the score before calling this function. (See FCPart::SwitchTo.)
Lua-supported (0.55).
bool FCNoteEntry::CalcMultiLayeredCell | ( | ) |
Returns true if the entry is in a cell with multiple layers of music.
Lua-supported.
|
inline |
Returns the non-dotted symbolic duration of the entry.
Example: A double-dotted quarter note will be returned as QUARTER_NOTE.
(Was earlier called 'GetNondottedDuration')
Lua-supported.
|
static |
Static method that truncates duration to give only return the non-dotted duration value.
Lua-supported.
duration | Any input duration in EDUs. |
int FCNoteEntry::CalcNumberOfVisibleNotes | ( | ) | const |
Calculates the number of notes visible in the current score or part view, taking into account any that may not be displayed due to voiced part settings. (See FCPartStaffVoicing.)
Lua-supported (0.65)
twobyte FCNoteEntry::CalcResize | ( | ) |
Calculates the resize percent for the note entry.
This method loads the FCEntryAlterMod data for the note entry. It's provided as a more convenient approach to resized entries.
Lua-supported.
bool FCNoteEntry::CalcSmallestNoteheadResize | ( | FCNumber * | pSmallestFontSize, |
FCNumber * | pSmallestResize ) |
Calculates the smallest point size and the smallest notehead % resize for the entry.
This method requires that PDK_FRAMEWORK_PREFS are defined.
Lua-supported.
pSmallestFontSize | Pointer to FCNumber object where the smallest font size will be stored. |
pSmallestResize | Pointer to FCNumber where the smallest % resize will be stored. |
twobyte FCNoteEntry::CalcStemLength | ( | ) |
Calculates the stem length, based on the entry metrics.
Call the MarkEntryMetricsForUpdate method if the entry-related layout info needs to be rebuilt.
Lua-supported.
bool FCNoteEntry::CalcStemUp | ( | ) |
Returns the direction of the beam.
Call the MarkEntryMetricsForUpdate static method if the entry-related layout info needs to be rebuilt.
Lua-supported.
bool FCNoteEntry::CalcUnbeamedNote | ( | ) |
Returns true if the entry is a non-beamed note (=not part of a beamed group.)
This method requires that PDK_FRAMEWORK_PREFS is defined.
Lua-supported.
bool FCNoteEntry::CalcUniquePitchString | ( | FCString * | pString | ) |
Creates a "pitch ID" string for the entry.
The ID calculation itself is arbitrary, so don't use it for anything else than equal/not equal comparisons.
The idea is that a chord with the same pitch content should have the same ID.
[in] | pString | The string buffer (a FCString object). |
|
static |
Static method that calculates a valid note duration value by truncating the value if necessary.
If only non-dotted is required, use CalcNondottedDurationForDuration instead.
Lua-supported.
duration | A duration in EDUs to test. |
twobyte FCNoteEntry::CalcWidestNoteheadWidth | ( | ) |
Returns the widest width of a notehead in the entry, as the non-printing width.
The left side of the widest notehead is (kind of) a connection point for articulations on up-stem notes using stem side placement.
Lua-supported.
|
inlineoverridevirtual |
Returns the name of the class, for diagnostic purposes. This method MUST be overwritten in each child class.
Lua-supported.
Reimplemented from __FCCollection.
void FCNoteEntry::ClearPitches | ( | ) |
Clears all pitches from the entry, to prepare to add new notes.
This method will not turn the entry into a rest! Use this method rather than ClearAll().
Lua-supported.
void FCNoteEntry::CopyEntry | ( | FCNoteEntry * | pFromEntry | ) |
Copies the duration and notes (or rest) from the source entry.
Flags for individual notes in the entry are copied, but the note entry flags (such as beam/beat and attachment flags) are not copied.
Lua-supported.
void FCNoteEntry::CopyEntryDetails | ( | FCNoteEntry * | pFromEntry, |
bool | copytuplets ) |
Copies note-related data from another entry.
Entry details that are dependent on stem/beam direction are NOT copied.
These details are copied:
Lua-supported.
void FCNoteEntry::CopyEntryPercussionDetails | ( | FCNoteEntry * | pFromEntry | ) |
Copies note-related data between percussion entries.
Both source and destination entries must belong to a percussion staff. No remapping is made if the source and destination belongs to different percussion maps.
void FCNoteEntry::CopyNote | ( | FCNote * | pFrom | ) |
Copies all pitches and other note information from one single note. The old notes for the entry will be erased. The tie information and other note flags will also be identical to the source.
Lua-supported.
pFrom | Pointer to an note from where the info should be copied. |
void FCNoteEntry::CopyNotes | ( | FCNoteEntry * | pFrom | ) |
Copies all pitches and other note information from another entry. The old notes for the entry will be erased. The tie information and other note flags will also be identical to the source.
Lua-supported.
pFrom | Pointer to an entry from where the pitches should be copied. |
FCArticulations * FCNoteEntry::CreateArticulations | ( | ) |
Creates a collection for all the articulations attached to the note entry.
The caller must delete the collection from the heap after use. (Not necessary with Lua.)
Lua-supported.
FCNoteheadMods * FCNoteEntry::CreateNoteheadMods | ( | ) |
Creates a collection for all the notehead modifications attached to the note entry.
The caller must delete the collection from the heap after use. (Not necessary with Lua.)
Lua-supported.
FCNotePitches * FCNoteEntry::CreateNotePitches | ( | ) |
Create local copies of the note pitches in a collection.
FCPerformanceMods * FCNoteEntry::CreatePerformanceMods | ( | ) |
Creates a collection for all the MIDI performance modifications attached to the note entry.
The caller must delete the collection from the heap after use. (Not necessary with Lua.)
Lua-supported.
FCTuplets * FCNoteEntry::CreateTuplets | ( | ) |
Creates a collection for all the tuplets connected to the note entry.
The caller must delete the collection from the heap after use. (Not necessary with Lua.)
Lua-supported.
bool FCNoteEntry::DeleteNote | ( | FCNote * | pNote | ) |
Deletes a note from a chord. The note collection is rebuilt after the deletion.
Make sure to note make any assumption about the note states or positions within the entry after the delete.
Lua-supported.
pNote | Pointer to the note object to delete. |
FCNote * FCNoteEntry::FindDisplacement | ( | twobyte | displacement | ) |
Tries to finds a note in the chord with a specific displacement value.
Lua-supported.
[in] | displacement | The displacement value to match. |
FCNote * FCNoteEntry::FindNoteID | ( | twobyte | noteID | ) |
Finds the FCNote object that matches a specific note ID.
Lua-supported.
[in] | noteID | The note ID to search for. |
Tries to finds a note in the chord with the identical pitch as the suppied note.
Lua-supported.
[in] | pPitchNote | Pointer to the note that should be matched in pitch. |
|
inline |
Gets the actual duration of the entry. For tuplet entries, the symbolic duration would be different from the actual duration. Compare with the GetDuration method.
Lua-supported (also as property).
|
inline |
Returns true if the entry is marked to contain articulations.
Lua-supported (also as property).
|
inline |
Gets the "beam/beat" flag state of the entry.
Lua-supported (also as property).
|
inline |
Returns true for beam extension detail records.
Lua-supported (also as property).
bool FCNoteEntry::GetCheckAccidentals | ( | ) | const |
Returns the accidental "refresh" flag.
Lua-supported (also as property).
|
inline |
Gets the clef that's used for the entry.
Use the FCClefDef class to load information about the clef.
Lua-supported (also as property).
bool FCNoteEntry::GetCombineRests | ( | ) | const |
Returns the flag for if the rest should combine.
Available only on Finale 2014 and above.
|
inline |
Returns the cross staff state for the entry.
Lua-supported (also as property).
|
inline |
Gets the symbolic duration of the entry. For tuplet entries, the symbolic duration would be different from the actual duration. Compare with the GetActualDuration method.
Lua-supported (also as property).
|
inline |
Returns the internal entry number (ID) for the note entry.
Lua-supported (also as a read-only property).
|
inline |
Gets the "flat beam" state of the entry.
The beam is only visually affected if the entry is first in a beamed group.
Lua-supported (also as property).
|
inline |
Gets the "flip tie" state of the note entry.
Lua-supported (also as property).
|
inline |
Gets the floating rest status of the entry.
Lua-supported (also as property).
|
inline |
Gets the freeze state for the "beam/beat".
Lua-supported (also as property).
|
inline |
Gets the "Freeze Stem" state for the note entry.
Lua-supported (also as property).
|
inline |
Gets the grace note state of the note entry.
Lua-supported (also as property).
|
inline |
Gets the grace note slash state of the note entry.
Lua-supported (also as property).
|
inline |
Overload version of GetItemAt(), which returns a note object (if available) for the note entry.
Lua-supported.
|
inline |
Returns the 1-based layer number that the entry belongs to.
Lua-supported (also as read-only property).
|
inline |
Gets the ledger line state for the note entry.
Lua-supported (also as property).
|
inline |
Gets the legality bit, that marks that the entry is valid.
All entries should have this bit set to be valid to Finale.
Lua-supported (also as property).
|
inline |
Returns the flag that marks that an entry has syllable attached to it.
Lua-supported.
|
inline |
Gets the manual positioning of the entry.
Lua-supported (also as property).
|
inline |
Returns the entry's measure.
Lua-supported (also as a read-only property).
|
inline |
Returns the elapsed duration position in the measure for the entry.
First entry in measure starts at 0. Please note that the position is based on duration, not on measurement.
Lua-supported (also as property).
|
inline |
Returns true for existing note detail records.
Lua-supported (also as property).
|
inline |
Returns true for existing performance data records.
Use the FCPerformanceMod class to access the performance data.
Lua-supported (also as property).
|
inline |
Gets the playback state of the note entry.
Lua-supported (also as property).
twobyte FCNoteEntry::GetRestDisplacement | ( | ) |
Returns the rest displacement.
Lua-supported.
|
inline |
Gets the reverse stem setting for down stem.
Lua-supported (also as property) (0.68).
|
inline |
Gets the reverse stem setting for up stem.
Lua-supported (also as property) (0.68).
|
inline |
Returns true for secondary beam detail records.
Lua-supported (also as property).
|
inline |
Returns true if the entry is marked to contain smart shapes.
Lua-supported (also as property).
|
inline |
Gets the music spacing state of the note entry.
Lua-supported (also as property).
|
inline |
Returns true for existing special alteration records.
Lua-supported (also as property).
|
inline |
Gets the split rest state of the note entry. (Applies if note entry is a rest.)
Lua-supported (also as property) (0.61).
|
inline |
Gets the "Split Stem" state for the note entry.
Lua-supported (also as property) (0.61).
|
inline |
Returns the entry's staff.
Lua-supported (also as a read-only property).
|
inline |
Gets the flag state for stem detail records.
Lua-supported (also as property).
|
inline |
Returns the state of the "up" bit for the entry. This is NOT the same as the true direction for the stem!
To get the true direction of a stem for an entry, use the CalcStemUp method.
Lua-supported (also as property).
|
inline |
Returns true if the entry is marked to start a tuplet.
Lua-supported (also as property).
|
inline |
Gets the visibility state of the note entry.
Lua-supported (also as property).
|
inline |
Returns true if it's a voice 2 entry.
Lua-supported (also as property).
|
inline |
Returns true if the entry launches voice 2.
Lua-supported (also as property).
bool FCNoteEntry::HasSameNotes | ( | FCNoteEntry * | pEntry | ) |
Compares the notes with the notes in another note entry.
Lua-supported.
bool FCNoteEntry::IsAllTied | ( | ) |
Returns true if all of the notes in the chord is tied to the next entry.
Lua-supported.
bool FCNoteEntry::IsAllTiedBackwards | ( | ) |
Returns true if all of the notes in the chord has a flagged to be tied from the previous entry.
Lua-supported.
bool FCNoteEntry::IsDotted | ( | ) |
Returns true if it's a dotted entry.
Lua-supported.
|
inline |
Returns true if it's the last entry in the measure frame.
Lua-supported.
|
inline |
Returns true if entry is a note.
Lua-supported.
bool FCNoteEntry::IsOverlappedEntry | ( | FCNoteEntry * | pTestEntry | ) |
Returns true if the test entry is at least partly overlapping the current entry.
The method checks the left/right overlap only. Entries can be placed on different staves and still overlap.
Lua-supported.
pTestEntry | Entry to test against. |
bool FCNoteEntry::IsPartOfTuplet | ( | ) |
Returns true if the entry is part of a tuplet.
This method only works correctly if the frame has been accurately saved.
Lua-supported.
bool FCNoteEntry::IsPartOfTupletParam | ( | TupletInfo * | pInfoStorage = NULL | ) |
Returns true if the entry is part of a tuplet (parameter version).
This method only works correctly if the frame has been accurately saved.
pInfoStorage | The optional pointer to where information about the matching tuplet should be copied. |
|
inline |
Returns true if entry is a rest.
Lua-supported.
bool FCNoteEntry::IsRestMovable | ( | ) |
Returns true if it's a movable rest.
Lua-supported.
bool FCNoteEntry::IsStartOfTuplet | ( | ) |
Returns true if the entry is the start of a tuplet.
This method only works correctly if the frame has been accurately saved. It goes deeper than just looking at the entry's tuplet flag.
Lua-supported.
bool FCNoteEntry::IsStartOfTupletParam | ( | TupletInfo * | pInfoStorage = NULL | ) |
Returns true if the entry is the start of a tuplet (parameter version).
This method only works correctly if the frame has been accurately saved. It goes deeper than just looking at the entry's tuplet flag.
pInfoStorage | The optional pointer to where information about the matching tuplet should be copied. |
bool FCNoteEntry::IsTied | ( | ) |
Returns true if any of the notes in the chord is tied to the next entry.
Lua-supported.
bool FCNoteEntry::IsTiedBackwards | ( | ) |
Returns true if any of the notes in the chord is flagged to be tied from the previous entry.
Lua-supported.
bool FCNoteEntry::IsTiedToPrevious | ( | ) |
Return true if the previous entry has a tie to this entry.
This method will not scan past the layer/cell boundaries. If the previous entry is further away than 1 measure, it's not considered to be a tie.
Lua-supported.
|
static |
Static method that evaluates the validity of a duration value.
Lua-supported.
duration | A duration in EDUs to test. |
void FCNoteEntry::MakeMovableRest | ( | ) |
Turns the entry into a movable rest.
Lua-supported.
void FCNoteEntry::MakeNote | ( | ) |
Turns the entry into a note.
Lua-supported.
void FCNoteEntry::MakeRest | ( | ) |
Turns the entry into a rest (without any displacement).
By design, this function sets the following properties to false
:
SetNoteFlag
SetNoteDetailFlag
SetSpecialAltsFlag
SetArticulationFlag
If you want to preserve them, you must save and restore them. Otherwise, be sure to delete any of these items before calling MakeRest.
Lua-supported.
|
inlinestatic |
Static method that mark that the entry-related layout info needs to be rebuilt (for CalcStemUp(), for example).
It will also set the flag to rebuild the cell metrics, since that is used for some entry-related calculations. This flag is cleared once the metrics has been rebuilt internally.
Lua-supported.
|
inline |
Returns the next entry in the loaded entry chain (within the same layer).
Please note that what this method will return is dependent on how the owner loaded the TGF data.
Lua-supported.
|
inline |
Returns the next note entry in a beamed group or NULL if there is none.
You can use this function to iterate the entries in a beamed group. Frequently you will start with an entry returned by CalcBeamStartEntry, but this is not required. This function skips over nested beams and iterates through only the entries associated with the beam that contains the current instance of FCNoteEntry. (See CalcBeamedGroupEnd for additional comments about nested beams.)
This method requires that PDK_FRAMEWORK_PREFS is defined.
Lua-supported (0.72).
|
inline |
Returns the next note entry in the linked collection (layer or cell), but only within the frame.
Lua-supported (0.72).
FCNoteEntry * FCNoteEntry::NextSameVInFrame | ( | ) |
Returns the next note entry in the same V1 or V2 within the current frame. If the current instance of FCNoteEntry is V2, only the current V2 launch is searched.
Lua-supported (0.72).
|
inline |
Returns the previous note entry in the linked collection (layer or cell).
This method looks past frames, if the owner collection supports it.
Lua-supported.
|
inline |
Returns the previous note entry in a beamed group or NULL if there is none.
You can use this function to iterate the entries in a beamed group. Frequently you will start with an entry where by CalcBeamedGroupEnd is true
, but this is not required. This function skips over nested beams and iterates through only the entries associated with the beam that contains the current instance of FCNoteEntry. (See CalcBeamedGroupEnd for additional comments about nested beams.)
This method requires that PDK_FRAMEWORK_PREFS is defined.
Lua-supported (0.72).
|
inline |
Returns the previous note entry in the linked collection (layer or cell), but only within the frame.
Lua-supported.
FCNoteEntry * FCNoteEntry::PreviousSameVInFrame | ( | ) |
Returns the previous note entry in the same V1 or V2 within the current frame. If the current instance of FCNoteEntry is V2, only the current V2 launch is searched.
Lua-supported (0.72).
bool FCNoteEntry::RelinkToCurrentView | ( | ) |
Relinks the unlinkable items in the current view so that the score and part(s) match.
If the current edit focus is the score, the parts are relinked to the score. If the current edit focus is a part, all parts and score are linked with the values in the current part.
You do not need to save the FCNoteEntry for the relink to take effect. Lua scripts may use either eachentry
, eachentrysaved
, or any other iteration technique, and the relink still happens.
As of Finale 27.3, the following properties are unlinkable in FCNoteEntry:
This function relinks them all. Finale provides no means for a plugin to relink them selectively. That said, you can relink them all and then re-unlink the items yourself that you want to keep unlinked. For this to work, you need to use eachentrysaved
. Here is an example of how relink feeze stems while keeping manual positioning unlinked. (Run it with the part in edit focus.)
Lua-supported (0.67).
bool FCNoteEntry::RelinkToScore | ( | ) |
Relinks the unlinkable items in all parts to the contents of the score.
See additional comments at RelinkToCurrentView.
Lua-supported (0.67).
void FCNoteEntry::SetAccidentals | ( | bool | bAccidental | ) |
Sets/removes accidental display for all chord notes in the entry.
This method doesn't affect rests.
Lua-supported.
bAccidental | true - puts accidentals on all chord notes for the note entry. false - remove accidentals for all chord notes. |
|
inline |
Sets the actual duration for the entry.
This value is never saved. It's only used for diagnostic purposes.
Lua-supported (also as property).
|
inline |
Sets the flag that marks that an articulation is attached to the entry.
Lua-supported (also as property).
state | True = there are articulations attached to the entry. |
|
inline |
Sets the "beam/beat" state of the entry.
Lua-supported (also as property).
state | Set to true if the entry is not a continuation of a beamed group. |
|
inline |
Sets the flag state for beam extension detail records.
Lua-supported (also as property).
state | True = there is beam extension detail data. |
void FCNoteEntry::SetCheckAccidentals | ( | bool | state | ) |
Marks the entry that the accidentals should be verified when the frame is saved.
When run on Finale 2014 and higher, this method does nothing.
Lua-supported (also as property).
state | True to mark that Finale should check the states of the accidentals for the entry. |
|
inline |
Sets the clef index for the entry.
Note that this value is not saved. By rights, ClefIndex should be a read-only property, but the setter exists for backwards compatibility. The class instance remembers the changed value but it isn't saved and has no effect. Use FCCellFrameHold to change the clef.
Lua-supported (also as property).
void FCNoteEntry::SetCombineRests | ( | bool | state | ) |
Sets the flag for if the rest should combine.
Available only on Finale 2014 and above (will do nothing on pre-Fin2014).
Lua-supported (also as property).
|
inline |
Sets the cross staff state for the entry.
Generally speaking you do not need to use this method to create cross-staff notes. Instead, create the note's FCCrossStaffMod. Saving it sets all the required flags automatically.
Lua-supported (also as property).
state | Set to true if the entry contains a cross staff note. |
|
inline |
Sets the symbolic duration of the note. For tuplet entries, the symbolic duration would be different from the actual duration.
Lua-supported (also as property).
duration | The duration of the entry. |
|
inline |
Sets the "flat beam" state of the entry.
The beam is only affected if the entry is first in a beamed group.
Lua-supported (also as property).
state | Set to true if the entry should have a flat beam. |
|
inline |
Sets the "flip tie" of the note entry.
Lua-supported (also as property).
|
inline |
Sets the floating rest status of the entry.
Lua-supported (also as property).
state | True = Floating rest, false = vertically moved rest. |
|
inline |
Sets the freeze state for the "beam/beat".
Lua-supported (also as property).
state | Set to true to freeze. False to unfreeze. |
|
inline |
Sets the "Freeze Stem" state for the note entry.
Lua-supported (also as property).
|
inline |
Sets the grace note state of the note entry.
Lua-supported (also as property).
state | True for grace note, false for normal note. |
|
inline |
Sets the slashed state for a grace note entry.
Lua-supported (also as property).
state | True for a grace note slash, false for no slash. |
|
inline |
Sets the ledger line state for the note entry.
Lua-supported (also as property).
state | True to turn on ledger lines for the entry. |
|
inline |
Sets the legality bit, marking that the entry is valid.
All entries should have this bit set to be valid to Finale.
Lua-supported (also as property).
state | True to set the entry as valid. |
|
inline |
Sets the flag that marks that an entry has syllable attached to it.
Lua-supported (also as property).
|
inline |
Sets the manual positioning of the entry.
Lua-supported (also as property).
|
inline |
Sets the elapsed position in the measure for the entry.
First entry in measure starts at 0. This is a diagnostic value only, but for some future calculations this value can be good to set when changing durations of previous entries.
USE WITH CARE!
Lua-supported (also as property).
value | The ellapsed position for the note entry, in EDUs. |
|
inline |
Sets the flag state for note detail records.
Lua-supported (also as property).
state | True = there are available note detail data. |
|
inline |
Sets if the entry is a note or a rest.
state | True = entry is a note. False = entry is a rest. |
|
inline |
Sets the flag state for performance data records.
Lua-supported (also as property).
state | True = there are available performance data. |
|
inline |
Sets the playback state of the note entry.
Lua-supported (also as property).
state | True to allow playback, false to mute. |
void FCNoteEntry::SetRestDisplacement | ( | twobyte | value | ) |
Sets the displacement for a rest entry.
If the rest isn't movable, it's changed to a movable rest. This method does nothing for non-rests.
Lua-supported.
|
inline |
Sets the reverse stem setting for down stem.
Lua-supported (also as property) (0.68).
|
inline |
Sets the reverse stem setting for up stem.
Lua-supported (also as property) (0.68).
|
inline |
Sets the flag state for secondary beam detail records.
Lua-supported (also as property).
state | True = there is secondary beam detail data. |
|
inline |
Sets the flag that marks that a smart shape is attached to the entry.
Lua-supported (also as property).
|
inline |
Sets the music spacing state of the note entry.
Lua-supported (also as property).
state | True to include in music spacing, false to exclude from spacing. |
|
inline |
Sets the flag state for special alteration records.
Lua-supported (also as property).
state | True = there are available special alteration data. |
|
inline |
Sets the split rest state of the note entry. (Applies if note entry is a rest.)
Lua-supported (also as property) (0.61).
state | True if the rest should be split, false for combined. |
|
inline |
Sets the "Split Stem" state for the note entry.
Lua-supported (also as property) (0.61).
|
inline |
Sets the flag state for stem detail records.
Lua-supported (also as property).
state | True = there is stem detail data. |
|
inline |
Sets the "stem up" flag for the entry.
The stem will use this setting if it is a "beam/beat" entry (in other words, if it is not a continuation of a beamed group).
true
.Lua-supported (also as property).
state | True to put the stems up. |
|
inline |
Sets the flag that marks that a tuplet starts on the entry.
Lua-supported (also as property).
|
inline |
Sets the visibility state of the note entry.
Lua-supported (also as property).
state | True to show the entry, false to hide it. |
|
inline |
Sets the voice 2 status for the entry.
Lua-supported (also as property).
|
inline |
Sets the entry that controls the launch of voice 2.
Lua-supported (also as property).
void FCNoteEntry::TieAll | ( | bool | bTie | ) |
Ties or unties all chord notes for the entry.
This method doesn't affect rests.
Lua-supported.
bTie | true - tie all chord notes for the note entry. false - untie all chord notes. |