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

    Function chordSpecIntervals

    • The semitone offsets above the root a spec sounds, ascending.

      The library's single derivation of chord tones: a name contributes nothing here, so a combination of alterations no name covers yields its intervals the same way a maj7 does.

      Parameters

      Returns number[]

      Semitone offsets above the root, ascending and deduplicated.

      If any part of the spec is not one the model defines (InvalidInputError), exactly as chordFromSpec rejects it.

      import { chordSpecIntervals } from '@libraz/libcantus';
      chordSpecIntervals({
      rootPc: 0,
      base: 'maj',
      seventh: 'min7',
      alterations: [{ degree: 9, alter: -1 }, { degree: 11, alter: 1 }],
      additions: [],
      omissions: [],
      });
      // [0, 4, 7, 10, 13, 18] — the C7(b9,#11) no quality name covers