Click or drag to resize

NoteGetPreviousID Method

Gets the previous note ID in sequence before the specified note ID.

Namespace: GSF.Media.Music
Assembly: GSF.Media (in GSF.Media.dll) Version: 2.4.218-beta
Syntax
public static string GetPreviousID(
	string noteID,
	bool includeSharps
)
View Source

Parameters

noteID  String
ID of the current note - expected format is "Note + Octave + S?" (e.g., A2 or C5S)
includeSharps  Boolean
Set to True to include sharp notes in the sequence.

Return Value

String
The previous note ID that is before the specified note ID.
Exceptions
ExceptionCondition
ArgumentNullExceptionnoteID is null.
ArgumentExceptionInvalid note ID format - expected "Note + Octave + S?" (e.g., A2 or C5S).
See Also