A MIDI Library for .NET

Clock.Start Method

Starts or resumes the clock.

public void Start();

Remarks

This method causes the clock to start progressing at the rate given in the BeatsPerMinute property. It may only be called when the clock is not yet rnuning.

If this is the first time Start is called, the clock starts at time zero and progresses from there. If the clock was previously started, stopped, and not reset, then Start effectively "unpauses" the clock, picking up at the left-off time, and resuming scheduling of any as-yet-unsent messages.

This method creates a new thread which runs in the background and sends messages at the appropriate times. All Message.SendNow methods and CallbackMessages will be called in that thread.

The scheduler thread is joined (shut down) in Stop.

Exceptions

Exception Type Condition
InvalidOperationException Clock is already running.

See Also

Clock Class | Midi Namespace | Stop | Reset