I was inspired by this video i saw on Vimeo that makes tones that produce a circle which represents the sound. I wanted to create an interactive application like this that you can abstractly create different tunes, and lets you see the effect visually. I decided i want a similar sound to that, a tonal scale of notes.
So I had a few boxes. Now i needed to add interaction. I looked at the processing website and other sites that gave me examples of interaction. I learned about the mouse functions such as mouse clicked and mouseDragged and researched everything relevant to them.
I looked at some examples of mouse clicked functions and extracted these qualities you could produce:
Definition - mouseClicked function - called when the mouse is pressed and released and changes the value of an object
Click and the object is instantly at your mouse - uses mouseX and mouseY to position
Gradual attraction - click and the object/s gradually go toward the mouse
Repel - click and the object/s run away from the mouse
On the mouse(mouseMoved) - moving the mouse across the screen automatically changes the value of the object, as it stays on the pointer
Change in form/colour - click and the form either completely changes to a random state or the colour changes
Creates sound/movement
Changes value depending on the position of the mouse click - uses pmouseX and Y
Changes value depending on the position of the mouse - ie change in colour in different areas
I looked at some examples of mouse clicked functions and extracted these qualities you could produce:
Definition - mouseClicked function - called when the mouse is pressed and released and changes the value of an object
Click and the object is instantly at your mouse - uses mouseX and mouseY to position
Gradual attraction - click and the object/s gradually go toward the mouse
Repel - click and the object/s run away from the mouse
On the mouse(mouseMoved) - moving the mouse across the screen automatically changes the value of the object, as it stays on the pointer
Change in form/colour - click and the form either completely changes to a random state or the colour changes
Creates sound/movement
Changes value depending on the position of the mouse click - uses pmouseX and Y
Changes value depending on the position of the mouse - ie change in colour in different areas
MouseDragged
Change in size or form - clicking and dragging the mouse changes a value depending on the direction and position of the mouse and drag
Change in tone/pitch - dragging causes the sound to change in melody or frequency
Drag - drags an object across the screen
Trail - dragging an object leaves a trail of some sort
Push - Dragging pushes objects around an invisible forcefield around the mouse
Rotate - dragging in a circular motion rotates an object making it seem 3D