For my midi(akai mpd16) controller I wanna make analog output to communicate with an analog sound device
I need to make analog output . I have never wroked with arduino.
I have made some working piezo pickups for homemade instruments.
My two guitar effect builds failed.
Either of those methods will give you sound. But, you won't get high-quality audio from PWM and an R-C filter. For anything near the quality you get from a soundcard or a keyboard, etc., you need a true DAC. And, you need at least 16-bits. (CDs are 16-bits. Soundcards are 16 or 24-bits.)
And depending on what you are doing, you may need more "processing power" than you can get from the Arduino.
That 2nd method is not using PWM. It's using 8-bit parallel data* to drive the resistor-network DAC.
*This is PCM (Pulse Code Modulation) which is the normal-default way of representing digitized audio. The Audacity website has a simple [u]tutorial[/u] showing how a waveform is represented by a series of digital samples, and how you "connect the dots" to reconstruct the waveform.
DeathSuperMario:
I was thinking to control and manipulate sound generator not getting sound form arduino
So tell what you want to do.
You said:-
I wanna make analog output to communicate with an analog sound device
So what sort of output is that? Is it DC controlling a voltage controlled parameter?
What voltage, what range and how quickly do you want it to change?
I would like to send out midi controller manipulation signals to analog device so that I can trigger sound or sounds and pitch bend etc . Midi controller is akai mpd 16. Maybe I can only make like a rc car controller. I don't know.
I was thinking to control and manipulate sound generator not getting sound form arduino
So tell what you want to do.
I would like to send out midi controller manipulation signals to analog device so that I can trigger sound or sounds and pitch bend etc
I wanna make analog output to communicate with an analog sound device
So what sort of output is that? Is it DC controlling a voltage controlled parameter?
What voltage, what range and how quickly do you want it to change?
I need voltages for sending out singlas form midi controller. I think I need.
So despite the title of the thread you do not want to use either PWM or an analog output you just want to send MIDI signals.
I need voltages for sending out singlas form midi controller.
No you don’t.
MIDI is a digital signal just like serial data. So you need a very little bit of hardware to make the serial signal’s physical form into the sort a MIDI sound generator can accept. Then you need some simple software to send MIDI messages.
Grumpy_Mike:
So despite the title of the thread you do not want to use either PWM or an analog output you just want to send MIDI signals.
I need voltages for sending out singlas form midi controller.
No you don't.
MIDI is a digital signal just like serial data. So you need a very little bit of hardware to make the serial signal's physical form into the sort a MIDI sound generator can accept. Then you need some simple software to send MIDI messages.
OK thanks for clarifying.
First of all you need to get MIDI into your Arduino. To do this you need a shield like I told you about earlier. In fact you only need half that shield, the half that receives MIDI data and puts it into your Arduino.
Once it is in your arduino then you need decode the MIDI messages and pick out the one or ones you want to activate your sound. When you see that message then you activate your sound in a way that the sound generator needs.
I find this Notes and Volts: Fun with Arduino - Midi Input Basics.
I have read that someones have used usb midi interface for arduino for sending midi in or out.
I think I have usb driver for my akai mpd 16 somewhere. Think I can use midi controller instead of buttons and potentsiomeeters on sound generator.