Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Key<T>

A Key<PitchLike> is a scale that starts at a specific tonic.

Wikipedia musical key

Type parameters

Hierarchy

  • GenericScale<T>
    • Key

Index

Constructors

constructor

  • new Key(options: ScaleConstructorOptions<T>): Key
  • Parameters

    • options: ScaleConstructorOptions<T>

    Returns Key

Properties

intervals

intervals: ReadonlyArray<Interval>

modes

modes: ReadonlyArray<Scale> = []

name

name: string

notes

notes: ReadonlyArray<T>

parent

parent: Scale | null

For a minor scale, this is the relative major. For a mode, it's the deriving scale.

pitchClasses

pitchClasses: ReadonlyArray<number>

tonic

tonic: T

Methods

at

  • Return a specific scale of the same scale class, at the specified tonic.

    Parameters

    • tonic: string

    Returns Key<PitchLike>

  • Type parameters

    Parameters

    • tonic: T

    Returns Key<T>

chords

fromRomanNumeral

  • fromRomanNumeral(name: string): Chord<T>

progression

  • progression(names: string): Array<Chord<T>>

Static fromString

Generated using TypeDoc