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

    Function isChordMember

    • Whether a pitch is one of a chord's tones, ignoring octave.

      Parameters

      • pitch: number

        MIDI pitch or bare pitch class.

      • chord: ChordData | null

        The chord, or null for no sounding harmony.

      Returns boolean

      True when the pitch class belongs to the chord.