We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I am looking to create a sketch where a different sound plays depending on mouse location in a venn diagram. At it's simplest, one sound plays within the circle closest to A and another plays within the circle closest to B. Both sounds play where the two circles overlap.
Ultimately I would like to have a different sound playing for every overlapping section of the diagram.
I am new to processing and would appreciate any help you guys can give.
Answers
So... what? You want us to write it all for you, from scratch?
Maybe you could clue us in on what you have working already.
Do you have a sketch that can play sound?
Can you draw circles?
Do you know how mousePressed() and mouseX and mouseY work?
Ever used dist()?
Post the code of what you have working already. Otherwise we're stuck with nothing to work on, and no clue what parts you have working and don't.
Hi, thanks for getting back to me. So, this is what I have so far. I can get the sound to play for both, and when I overlap the circles both sounds play.
At the moment I'm trying to figure out how to make the trigger area fit the circle better (at the moment it seems to be a square). After that I need to figure out how to create the same effect but with concentric circles. :-S
Any help? Looking to make sure the hover area fits the circle.
Thanks TfGuy44.
This is super helpful and is what I am trying to achieve. However, I have spent about two hours staring at this and I cannot figure out how to combine it with the sound I had in my first sketch. My lack of experience with this is super frustrating.
As far as I can see, the advantage of the the 'doorbell' class I used in my first sketch is that I have the ability to overlap each doorbell to make two or more sounds play. Is this possible with the code you provided? How do I combine this with minim? Argh. Thanks for being patient.