Adam's Blog
×

O'Reilly Class

Tuesday August 31, 2010
Category: Creative Pact 2010

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();
}

←   newer :: older   →