Click or drag to resize

NoteValueExtensionsDuration(NoteValueBritish, Int32) Method

Returns source note value duration. For example, 0.25 will be returned for a crotchet note, 1.0 will be returned for a semibreve note, etc.

Namespace: GSF.Media.Music
Assembly: GSF.Media (in GSF.Media.dll) Version: 2.4.218-beta
Syntax
public static double Duration(
	this NoteValueBritish source,
	int dots
)
View Source

Parameters

source  NoteValueBritish
Source note value.
dots  Int32
Total dotted note length extensions to apply.

Return Value

Double
Duration of note value.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type NoteValueBritish. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also