コード例 #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
ファイル: SequencerBase.cs プロジェクト: timdetering/Endogine
        /// <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);
        }