Options
All
  • Public
  • Public/Protected
  • All
Menu

Class VoiceGenerator

Hierarchy

  • VoiceGenerator

Index

Constructors

constructor

Properties

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 musicSheet

musicSheet: MusicSheet

Private openBeam

openBeam: Beam

Private openGraceBeam

openGraceBeam: Beam

Private openTieDict

openTieDict: object

Type declaration

  • [_: number]: Tie

Private openTupletNumber

openTupletNumber: number = 0

Private slurReader

slurReader: SlurReader

Private tupletDict

tupletDict: object

Type declaration

Private voice

voice: Voice

Accessors

GetVoice

OctaveShift

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

Methods

Private addRestNote

  • addRestNote(noteDuration: number, divisions: number): Note

Private addSingleNote

  • addSingleNote(node: IXmlElement, noteDuration: number, divisions: number, graceNote: boolean, chord: boolean, guitarPro: boolean): Note

Private addTie

Private addTuplet

checkForOpenBeam

  • checkForOpenBeam(): void

checkForOpenGraceNotes

  • checkForOpenGraceNotes(): void

checkForStaffEntryLink

checkOpenTies

  • checkOpenTies(): void

Private createBeam

createVoiceEntry

Private findCurrentNoteInTieDict

  • findCurrentNoteInTieDict(candidateNote: Note): number

Private getNextAvailableNumberForTie

  • getNextAvailableNumberForTie(): number

getNoteDurationFromType

  • getNoteDurationFromType(type: string): Fraction

Private getTupletNoteDurationFromType

Private handleGraceNote

Private handleOpenBeam

  • handleOpenBeam(): void

Private handleTimeModificationNode

  • handleTimeModificationNode(noteNode: IXmlElement): void

hasVoiceEntry

  • hasVoiceEntry(): boolean

read

Generated using TypeDoc