Click or drag to resize

NoteValueExtensions Class

Defines extension functions related to note value enumerations.
Inheritance Hierarchy
SystemObject
  GSF.Media.MusicNoteValueExtensions

Namespace: GSF.Media.Music
Assembly: GSF.Media (in GSF.Media.dll) Version: 2.4.207-beta
Syntax
public static class NoteValueExtensions
View Source

The NoteValueExtensions type exposes the following members.

Methods
 NameDescription
Public Extension MethodDuration(NoteValue) 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.
Public Extension MethodDuration(NoteValueBritish) 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.
Public Extension MethodDuration(NoteValue, NoteValue) 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.
Public Extension MethodDuration(NoteValue, Int32) 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.
Public Extension MethodDuration(NoteValueBritish, NoteValueBritish) 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.
Public Extension MethodDuration(NoteValueBritish, Int32) 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.
Public Extension MethodDuration(NoteValue, NoteValue, Int32) 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.
Public Extension MethodDuration(NoteValueBritish, NoteValueBritish, Int32) 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.
Top
See Also