Exemplo n.º 1
0
 public void setPatternSequencer(ref DrumPatternSampleProvider pSequencer)
 {
     this.patternSequencer = pSequencer;
 }
Exemplo n.º 2
0
 public void Stop()
 {
     if (waveOut != null)
     {
         this.patternSequencer = null;
         waveOut.Dispose();
         waveOut = null;
     }
 }
Exemplo n.º 3
0
 public void setPatternSequencer(DrumPatternSampleProvider pSequencer)
 {
     this.dsp = pSequencer;
 }
Exemplo n.º 4
0
 public void Play()
 {
     if (waveOut != null)
     {
         Stop();
     }
     waveOut = new WaveOut();
     this.patternSequencer = new DrumPatternSampleProvider(pattern);
     //this.patternSequencer.Tempo = tempo;
     this.tempoController.setPatternSequencer(ref this.patternSequencer);
     this.tempoController.updateTempo();
     this.pitchController.setPatternSequencer(this.patternSequencer);
     this.pitchController.reloadState();
     IWaveProvider wp = new SampleToWaveProvider(patternSequencer);
     waveOut.Init(wp);
     waveOut.Play();
 }