private void MasterActive_CheckChanged(object sender, EventArgs e) { CheckBox o = (CheckBox)sender; Sequencer seq = pEngine.GetSequencer(FormNameFormating.GetPanelIndex(o)); seq.Active = o.Checked; }
private void MasterRelease_ValueChanged(object sender, EventArgs e) { NumericUpDown o = (NumericUpDown)sender; Sequencer seq = pEngine.GetSequencer(FormNameFormating.GetPanelIndex(o)); seq.Release = (int)o.Value; }
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; }
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; } }
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; }