How to generate dynamic audio

I am looking to control some electronic servo using the headphone port as a control signal. I should be able to generate a pulse width modulation signal and quickly change the pulse width on the fly. I would prefer to do this in C #, but C ++ is also an option. Any idea how to do this?

+3
source share
4 answers

You can see how to draw a midi conclusion.

I just did it with C ++, so with C # it was with interop, but here is a simple introduction to it.

http://midiio.sapp.org/doc/windowsmidi/

, SO .

http://www.groupsrv.com/computers/about164021.html

+1

, , 1-2 20-50 . 1 , 2 - , 1,5 - . .

, , , .

. , , - , , , Arduino (Atmel ATMega328, , ).

+1

, , :

http://www.codeproject.com/KB/audio-video/CS_ToneGenerator.aspx

( gogling "# dsp tone generator" )

: , . ( , ) (Reaktor - , ). , , , MIDI ( MIDI , , ). MIDI , / .

0

Source: https://habr.com/ru/post/1758655/


All Articles