Finale PDK Framework  0.54
Public Types | Public Member Functions | Static Public Member Functions | List of all members
FCNoteEntry Class Reference

Encapsulates a note entry from an owner class (for example FCNoteEntryCell, FCNoteEntryLayer) class. More...

#include <ff_noteframe.h>

Inheritance diagram for FCNoteEntry:
__FCCollection __FCIteratorBase __FCBase

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_ALLOTMENT, FCID_ARTICULATION,
  FCID_ARTICULATIONDEF, FCID_BACKWARDREPEAT, FCID_BASELINE, FCID_BEAMMOD,
  FCID_BEATCHARTELEMENT, 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_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_KEYSIGNATURE, FCID_LAYERPREFS, 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_PERCUSSIONNOTEMOD, FCID_PIANOBRACEPREFS, FCID_PLAYBACKPREFS, FCID_RAWTEXT,
  FCID_REPEATPREFS, FCID_SECONDARYBEAMBREAKMOD, 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

FCNoteGetItemAt (int index)
 Overload version of GetItemAt(), which returns a note object (if available) for the note entry. More...
 
virtual const char * ClassName ()
 Returns the name of the class, for diagnostic purposes. This method MUST be overwritten in each child class. More...
 
 FCNoteEntry (EXENTRY *pEntry, EXTGF2005a *pFrame, FCNoteEntry *pPrevious)
 The constructor.
 
virtual ~FCNoteEntry ()
 
FCNoteFindNoteID (twobyte noteID)
 
void SetRestDisplacement (twobyte value)
 Sets the displacement for a rest entry. More...
 
twobyte GetRestDisplacement ()
 Returns the rest displacement. More...
 
FCNoteEntryPrevious ()
 Returns the previous note entry in the linked collection (layer or cell). More...
 
FCNoteEntryPreviousInFrame ()
 Returns the previous note entry in the linked collection (layer or cell), but only within the frame. More...
 
FCArticulationsCreateArticulations ()
 Creates a collection for all the articulations attached to the note entry. More...
 
FCNoteheadModsCreateNoteheadMods ()
 Creates a collection for all the notehead modifications attached to the note entry. More...
 
FCPerformanceModsCreatePerformanceMods ()
 Creates a collection for all the MIDI performance modifications attached to the note entry. More...
 
FCTupletsCreateTuplets ()
 Creates a collection for all the tuplets connected to the note entry. More...
 
ENTNUM GetEntryNumber () const
 Returns the internal entry number (ID) for the note entry. More...
 
void SetNoteFlag (bool state)
 Sets if the entry is a note or a rest. More...
 
void SetPlayback (bool state)
 Sets the playback state of the note entry. More...
 
void SetCombineRests (bool state)
 Sets the flag for if the rest should combine. More...
 
void SetFlipTie (bool state)
 Sets the "flip tie" of the note entry. More...
 
void SetSpacing (bool state)
 Sets the music spacing state of the note entry. More...
 
void SetVisible (bool state)
 Sets the visibility state of the note entry. More...
 
void SetGraceNote (bool state)
 Sets the grace note state of the note entry. More...
 
void SetVoice2 (bool state)
 Sets the voice 2 status for the entry. More...
 
void SetVoice2Launch (bool state)
 Sets the entry that controls the launch of voice 2. More...
 
void SetGraceNoteSlash (bool state)
 Sets the slashed state for a grace note entry. More...
 
void SetCrossStaff (bool state)
 Sets the cross staff state for the entry. More...
 
void SetBeamBeat (bool state)
 Sets the "beam/beat" state of the entry. More...
 
void SetFreezeBeam (bool state)
 Sets the freeze state for the "beam/beat". More...
 
void SetFlatBeam (bool state)
 Sets the "flat beam" state of the entry. More...
 
void SetLedgerLines (bool state)
 Sets the ledger line state for the note entry. More...
 
void SetFreezeStem (bool state)
 Sets the "Freeze Stem" state for the note entry. More...
 
void SetCheckAccidentals (bool state)
 Marks the entry that the accidentals should be verified when the frame is saved. More...
 
void SetLegality (bool state)
 Sets the legality bit, marking that the entry is valid. More...
 
void SetManualPosition (Evpu16 pos)
 Sets the manual positioning of the entry. More...
 
void SetClefIndex (eClef clef)
 Sets the clef index for the entry. More...
 
void SetStemUp (bool state)
 Sets the "stem up" flag for the entry. More...
 
void SetDuration (TimeEdu32 duration)
 Sets the symbolic duration of the note. For tuplet entries, the symbolic duration would be different from the actual duration. More...
 
void SetFloatingRest (bool state)
 Sets the floating rest status of the entry. More...
 
void SetNoteDetailFlag (bool state)
 Sets the flag state for note detail records. More...
 
void SetPerformanceDataFlag (bool state)
 Sets the flag state for performance data records. More...
 
void SetSpecialAltsFlag (bool state)
 Sets the flag state for special alteration records. More...
 
void SetArticulationFlag (bool state)
 Sets the flag that marks that an articulation is attached to the entry. More...
 
void SetSmartShapeFlag (bool state)
 Sets the flag that marks that a smart shape is attached to the entry. More...
 
void SetTupletStartFlag (bool state)
 Sets the flag that marks that a tuplet starts on the entry. More...
 
void SetLyricFlag (bool state)
 Sets the flag that marks that an entry has syllable attached to it. More...
 
void SetStemDetailFlag (bool state)
 Sets the flag state for stem detail records. More...
 
void SetSecondaryBeamFlag (bool state)
 Sets the flag state for secondary beam detail records. More...
 
void SetActualDuration (TimeEdu32 value)
 Sets the actual duration for the entry. More...
 
void SetMeasurePos (TimeEdu32 value)
 Sets the elapsed position in the measure for the entry. More...
 
bool GetBeamBeat () const
 Gets the "beam/beat" flag state of the entry. More...
 
bool GetCheckAccidentals () const
 Returns the accidental "refresh" flag. More...
 
bool GetLedgerLines () const
 Gets the ledger line state for the note entry. More...
 
bool GetFreezeStem () const
 Gets the "Freeze Stem" state for the note entry. More...
 
bool GetLegality () const
 Gets the legality bit, that marks that the entry is valid. More...
 
bool GetFreezeBeam () const
 Gets the freeze state for the "beam/beat". More...
 
bool GetFlatBeam () const
 Gets the "flat beam" state of the entry. More...
 
bool GetPlayback () const
 Gets the playback state of the note entry. More...
 
bool GetCombineRests () const
 Returns the flag for if the rest should combine. More...
 
bool GetFlipTie () const
 Gets the "flip tie" state of the note entry. More...
 
bool GetSpacing () const
 Gets the music spacing state of the note entry. More...
 
bool GetVisible () const
 Gets the visibility state of the note entry. More...
 
bool GetGraceNote () const
 Gets the grace note state of the note entry. More...
 
bool GetGraceNoteSlash () const
 Gets the grace note slash state of the note entry. More...
 
bool GetVoice2 () const
 Returns true if it's a voice 2 entry. More...
 
bool GetVoice2Launch () const
 Returns true if the entry launches voice 2. More...
 
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! More...
 
bool GetCrossStaff () const
 Returns the cross staff state for the entry. More...
 
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. More...
 
bool GetFloatingRest () const
 Gets the floating rest status of the entry. More...
 
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. More...
 
TimeEdu32 CalcNondottedDuration ()
 Returns the non-dotted symbolic duration of the entry. More...
 
twobyte CalcDots ()
 Returns the number of dots for a dotted entry. More...
 
twobyte GetLayerNumber () const
 Returns the 1-based layer number that the entry belongs to. More...
 
Evpu16 GetManualPosition () const
 Gets the manual positioning of the entry. More...
 
eClef GetClefIndex () const
 Gets the clef that's used for the entry. More...
 
int CalcGraceNoteIndex ()
 Returns the grace note index for the entry. More...
 
twobyte CalcHighestStaffPosition ()
 Calculates the highest staff position for a note in the entry's chord. More...
 
twobyte CalcHighestDisplacement ()
 Calculates the highest displacement value found in the entry's chord. More...
 
twobyte CalcDisplacementRange ()
 Calculates the range of the highest and lowest note in a chord. More...
 
twobyte CalcBeamCount ()
 Returns the number of beams/flags for the entry, based on the duration. More...
 
bool CalcMultiLayeredCell ()
 Returns true if the entry is in a cell with multiple layers of music. More...
 
int CalcDisplacementMatchCount (FCNoteEntry *pCompareEntry)
 Calculates the number of matching note displacements between the entries. More...
 
FCNoteCalcHighestNote (FCNote *pCeiling=NULL)
 Finds the note with the highest pitch in the chord. More...
 
FCNoteCalcLowestNote (FCNote *pFloor=NULL)
 Finds the note with the lowest pitch in the chord. More...
 
bool CalcHiddenThroughAltNotation ()
 Calculates if entry is hidden through alternate notation. More...
 
FCNoteCalcHighestPercussionNote ()
 For percussion notation, calculates the topmost percussion note. More...
 
FCNoteCalcLowestPercussionNote ()
 For percussion notation, calculates the bottommost percussion note. More...
 
bool HasSameNotes (FCNoteEntry *pEntry)
 Compares the notes with the notes in another note entry. More...
 
FCNoteFindDisplacement (twobyte displacement)
 Tries to finds a note in the chord with a specific displacement value. More...
 
FCNoteFindPitch (FCNote *pPitchNote)
 Tries to finds a note in the chord with the identical pitch as the suppied note. More...
 
TimeEdu32 GetMeasurePos () const
 Returns the elapsed duration position in the measure for the entry. More...
 
bool GetNoteDetailFlag () const
 Returns true for existing note detail records. More...
 
bool GetPerformanceDataFlag () const
 Returns true for existing performance data records. More...
 
bool GetSpecialAltsFlag () const
 Returns true for existing special alteration records. More...
 
bool GetTupletStartFlag () const
 Returns true if the entry is marked to start a tuplet. More...
 
bool GetLyricFlag () const
 Returns the flag that marks that an entry has syllable attached to it. More...
 
bool GetStemDetailFlag () const
 Gets the flag state for stem detail records. More...
 
bool GetSecondaryBeamFlag () const
 Returns true for secondary beam detail records. More...
 
bool GetArticulationFlag () const
 Returns true if the entry is marked to contain articulations. More...
 
bool GetSmartShapeFlag () const
 Returns true if the entry is marked to contain smart shapes. More...
 
twobyte GetMeasure () const
 Returns the entry's measure. More...
 
twobyte GetStaff () const
 Returns the entry's staff. More...
 
FCNoteEntryNext ()
 Returns the next entry in the loaded entry chain (within the same layer). More...
 
bool IsNote ()
 Returns true if entry is a note. More...
 
bool IsRest ()
 Returns true if entry is a rest. More...
 
bool IsDotted ()
 Returns true if it's a dotted entry. More...
 
bool IsStartOfTuplet ()
 Returns true if the entry is the start of a tuplet. More...
 
bool IsStartOfTupletParam (TupletInfo *pInfoStorage=NULL)
 Returns true if the entry is the start of a tuplet (parameter version). More...
 
bool IsPartOfTuplet ()
 Returns true if the entry is part of a tuplet. More...
 
bool IsOverlappedEntry (FCNoteEntry *pTestEntry)
 Returns true if the test entry is at least partly overlapping the current entry. More...
 
bool IsPartOfTupletParam (TupletInfo *pInfoStorage=NULL)
 Returns true if the entry is part of a tuplet (parameter version). More...
 
bool IsLastInMeasure ()
 Returns true if it's the last entry in the measure frame. More...
 
FCNoteEntryCalcLastTupletEntry (FCTuplet *pTuplet)
 Scans forward and returns the end entry of a tuplet that's connected to this entry object. More...
 
bool CalcFlippable ()
 Signals if the entry would flip when the up/down state is changed. More...
 
bool CalcBeamedGroupEnd ()
 Returns true if it's the end entry in a beamed group. More...
 
bool CalcUnbeamedNote ()
 Returns true if the entry is a non-beamed note (=not part of a beamed group.) More...
 
FCNoteEntryCalcBeamStartEntry ()
 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. More...
 
bool CalcLargestNoteheadResize (FCNumber *pLargestFontSize, FCNumber *pLargestResize)
 Calculates the largest point size and the largest notehead % resize for the entry. More...
 
bool CalcSmallestNoteheadResize (FCNumber *pSmallestFontSize, FCNumber *pSmallestResize)
 Calculates the smallest point size and the smallest notehead % resize for the entry. More...
 
twobyte CalcWidestNoteheadWidth ()
 Returns the widest width of a notehead in the entry, as the non-printing width. More...
 
bool CalcStemUp ()
 Returns the direction of the beam. More...
 
twobyte CalcResize ()
 Calculates the resize percent for the note entry. More...
 
twobyte CalcStemLength ()
 
bool IsTied ()
 Returns true if any of the notes in the chord is tied to the next entry. More...
 
bool IsTiedBackwards ()
 Returns true if any of the notes in the chord is flagged to be tied from the previous entry. More...
 
bool IsTiedToPrevious ()
 Return true if the previous entry has a tie to this entry. More...
 
bool IsAllTied ()
 Returns true if all of the notes in the chord is tied to the next entry. More...
 
bool IsAllTiedBackwards ()
 Returns true if all of the notes in the chord has a flagged to be tied from the previous entry. More...
 
void ClearPitches ()
 Clears all pitches from the entry, to prepare to add new notes. More...
 
FCNoteAddNewNote ()
 Adds a new note to the chord. More...
 
int AddPitches (FCNoteEntry *pSourceEntry, bool unique, bool settie=false)
 Adds (appends to the existing notes) all notes from another entry. More...
 
int AddPitches (FCNotePitches *pPitches, bool unique)
 Adds (appends to the existing notes) all notes from a pith collection. More...
 
int AddPitch (FCNote *pNote)
 Adds a note to a chord. More...
 
int AddArticulations (FCNoteEntry *pSourceEntry, bool bNoDuplicates=true)
 Adds (appends to the existing ones) all articulations from another entry. More...
 
void TieAll (bool bTie)
 Ties or unties all chord notes for the entry. More...
 
void SetAccidentals (bool bAccidental)
 Sets/removes accidental display for all chord notes in the entry. More...
 
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. More...
 
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. More...
 
void CopyEntry (FCNoteEntry *pFromEntry)
 Copies the duration and notes (or rest) from the source entry. More...
 
void CopyEntryDetails (FCNoteEntry *pFromEntry, bool copytuplets)
 Copies note-related data from another entry. More...
 
void CopyEntryPercussionDetails (FCNoteEntry *pFromEntry)
 Copies note-related data between percussion entries. More...
 
bool DeleteNote (FCNote *pNote)
 Deletes a note from a chord. The note collection is rebuilt after the deletion. More...
 
void CacheArticulations ()
 Stores the available articulations in a cache memory. More...
 
bool IsRestMovable ()
 Returns true if it's a movable rest. More...
 
void MakeRest ()
 Turns the entry into a rest (without any displacement). More...
 
void MakeMovableRest ()
 Turns the entry into a movable rest. More...
 
void MakeNote ()
 Turns the entry into a note. More...
 
FCNoteEntryCreateShallowClone ()
 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.
 
FCNotePitchesCreateNotePitches ()
 Create local copies of the note pitches in a collection. More...
 
- Public Member Functions inherited from __FCCollection
 __FCCollection ()
 The constructor.
 
virtual ~__FCCollection ()
 The virtual destructor, which deallocates the array and also all its elements. More...
 
int GetCount () const
 Returns the number of elements of the collection. More...
 
void Add (__FCBase *pNewItem)
 Adds an element to the end of the collection. More...
 
bool UniqueAdd (__FCBase *pNewItem)
 Adds an element to the end of the collection, but only if it doesn't exist in the collection before. More...
 
void InsertItemAt (__FCBase *pNewItem, int index)
 Inserts an item into the collection. More...
 
bool ElementExists (__FCBase *pQueryItem)
 Returns true if the element is found in the collection, otherwise false. More...
 
void ClearAll ()
 Destroys all the objects in the collection and empties the collection. More...
 
void DetachAll ()
 Removes all the objects from the collection, without freeing/destroying the objects. More...
 
__FCBaseGetItemAt (int index)
 Returns the object at the index position. Index is 0-based. More...
 
__FCBaseGetLastItem ()
 Returns the last item in the collection.
 
__FCBaseoperator[] (int index)
 Identical to the GetItemAt method.
 
int GetIndexOf (__FCBase *pObject)
 Returns the 0-based order index for the object within the collection. More...
 
__FCBaseDetachItemAt (int index)
 Removes the object at the index position. Index is 0-based. More...
 
bool ClearItemAt (int index)
 Deletes the object at the index position and disposes the object. Index is 0-based. More...
 
int ToEndFrom (int index, FCIteratorHandler *pIterator)
 Processes one element after another and iterates from one specific index to the end of the collection. More...
 
virtual int ForEach (FCIteratorHandler *pIterator)
 Processes all elements in the collection (starting with item 0), or until the iterator Iterate() returns false. More...
 
virtual int ForEachIndex (FCIteratorHandler *pIterator)
 Same as ForEach, but the IterateIndex callback of the iterator handler is used instead.
 
virtual __FCBaseFindFirst (FCIteratorHandler *pIterator)
 Process elements until a match is found. More...
 
__FCBaseFindUserData (void *data_to_find)
 Returns the first element in the collection that has the indicated userdata. More...
 
bool Sort (FCIteratorHandler *pIterator)
 Sorts the elements of. More...
 
bool Swap (int index1, int index2)
 Swaps to items in the collection. More...
 
bool IsEmpty ()
 Returns true if the collection contains no elements. More...
 
int MoveFrom (__FCCollection *pOtherCollection, bool unique=false)
 Moves elements from another collection into this collection. The other will be empty after the operation. More...
 
bool IsIdentical (__FCCollection *pCompareCollection)
 Returns true if two collections are considered to be identical. More...
 
virtual void DebugDump ()
 Outputs the class data/information for debugging purposes. More...
 
- Public Member Functions inherited from __FCIteratorBase
 __FCIteratorBase ()
 The constructor. More...
 
- Public Member Functions inherited from __FCBase
virtual const PDKFRAMEWORK_CLASSID GetClassID ()
 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. More...
 
 __FCBase ()
 The constructor.
 
virtual ~__FCBase ()
 Virtual destructor, so all inherited classes get the virtual destructor. More...
 
void DebugMsgDigit (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. More...
 
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. More...
 
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. More...
 
void DebugMsg (const char *pszMsg)
 Creates a simple Message Box for debug purposes with just one text string. More...
 
void DebugOutMenuInfo (FCUI *pUI, int menuixd_horiz, int menuixd_vert) const
 Outputs the menu command info for debugging purposes. More...
 
int DebugOutFormat (const char *fmt,...)
 Outputs debug text using C style "printf" syntax. More...
 
virtual void DebugDataDump ()
 Outputs a memory dump of the data block in the object for debugging purposes. More...
 
virtual void DebugDataByteArrayDump ()
 Outputs a memory dump of the data block in the object for debugging purposes, as a C++ byte array. More...
 
void Set16BitFlag (FLAG_16 *flag, FLAG_16 flagbits, bool state)
 Sets a 16 bit flag in the data block. More...
 
void Set32BitFlag (FLAG_32 *flag, FLAG_32 flagbits, bool state)
 Sets a 32 bit flag in the data block. More...
 
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. More...
 
void SetUserData (void *pData)
 Sets the user data attached to the instance of an object. More...
 
void SetUserData2 (void *pData)
 Sets the additional user data attached to the instance of an object. More...
 
void * GetUserData () const
 Gets the user data attached to the instance of an object. More...
 
void * GetUserData2 () const
 Gets the additional user data attached to the instance of an object. More...
 
virtual bool IsIdentical (__FCBase *pCompareObject)
 Returns true if the data in the passed object is considered to be identical to the current object, otherwise false. More...
 
void StoreXML_String (tinyxml2::XMLElement *pParentNode, const char *pszElementName, FCString *pStringValue)
 Helper function to store FCString objects in the XML file. More...
 
void StoreXML_Integer (tinyxml2::XMLElement *pParentNode, const char *pszElementName, int value)
 Helper function to store integer objects in the XML file. More...
 
void StoreXML_Bool (tinyxml2::XMLElement *pParentNode, const char *pszElementName, bool value)
 Helper function to store boolean objects in the XML file. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
virtual void StoreToXML (tinyxml2::XMLElement *pParentNode)
 Virtual method that is used to store an object's data. More...
 
bool ReadXML_String (tinyxml2::XMLElement *pParentNode, const char *pszElementName, FCString *pStringValue)
 Helper method to read FCString objects from the XML file. More...
 
bool ReadXML_Integer (tinyxml2::XMLElement *pParentNode, const char *pszElementName, int *pValue)
 Helper method to read integer objects from the XML file. More...
 
bool ReadXML_Bool (tinyxml2::XMLElement *pParentNode, const char *pszElementName, bool *pValue)
 Helper method to read boolean objects from the XML file. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
virtual bool ReadFromXML (tinyxml2::XMLElement *pParentNode)
 Virtual method that is used to read object data. More...
 

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). More...
 
static TimeEdu32 CalcNondottedDurationForDuration (TimeEdu32 duration)
 Static method that truncates duration to give only return the non-dotted duration value. More...
 
static int CalcDotsForDuration (TimeEdu32 duration)
 Static method that calculates the number of dots a specific duration would get. More...
 
static bool IsValidDuration (TimeEdu32 duration)
 Static method that evaluates the validity of a duration value. More...
 
static TimeEdu32 CalcValidDuration (TimeEdu32 duration)
 Static method that calculates a valid note duration value by truncating the value if necessary. More...
 
- 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. More...
 
static void DebugOutDigit (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. More...
 
static void DebugOutFloat (const char *pszPrefixText, float f)
 Static method that outputs a line for debugging purposes. The text appears with the extra float value appearing afterwards. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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". More...
 
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. More...
 
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. More...
 
static void DebugOut (const char *pszLine)
 Static method to output a line of text for debugging purposes. More...
 

Detailed Description

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.

Member Enumeration Documentation

Defintions of common note durations, for use with any operation where the TimeEdu32 type is used.

Lua-supported.

Constructor & Destructor Documentation

FCNoteEntry::~FCNoteEntry ( )
virtual

The destructor

Member Function Documentation

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.

Parameters
pSourceEntryThe entry to copy from.
bNoDuplicatesIf true (default), articulations duplicates will not be copied.
Returns
Number of articulation added to the entry. If the note entry doesn't have an entry number to add the articulations to, 0 will be returned.
FCNote * FCNoteEntry::AddNewNote ( )

Adds a new note to the chord.

Lua-supported.

Returns
NULL if no note could be added. Otherwise, the note object that was added to the collection.
int FCNoteEntry::AddPitch ( FCNote pNote)

Adds a note to a chord.

Method will not do anything on rests.

Lua-supported.

Parameters
pNoteThe note to copy from.
Returns
Number of notes added to the chord. (Either 0 or 1.)
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.

Parameters
pSourceEntryThe entry to copy from.
uniqueIf true, only add note pitches that don't exist.
settieIf true, copy the tie state.
Returns
Number of notes added to the chord.
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.

Parameters
pPitchesThe pitch collection to copy from.
uniqueIf true, only add note pitches that don't exist.
Returns
Number of notes added to the chord.
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.

twobyte FCNoteEntry::CalcBeamCount ( )
inline

Returns the number of beams/flags for the entry, based on the duration.

This method will handle dotted values.

Lua-supported.

Returns
A quarter note will return 0, an eighth note will return 1, 16th note will return 2, etc.
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.

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.

Returns
NULL if not part of a beamed group.

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.

Parameters
[in]pCompareEntryThe entry containing the notes to compare.
Returns
The number of displacement matches between the entries.
twobyte FCNoteEntry::CalcDisplacementRange ( )

Calculates the range of the highest and lowest note in a chord.

Lua-supported.

Returns
0 for single notes and rests. Otherwise, the range of the chord (normally in steps).
twobyte FCNoteEntry::CalcDots ( )
inline

Returns the number of dots for a dotted entry.

Lua-supported.

int FCNoteEntry::CalcDotsForDuration ( TimeEdu32  duration)
static

Static method that calculates the number of dots a specific duration would get.

Lua-supported.

Parameters
durationThe duration in EDUs.
Returns
The number of dots that the duration would need. 0 for undotted duration values.
bool FCNoteEntry::CalcFlippable ( )

Signals if the entry would flip when the up/down state is changed.

Returns
True if the entry would flip (first in a beamed group or a single note), otherwise false. Always false for rests.

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.

Returns
-1 if it isn't a grace note. Otherwise, the 0-based index.
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.

Returns
For an entry with normal notation, false is always returned. Otherwise, true if alternate notation hides the entry.
twobyte FCNoteEntry::CalcHighestDisplacement ( )

Calculates the highest displacement value found in the entry's chord.

Lua-supported.

Returns
0 for rests. Otherwise, the highest displacement found in the entry's chord.
FCNote * FCNoteEntry::CalcHighestNote ( FCNote pCeiling = NULL)

Finds the note with the highest pitch in the chord.

Lua-supported.

Parameters
pCeilingIf 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.
Returns
NULL for rests. Otherwise the note object that contains the highest pitch. If there's no note lower than the ceiling note, NULL is also returned.
FCNote * FCNoteEntry::CalcHighestPercussionNote ( )

For percussion notation, calculates the topmost percussion note.

Lua-supported.

twobyte FCNoteEntry::CalcHighestStaffPosition ( )

Calculates the highest staff position for a note in the entry's chord.

Lua-supported.

Returns
0 for rests. Otherwise, the highest staff position for a note in the entry's chord.
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.

Parameters
pLargestFontSizePointer to FCNumber object where the largest font size will be stored.
pLargestResizePointer to FCNumber where the largest % resize will be stored.
Returns
true if the pointers have been filled with correct data. false on error or if it's a rest or if any of the pointers are NULL.
FCNoteEntry * FCNoteEntry::CalcLastTupletEntry ( FCTuplet pTuplet)

Scans forward and returns the end entry of a tuplet that's connected to this entry object.

Lua-supported.

Returns
NULL on error, or if the end entry isn't found.
FCNote * FCNoteEntry::CalcLowestNote ( FCNote pFloor = NULL)

Finds the note with the lowest pitch in the chord.

Lua-supported.

Parameters
pFloorIf 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.
Returns
NULL for rests. Otherwise the note object that contains the lowest pitch. If there's no note higher than the floor note, NULL is also returned.
FCNote * FCNoteEntry::CalcLowestPercussionNote ( )

For percussion notation, calculates the bottommost percussion note.

Lua-supported.

bool FCNoteEntry::CalcMultiLayeredCell ( )

Returns true if the entry is in a cell with multiple layers of music.

Current implementation is extremely slow!

Lua-supported.

TimeEdu32 FCNoteEntry::CalcNondottedDuration ( )
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.

Returns
The non-dotted duration of the entry.
TimeEdu32 FCNoteEntry::CalcNondottedDurationForDuration ( TimeEdu32  duration)
static

Static method that truncates duration to give only return the non-dotted duration value.

Lua-supported.

Parameters
durationAny input duration in EDUs.
Returns
The truncated duration in EDUs.
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.

Returns
The resize value in percents.
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.

Parameters
pSmallestFontSizePointer to FCNumber object where the smallest font size will be stored.
pSmallestResizePointer to FCNumber where the smallest % resize will be stored.
Returns
true if the pointers have been filled with correct data. false on error or if it's a rest or if any of the pointers are NULL.
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.

Returns
-1 on error or if it's a rest. Otherwise, the stem length in EVPUs.
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.

Returns
True if stem goes up. False if stem goes down.
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.

TimeEdu32 FCNoteEntry::CalcValidDuration ( TimeEdu32  duration)
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.

Parameters
durationA duration in EDUs to test.
Returns
0 on error. Otherwise a valid (non-dotted or dotted) note duration.
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.

virtual const char* FCNoteEntry::ClassName ( )
inlinevirtual

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:

  • Articulations
  • Tuplets (optionally)
  • Note entry resize
  • Notehead mods
  • Accidental mods
  • Dot mods
  • MIDI performance data
  • Tie start+end mods
  • Tie end mods

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.

Parameters
pFromPointer 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.

Parameters
pFromPointer 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.

Returns
A collection with the articulations of the FCArticulations class.
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.

Returns
A collection with the notehead modifications of the FCNoteheadMods class.
FCNotePitches * FCNoteEntry::CreateNotePitches ( )

Create local copies of the note pitches in a collection.

Returns
Pointer to the collection of note pitches. The pointer must be deleted from the heap after use.
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.

Returns
A collection with the MIDI performance modifications of the FCPerformanceMods class.
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.

Returns
A collection with the tuplets of the FCTuplets class.
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.

Parameters
pNotePointer to the note object to delete.
Returns
True if successful. False if the note wasn't found in the entry.
FCNote * FCNoteEntry::FindDisplacement ( twobyte  displacement)

Tries to finds a note in the chord with a specific displacement value.

Lua-supported.

Parameters
[in]displacementThe displacement value to match.
Returns
NULL for rests or if a matching note wasn't found. Otherwise the note object that contains the displacement value.
FCNote * FCNoteEntry::FindNoteID ( twobyte  noteID)

Finds the FCNote object that matches a specific note ID.

Parameters
[in]noteIDThe note ID to search for.
Returns
The pointer to the found note object. NULL if not found.
FCNote * FCNoteEntry::FindPitch ( FCNote pPitchNote)

Tries to finds a note in the chord with the identical pitch as the suppied note.

Lua-supported.

Parameters
[in]pPitchNotePointer to the note that should be matched in pitch.
Returns
NULL for rests or if a matching note wasn't found. Otherwise the note object that contains the identical pitch.
TimeEdu32 FCNoteEntry::GetActualDuration ( ) const
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).

Returns
The actual of the entry.
bool FCNoteEntry::GetArticulationFlag ( ) const
inline

Returns true if the entry is marked to contain articulations.

Lua-supported (also as property).

bool FCNoteEntry::GetBeamBeat ( ) const
inline

Gets the "beam/beat" flag state of the entry.

Lua-supported (also as property).

Returns
True if the entry is not a continuation of a beamed group.
bool FCNoteEntry::GetCheckAccidentals ( ) const

Returns the accidental "refresh" flag.

Lua-supported (also as property).

eClef FCNoteEntry::GetClefIndex ( ) const
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).

Returns
The clef index.
bool FCNoteEntry::GetCombineRests ( ) const

Returns the flag for if the rest should combine.

Available only on Finale 2014 and above.

Returns
Always returns false on Finale versions lower than Finale 2014.
bool FCNoteEntry::GetCrossStaff ( ) const
inline

Returns the cross staff state for the entry.

Lua-supported (also as property).

  • Returns
    True if the entry is a cross staff entry.
TimeEdu32 FCNoteEntry::GetDuration ( ) const
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).

Returns
The duration of the entry.
ENTNUM FCNoteEntry::GetEntryNumber ( ) const
inline

Returns the internal entry number (ID) for the note entry.

Lua-supported (also as a read-only property).

bool FCNoteEntry::GetFlatBeam ( ) const
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).

Returns
True if the entry has a flat beam.
bool FCNoteEntry::GetFlipTie ( ) const
inline

Gets the "flip tie" state of the note entry.

Lua-supported (also as property).

bool FCNoteEntry::GetFloatingRest ( ) const
inline

Gets the floating rest status of the entry.

Lua-supported (also as property).

Returns
True = Floating rest, false = vertically moved rest.
bool FCNoteEntry::GetFreezeBeam ( ) const
inline

Gets the freeze state for the "beam/beat".

Lua-supported (also as property).

bool FCNoteEntry::GetFreezeStem ( ) const
inline

Gets the "Freeze Stem" state for the note entry.

Lua-supported (also as property).

bool FCNoteEntry::GetGraceNote ( ) const
inline

Gets the grace note state of the note entry.

Lua-supported (also as property).

Returns
True if the entry is a grace note, false for normal note.
bool FCNoteEntry::GetGraceNoteSlash ( ) const
inline

Gets the grace note slash state of the note entry.

Lua-supported (also as property).

Returns
True if the grace note should be slashed, false if it shouldn't have slash.
FCNote* FCNoteEntry::GetItemAt ( int  index)
inline

Overload version of GetItemAt(), which returns a note object (if available) for the note entry.

Lua-supported.

twobyte FCNoteEntry::GetLayerNumber ( ) const
inline

Returns the 1-based layer number that the entry belongs to.

Lua-supported (also as read-only property).

bool FCNoteEntry::GetLedgerLines ( ) const
inline

Gets the ledger line state for the note entry.

Lua-supported (also as property).

Returns
True if ledger lines are used for the entry.
bool FCNoteEntry::GetLegality ( ) const
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).

bool FCNoteEntry::GetLyricFlag ( ) const
inline

Returns the flag that marks that an entry has syllable attached to it.

Lua-supported.

Evpu16 FCNoteEntry::GetManualPosition ( ) const
inline

Gets the manual positioning of the entry.

Lua-supported (also as property).

twobyte FCNoteEntry::GetMeasure ( ) const
inline

Returns the entry's measure.

Lua-supported (also as a read-only property).

Returns
The measure that the entry belongs to.
TimeEdu32 FCNoteEntry::GetMeasurePos ( ) const
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).

Returns
The elapsed position for the note entry, in EDUs.
bool FCNoteEntry::GetNoteDetailFlag ( ) const
inline

Returns true for existing note detail records.

Lua-supported (also as property).

Returns
True = there are available note detail data.
bool FCNoteEntry::GetPerformanceDataFlag ( ) const
inline

Returns true for existing performance data records.

Use the FCPerformanceMod class to access the performance data.

Lua-supported (also as property).

Returns
True = there are available performance data.
bool FCNoteEntry::GetPlayback ( ) const
inline

Gets the playback state of the note entry.

Lua-supported (also as property).

Returns
True to allow playback, false to mute.
twobyte FCNoteEntry::GetRestDisplacement ( )

Returns the rest displacement.

Returns
0 if the rest is non-movable or if it's a note. Otherwise, the displacement for the rest.
bool FCNoteEntry::GetSecondaryBeamFlag ( ) const
inline

Returns true for secondary beam detail records.

Lua-supported (also as property).

Returns
True = there is secondary beam detail data.
bool FCNoteEntry::GetSmartShapeFlag ( ) const
inline

Returns true if the entry is marked to contain smart shapes.

Lua-supported (also as property).

bool FCNoteEntry::GetSpacing ( ) const
inline

Gets the music spacing state of the note entry.

Lua-supported (also as property).

Returns
True includes it in music spacing, false excludes it from spacing.
bool FCNoteEntry::GetSpecialAltsFlag ( ) const
inline

Returns true for existing special alteration records.

Lua-supported (also as property).

Returns
True = there are available special alteration data.
twobyte FCNoteEntry::GetStaff ( ) const
inline

Returns the entry's staff.

Lua-supported (also as a read-only property).

Returns
The staff that the entry belongs to.
bool FCNoteEntry::GetStemDetailFlag ( ) const
inline

Gets the flag state for stem detail records.

Lua-supported (also as property).

Returns
True = there is stem detail data.
bool FCNoteEntry::GetStemUp ( ) const
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).

Returns
True if the "up" bit is set.
bool FCNoteEntry::GetTupletStartFlag ( ) const
inline

Returns true if the entry is marked to start a tuplet.

Lua-supported (also as property).

bool FCNoteEntry::GetVisible ( ) const
inline

Gets the visibility state of the note entry.

Lua-supported (also as property).

Returns
True shows the entry, false hides it.
bool FCNoteEntry::GetVoice2 ( ) const
inline

Returns true if it's a voice 2 entry.

Lua-supported (also as property).

bool FCNoteEntry::GetVoice2Launch ( ) const
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.

Returns
True if all notes matches between the entries, or if both entries are rests.
bool FCNoteEntry::IsAllTied ( )

Returns true if all of the notes in the chord is tied to the next entry.

Lua-supported.

Returns
Always returns false if the entry is a rest.
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.

Returns
Always returns false if the entry is a rest.
bool FCNoteEntry::IsDotted ( )

Returns true if it's a dotted entry.

Lua-supported.

bool FCNoteEntry::IsLastInMeasure ( )
inline

Returns true if it's the last entry in the measure frame.

Lua-supported.

bool FCNoteEntry::IsNote ( )
inline

Returns true if entry is a note.

Lua-supported.

Returns
True if it's a note, false if entry is a rest.
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.

Parameters
pTestEntryEntry 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.

Parameters
pInfoStorageThe optional pointer to where information about the matching tuplet should be copied.
bool FCNoteEntry::IsRest ( )
inline

Returns true if entry is a rest.

Lua-supported.

Returns
True if it's a rest, false if entry is a note.
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.

Parameters
pInfoStorageThe 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.

Returns
Always returns false if the entry is a rest.
bool FCNoteEntry::IsTiedBackwards ( )

Returns true if any of the notes in the chord is flagged to be tied from the previous entry.

Lua-supported.

Returns
Always returns false if the entry is a rest.
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.

bool FCNoteEntry::IsValidDuration ( TimeEdu32  duration)
static

Static method that evaluates the validity of a duration value.

Lua-supported.

Parameters
durationA duration in EDUs to test.
Returns
Returns true if the duration can correctly be notated as a non-dotted or dotted note.
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).

Lua-supported.

static void FCNoteEntry::MarkEntryMetricsForUpdate ( )
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.

FCNoteEntry* FCNoteEntry::Next ( )
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.

Returns
The pointer to the next object in the chain. NULL if the entry is in the end of the chain.
FCNoteEntry* FCNoteEntry::Previous ( )
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.

Returns
NULL if it's the first entry.
FCNoteEntry* FCNoteEntry::PreviousInFrame ( )
inline

Returns the previous note entry in the linked collection (layer or cell), but only within the frame.

Lua-supported.

Returns
NULL if it's the first entry, or if the previous linked entry belongs to another measure or TGF layer.
void FCNoteEntry::SetAccidentals ( bool  bAccidental)

Sets/removes accidental display for all chord notes in the entry.

This method doesn't affect rests.

Lua-supported.

Parameters
bAccidentaltrue - puts accidentals on all chord notes for the note entry. false - remove accidentals for all chord notes.
void FCNoteEntry::SetActualDuration ( TimeEdu32  value)
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).

void FCNoteEntry::SetArticulationFlag ( bool  state)
inline

Sets the flag that marks that an articulation is attached to the entry.

Lua-supported (also as property).

Parameters
stateTrue = there are articulations attached to the entry.
void FCNoteEntry::SetBeamBeat ( bool  state)
inline

Sets the "beam/beat" state of the entry.

Lua-supported (also as property).

Parameters
stateSet to true if the entry is not a continuation of a beamed group.
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).

Parameters
stateTrue to mark that Finale should check the states of the accidentals for the entry.
void FCNoteEntry::SetClefIndex ( eClef  clef)
inline

Sets the clef index for the entry.

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).

void FCNoteEntry::SetCrossStaff ( bool  state)
inline

Sets the cross staff state for the entry.

Lua-supported (also as property).

Parameters
stateSet to true if the entry is a cross staff entry.
void FCNoteEntry::SetDuration ( TimeEdu32  duration)
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).

Parameters
durationThe duration of the entry.
void FCNoteEntry::SetFlatBeam ( bool  state)
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).

Parameters
stateSet to true if the entry should have a flat beam.
void FCNoteEntry::SetFlipTie ( bool  state)
inline

Sets the "flip tie" of the note entry.

Lua-supported (also as property).

void FCNoteEntry::SetFloatingRest ( bool  state)
inline

Sets the floating rest status of the entry.

Lua-supported (also as property).

Parameters
stateTrue = Floating rest, false = vertically moved rest.
void FCNoteEntry::SetFreezeBeam ( bool  state)
inline

Sets the freeze state for the "beam/beat".

Lua-supported (also as property).

Parameters
stateSet to true to freeze. False to unfreeze.
void FCNoteEntry::SetFreezeStem ( bool  state)
inline

Sets the "Freeze Stem" state for the note entry.

Lua-supported (also as property).

void FCNoteEntry::SetGraceNote ( bool  state)
inline

Sets the grace note state of the note entry.

Lua-supported (also as property).

Parameters
stateTrue for grace note, false for normal note.
void FCNoteEntry::SetGraceNoteSlash ( bool  state)
inline

Sets the slashed state for a grace note entry.

Lua-supported (also as property).

Parameters
stateTrue for a grace note slash, false for no slash.
void FCNoteEntry::SetLedgerLines ( bool  state)
inline

Sets the ledger line state for the note entry.

Lua-supported (also as property).

Parameters
stateTrue to turn on ledger lines for the entry.
void FCNoteEntry::SetLegality ( bool  state)
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).

Parameters
stateTrue to set the entry as valid.
void FCNoteEntry::SetLyricFlag ( bool  state)
inline

Sets the flag that marks that an entry has syllable attached to it.

Lua-supported (also as property).

void FCNoteEntry::SetManualPosition ( Evpu16  pos)
inline

Sets the manual positioning of the entry.

Lua-supported (also as property).

void FCNoteEntry::SetMeasurePos ( TimeEdu32  value)
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).

Parameters
valueThe ellapsed position for the note entry, in EDUs.
void FCNoteEntry::SetNoteDetailFlag ( bool  state)
inline

Sets the flag state for note detail records.

Lua-supported (also as property).

Parameters
stateTrue = there are available note detail data.
void FCNoteEntry::SetNoteFlag ( bool  state)
inline

Sets if the entry is a note or a rest.

Parameters
stateTrue = entry is a note. False = entry is a rest.
void FCNoteEntry::SetPerformanceDataFlag ( bool  state)
inline

Sets the flag state for performance data records.

Lua-supported (also as property).

Parameters
stateTrue = there are available performance data.
void FCNoteEntry::SetPlayback ( bool  state)
inline

Sets the playback state of the note entry.

Lua-supported (also as property).

Parameters
stateTrue 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.

void FCNoteEntry::SetSecondaryBeamFlag ( bool  state)
inline

Sets the flag state for secondary beam detail records.

Lua-supported (also as property).

Parameters
stateTrue = there is secondary beam detail data.
void FCNoteEntry::SetSmartShapeFlag ( bool  state)
inline

Sets the flag that marks that a smart shape is attached to the entry.

Lua-supported (also as property).

void FCNoteEntry::SetSpacing ( bool  state)
inline

Sets the music spacing state of the note entry.

Lua-supported (also as property).

Parameters
stateTrue to include in music spacing, false to exclude from spacing.
void FCNoteEntry::SetSpecialAltsFlag ( bool  state)
inline

Sets the flag state for special alteration records.

Lua-supported (also as property).

Parameters
stateTrue = there are available special alteration data.
void FCNoteEntry::SetStemDetailFlag ( bool  state)
inline

Sets the flag state for stem detail records.

Lua-supported (also as property).

Parameters
stateTrue = there is stem detail data.
void FCNoteEntry::SetStemUp ( bool  state)
inline

Sets the "stem up" flag for the entry.

The stem will use this setting if it's a "beam/beat" entry (if it's not a continuation of a beamed group).

Lua-supported (also as property).

Parameters
stateTrue to put the stems up.
void FCNoteEntry::SetTupletStartFlag ( bool  state)
inline

Sets the flag that marks that a tuplet starts on the entry.

Lua-supported (also as property).

void FCNoteEntry::SetVisible ( bool  state)
inline

Sets the visibility state of the note entry.

Lua-supported (also as property).

Parameters
stateTrue to show the entry, false to hide it.
void FCNoteEntry::SetVoice2 ( bool  state)
inline

Sets the voice 2 status for the entry.

Lua-supported (also as property).

void FCNoteEntry::SetVoice2Launch ( bool  state)
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.

Parameters
bTietrue - tie all chord notes for the note entry. false - untie all chord notes.