public PatchSelect(PatchBank bank)
 {
     InitializeComponent();
     this.bank = bank;
     int[] banks = bank.GetLoadedBanks();
     if (banks.Length > 0)
     {
         for (int x = 0; x < banks.Length; x++)
             comboBox1.Items.Add(banks[x]);
         comboBox1.SelectedIndex = 0;
     }
     updatePatchList();
 }
Exemplo n.º 2
0
 public void LoadBank(PatchBank bank)
 {
     this.bank = bank;
     synthesizer.UnloadBank();
     synthesizer.LoadBank(bank);
 }
Exemplo n.º 3
0
 public void UnloadBank()
 {
     if (this.bank != null)
     {
         NoteOffAll(true);
         voiceManager.UnloadPatches();
         this.bank = null;
     }
 }
Exemplo n.º 4
0
 public void LoadBank(PatchBank bank)
 {
     if (bank == null)
         throw new ArgumentNullException("The parameter bank was null.");
     UnloadBank();
     this.bank = bank;
 }