Pages: [1]   Go Down
Author Topic: Creating Soundboard with mp3/wave files in Processing  (Read 664 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi Everyone!

I am working on a class project for school and my group and I decided to build a soundboard with buttons.

The sound board will have 4 buttons and once pressed will produce 4 different sounds. We want a library were you can choose between four different types of music and play them. In processing we used if statements to try it out for example

  void  keyPressed().{
    if ((key == 'o') || (key == 'O')) {;

We have the same statement with different variable names that play everysound once that specific key is pressed. Now we want to change it to the buttons on Arduino, but we are at a lost.

If someone can give us some guidance or how it will be done?

Thanks! I started started learning arduino two weeks ago, and took a crash course in processing in 4 weeks! So I am still rusty.


Global Moderator
Boston area, metrowest
Online Online
Brattain Member
Karma: 538
Posts: 27089
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Try some of the Button tutorials on the learning page

You can use a button press to play a tone or melody.

Or get fancier and get a sound module
and when a button is pressed, send a command to the sound module to play a music file.

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at
Arduino for Teens available at

Offline Offline
God Member
Karma: 3
Posts: 575
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Playing a pre recorded sound on an Arduino requires a shield like this one.

You can also play tones.

Pages: [1]   Go Up
Jump to: