Function scaleDegree
(): 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
undefinedExample
const majorScale = ['C', 'D', 'E', 'F', 'G', 'A', 'B']; scaleDegree(majorScale, 1) // => 'D'