Search results

Types

Classes
Interfaces
Enums
Functions
Type aliases
Constants

Members

Properties
Methods
Getters
Setters
Enum members
Show privates

Other

In this module only

Function scaleDegree

Defined in Theory.ts

(
scale: Scaletype ScaleScale,
degree: number
): PitchClasstype PitchClassPitchClass | Notetype NoteNote

Returns the note in degree of a scale(array of notes). for example - if the Scale is a C Major, than interval(1) will return D.

· scale - An array of notes.
· degree - The degree of the note.

Returns

undefined

Example

const majorScale = ['C', 'D', 'E', 'F', 'G', 'A', 'B']; scaleDegree(majorScale, 1) // => 'D'