Sketch for triggering .wav with buttons.

Status
Not open for further replies.

drduval

Member
So I have 7 push buttons, each one should play a different .wav sample.
Using the design tool I came up with this: http://i.imgur.com/bfn8xTA.jpg

But where do I go from here? I'm thinking I could paste that in to the part2_02_mixers example and replace the converted .wav files from the example with my own .wav samples.

Am I going in the right direction?
 
Yes, you're pretty much on the right track.

However, most SD cards when combined with the not-so-efficient Arduino SD library can play about 3 or 2 WAV files simultaneously. If you try to get all 7 of them playing at the same time, your SD card probably won't be able to keep up.

Try running File > Examples > Audio > HardwareTesting > SdCardTest to see how much your card is capable of doing.

There's an experimental SD optimization which can be enabled by editing SD_t3.h (buried deep within the code). It can help a bit.
 
Status
Not open for further replies.
Back
Top