I am reading the 'Getting started with Processing' book and I am doing now example 10-8: filling an array in a for Loop.
I copied the code and run the sketch which works without any problem but the console shows me an error message. Could anyone tell what this means? Hereunder you can find the code followed by the error message.
================
float[] gray;
void setup() {
size(240, 120);
gray = new float[width];
for(int i = 0; i < gray.length;i++) {
gray[i] = random(0,255);
}}
void draw() {
for(int i = 0; i <gray.length;i++) {
stroke(gray[i]);
line(i,0,i,height);
}}
================
2011-02-28 18:23:12.858 java[14222:170f] *** Assertion failure in -[CocoaAppWindow _changeJustMain], /SourceCache/AppKit/AppKit-1038.35/AppKit.subproj/NSWindow.m:9470
2011-02-28 18:23:12.880 java[14222:170f] *** CPerformer: ignoring exception 'Invalid parameter not satisfying: [self canBecomeMainWindow]' raised during perform of selector 'requestFocus:' on target 'FocusManager' with args '<AWTComponentSetFocusData: 0x116e890>'
I would like to use processing to playback movies, however I would like to use the interface I made in maxMSP (basically 5 buttons)to control the playback. I want to use processing because the framerate drops fast. Can anyone put me on the right track? the scheme is:
MaxMSP to start playback, processing to do the playback (video and sound).
Anyone can tell me where to find vj apps made in processing? A friend asked me to do some visuals at his recital and I thought Processing would have such implementations, however I find almost nothing really interesting.
I just have downloaded the sonia library but when I start the sketch I always get an error that "the package "pitary" does not exist. You might be missing a library." I have made a folder inside the processing folder called libraries and i have put all sonia files in there. Anyone knows the solution?
$for an installation I should record video and sound (it is a kind of interview). Currently I am using MaxMSP but I would like to change to processing for various reasons. However, it seems that one cannot record video and sound at the same time. I hope I am wrong here but can anyone lead me to some example code where I can see how to record video and sound simultaneously?