コード例 #1
0
ファイル: Generator.cs プロジェクト: Lenqth/SoundTest
 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);
 }
コード例 #2
0
ファイル: MainWindowVM.cs プロジェクト: gritzley/synth
        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");
        }