예제 #1
0
        /// <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);
        }
예제 #2
0
        /// <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);
        }