My first sketch is a simple Lissajous curve out of a live audio input. I
borrowed some code from a Minim example and a sketch from
OpenProcessing.org.
I used the RMS values from the audio buffer to determine the sound and
location of each plot. These changes aren't radical but they add some
flavour. Enjoy!
I enrolled for the O'Reilly class on Processing and Arduino and it
starts in 30 minutes. I am hoping that it becomes useful. I do like
controlP5 as a library for guis.
In the meantime I did a few utils. I have an easy save mechanism thanks
to saveFrame() in Processing. I also have some sketch code for recording
video. Surely this will change over the month but these are things that
I thought would be important to start.
I think I may also start a template sketch so I can get straight to my
idea. I'll be sure to put it up if I get to it.
import processing.video.*;
MovieMaker mm; // Declare MovieMaker object
/*
// copy to setup() to activate
mm = new MovieMaker(this, width, height, "mysketchoutput.mov",
frameRate, MovieMaker.H263, MovieMaker.HIGH);
// copy to the end of draw()
mm.addFrame();
*/
void captureEvent(Capture myCapture) {
myCapture.read();
}
void mouseReleased(){
println(frameRate);
}
void keyPressed(){
if(key == ' ')
saveFrame();
if (key == 'f')
println(frameRate);
if(key == 's' & mm != null)
mm.finish();
}
I just changed the way the url mechanism works and it looks like if you
subscribe via RSS then all of the blog looks new to your reader. Sorry!
Finally I am going to be staying at home for some length of time. I have
a few goals for the next few months to forward my practice. I need to
improve my Processing.org skills and learn some new tricks to get my
next project done. To that end I am committing to the Creative Pact 2010
in order to keep myself motivated.
Every day in September I will put up a new post about something creative
I have done in Processing. I was thinking that every post would be audio
+ visuals but I think I am going to keep it manageable. I don't know if
I will have more than an hour a day to be creative since school starts
soon. Weekends will likely have bigger projects, as I will have more
time on those days.
I am hoping to learn some more about Minim, controlP5, GLGraphics and
OpenGL in general as I create this stuff.
For all you Processing experts watching please comment and show me how
to improve my code, coding, and inspiration for visuals. Even links to
things would be super helpful.
I am going to build a few tools for the next few days so I can take some
screenshots and videos easily to post for y'all. I will put them here in
case they are useful for you too.
I took a bunch of pictures and then pasted them together with
convert $(ls *JPG | sort -n -r) $(ls *JPG | sort -n) -layers OptimizePlus paper.gif
convert is a tool from the free ImageMagick package. The sort command
organizes the files into numerical order (great for those file names
that cameras tend to import). The -r flag reverses the set in the first
sequences and then I remove it for the second sequence so it loops
nicely. Again, you may have to click on the picture and let it load a
second before you get a nicely looping image.
← newer
::
older →