public void setPatternSequencer(ref DrumPatternSampleProvider pSequencer) { this.patternSequencer = pSequencer; }
public void Stop() { if (waveOut != null) { this.patternSequencer = null; waveOut.Dispose(); waveOut = null; } }
public void setPatternSequencer(DrumPatternSampleProvider pSequencer) { this.dsp = pSequencer; }
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(); }