A MIDI Library for .NET

PitchExtensionMethods.NotePreferringFlats Method

Returns the simplest note that resolves to this pitch, preferring flats where needed.

[Extension]
public static Note NotePreferringFlats(
   this Pitch pitch
);

Parameters

pitch
The pitch.

Return Value

The simplest note for that pitch. If that pitch is a "white key", the note is simply a letter with no accidentals (and is the same as NotePreferringSharps). Otherwise the note has a flat.

See Also

PitchExtensionMethods Class | Midi Namespace