hi
i am using a mac book pro osx 10.8.1 and an external display. i do not use them synchron but as seperate displays. each of them has an inbuilt webcam.
2 questions
1.
if i use a script which uses the webcam - it seems as if the computer could not decide, which cam it shall use. besides it takes extreamly long until something happens at all.
how can i decide, which cam the computer shall use?
2. if i use the inbuilt webcam, the picture i get is always reverse - if i move to the right - the picture moves to the left.
is there any simle way to flip it that it works like a mirror?
hi
i am trying to save a picture in two parts and continously numbered
the simple script which saves the whole picture ist below.
how can i split it in two separate and continously numbered pictures?
thanks for your help!
void setup(){ size (800,400);
}
void draw(){
if(mousePressed){ //right side stroke(255,0,0); strokeWeight(1); //left side line(mouseX, mouseY, pmouseX, pmouseY); stroke(0); line(mouseX-width/2, mouseY, pmouseX-width/2, pmouseY); } }
void keyPressed(){
if (key == 's') { saveFrame("left-###.png"); saveFrame("right-###.png"); } }
hi
i am using minim to generate a pip from value 1000 to 1100 - so far so good - it works
but it says in the console below:
=== Minim Error ===
=== Likely buffer underrun in AudioOutput.
i have no idea what that means but it works
but
if i want to do another pip at value 2000 to 2100 it does not work anymore. it seems as if it would only work once?
can anyone help?
here is part of the code concerning the pip
import ddf.minim.*; import ddf.minim.signals.*;
Minim minim; AudioOutput out; SineWave sine;
void setup() {
size(842,566); background(255); smooth();
//pip minim = new Minim(this); // get a line out from Minim, default sample rate is 44100, default bit depth is 16 out = minim.getLineOut(Minim.STEREO, 2048); // create a sine wave Oscillator, set to 440 Hz, at 0.5 amplitude, sample rate 44100 to match the line out sine = new SineWave(440, 0.5, out.sampleRate()); }
void draw() { background(255); stroke(0);
//pip again if ((value > 1000) && (value < 1100)) { out.addSignal(sine);
} if (value > 1100) { out.close(); minim.stop(); }
if ((value > 2000) && (value < 2100)) { out.addSignal(sine); } if (value > 2100) { out.close(); minim.stop(); } }
hi
if i want to save a picture with saveFrame("bild.png") and open it in photoshop, it shows a dpi of 72. is there a possibility to safe pictures with 300 dpi?
thanks for help
hi
I have to draw lines with the mouse of the length of 36090 pixels. Then I have to export these pixels into a picture which I can print with a hight enough resolution (at least 200 dpi). processing works with 72 dpi an there is no way to change it - right? Or ist there a way to change the resolution within processing?
The only way I see, is save it as a vector-file. All I found is exporting as pdf. now I always get the message, that the memory in preferences might be to small. It says:
OutOfMemoryError: You may need to increase the memory setting in Preferences
I opend the preferences - there are tree lines with the word memory
run.options.memory=false
run.options.memory.initial=64
run.options.memory.maximum=256
I took the last one and changed it up to 25600
but it did't help at all.
does anybody know, what I can do?
thanks for help!
hi
i would like to make a free line drawing that uses 10 meters. how can i track the mouse or mesure the path the mouse used to make the drawing.
anybody a good and hopefully simple idea?
thanks for help
blindschleiche