Table of Contents

Class NoteNameExtensions

Namespace
SunSharp
Assembly
SunSharp.dll

Extension methods for the NoteName enum.

public static class NoteNameExtensions
Inheritance
object
NoteNameExtensions

Methods

GetNoteCharacterAsDisplayed(NoteName)

Returns the character representation of the specified note as displayed in SunVox.

public static char GetNoteCharacterAsDisplayed(this NoteName noteName)

Parameters

noteName NoteName

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

noteName NoteName

Returns

bool