private void OnCursorPositionChanged() { if (!inUpdateCursorPosition && audioPlayback.IsInitialized && audioPlayback.IsPlaying) { audioPlayback.Seek(sequencer.CursorPosition - MusicTimeOffset); } }