Options
All
  • Public
  • Public/Protected
  • All
Menu

Class VoiceGenerator

Hierarchy

  • VoiceGenerator

Index

Constructors

constructor

Properties

Private articulationReader

articulationReader: ArticulationReader

Private currentMeasure

currentMeasure: SourceMeasure

Private currentNote

currentNote: Note

Private currentOctaveShift

currentOctaveShift: number = 0

Private currentStaffEntry

currentStaffEntry: SourceStaffEntry

Private currentVoiceEntry

currentVoiceEntry: VoiceEntry

Private lastBeamTag

lastBeamTag: string = ""

Private lyricsReader

lyricsReader: LyricsReader

Private musicSheet

musicSheet: MusicSheet

Private openBeam

openBeam: Beam

Private openTieDict

openTieDict:

Type declaration

  • [_: number]: Tie

Private openTupletNumber

openTupletNumber: number = 0

Private slurReader

slurReader: SlurReader

Private tupletDict

tupletDict:

Type declaration

Private voice

voice: Voice

Accessors

GetVoice

OctaveShift

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

Methods

Private addRestNote

  • addRestNote(noteDuration: Fraction, noteTypeXml: NoteType, printObject: boolean, isCueNote: boolean, noteheadColorXml: string): Note

Private addSingleNote

  • addSingleNote(node: IXmlElement, noteDuration: Fraction, noteTypeXml: NoteType, typeDuration: Fraction, normalNotes: number, chord: boolean, guitarPro: boolean, printObject: boolean, isCueNote: boolean, stemDirectionXml: StemDirectionType, tremoloStrokes: number, stemColorXml: string, noteheadColorXml: string): Note

Private addTie

Private addTuplet

checkForOpenBeam

  • checkForOpenBeam(): void

checkForStaffEntryLink

checkOpenTies

  • checkOpenTies(): void

Private createBeam

createVoiceEntry

  • createVoiceEntry(musicTimestamp: Fraction, parentStaffEntry: SourceStaffEntry, addToVoice: boolean, isGrace?: boolean, graceNoteSlash?: boolean, graceSlur?: boolean): void

Private findCurrentNoteInTieDict

  • findCurrentNoteInTieDict(candidateNote: Note): number

Private getNextAvailableNumberForTie

  • getNextAvailableNumberForTie(): number

getNoteDurationFromType

  • getNoteDurationFromType(type: string): Fraction

Private getTupletNoteDurationFromType

Private handleOpenBeam

  • handleOpenBeam(): void

Private handleTimeModificationNode

  • handleTimeModificationNode(noteNode: IXmlElement): void

hasVoiceEntry

  • hasVoiceEntry(): boolean

read

Private readArticulations

Generated using TypeDoc