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

    Function isPerfectInterval

    • Test whether an interval is a perfect interval (unison/octave or fifth).

      Parameters

      • semitones: number

        Interval size in semitones (may be negative or compound).

      Returns boolean

      True for the unison/octave (0) and the perfect fifth (7) mod 12.