Hi there, I'm working on a project and I need to make Processing to play a video when someone opens a door.
I'm using a magnetic sensor that detects whenever a door is open or closed and I'm using the same code for turning on and off a led with a button from the arduino site (
http://arduino.cc/en/Tutorial/Button).
The thing is that I don't know how to read in processing the state of the sensor. Any help?
Hi! I have this code and and want that when the red ball bounces upon the white line (that follows mouseY) plays a sound. But what I got is that the sound is played one time after another inmediatellly.
I have an applet on my site and I have a menu (fixed position on top), the thing is that when I scroll down the applet is over the menu and I don't know how to fix it.
I tried placing an iframe under the div that contains the menu and it is working but I can't center horizontally the iframe, so I want to know if there is other way
Thanks!
ps, this is the site in case you want to take a look
I`m working on a project for a class with some mates and we are using the minim library to make an interactive app for user to "play" in some way or experiment with drawings and sounds.
The thing is that I can`t get the library to work while working with objects/classes. This is a simple example that shows what the problem is: I have two classes Circulo and Cuadrado, the first one draws an ellipse and the second draws a rectangle, I am trying to make this to also play a sound, I mean, I want that Circulo draw an ellipse and play a sound, and that Cuadrado draw a rectangle and play another sound.
I don`t know where to call for minim library, If i call it inside Circulo or cuadrado then I get errors on the "main" code (which makes sense), also the stop function doesn't work neither in Circulo nor Cuadrado..
If you could give any help with this it`d be great!
The thing is that I downloaded the code and tried to run on processing (1.5) but it is old and it doesn't work, I'm trying to update it but with no result.
I only have interest in the "black background with starts" , I'm not planning to make it work with any video, only to simulate some space climate or something like that.
If anyone could give any help on updating the code that'd be great!