A MIDI Library for .NET

IntervalExtensionMethods.Name Method

Returns the human-readable name of an interval.

[Extension]
public static string Name(
   this Interval interval
);

Parameters

interval
The interval.

Return Value

The human-readable name. If the interval is less than an octave, it gives the standard term (eg, "Major third"). If the interval is more than an octave, it gives the number of semitones in the interval.

See Also

IntervalExtensionMethods Class | Midi Namespace