Click or drag to resize
Accord.NET (logo)

Metronome Class

Virtual Metronome.
Inheritance Hierarchy
SystemObject
  Accord.AudioMetronome

Namespace:  Accord.Audio
Assembly:  Accord.Audio (in Accord.Audio.dll) Version: 3.8.0
Syntax
public class Metronome : IDisposable
Request Example View Source

The Metronome type exposes the following members.

Constructors
  NameDescription
Public methodMetronome
Constructs a new Metronome.
Top
Properties
  NameDescription
Public propertyBeatsPerMinute
Gets or sets the Beats per Minute for this metronome.
Public propertyDetecting
Gets whether the metronome is currently detecting the tempo being tapped.
Public propertySynchronizingObject
Synchronizing object for thread safety.
Top
Methods
  NameDescription
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Protected methodDispose(Boolean)
Releases unmanaged and - optionally - managed resources
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Releases unmanaged resources and performs other cleanup operations before the Metronome is reclaimed by garbage collection.
(Overrides ObjectFinalize.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodStart
Starts the metronome.
Public methodStop
Stops the metronome.
Public methodTap
Taps the metronome (for tempo detection)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Events
  NameDescription
Public eventTempoDetected
Fired when the metronome has figured the tapped tempo.
Public eventTick
Metronome tick.
Top
Extension Methods
  NameDescription
Public Extension MethodHasMethod
Checks whether an object implements a method with the given name.
(Defined by ExtensionMethods.)
Public Extension MethodIsEqual
Compares two objects for equality, performing an elementwise comparison if the elements are vectors or matrices.
(Defined by Matrix.)
Public Extension MethodTo(Type)Overloaded.
Converts an object into another type, irrespective of whether the conversion can be done at compile time or not. This can be used to convert generic types to numeric types during runtime.
(Defined by ExtensionMethods.)
Public Extension MethodToTOverloaded.
Converts an object into another type, irrespective of whether the conversion can be done at compile time or not. This can be used to convert generic types to numeric types during runtime.
(Defined by ExtensionMethods.)
Top
Remarks
Objects from this class acts as virtual metronomes. If connected to a beat detector, it can be used to determine the tempo (in beats per minute) of a signal. It can also be used in manual mode by calling Tap method. For more details, see the Beat detection sample application which comes together with the framework.
See Also