#include <Metronome.h>
Inheritance diagram for TSE3::Metronome:
Public Member Functions | |
Metronome () | |
virtual | ~Metronome () |
int | channel () const |
void | setChannel (int c) |
int | port () const |
void | setPort (int p) |
int | duration () const |
void | setDuration (int d) |
int | barNote () const |
void | setBarNote (int n) |
int | barVelocity () const |
void | setBarVelocity (int v) |
int | beatNote () const |
void | setBeatNote (int n) |
int | beatVelocity () const |
void | setBeatVelocity (int v) |
bool | status (int mode) const |
void | setStatus (int mode, bool s) |
int | beatsPerBar () const |
void | setBeatsPerBar (int bpb) |
Clock | barReference () const |
void | setBarReference (Clock br) |
virtual PlayableIterator * | iterator (Clock index) |
virtual Clock | lastClock () const |
Friends | |
class | MetronomeIterator |
This class provides the functionality of a metronome.
The metronome remembers whether it should be produced in playing and recording modes, but it doesn't enforce this itself - it is the responsibility of the Transport playback routines.
There are two different metronome ticks that are produced, for bars and beats. They must have the same MIDI channel, port, and duration, but can have different notes and velocities.
To determine the point at which clocks bar ticks are produced, a bar reference exists.
|
Constructs a Metronome with default tick. |
|
|
|
Returns the metronome MIDI channel.
|
|
Sets the metronome MIDI channel.
|
|
Returns the metronome MIDI port.
|
|
Sets the metronome MIDI port.
|
|
Returns the metronome duration.
|
|
Sets the metronome duration.
|
|
Returns the metronome bar note. This is the note that is played on a metronome tick that occurs at the start of a bar.
|
|
Sets the metronome bar note.
|
|
Returns the metronome bar velocity.
|
|
Sets the metronome bar velocity.
|
|
Returns the metronome beat note. This is the note that is played on a metronome tick that does not occur at the start of a bar.
|
|
Sets the metronome beat note.
|
|
Returns the metronome beat velocity.
|
|
Sets the metronome bar velocity.
|
|
Returns the metronome playing status for a given Transport object status mode.
|
|
Sets the metronome playing status for a given transport mode.
|
|
Returns the metronome beats per bar value. A normal TSE3 library user need not worry about this method. The Transport object uses this value to tell the metronome the current time signtaure information. The value represents the number of quarter notes in a bar. It is used in conjuction with the barReference to determine which metronome ticks are 'bar' and which are 'beat'. |
|
Sets the metronome beats per bar value. A normal TSE3 library user need not worry about this method. |
|
Returns the metronome bar reference clock. A normal TSE3 library user need not worry about this method. This is the time value of some accented 'bar' note. This tells the Metronome object when to create a 'bat' tick and when to create a 'beat' tick when used in conjuction with the beatsPerBar method. |
|
Sets the metronome bar reference clock. A normal TSE3 library user need not worry about this method. |
|
Implements TSE3::Playable. |
|
Implements TSE3::Playable. |
|
|