public BitHoven()
        {
            InitializeComponent();
            m_midiControl = new MidiControl();
            selIndex      = MidiSelection.SOURCE;
            Harmonizer h = new Harmonizer();

            System.Console.WriteLine(h.testAngle());
        }
Exemple #2
0
        public Synth()
        {
            MidiControl midiControl = new MidiControl(midiDeviceNumber);
            midiControl.startDeviceListener();
            midiControl.MidiKeyPressed += MidiControl_MidiKeyPressed;

            waveFormProvider.SetWaveFormat(44100, 1); // 44.1 kHz mono
            waveFormProvider.setAmplitude(0.1f);
            waveFormProvider.setFrequency(500);
            waveFormProvider.setWaveForm(WaveFormProvider.WaveForm.Saw);

              waveOut = new DirectSoundOut(50);
              waveOut.Init(waveFormProvider);
        }