Pages: [1]   Go Down
Author Topic: Playback of multiple sounds (wav files) simultaneously using Arduino  (Read 470 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 1
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I would like to play multiple pre-recorded audio samples (up to 5 wav files) simultaneously. These are in response to some sensors can be are triggered independently.

So the files can start and stop playing at any time - the output should be a mix of all these sounds.

What is a good approach for playback of multiple sounds simultaneously using Arduino? Do I need external hardware?

I was also considering generating MIDI. I don't know much about it - is it possible to create a MIDI file with multiple channels of data which keep changing?

Thanks & Regards
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 619
Posts: 33966
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

You can't do this simply. You need five wave shields and arduino's. Or you need five MP3 players controlled by one arduino.

MIDI is possible but it will not generate any sound just signals, I think one of the MP3 shields contains a MIDI sound synth so that might work.
Logged

SW Scotland
Offline Offline
Edison Member
*
Karma: 17
Posts: 1385
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You also need to sample the signals at least twice the highest expected frequency.  That is why somewhere around 44KHz is frequently used by sampling systems.  And you also need to ensure there is adequate buffering (via opamps) between each of your signal sources before combining them to prevent the possibility of them "interfering" with each other.  Bear in mind that identical signals combined in opposition will cancel each other out, so the sound you expect to hear might not be a simple mix of the individual sounds.
Logged

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

Thanks Grumpy_Mike & jackrae.

I think I'll look into the MIDI option.
Logged

Pages: [1]   Go Up
Jump to: