@libraz/libcantus - v1.1.0
    Preparing search index...

    Function spellPitchClasses

    • Spell an arbitrary list of pitch classes relative to a key.

      Parameters

      • pcs: number[]

        The pitch classes.

      • tonic: NoteLike

        The spelled tonic, as a note name, a MIDI number, note data, or a Note.

      • key: KeyLike

        The key/scale, as a key name, a key/scale, or a Key.

      Returns NoteData[]

      Spelled notes, in input order.

      If tonic does not sound the key's root pitch class.