private void Generator_Load(object sender, EventArgs e) { painter = new Graph(pictureBox1.Size.Width, pictureBox1.Size.Height); synth = new Synth(); synth.Volume = 0.0; synth.Play(Frequency, Waveform); }
public MainWindowVM() { SynthData = new SynthData(); Synth = new Synth(SynthData); Pitch = 60; Synth.Play(); MIDIDeviceNames = InputDevice .GetAll() .Select(inputDevice => inputDevice.Name) .ToArray(); Synth.InputDevice = InputDevice.GetByName("Axiom A.I.R. Mini32"); }