CSharpSynth.Banks.InstrumentBank.removeInstrument C# (CSharp) Method

removeInstrument() public method

public removeInstrument ( int index, bool isDrum ) : void
index int
isDrum bool
return void
        public void removeInstrument(int index, bool isDrum)
        {
            //Does not delete the index location so the other instruments keep their locations
            if (isDrum == true)
                DrumBank[index] = null;
            else
                Bank[index] = null;
        }