Options
All
  • Public
  • Public/Protected
  • All
Menu

Class VoiceEntry

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

Hierarchy

  • VoiceEntry

Index

Constructors

constructor

  • Parameters

    • timestamp: Fraction

      The relative timestamp within the source measure.

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

      States whether the VoiceEntry has (only) grace notes.

    • Default value graceNoteSlash: boolean = false

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

    • Default value graceSlur: boolean = false

    Returns VoiceEntry

Properties

Private arpeggio

arpeggio: Arpeggio

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

Private articulations

articulations: ArticulationEnum[] = []

Private graceAfterMainNote

graceAfterMainNote: boolean

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

Private graceNoteSlash

graceNoteSlash: boolean

Private graceSlur

graceSlur: boolean

Private isGrace

isGrace: boolean

Private lyricsEntries

lyricsEntries: Dictionary<number, LyricsEntry> = new Dictionary<number, LyricsEntry>()

Private notes

notes: Note[] = []

Private ornamentContainer

ornamentContainer: OrnamentContainer

Private parentSourceStaffEntry

parentSourceStaffEntry: SourceStaffEntry

Private parentVoice

parentVoice: Voice

Private stemColor

stemColor: string

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

Private stemColorXml

stemColorXml: string

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

Private stemDirection

stemDirection: StemDirectionType = StemDirectionType.Undefined

Private stemDirectionXml

stemDirectionXml: StemDirectionType = StemDirectionType.Undefined

Stem direction specified in the xml stem element.

Private technicalInstructions

technicalInstructions: TechnicalInstruction[] = []

Private timestamp

timestamp: Fraction

Private wantedStemDirection

wantedStemDirection: StemDirectionType = StemDirectionType.Undefined

Accessors

Arpeggio

Articulations

GraceAfterMainNote

  • get GraceAfterMainNote(): boolean
  • set GraceAfterMainNote(value: boolean): void

GraceNoteSlash

  • get GraceNoteSlash(): boolean
  • set GraceNoteSlash(value: boolean): void

GraceSlur

  • get GraceSlur(): boolean
  • set GraceSlur(value: boolean): void

IsGrace

  • get IsGrace(): boolean
  • set IsGrace(value: boolean): void

LyricsEntries

Notes

  • get Notes(): Note[]

OrnamentContainer

ParentSourceStaffEntry

ParentVoice

  • get ParentVoice(): Voice

StemColor

  • get StemColor(): string
  • set StemColor(value: string): void

StemColorXml

  • get StemColorXml(): string
  • set StemColorXml(value: string): void

StemDirection

StemDirectionXml

TechnicalInstructions

Timestamp

WantedStemDirection

Methods

Private createAlteratedVoiceEntry

Private createBaseVoiceEntry

createVoiceEntriesForOrnament

getVerseNumberForLyricEntry

  • getVerseNumberForLyricEntry(lyricsEntry: LyricsEntry): number

hasSlur

  • hasSlur(): boolean

hasTie

  • hasTie(): boolean

isAccent

  • isAccent(): boolean

isStaccato

  • isStaccato(): boolean

Static isSupportedArticulation

Generated using TypeDoc