A MIDI Library for .NET

Scale.ScaleDegree Method

Returns the scale degree of the given pitch in this scale.

public int ScaleDegree(
   Pitch pitch
);

Parameters

pitch
The pitch to test.

Return Value

The scale degree of pitch in this scale, where 1 is the tonic. Returns -1 if pitch is not in this scale.

See Also

Scale Class | Midi Namespace