Work together in a small group to integrate the tools you've acquired to create a new musical instrument.
Using Sound with Processing: Example
The easiest method I've found for playing sounds in Processing is using the "Minim" sound plugin. You can download it and read the documentation at http://code.compartmental.net/tools/minim/. Note that the Manual is not completely written yet, but many of the key features are documented there.
The easiest way to play a sound with Minim is to use "sound snippets", as in the Processing (NOT Arduino) code shown below. Before using this code you'll need to install Minim as described on its website and put the attached sound file in the same directory as your Processing code.
import ddf.minim.*;
import ddf.minim.signals.*;
AudioSnippet snippet;
void setup()
{
size(100, 100);
Minim.start(this);
snippet = Minim.loadSnippet("Submarine.aiff");
}
void draw()
{
}
void keyPressed()
{
if ( key == 'p' )
{
snippet.play();
snippet.rewind();
}
}
void stop()
{
snippet.close();
}
Another possibility is Ess (http://www.tree-axis.com/Ess/index.html). The website has several cool examples.
Submarine.aiff 168.01 KB