A MIDI Library for .NET

Clock Constructor

Constructs a midi clock with a given beats-per-minute.

Clock(
   float beatsPerMinute
);

Parameters

beatsPerMinute
The initial beats-per-minute, which can be changed later.

Remarks

When constructed, the clock is not running, and so Time will return zero. Call Start when you are ready for the clock to start progressing (and scheduled messages to actually trigger).

Exceptions

Exception Type Condition
ArgumentOutOfRangeException beatsPerMinute is non-positive

See Also

Clock Class | Midi Namespace