Go Down

Topic: Creating Soundboard with mp3/wave files in Processing (Read 726 times) previous topic - next topic

fantasychic047

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.

















CrossRoads

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.
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.

Pauly


Go Up