Go Down

Topic: Button that plays mp3/wav sound file on laptop (Read 1 time) previous topic - next topic

dxw00d

Quote
Do I have to do that in the code, or with the Arduino software?


Both. Have a look at the Serial I/O -> SimpleRead example in Processing. At the bottom of the sketch, in a comment block, is a simple Arduino sketch that sends the result of a digitalRead() over Serial. The example sketch changes the colour of a rectangle, but you can add your Minim code to it.

BlackDynamite

Thanks! I deleted the comment section and replaced it with the Minim code. h

ttps://gist.github.com/4215638

But i get this warning (see attachment)

Grumpy_Mike

You can only have one setup and draw function in a sketch. You have to merge the codes.
Most likel you don'tknowhow to do that. It's one of the problems that cut and paste programming gives you. You will have to learn at least the very basics of what you are doing.
Try a few of the examples and get a feel for what you are doing.

BlackDynamite

I understand what you mean. Unfortunately I don't have much time.. But really thanks for the thinking and helping me out. I'm going with this information to my teacher and hope he can help me complet the project..

Cheers

Go Up