OpenSheetMusicDisplay
    Preparing search index...

    Class Tie

    A [[Tie]] connects two notes of the same sounding pitch, indicating that they have to be played as a single note.

    Index
    NoteIndexToTieDirection: NoteIndexToPlacementEnum = {}

    Can contain tie directions at certain note indices. For example, if it contains {2: PlacementEnum.Below}, then the tie should go downwards from Tie.Notes[2] onwards, even if tie.TieDirection is PlacementEnum.Above (tie starts going up on Notes[0]).

    TieDirection: PlacementEnum = PlacementEnum.NotYetDefined

    The direction of the tie: the one given in the MusicXML (TieDirectionXml), else the one the calculation chose (MusicSheetCalculator.setTieDirections()), or PlacementEnum.NotYetDefined to let Vexflow choose.

    TieDirectionXml: PlacementEnum = PlacementEnum.NotYetDefined

    The direction given in the MusicXML (placement or orientation of <tied>), PlacementEnum.NotYetDefined if none. Each calculation starts from it (see MusicSheetCalculator.createGraphicalTies()): to give a tie a direction yourself, set this one.

    TieNumber: number = 1
    • Gets the direction of the tie from the given note to the next one: the direction given at that note, or at the last note before it that gives one (see NoteIndexToTieDirection), else TieDirection.

      Parameters

      • OptionalstartNote: Note

        The note of the tie that the part starts at. Without it, TieDirection.

      Returns PlacementEnum

      The direction, PlacementEnum.NotYetDefined if none is given.