Pages: [1]   Go Down
Author Topic: Creating Soundboard with mp3/wave files in Processing  (Read 564 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
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')) {
      player.play();
    }
}

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.
















Logged

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

Try some of the Button tutorials on the learning page
http://arduino.cc/en/Tutorial/HomePage

You can use a button press to play a tone or melody.
http://arduino.cc/en/Tutorial/Tone


Or get fancier and get a sound module
http://www.mdfly.com/index.php?main_page=product_info&cPath=9_53&products_id=284
and when a button is pressed, send a command to the sound module to play a music file.
Logged

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

Boston
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.
http://adafruit.com/products/94

You can also play tones.
http://www.google.com/url?q=http://www.arduino.cc/en/Reference/Tone
Logged

Pages: [1]   Go Up
Jump to: