Example #1
0
 /// <summary>
 /// Prepares the sequence player for playback.
 /// </summary>
 private void PreparePlayer()
 {
     player.EndOfSequenceReached -=
         new EventHandler(EndOfSequenceReachedHandler);
     player.Dispose();
     player = new SequencePlayer(this.xoutDevice, tickGen, seq);             //outDevice, tickGen, seq
     player.EndOfSequenceReached +=
         new EventHandler(EndOfSequenceReachedHandler);
 }
Example #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);
        }
Example #3
0
 /// <summary>
 /// Prepares the sequence player for playback.
 /// </summary>
 private void PreparePlayer()
 {
     player.EndOfSequenceReached -=
         new EventHandler(EndOfSequenceReachedHandler);
     player.Dispose();
     player = new SequencePlayer(this.xoutDevice, tickGen, seq); //outDevice, tickGen, seq
     player.EndOfSequenceReached +=
         new EventHandler(EndOfSequenceReachedHandler);
 }
Example #4
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);
        }