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: GraphicalMeasure[][] = []

measures (i,j) where i is the measure number and j the staff index (e.g. staff indices 0, 1 for two piano parts)

Private minAllowedSystemWidth

minAllowedSystemWidth: number

Private musicPages

musicPages: GraphicalMusicPage[] = []

Private musicSheet

musicSheet: MusicSheet

Private numberOfStaves

numberOfStaves: number

Private selectionEndSymbol

selectionEndSymbol: SelectionEndSymbol

Private selectionStartSymbol

selectionStartSymbol: SelectionStartSymbol

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

GetGraphicalFromSourceStaffEntry

GetInterpolatedIndexInVerticalContainers

  • GetInterpolatedIndexInVerticalContainers(musicTimestamp: Fraction): number

GetMainKey

GetNearestNote

GetNearestStaffEntry

GetNextVisibleContainerIndex

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

    constructor

    Parameters

    • index: number

    Returns 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

getFirstVisibleMeasuresListFromIndices

  • getFirstVisibleMeasuresListFromIndices(start: number, end: number): GraphicalMeasure[]

getGraphicalMeasureFromSourceMeasureAndIndex

getLastGraphicalMeasureFromIndex

  • getLastGraphicalMeasureFromIndex(staffIndex: number, lastRendered?: boolean): GraphicalMeasure

Private getLongestStaffEntryDuration

  • getLongestStaffEntryDuration(index: number): Fraction

getMeasureIndex

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

getOrCreateVerticalContainer

getStaffEntry

getVisibleStavesIndicesFromSourceMeasure

  • getVisibleStavesIndicesFromSourceMeasure(visibleMeasures: GraphicalMeasure[]): number[]

initializeActiveClefs

orderMeasuresByStaffLine

prepare

  • prepare(): void

reCalculate

  • reCalculate(): void

tryGetClickableLabel

tryGetTimeStampFromPosition

tryGetTimestampFromPosition

Static transformRelativeToAbsolutePosition

Generated using TypeDoc