Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MusicSheetReader

Hierarchy

  • MusicSheetReader

Index

Properties

Private completeNumberOfStaves

completeNumberOfStaves: number = 0

Private currentFraction

currentFraction: Fraction

Private currentMeasure

currentMeasure: SourceMeasure

Private musicSheet

musicSheet: MusicSheet

Private previousMeasure

previousMeasure: SourceMeasure

Private repetitionCalculator

repetitionCalculator: RepetitionCalculator

Private repetitionInstructionReader

repetitionInstructionReader: RepetitionInstructionReader

Accessors

CompleteNumberOfStaves

  • get CompleteNumberOfStaves(): number

Methods

Private _createMusicSheet

Private _lastElement

  • _lastElement<T>(list: T[]): T

Private _removeFromArray

  • _removeFromArray(list: any[], elem: any): void

Private allInstrumentsHaveSameDuration

  • allInstrumentsHaveSameDuration(instrumentsDurations: Fraction[], maxInstrumentDuration: Fraction): boolean

Private areRhythmInstructionsMixed

Private checkFractionsForEquivalence

  • checkFractionsForEquivalence(maxInstrumentDuration: Fraction, activeRhythm: Fraction): void
  • Check the Fractions for Equivalence and if so, sets maxInstrumentDuration's members accordingly. * Example: if maxInstrumentDuration = 1/1 and sourceMeasureDuration = 4/4, maxInstrumentDuration becomes 4/4.

    Parameters

    Returns void

Private checkIfMeasureIsImplicit

  • checkIfMeasureIsImplicit(maxInstrumentDuration: Fraction, activeRhythm: Fraction): boolean

Private checkIfRhythmInstructionsAreSetAndEqual

  • checkIfRhythmInstructionsAreSetAndEqual(instrumentReaders: InstrumentReader[]): void

Private checkSourceMeasureForNullEntries

  • checkSourceMeasureForNullEntries(): void

Private computeSystemYCoordinates

Private createInstrumentGroups

  • createInstrumentGroups(entryList: IXmlElement[]): object

createMusicSheet

Private getCompleteNumberOfStavesFromXml

  • getCompleteNumberOfStavesFromXml(partInst: IXmlElement[]): number

Private getInstrumentNumberOfStavesFromXml

  • getInstrumentNumberOfStavesFromXml(partNode: IXmlElement): number

Private initializeReading

Private presentAttrsWithValue

  • presentAttrsWithValue(elem: IXmlElement, val: string): boolean

Private pushSheetLabels

  • pushSheetLabels(root: IXmlElement, filePath: string): void

Private readComposer

Private readTitle

Private readTitleAndComposerFromCredits

  • readTitleAndComposerFromCredits(root: IXmlElement): void

Private setSourceMeasureDuration

  • setSourceMeasureDuration(instrumentReaders: InstrumentReader[], sourceMeasureCounter: number): number

Private staffMeasureIsEmpty

  • staffMeasureIsEmpty(index: number): boolean

Private trimString

  • trimString(str: string): string

Static Private doCalculationsAfterDurationHasBeenSet

  • doCalculationsAfterDurationHasBeenSet(instrumentReaders: InstrumentReader[]): void

Generated using TypeDoc