|   | NoteValueExtensionsDuration(NoteValue, NoteValue) Method | 
        
        
            Returns source note value duration in terms of given reference note value.
            For example, if measure size is 3/4 then reference is quarter notes and returned
            value will be equivalent number of quarter notes for given source note.
            
        
        Namespace: GSF.Media.MusicAssembly: GSF.Media (in GSF.Media.dll) Version: 2.4.257-beta
 Syntax
Syntax<ExtensionAttribute>
Public Shared Function Duration ( 
	source As NoteValue,
	reference As NoteValue
) As Double
public:
[ExtensionAttribute]
static double Duration(
	NoteValue source, 
	NoteValue reference
)
[<ExtensionAttribute>]
static member Duration : 
        source : NoteValue * 
        reference : NoteValue -> float GSF.Media.Music.NoteValueExtensions.Duration = function(source, reference);
Parameters
- source  NoteValue
- Source note value.
- reference  NoteValue
- Reference note value.
Return Value
DoubleDuration of note value in terms of specified reference 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
See Also