Hello everyone;
I am very very new to all this stuff and i have a project to do. So basically i wrote a working code that plays music in processing and i need to transfer this code to arduino. Can you show me how to do?
The project is; air will be blown out from a tube and this will trigs the air pressure sensor (mpx2100ap) and music will start to play.
code in processing;
import processing.sound.* ;
int song;
SoundFile file;
void setup() {
size(640, 360);
background(255);
// Load a soundfile from the /data folder of the sketch and play it back
file = new SoundFile(this, "spirit.mp3");
file.play();
}
void draw() {
}