Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Note

A Note is a named pitch such as "E4" and "F♯5".

See note. Instances of Pitch represent only the name of the note (this is one sense of "note"), not the duration (which is included by another).

Notes are interned. This enables the use of the ECMAScript Set to implement sets of notes.

Hierarchy

  • Note

Implements

Index

Properties

name

name: string

Accessors

accidentals

  • get accidentals(): number

degree

  • get degree(): number

octave

  • get octave(): number

Methods

add

asPitch

asPitchClass

toString

  • toString(): string

transposeBy

Static fromDegree

  • fromDegree(degree: number, accidentals?: number, octave?: number): Note
  • Parameters

    • degree: number
    • Default value accidentals: number = 0
    • Default value octave: number = 4

    Returns Note

Static fromMidiNumber

  • fromMidiNumber(midiNumber: number): Note

Static fromString

  • fromString(name: string): Note

Generated using TypeDoc