2009-10-01 00:33:40
I just had to try out the pwm soundcode i found - and worked out pretty well, it didn't at all sound as crappy as i expected it, just sounded like normal 8khz sound.
the sample is a 1.5 second long amen beat sample, resampled at 8khz and maximized a bit.
the buttons restarts the sample at four different points, the fifth button enters a retrig-mode, basically it restarts from the sample that was playing when the button went down every 1/64 beats.
quick and dirty sourcecode:
http://www.possan.se/junk/ljudtest1.pde.txt (65kb, mostly the 11kb sample)
http://vimeo.com/6840250