/// <summary> /// Handles the position changed event generated by the MIDI clock. /// </summary> /// <param name="sender"> /// The MIDI clock responsible for the event. /// </param> /// <param name="e"> /// Information about the event. /// </param> private void PositionChangedHandler(object sender, PositionChangedEventArgs e) { position = e.Position; player.Seek(position); }