public DrumPatternSampleProvider(DrumPattern pattern)
 {
     var kit = new DrumKit();
     this.sequencer = new PatternSequencer(pattern, kit);
     this.waveFormat = kit.WaveFormat;
     mixer = new MixingSampleProvider(waveFormat);
 }
Exemple #2
0
 public PatternSequencer(DrumPattern drumPattern, DrumKit kit)
 {
     this.drumKit = kit;
     this.drumPattern = drumPattern;
     this.Tempo = 120;
     this.pitch = new int[BeatMaker.noteNum, drumPattern.Steps];
     for (int i = 0; i < BeatMaker.noteNum; i++)
     {
         for (int j = 0; j < drumPattern.Steps; j++)
         {
             this.pitch[i, j] = 4;
         }
     }
 }