/// <summary> /// Initializes the sequencer. /// </summary> protected virtual void InitializeSequencer() { seq = new Sequence(); sequenceVersion = seq.Version; player = new SequencePlayer(this.xoutDevice, tickGen, seq); player.EndOfSequenceReached += new EventHandler(EndOfSequenceReachedHandler); clock = new SlaveClock(null, this.xoutDevice, tickGen); clock.Starting += new EventHandler(StartingHandler); clock.Continuing += new EventHandler(ContinuingHandler); clock.Stopping += new EventHandler(StoppingHandler); clock.PositionChanged += new PositionChangedEventHandler(PositionChangedHandler); tickGen.TempoChanged += new EventHandler(OnTempoChanged); }