|
NoteValueExtensionsDuration(NoteValue, Int32) Method
|
Returns source note value duration. For example, 0.25 will be returned for
a quater note, 1.0 will be returned for a whole note, etc.
Namespace: GSF.Media.MusicAssembly: GSF.Media (in GSF.Media.dll) Version: 2.4.246-beta
Syntaxpublic static double Duration(
this NoteValue source,
int dots
)
<ExtensionAttribute>
Public Shared Function Duration (
source As NoteValue,
dots As Integer
) As Double
public:
[ExtensionAttribute]
static double Duration(
NoteValue source,
int dots
)
[<ExtensionAttribute>]
static member Duration :
source : NoteValue *
dots : int -> float
GSF.Media.Music.NoteValueExtensions.Duration = function(source, dots);
View SourceParameters
- source NoteValue
- Source note value.
- dots Int32
- Total dotted note length extensions to apply.
Return Value
DoubleDuration of note value.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
NoteValue. 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