コード例 #1
0
 public void setPatternSequencer(ref DrumPatternSampleProvider pSequencer)
 {
     this.patternSequencer = pSequencer;
 }
コード例 #2
0
ファイル: BeatMaker.xaml.cs プロジェクト: DevangS/omnibeat
 public void Stop()
 {
     if (waveOut != null)
     {
         this.patternSequencer = null;
         waveOut.Dispose();
         waveOut = null;
     }
 }
コード例 #3
0
 public void setPatternSequencer(DrumPatternSampleProvider pSequencer)
 {
     this.dsp = pSequencer;
 }
コード例 #4
0
ファイル: BeatMaker.xaml.cs プロジェクト: DevangS/omnibeat
 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();
 }