예제 #1
0
 //--Public Methods
 public MidiSequencer(StreamSynthesizer synth)
 {
     currentPrograms = new int[16]; //16 channels
     this.synth      = synth;
     this.synth.setSequencer(this);
     blockList = new List <byte>();
     seqEvt    = new MidiSequencerEvent();
 }
예제 #2
0
 public void Dispose()
 {
     Stop(true);
     //Set anything that may become a circular reference to null...
     synth     = null;
     _MidiFile = null;
     seqEvt    = null;
 }