public void CopyInstrument()
 {
     instruments.CopyInstrument(keyboard.currentInstrument);
     UpdateEnvelopes();
     view.UpdatePatternData();
     UpdateInstruments();
     SetSelectedInstrument(instruments.presets.Length - 1);
 }