A MIDI Library for .NET

PitchExtensionMethods.Octave Method

Returns the octave containing this pitch.

[Extension]
public static int Octave(
   this Pitch pitch
);

Parameters

pitch
The pitch.

Return Value

The octave, where octaves begin at each C, and Middle C is the first pitch in octave 4.

See Also

PitchExtensionMethods Class | Midi Namespace