Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
        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");
        }