private void ReleaseDial_OnChange(object sender, DialEventArgs e)
 {
     PARENT_FORM.PROGRAMS[PARENT_FORM.CURRENT_PROGRAM].compressors[CH_NUMBER - 1][COMP_INDEX].Release = ReleaseDial.Value;
     PARENT_FORM.AddItemToQueue(new LiveQueueItem(ADDR_RELEASE, DSP_Math.comp_release_to_value(ReleaseDial.Value)));
 }
 private void HoldDial_OnChange(object sender, DialEventArgs e)
 {
     PARENT_FORM.PROGRAMS[PARENT_FORM.CURRENT_PROGRAM].ducker.Holdtime = HoldDial.Value;
     PARENT_FORM.AddItemToQueue(new LiveQueueItem(ADDR_HOLD, DSP_Math.dynamic_hold_to_value(HoldDial.Value)));
 }
 private void AttackDial_OnChange(object sender, DialEventArgs e)
 {
     PARENT_FORM.PROGRAMS[PARENT_FORM.CURRENT_PROGRAM].compressors[CH_NUMBER - 1][COMP_INDEX].Attack = AttackDial.Value;
     PARENT_FORM.AddItemToQueue(new LiveQueueItem(ADDR_ATTACK, DSP_Math.comp_attack_to_value(AttackDial.Value)));
 }
Beispiel #4
0
        private void Update_Dial_From_Textbox()
        {
            double new_value = UI_Helpers.validate_textbox_value(Textbox.Text, Dial_Ticks[0], Dial_Ticks[6]);
            Rotations = DialHelpers.value_to_rotations(new_value, Dial_Ticks);

            Picturebox.Image = ImageHelpers.RotateImage(unrotatedLine, (float)DialHelpers.rotations_to_degrees(Rotations));
            Textbox.Text = Format_Callback(new_value);
            Picturebox.Focus();

            DialEventArgs args = new DialEventArgs();
            OnChangeEvent(args);
        }
 private void AttackDial_OnChange(object sender, DialEventArgs e)
 {
     PARENT_FORM.PROGRAMS[PARENT_FORM.CURRENT_PROGRAM].ducker.Attack = AttackDial.Value;
     PARENT_FORM.AddItemToQueue(new LiveQueueItem(ADDR_ATTACK, DSP_Math.comp_attack_to_value(AttackDial.Value)));
 }
Beispiel #6
0
        private void Event_MouseUp(object sender, MouseEventArgs e)
        {
            is_dragging = false;

            DialEventArgs args = new DialEventArgs();
            OnChangeEvent(args);
        }
Beispiel #7
0
 protected void OnChangeEvent(DialEventArgs e)
 {
     if(this.OnChange != null)
     {
         try
         {
             OnChange(this, e);
         } catch (Exception ex)
         {
             Console.WriteLine("Exception in Dial.OnChangeEvent: " + ex.Message);
         }
     }
 }
        private void DialM_OnChange(object sender, DialEventArgs e)
        {
            double new_m = delayM.Value;
            delayMS.Value = Math.Min(0.1,new_m / 340);
            delayFT.Value = new_m * 3.28;

            PARENT_FORM.PROGRAMS[PARENT_FORM.CURRENT_PROGRAM].delays[CH_NUMBER - 1].Delay = delayMS.Value;
        }
        private void DialMS_OnChange(object sender, DialEventArgs e)
        {
            double new_ms = delayMS.Value;
            delayFT.Value = new_ms * 1110;
            delayM.Value = new_ms * 340;

            PARENT_FORM.PROGRAMS[PARENT_FORM.CURRENT_PROGRAM].delays[CH_NUMBER - 1].Delay = delayMS.Value;

            // DSP_Math.double_to_MN(PROGRAMS[program_index].delays[0].Delay, 16, 16);

            PARENT_FORM.AddItemToQueue(new LiveQueueItem(SETTINGS_INDEX, DSP_Math.double_to_MN(delayMS.Value, 16, 16)));
        }
        private void DialFT_OnChange(object sender, DialEventArgs e)
        {
            double new_ft = delayFT.Value;
            delayMS.Value = Math.Min(0.1,new_ft / 1110);
            delayM.Value = new_ft * 0.3048;

            PARENT_FORM.PROGRAMS[PARENT_FORM.CURRENT_PROGRAM].delays[CH_NUMBER - 1].Delay = delayMS.Value;
        }