Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Note

Represents a single pitch with a duration (length)

Hierarchy

  • Note

Index

Constructors

constructor

Properties

Private beam

beam: Beam

Private graceNoteSlash

graceNoteSlash: boolean = false

halfTone

halfTone: number

The transposed (!!!) HalfTone of this note.

Private length

length: Fraction

Private parentStaffEntry

parentStaffEntry: SourceStaffEntry

Private pitch

pitch: Pitch

The untransposed (!!!) source data.

Private playbackInstrumentId

playbackInstrumentId: string = undefined

Private slurs

slurs: Slur[] = []

state

state: NoteState

Private tie

tie: Tie

Private tuplet

tuplet: Tuplet

Private voiceEntry

voiceEntry: VoiceEntry

Accessors

GraceNoteSlash

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

Length

NoteBeam

  • get NoteBeam(): Beam
  • set NoteBeam(value: Beam): void

NoteSlurs

  • get NoteSlurs(): Slur[]
  • set NoteSlurs(value: Slur[]): void

NoteTie

  • get NoteTie(): Tie
  • set NoteTie(value: Tie): void

NoteTuplet

  • get NoteTuplet(): Tuplet
  • set NoteTuplet(value: Tuplet): void

ParentStaff

  • get ParentStaff(): Staff

ParentStaffEntry

ParentVoiceEntry

Pitch

PlaybackInstrumentId

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

Methods

ToString

  • ToString(): string

calculateNoteLengthWithoutTie

  • calculateNoteLengthWithoutTie(): Fraction

calculateNoteOriginalLength

Private calculateNumberOfNeededDots

  • calculateNumberOfNeededDots(fraction?: Fraction): number

checkForDoubleSlur

  • checkForDoubleSlur(slur: Slur): boolean

getAbsoluteTimestamp

Generated using TypeDoc