Get the 0-based scale degree of a pitch.
MIDI pitch or bare pitch class.
The key/scale to measure against.
The 0-based degree, or -1 if the pitch is not in the scale.
Get the 0-based scale degree of a pitch.