Thursday, 14 April 2011

Where I am now.

http://www.openprocessing.org/visuals/?visualID=27112

So this is my final sketch to date, instead of drawing a line, I modified the line so it's small, and the pmouseX and pmouseY make the line look kind of insect like as it moves around, and the ball looks like it's trying to catch the insect, the sound is created when the ball catches up with the insect!

import ddf.minim.*;
import ddf.minim.signals.*;
import ddf.minim.analysis.*;
import ddf.minim.effects.*;
Minim m;
AudioPlayer mySound; 


float x = 250;
float y = 50;
float directionx = 1;
float directiony = 1;

 void setup (){
  size(500,500);
    background(0);
    m=new Minim(this);
  mySound=m.loadFile("Finger-sna.wav");
    
  }

  


 void draw (){
  smooth();
 float d = dist (x, y, mouseX,mouseY);
 background(0);
 ellipse(x,y,50,50);






 x=x+directionx;


directionx=(mouseX-x)/15.0;


  y+=directiony;


directiony=(mouseY-y)/15.0;


    if (mousePressed && d <= 30) {
        mySound.rewind();
     mySound.play();
     
      smooth();
      stroke(255);
      line(mouseX,mouseY,pmouseX,pmouseY);
    }else if (mousePressed) {
      smooth();
      stroke(255);
      line(mouseX,mouseY,pmouseX,pmouseY);
    }
    

   
}

First try at Concept Two.


This is a screen shot of my first try at my concept. The ball was following the mouse and the line wouldn't stay where I drew it, there is no sound at this point. It's not finished obviously but a pretty monumental step for me, getting the ball to move and getting the mouse to draw a line!



float x = 250;
float y = 50;
float directionx = 1;
float directiony = 1;

 void setup (){
  size(500,500);
    background(0);
    
  }

 void draw (){
  smooth();
 background(0);
 ellipse(x,y,50,50);

 x=x+directionx;


directionx=(mouseX-x)/15.0;


  y+=directiony;


directiony=(mouseY-y)/15.0;

 if (mousePressed) {
   
      smooth();
      stroke(255);
      line(mouseX+55,mouseY+55,pmouseX,pmouseY);
    }

   
}


More Research

On OpenProcessing I found this sketch, this image doesn't do it justice but I really enjoy the way it follows the mouse, nice and smooth. Basically two balls follow your mouse around as you move it, if you scroll more balls appear and it forms a chain, the link is below.

http://www.openprocessing.org/visuals/?visualID=1305

Rethink of ideas..

After talking to my tutor and listening at the lectures I have come to the conclusion that my initial idea won't be interesting enough, as I would be over using 'mouse click' function. So I did some very rough sketches of other possible concepts. With these concepts I want to use more of the mouse moving so it's not as much effort for the user.

Research and inspiration

I found this sketch on OpenProcessing, I really liked the way it moved and its fluidity. This is just a screen shot of it but the link is here as well.

http://www.openprocessing.org/visuals/?visualID=8994