I'm new to processing and need some help to implement the robot class with the Sonia audio library.
I'm making an exhibition module where there will be a disc that starts spinning when you approach it. As it starts spinning, music starts playing (like a turntable). After about 30s, the motor spinning the disc shuts off and the disc slowly stops spinning/music slowly stops playing. Visitors can also touch the disc to brake it and slow down the music (but not play it backwards).
I was thinking I could use the Sonia sample rate example (
http://sonia.pitaru.com/examples/Sample/applet/index.html) for this and put an optical mouse beneath the disc so when the disc is spinning it keeps the mouseY at max (and sample rate). But, I need the Robot class (
http://wiki.processing.org/w/Robot_class) to counteract the mouse movement and try to move it back to mouseY=0 when the disc stops spinning.
Can someone help me with this, or if you have a better way to do it?