public override void Load(InstrumentData d) { DrumData data = d as DrumData; base.Load(data); ID = data.ID; sampOut.ID = data.jackOutSampID; sigOut.ID = data.jackOutSigID; samp.SetSample(data.tapeLabel, data.tapeFile); }
public override InstrumentData GetData() { DrumData data = new DrumData(); data.deviceType = menuItem.deviceType.Drum; GetTransformData(data); data.jackOutSampID = sampOut.transform.GetInstanceID(); data.jackOutSigID = sigOut.transform.GetInstanceID(); samp.getTapeInfo(out data.tapeLabel, out data.tapeFile); return(data); }