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

    Function noteToPitchClass

    • Pitch class (0..11) of a note, ignoring octave.

      Parameters

      Returns number

      The pitch class.

      import { noteToPitchClass, parseNote } from '@libraz/libcantus';
      noteToPitchClass(parseNote('Db')); // 1