Returns the scale degree of the given pitch in this scale.
The scale degree of pitch in this scale, where 1 is the tonic. Returns -1 if pitch is not in this scale.
Scale Class | Midi Namespace