Options
All
  • Public
  • Public/Protected
  • All
Menu

A VoiceEntry contains the notes in a voice at a timestamp.

Hierarchy

  • VoiceEntry

Index

Constructors

  • Parameters

    • timestamp: Fraction

      The relative timestamp within the source measure.

    • parentVoice: Voice
    • parentSourceStaffEntry: SourceStaffEntry
    • isGrace: boolean = false

      States whether the VoiceEntry has (only) grace notes.

    • graceNoteSlash: boolean = false

      States whether the grace note(s) have a slash (Acciaccatura, played before the beat)

    • graceSlur: boolean = false

    Returns VoiceEntry

Properties

arpeggio: Arpeggio

The Arpeggio consisting of this VoiceEntry's notes. Undefined if no arpeggio exists.

articulations: Articulation[] = []
graceAfterMainNote: boolean

States whether the grace notes come after a main note (at end of measure).

graceNoteSlash: boolean
graceSlur: boolean
isGrace: boolean
lyricsEntries: default<string, LyricsEntry> = ...
notes: Note[] = []
ornamentContainer: OrnamentContainer
parentSourceStaffEntry: SourceStaffEntry
parentVoice: Voice
stemColor: string

Color of the stem currently set. RGB Hexadecimal, like #00FF00.

stemColorXml: string

Color of the stem given in XML. RGB Hexadecimal, like #00FF00.

stemDirection: StemDirectionType = StemDirectionType.Undefined
stemDirectionXml: StemDirectionType = StemDirectionType.Undefined

Stem direction specified in the xml stem element.

technicalInstructions: TechnicalInstruction[] = []
timestamp: Fraction
wantedStemDirection: StemDirectionType = StemDirectionType.Undefined

Accessors

  • get Articulations(): Articulation[]
  • set Articulations(value: Articulation[]): void
  • get GraceAfterMainNote(): boolean
  • set GraceAfterMainNote(value: boolean): void
  • get GraceNoteSlash(): boolean
  • set GraceNoteSlash(value: boolean): void
  • get GraceSlur(): boolean
  • set GraceSlur(value: boolean): void
  • get IsGrace(): boolean
  • set IsGrace(value: boolean): void
  • get LyricsEntries(): default<string, LyricsEntry>
  • get StemColor(): string
  • set StemColor(value: string): void
  • get StemColorXml(): string
  • set StemColorXml(value: string): void

Methods

  • getVerseNumberForLyricEntry(lyricsEntry: LyricsEntry): string
  • hasArticulation(articulation: Articulation): boolean
  • hasSlur(): boolean
  • hasTie(): boolean
  • isAccent(): boolean
  • isStaccato(): boolean

Generated using TypeDoc