Class NoteNameExtensions
- Namespace
- SunSharp
- Assembly
- SunSharp.dll
Extension methods for the NoteName enum.
public static class NoteNameExtensions
- Inheritance
-
objectNoteNameExtensions
Methods
GetNoteCharacterAsDisplayed(NoteName)
Returns the character representation of the specified note as displayed in SunVox.
public static char GetNoteCharacterAsDisplayed(this NoteName noteName)
Parameters
noteNameNoteName
Returns
- char
Remarks
Only valid for note names in the range of C to B, and defaults to '?' for others. In case of accidentals, returns the lowercase character for sharp notes. You are likely looking for ToString() for full note representation.
IsValidNoteName(NoteName)
Returns whether the specified note name is a valid note name.
public static bool IsValidNoteName(this NoteName noteName)
Parameters
noteNameNoteName
Returns
- bool