i'm developing a project about a vinil on processing.
I putted a background sound on program, now i want call a new song on project when mouse moved.
The idea is, when i move the mouse ( mouse position changes ) it will stop the background sound and starts another sound ( scratch sample sound ), then when mouse movement stops, the background sound continuous.

however, dont know what to do for that works..

Anyone helps?