Click or drag to resize

NoteGetFrequency(Char, Int32, Boolean) Method

Gets the specified note frequency.

Namespace: GSF.Media.Music
Assembly: GSF.Media (in GSF.Media.dll) Version: 2.4.218-beta
Syntax
public static double GetFrequency(
	char note,
	int octave,
	bool sharp
)
View Source

Parameters

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

Double
The specified note.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionNotes must be A - G, octaves must be 0 - 8, first note is C0, last note is D8S.
ArgumentExceptionSharps are not defined for notes 'B' and 'E'.
See Also