A MIDI Library for .NET

PitchExtensionMethods.NotePreferringSharps Method

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

[Extension]
public static Note NotePreferringSharps(
   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 NotePreferringFlats). Otherwise the note has a sharp.

See Also

PitchExtensionMethods Class | Midi Namespace