Generate Real-time Audio on the Arduino using Pulse Code Modulation
So. There are a bewildering variety of options for generating sound via the Arduino, but I’m trying to make a real-time synthesizer, with the following features:
- Arbitrary waveform shape, including the ability to add harmonics for a more musical sound
- Generate any frequency dependent on sensor input
- Efficient processor usage to allow for effects such as reverb, echo, envelope shaping, etc.
- A minimum of external hardware
Audio output for the Arduino is pretty well-tilled soil, but surprisingly most of the previously published options are geared towards canned sound playback, or tone generation without a focus on musicality. I’ve implemented an algorithm called Pulse Code Modulation, and I think it has a lot of potential. Keep reading for an explanation of how it works and why it’s awesome.
Pages: 1 2