|
NoteGetFrequency(Char, Int32, Boolean) Method
|
Gets the specified note frequency.
Namespace: GSF.Media.MusicAssembly: GSF.Media (in GSF.Media.dll) Version: 2.4.248-beta
Syntaxpublic static double GetFrequency(
char note,
int octave,
bool sharp
)
Public Shared Function GetFrequency (
note As Char,
octave As Integer,
sharp As Boolean
) As Double
public:
static double GetFrequency(
wchar_t note,
int octave,
bool sharp
)
static member GetFrequency :
note : char *
octave : int *
sharp : bool -> float
GSF.Media.Music.Note.GetFrequency = function(note, octave, sharp);
View SourceParameters
- note Char
- Note (A - G) to retrieve.
- octave Int32
- Octave of the the note to retrieve (0 - 8).
- sharp Boolean
- Indicates to get the "sharp" version of the note.
Return Value
DoubleThe specified note.
ExceptionsException | Condition |
---|
ArgumentOutOfRangeException | Notes must be A - G, octaves must be 0 - 8, first note is C0, last note is D8S. |
ArgumentException | Sharps are not defined for notes 'B' and 'E'. |
See Also