Go Down

Topic: 6 voice Drum Machine with a single timer and 2 x PWM outputs (8-bits 21Khz) (Read 1 time) previous topic - next topic

WilliamK Govinda

Edit: 6 voice Drum Machine with a single timer and 2 x PWM outputs (8-bits 21Khz) - works much better and uses only one timer, compared to the previous code.

http://arduino.wusik.com

Edit: new updated files at the following post:

http://arduino.cc/forum/index.php/topic,53257.0.html

http://www.wusik.com/arduino/Libraries/Multi_PCM/8-bit-Drums.mp3

http://www.youtube.com/watch?v=2Vgf8WEkG1k&feature=player_embedded

Best Regards, WilliamK

WilliamK Govinda

And here's the PCM_Data.h file, couldn't post as its too big.

http://www.wusik.com/arduino/Libraries/Multi_PCM/PCM_Data.h

Wk

pepegrillo

Wow! Great Stuff! Any news in midi implementations? Can we hear some samples?

thanx!

WilliamK Govinda

I will play a bit more with it later this weekend and post some audio examples soon.

I was hoping on getting this added to the Rugged Circuits + Wusik Drum Machine project we are working on...

http://www.kickstarter.com/projects/ruggedcircuits/arduino-drum-machine-step-sequencer-groove-box

But so far it would only work on a Mega, as it has more Flash Program room. ;-)

But again, I will research more when possible...

Wk

fkeel



thanks for sharing. when i get a free minute (or more like 2 free hours) I will see if I can get it to run :-D
http://embodimentlabs.tumblr.com/
http://paulstrohmeier.info/

WilliamK Govinda

I'm also working on a WAV to Code converter. So far it works on 24, 16 and 8 bit WAV files, it converts to 8-bit Code keeping the sample-rate. Just need to clean up the code, which I should be able to do by the other weekend. ;-)

Wk

WilliamK Govinda

Here we go, I updated the code at the following post:

http://arduino.cc/forum/index.php/topic,53257.0.html

Here's an MP3 example:

http://www.wusik.com/arduino/Libraries/Multi_PCM/8-bit-Drums.mp3

And here's the YouTube video:

http://www.youtube.com/watch?v=2Vgf8WEkG1k

For the files and everything else, check the post link above.

Best Regards, WilliamK

sciguy

Really cool, but those samples get really annoying really quickly!
Especially the last one in the mp3 sample, the one at the end
Soundcloud page: http://soundcloud.com/beefinator-2
Youtube channel: http://www.youtube.com/user/beefinator14
Old soundcloud page (ran out o

WilliamK Govinda

Ha, but that's the thing, you can use any samples you want, thanks to the WAV to Code converter tool included. ;-) You just need to resample to 21052hz, so they sound right. (check the included WAV files)

I'm still playing around with this idea, trying to add a bass-line, if possible. ;-) Still, its only a hobby for now, so don't expect too much.  XD  :smiley-red:

Wk

Go Up