Right now im working on a project, where i want to use an audiosignal to trigger a video and i have to admit, that even though i am somewhat new to processing i find myself building a cathedral. So: HELP! PLEASE!
A repeating Audiosignal triggers several functions:
a) It should save a frame (A) of an attached camera.
b) Everytime a new frame (B) is saved the old one should be drawn. ("Visible on the screen")
Whenever Frame A is drawn, Frame B becomes Frame A and a new Frame B is saved.
c) In between those two frames should be a blackscreen. ("Which should also be triggered by a second audiosignal {best case scenario} or by time")
void setup ()
{
size (400, 400);
// println(Capture.list()); //Ruft eine Liste mit allen Videodevices auf (@Konsole)
minim = new Minim(this);
minim.debugOn();
in = minim.getLineIn(Minim.STEREO, 512);
myCapture = new Capture (this, 400, 400, "USB Video Class Video");
//regelt die fps; variable="cam"; syntax="cam.frameRate();
//myCapture.frameRate(30);