Пример #1
0
        private void MasterActive_CheckChanged(object sender, EventArgs e)
        {
            CheckBox  o   = (CheckBox)sender;
            Sequencer seq = pEngine.GetSequencer(FormNameFormating.GetPanelIndex(o));

            seq.Active = o.Checked;
        }
Пример #2
0
        private void MasterRelease_ValueChanged(object sender, EventArgs e)
        {
            NumericUpDown o   = (NumericUpDown)sender;
            Sequencer     seq = pEngine.GetSequencer(FormNameFormating.GetPanelIndex(o));

            seq.Release = (int)o.Value;
        }
Пример #3
0
        private void NodeActive_CheckChanged(object sender, EventArgs e)
        {
            CheckBox      o    = (CheckBox)sender;
            SequencerNode node = pEngine.GetNodeInSequencer(FormNameFormating.GetPanelIndex(o), FormNameFormating.GetNodeIndex(o));

            node.Active = o.Checked;
        }
Пример #4
0
        private void MasterOsc_ValueChanged(object sender, EventArgs e)
        {
            ComboBox  o   = (ComboBox)sender;
            Sequencer seq = pEngine.GetSequencer(FormNameFormating.GetPanelIndex(o));

            switch (o.GetItemText(o.SelectedItem))
            {
            case "Sinus":
                seq.SignalGeneratorType = SignalGeneratorType.Sin;
                break;

            case "Saw":
                seq.SignalGeneratorType = SignalGeneratorType.SawTooth;
                break;

            case "Square":
                seq.SignalGeneratorType = SignalGeneratorType.Square;
                break;

            case "Noise":
                seq.SignalGeneratorType = SignalGeneratorType.White;
                break;

            default:
                seq.SignalGeneratorType = SignalGeneratorType.Sin;
                break;
            }
        }
Пример #5
0
        private void NodeGate_ValueChanged(object sender, EventArgs e)
        {
            NumericUpDown o    = (NumericUpDown)sender;
            SequencerNode node = pEngine.GetNodeInSequencer(FormNameFormating.GetPanelIndex(o), FormNameFormating.GetNodeIndex(o));

            node.GateTime = (int)o.Value;
        }