Pages: [1]   Go Down
Author Topic: 6 voice Drum Machine with a single timer and 2 x PWM outputs (8-bits 21Khz)  (Read 1790 times)
0 Members and 1 Guest are viewing this topic.
Brazil
Offline Offline
God Member
*****
Karma: 3
Posts: 616
Wusik Dot Com
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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



Best Regards, WilliamK
« Last Edit: March 06, 2011, 03:40:20 pm by WilliamK » Logged


Brazil
Offline Offline
God Member
*****
Karma: 3
Posts: 616
Wusik Dot Com
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged


Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

thanx!
Logged

Brazil
Offline Offline
God Member
*****
Karma: 3
Posts: 616
Wusik Dot Com
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged


Offline Offline
God Member
*****
Karma: 2
Posts: 711
a, b = b, a+b
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset



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
Logged


Brazil
Offline Offline
God Member
*****
Karma: 3
Posts: 616
Wusik Dot Com
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged


Brazil
Offline Offline
God Member
*****
Karma: 3
Posts: 616
Wusik Dot Com
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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:



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

Best Regards, WilliamK
Logged


Nowhere
Offline Offline
God Member
*****
Karma: 3
Posts: 852
|-\ |\|\
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Really cool, but those samples get really annoying really quickly!
Especially the last one in the mp3 sample, the one at the end
Logged

Soundcloud page: http://soundcloud.com/beefinator-2
Youtube channel: http://www.youtube.com/user/beefinator14
Old soundcloud page (ran out o

Brazil
Offline Offline
God Member
*****
Karma: 3
Posts: 616
Wusik Dot Com
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.  smiley-lol  smiley-red

Wk
Logged


Pages: [1]   Go Up
Jump to: