Last year (2012) I found this cool article: http://countercomplex.blogspot.com/2011/10/algorithmic-symphonies-from-one-line-of.html It shows how you can create “music” using simple bit operators like >>, |, &, and ^ on a single line of code.
In the comments section I found that somebody already had ported (sorry but the link is no longer available) the experiment to run on the Arduino. It uses the PWM square waves to generate the sound. I think they sound OK and requires no extra hardware. But one problem with that approach is that the frequency is not 8 kHz as on the videos on the original post, so the the result is a little bit different.
I have laying around an R-2R 8bit DAC (Digital to Analog Converter) that I built some time ago watching Collin Cunningham lesson. I had never tested it before. Well, actually I tested it using a multimeter and that was pretty boring but nothing besides that.




Recent Comments