Esempio n. 1
0
            public override bool GetStandardValuesSupported(ITypeDescriptorContext context)
            {
                CM32P cm32p = context.Instance as CM32P;

                if (cm32p != null)
                {
                    return(true);
                }
                else
                {
                    return(base.GetStandardValuesSupported());
                }
            }
Esempio n. 2
0
 /// <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;
 }
Esempio n. 3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="parent"></param>
 public CM32PSoundManager(CM32P parent) : base(parent)
 {
     this.parentModule = parent;
 }