Click or drag to resize

Tempo Class

Defines the tempo of song as the total number of note values in one minute.
Inheritance Hierarchy
SystemObject
  GSF.Media.MusicTempo

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

The Tempo type exposes the following members.

Constructors
 NameDescription
Public methodTempo(Int32, NoteValue) Contructs a new Tempo object.
Public methodTempo(Int32, NoteValueBritish) Contructs a new Tempo object.
Public methodTempo(Int32, Double) Contructs a new Tempo object.
Top
Properties
 NameDescription
Public propertyNamedNoteValueGet or sets the note value, expressed in American form, representing the length of the note.
Public propertyNamedNoteValueBritishGet or sets the note value, expressed in British form, representing the length of the note.
Public propertyNoteValue Returns relative value for reference note value. For example, if tempo is M.M. 120 quarter-notes per minute, then time is referenced in quarter-notes and this function would return 0.25.
Public propertyNoteValueTime Total time, in seconds, for reference note value. For example, if tempo is M.M. 120 quarter-notes per minute, then time is referenced in quarter-notes and this function would return 0.5 seconds.
Public propertyTotalNoteValues Total number of reference note values that occur in one minute - thus defining the tempo for a score.
Top
Methods
 NameDescription
Public methodCalculateNoteValueTime(Double) Calculates the actual time duration, in seconds, for the given tempo that the specified source note value will last. For example, if tempo is M.M. 120 quarter-notes per minute, then each quarter-note would last a half-second.
Public methodCalculateNoteValueTime(NoteValue, Int32) Calculates the actual time duration, in seconds, for the given tempo that the specified source note value will last. For example, if tempo is M.M. 120 quarter-notes per minute, then each quarter-note would last a half-second.
Public methodCalculateNoteValueTime(NoteValueBritish, Int32) Calculates the actual time duration, in seconds, for the given tempo that the specified source note value will last. For example, if tempo is M.M. 120 crotchets per minute, then each crotchet would last a half-second.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Extension Methods
 NameDescription
Public Extension MethodGetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Public Extension MethodGetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Top
Remarks
This defined tempo of the music assigns absolute durations to all the note values within a score.
See Also