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

    Function isAugmentedMelodicInterval

    • Whether a voice moves by an augmented interval — the melodic step no sixteenth-century line takes, and the one a MIDI integer cannot show.

      The augmented unison is excluded: raising or lowering the note a voice already holds is a chromatic inflection, not a leap.

      Every augmented interval sounds like a plain one — the augmented second like a minor third, the augmented fourth like a diminished fifth — so MIDI integers carry nothing this rule can read, and the numeric form always answers false. It exists so a host can run the whole predicate set over a bare pitch pair; take the spelled form wherever the exercise is written in notes.

      Parameters

      Returns boolean

      True when the move spans an augmented second or wider.

      import { isAugmentedMelodicInterval, parseNote } from '@libraz/libcantus';
      isAugmentedMelodicInterval(parseNote('Ab4'), parseNote('B4')); // true — A2 in C minor
      isAugmentedMelodicInterval(parseNote('A4'), parseNote('C5')); // false — m3
      isAugmentedMelodicInterval(68, 71); // false — the same pitches carry no spelling
    • Whether a voice moves by an augmented interval — the melodic step no sixteenth-century line takes, and the one a MIDI integer cannot show.

      The augmented unison is excluded: raising or lowering the note a voice already holds is a chromatic inflection, not a leap.

      Every augmented interval sounds like a plain one — the augmented second like a minor third, the augmented fourth like a diminished fifth — so MIDI integers carry nothing this rule can read, and the numeric form always answers false. It exists so a host can run the whole predicate set over a bare pitch pair; take the spelled form wherever the exercise is written in notes.

      Parameters

      • prev: number

        Starting note.

      • cur: number

        Ending note.

      Returns boolean

      True when the move spans an augmented second or wider.

      import { isAugmentedMelodicInterval, parseNote } from '@libraz/libcantus';
      isAugmentedMelodicInterval(parseNote('Ab4'), parseNote('B4')); // true — A2 in C minor
      isAugmentedMelodicInterval(parseNote('A4'), parseNote('C5')); // false — m3
      isAugmentedMelodicInterval(68, 71); // false — the same pitches carry no spelling