Spell every pitch class of a scale, in ascending scale-degree order.
Correct for heptatonic scales (each degree gets the next letter). Non-standard scales are spelled tone-by-tone with a sharp preference.
The spelled tonic.
The key/scale.
Spelled notes, one per scale degree.
import { spellScale, noteNames, parseNote, majorKey } from '@libraz/libcantus';noteNames(spellScale(parseNote('C'), majorKey(0)));// ['C', 'D', 'E', 'F', 'G', 'A', 'B'] Copy
import { spellScale, noteNames, parseNote, majorKey } from '@libraz/libcantus';noteNames(spellScale(parseNote('C'), majorKey(0)));// ['C', 'D', 'E', 'F', 'G', 'A', 'B']
Spell every pitch class of a scale, in ascending scale-degree order.
Correct for heptatonic scales (each degree gets the next letter). Non-standard scales are spelled tone-by-tone with a sharp preference.