Showing posts with label processing. Show all posts
Showing posts with label processing. Show all posts

Thursday, November 3, 2011

Birdie Installation

I haven't come up with a name for it yet, but I'm putting together an interactive video installation for the Lansing Media Theater Project (which may or may not have a new title these days).   Professor Alison Dobbins gave me a prompt of making something with Boids, and I thought she was spelling it funny.  Turns out, it's a flocking thing, and Processing has a demo patch built into its examples.  I was up super early today, so I made a pretty solid start to the whole thing.  Here's what happens:

  1. Birds fly on the screen
    1. They flock using this Boids stuff
      1. Each bird is an instance of the Boid class, called by the Flock class, which is started in the main patch
    2. They flap!
      1. actually, it's just a picture of a bird that is alternately squished and not squished. :)
  2. Three ways to interact with the birds so far
    1. Whistle a descending third, and a new bird is born
      1. Pure Data and Processing are talking over Open Sound Control, and Pd listens for a note in whistling range, then waits for a note somewhere between 2 and 5 half-steps lower.  If it hears it, it tells Processing to make a new bird/Boid
      2. There is also a tweet sound :)
    2. Make a noise too loud, and the birds go away for a while all flustered
      1. There's a decibel threshold in Pd that, when crossed, tells Processing that the birds are "scared" and the boundaries of the screen are removed, allowing the birds to disappear
      2. You also hear a fluttering sound, as the general bird noise loop fades out
    3. Wave something green in front of the camera, and you can herd the birds on the screen.
      1. There is a grid made out of groups of the pixels from the camera.
      2. Each group is checked to see if it is mostly green
      3. If it is, it is recorded in an ArrayList
      4. Then, a function checks how far the elements in the ArrayList go left, right, up and down, and draws a box around the whole thing (drawn as an ellipse on the screen).
      5. That box is now an object that the birds avoid.
As I learn more about capturing video from my screen, I'll post more detailed things with pictures and such.  Here's one!


Wednesday, July 27, 2011

cueStick...

It may be early to post about this, but my friend Dave and I have an idea.  Numbers are nice inside the computer, but they're even better in a funny little box.  With JeeNodes, some java and shift registers, you can get just that!  This idea is more developed than that, I promise, but like I said, it may be early to post about this.  Here are some pictures:

Monday, May 11, 2009

Ears as drivers

Ok, so this post is the result of a few things I hadn't gotten to work before. I don't know much about Java, so embedding this Processing applet in this blog is a big step for me. : )



This is me playing around with Processing to try to draw a picture to show my brother how I wanted to use amplitude information from the two mics on the sides of our ball project. Left is white, Right is red, and the difference between the length in the two lines makes the ball turn. It needs to stop listening when it gets too close, or when the difference is too small, and it will.

Processing uses very similar coding to Arduino, the hardware microcontroller system I like to use, so writing code in one gets me closer to having code in the other. : ) fun

Click on the window! (if it actually shows up, that is. :) ) clicking represents a sound happening in that field.








































This browser does not have a Java Plug-in.



Get the latest Java Plug-in here.












Source code: wood_move3