Skip to content

Arduino breakbeat sampler

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

  • Subjectivity

    How are the buttons connected? i assume they go +v on one end to an arduino pin on the other.?

  • http://www.facebook.com/Malthus Travis Cleary

    Hi, 

    I just wanted to let you know that I have put up a video of a breakbeat masher I made using your wonderful sketch provided on this site. I have given you full credit and linked to this page, hope that this will be ok. My plans are to expand upon your concept to make a more fully featured drumbreak masher with more samples, buttons and an appropriate housing. Thanks for your great video and sketch,Travis

    • http://possan.se Per-Olov Jernberg

      Nice to see that it’s actually getting used :)