Go Down

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


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.


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


But i get this warning (see attachment)


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.


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


Go Up