Is it posible to change tone() to drum note? such as snare,bass etc?

Hi Guys,

i having a questions about tone library. Is it posible to change tone() to drum note? such as snare,bass etc? :) :) :) :) :) :)

No. To do that, you need to be looking at playback of audio samples (for example, stored on an SD card) and a digital to analog converter (DAC).

To do that, you need to be looking at playback of audio samples

Not necessarily. Analogue drum machines existed long before sampling was practical.

Here is a Kick drum to get to started.

https://tindie.com/hexinverter/neinohnein-a-diy-909-kick-drum-w-rare-transistors/

dxw00d:

To do that, you need to be looking at playback of audio samples

Not necessarily. Analogue drum machines existed long before sampling was practical.

Certainly. But they didn't use the Arduino tone() library. Nor are the analog subtractive synthesis techniques used particularly applicable to making a drum machine on an (8-bit) Arduino.

So my recommendation stands.

Kick, snare, bass and many others possible through PWM, here is an example where they are being directly synthesised rather than played back from samples -

http://www.youtube.com/watch?v=fTmLKKLv5cE

Details here -

http://rcarduino.blogspot.com/2012/08/the-must-build-arduino-project-illutron.html

Duane B

rcarduino.blogspot.com