/// <summary> /// /// </summary> public CM32P(uint unitNumber) : base(unitNumber) { GainLeft = DEFAULT_GAIN; GainRight = DEFAULT_GAIN; FilterMode = FilterMode.None; this.soundManager = new CM32PSoundManager(this); Timbres = new CM32PTimbre[InstrumentBase.DEFAULT_MAX_TIMBRES]; for (int i = 0; i < InstrumentBase.DEFAULT_MAX_TIMBRES; i++) { Timbres[i] = new CM32PTimbre(); } ChannelAssignments = new byte[] { 10, 11, 12, 13, 14, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16 }; }
/// <summary> /// /// </summary> /// <param name="parentModule"></param> /// <param name="noteOnEvent"></param> /// <param name="programNumber"></param> /// <param name="slot"></param> public CM32PSound(CM32P parentModule, CM32PSoundManager manager, TimbreBase timbre, int tindex, TaggedNoteOnEvent noteOnEvent, int slot) : base(parentModule, manager, timbre, tindex, noteOnEvent, slot) { this.parentModule = parentModule; this.programNumber = (SevenBitNumber)parentModule.ProgramNumbers[noteOnEvent.Channel]; this.timbre = (CM32PTimbre)timbre; }