@libraz/libcantus - v0.9.3
    Preparing search index...

    Function spellScale

    • 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.

      Parameters

      Returns NoteData[]

      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']