private void CreateLinks(List <X32ToggleButton> list, string name, int num)
 {
     for (int i = 0; i < num; i += 2)
     {
         X32ToggleButton b = new X32ToggleButton();
         b.Address = "/config/" + name + "/" + (i + 1).ToString() + "-" + (i + 2).ToString();
         b.Id      = i;
         list.Add(b);
     }
 }
Beispiel #2
0
        public X32Eq(int numBands)
        {
            Active = new X32ToggleButton();
            Band   = new X32EQBand[numBands];

            for (int i = 0; i < numBands; i++)
            {
                Band[i] = new X32EQBand();
            }
        }
Beispiel #3
0
        public X32Status()
        {
            ChannelLayer = new X32IntDial();
            GroupLayer   = new X32IntDial();
            SendsOnFader = new X32ToggleButton();
            EqBand       = new X32IntDial();
            RTAEqPre     = new X32IntDial();
            RTAModeEq    = new X32IntDial();
            RTASource    = new X32IntDial();
            Solo         = new X32IntDial();
            Solos        = new List <X32IntDial>();

            LCD = new X32Screen();

            Address = "/~stat";

            ChannelLayer.Address = "/chfaderbank";
            ChannelLayer.Parent  = this;

            GroupLayer.Address = "/grpfaderbank";
            GroupLayer.Parent  = this;

            SendsOnFader.Address = "/sendsonfader";
            SendsOnFader.Parent  = this;

            LCD.Address = "/screen";
            LCD.Parent  = this;

            EqBand.Address = "/eqband";
            EqBand.Parent  = this;

            RTAEqPre.Address = "/rtaeqpre";
            RTAEqPre.Parent  = this;

            RTAModeEq.Address = "/rtamodeeq";
            RTAModeEq.Parent  = this;

            RTASource.Address = "/rtasource";
            RTASource.Parent  = this;

            Solo.Address = "/solo";
            Solo.Parent  = this;

            for (int i = 0; i < X32.X32MaxSolos; i++)
            {
                X32IntDial s = new X32IntDial();
                s.Address = "/solosw/" + (i + 1).ToString("D2");
                s.Parent  = this;
                Solos.Add(s);
            }
        }
Beispiel #4
0
 public X32Compressor()
 {
     Active     = new X32ToggleButton();
     Mode       = new X32IntDial();
     Detect     = new X32IntDial();
     Envelope   = new X32IntDial();
     Threshhold = new X32FloatDial();
     Ratio      = new X32IntDial();
     Knee       = new X32FloatDial();
     Gain       = new X32FloatDial();
     Attack     = new X32FloatDial();
     Hold       = new X32FloatDial();
     Release    = new X32FloatDial();
     Position   = new X32FloatDial();
     KeySource  = new X32IntDial();
     Filter     = new X32Filter();
 }