Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GraphicalMusicSheet

The graphical counterpart of a MusicSheet

Hierarchy

  • GraphicalMusicSheet

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

Properties

Private calculator

Private composer

composer: GraphicalLabel

Private cursors

cursors: GraphicalLine[] = []

Private leadSheet

leadSheet: boolean = false

Private lyricist

lyricist: GraphicalLabel

Private measureList

measureList: StaffMeasure[] = []

Private minAllowedSystemWidth

minAllowedSystemWidth: number

Private musicPages

musicPages: GraphicalMusicPage[] = []

Private musicSheet

musicSheet: MusicSheet

Private numberOfStaves

numberOfStaves: number

Private selectionEndSymbol

selectionEndSymbol: SelectionEndSymbol

Private selectionStartSymbol

selectionStartSymbol: SelectionStartSymbol

sourceToGraphicalMeasureLinks

sourceToGraphicalMeasureLinks: Dictionary<SourceMeasure, StaffMeasure[]>

Private subtitle

subtitle: GraphicalLabel

Private title

Private verticalGraphicalStaffEntryContainers

verticalGraphicalStaffEntryContainers: VerticalGraphicalStaffEntryContainer[] = []

Accessors

Composer

Cursors

GetCalculator

LeadSheet

  • get LeadSheet(): boolean
  • set LeadSheet(value: boolean): void

Lyricist

MeasureList

MinAllowedSystemWidth

  • get MinAllowedSystemWidth(): number
  • set MinAllowedSystemWidth(value: number): void

MusicPages

NumberOfStaves

  • get NumberOfStaves(): number

ParentMusicSheet

SelectionEndSymbol

SelectionStartSymbol

Subtitle

Title

VerticalGraphicalStaffEntryContainers

Methods

Private CalculateDistance

EnforceRedrawOfMusicSystems

  • EnforceRedrawOfMusicSystems(): void

GetClickableLabel

GetGraphicalFromSourceMeasure

GetGraphicalFromSourceStaffEntry

GetGraphicalNoteFromSourceNote

GetInterpolatedIndexInVerticalContainers

  • GetInterpolatedIndexInVerticalContainers(musicTimestamp: Fraction): number

GetMainKey

GetNearesNote

GetNearestStaffEntry

GetNextVisibleContainerIndex

  • GetNextVisibleContainerIndex(index: number): number

GetNumberOfFollowedInstruments

  • GetNumberOfFollowedInstruments(): number

GetNumberOfVisibleInstruments

  • GetNumberOfVisibleInstruments(): number

GetPossibleCommentAnchor

GetPreviousVisibleContainerIndex

  • GetPreviousVisibleContainerIndex(index: number): number
  • Returns the index of the closest previous (earlier) vertical container which has at least some visible staff entry, with respect to the given index.

    constructor

    Parameters

    • index: number

    Returns number

GetVerticalContainerFromTimestamp

  • Does a binary search on the container list and returns the VerticalContainer with the given Timestamp. The search begins at startIndex, if given. If the timestamp cannot be found, null is returned.

    constructor

    Parameters

    • timestamp: Fraction

      The timestamp for which the container shall be found.

    • Default value startIndex: number = 0

      The index from which the search starts in the container list.

    Returns VerticalGraphicalStaffEntryContainer

Initialize

  • Initialize(): void

calculateCursorLineAtTimestamp

calculateXPositionFromTimestamp

findClosestLeftStaffEntry

  • findClosestLeftStaffEntry(fractionalIndex: number, searchOnlyVisibleEntries: boolean): GraphicalStaffEntry

findClosestRightStaffEntry

  • findClosestRightStaffEntry(fractionalIndex: number, returnOnlyVisibleEntries: boolean): GraphicalStaffEntry

findGraphicalStaffEntryFromMeasureList

findNextGraphicalStaffEntry

getClickedObject

  • getClickedObject<T>(positionOnMusicSheet: PointF2D): T

getClickedObjectOfType

  • getClickedObjectOfType<T>(positionOnMusicSheet: PointF2D): T

getFirstVisibleMeasuresListFromIndeces

  • getFirstVisibleMeasuresListFromIndeces(start: number, end: number): StaffMeasure[]

getGraphicalMeasureFromSourceMeasureAndIndex

Private getLongestStaffEntryDuration

  • getLongestStaffEntryDuration(index: number): Fraction

getMeasureIndex

  • getMeasureIndex(graphicalMeasure: StaffMeasure, measureIndex: number, inListIndex: number): boolean

getOrCreateVerticalContainer

getStaffEntry

getVisibleStavesIndecesFromSourceMeasure

  • getVisibleStavesIndecesFromSourceMeasure(visibleMeasures: StaffMeasure[]): number[]

initializeActiveClefs

orderMeasuresByStaffLine

prepare

  • prepare(): void

reCalculate

  • reCalculate(): void

tryGetClickableLabel

tryGetTimeStampFromPosition

tryGetTimestampFromPosition

Static transformRelativeToAbsolutePosition

Generated using TypeDoc