Second, Malians who are fleeing fighting in the north must be allowed to enter the south of the country unmolested. There are already alarming reports of jihadist groups keeping civilians from leaving conflict areas. And while such inexcusable 49ers vs Falcons Live stream - Falcons vs 49ers Live stream - san Francisco 49ers vs Atlanta Falcons Live stream - Atlanta Falcons vs San Francisco 49ers Live stream - Patriots vs Ravens live stream - Ravens vs Patriots live stream - New England Patriots vs Baltimore Ravens live stream - Baltimore Ravens vs New England Patriots live stream - 49ers vs Falcons Live stream - Falcons vs 49ers Live stream - San Francisco 49ers vs Atlanta Falcons Live stream - Atlanta Falcons vs San Francisco 49ers Live stream - Patriots vs Ravens live stream - Ravens vs Patriots live stream - New England Patriots vs Baltimore Ravens live stream - Baltimore Ravens vs New England Patriots live stream - NFC Championship Game 2013 live stream - NFC Championship Game 49ers vs Falcons live stream - NFC Championship Game Falcons vs 49ers live stream - NFC Championship Game San Francisco 49ers vs Atlanta Falcons live stream - NFC Championship Game Atlanta Falcons vs San Francisco 49ers live stream - AFC Championship Game 2013 live stream - aFC Championship Game Patriots vs Ravens live stream - aFC Championship Game Ravens vs Patriots live stream - aFC Championship Game New England Patriots vs Baltimore Ravens live stream - aFC Championship Game Baltimore Ravens vs New England Patriots live stream - live stream
↧
need to address
↧
Re : No font in exported PDF
That's what I tried... (except I just put the TTF font in the data folder).
Aha, looking at my sketch, I see I made a beginner's error: I had the textFont() call before the beginRecord()! Moving it after do render the font in the file.
Sorry for the confusion. Glad you solved the problem yourself.
Aha, looking at my sketch, I see I made a beginner's error: I had the textFont() call before the beginRecord()! Moving it after do render the font in the file.
Sorry for the confusion. Glad you solved the problem yourself.
↧
↧
Error opengl without using opengl?
I use Processing: Version 2.0b7
I have always this error:
OpenGL error 1280 at bot beginDraw(): invalid enumerant
this is my simple code:
void setup() {
size(400, 300, P3D);
}
Can you help me please?
thank you.
I have always this error:
OpenGL error 1280 at bot beginDraw(): invalid enumerant
this is my simple code:
void setup() {
size(400, 300, P3D);
}
Can you help me please?
thank you.
↧
Java Error in processing Mac OS X 10.7.5
Hello,
I'm trying to interface with an Ardunio using the serial library and am getting this error
RXTX Warning: Removing stale lock file. /var/lock/LK.032.018.004
gnu.io.PortInUseException: Unknown Application
at gnu.io.CommPortIdentifier.open(CommPortIdentifier.java:354)
at processing.serial.Serial.<init>(Unknown Source)
at processing.serial.Serial.<init>(Unknown Source)
at RotatingArcs.setup(RotatingArcs.java:29)
at processing.core.PApplet.handleDraw(PApplet.java:2117)
at processing.core.PGraphicsJava2D.requestDraw(PGraphicsJava2D.java:193)
at processing.core.PApplet.run(PApplet.java:2020)
at java.lang.Thread.run(Thread.java:680)
Exception in thread "Animation Thread" java.lang.RuntimeException: Error inside Serial.<init>()
at processing.serial.Serial.errorMessage(Unknown Source)
at processing.serial.Serial.<init>(Unknown Source)
at processing.serial.Serial.<init>(Unknown Source)
at RotatingArcs.setup(RotatingArcs.java:29)
at processing.core.PApplet.handleDraw(PApplet.java:2117)
at processing.core.PGraphicsJava2D.requestDraw(PGraphicsJava2D.java:193)
at processing.core.PApplet.run(PApplet.java:2020)
at java.lang.Thread.run(Thread.java:680)
I've tried Ellen's solution listed below, not luck. Any suggestions?
Thanks!
↧
Re : Processing 2.06 OpenGL error I don't understand
i have the same problem. I try to run a processing code from eclipse. i receive this execption. i have installed the new version on ubuntu 11.10. Can help me somebody? thanks:
Execption:
java.lang.NoClassDefFoundError: javax/media/opengl/GLException
at processing.opengl.PGraphicsOpenGL.<init>(PGraphicsOpenGL.java:519)
at processing.opengl.PGraphics3D.<init>(PGraphics3D.java:37)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
at processing.core.PApplet.makeGraphics(PApplet.java:1744)
at processing.core.PApplet.size(PApplet.java:1596)
at processing.core.PApplet.size(PApplet.java:1567)
at example.Test.setup(Test.java:52)
at processing.core.PApplet.handleDraw(PApplet.java:2117)
at processing.core.PGraphicsJava2D.requestDraw(PGraphicsJava2D.java:193)
at processing.core.PApplet.run(PApplet.java:2020)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.ClassNotFoundException: javax.media.opengl.GLException
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
... 14 more
Exception in thread "Animation Thread" java.lang.RuntimeException: javax/media/opengl/GLException
at processing.core.PApplet.makeGraphics(PApplet.java:1769)
at processing.core.PApplet.size(PApplet.java:1596)
at processing.core.PApplet.size(PApplet.java:1567)
at example.Test.setup(Test.java:52)
at processing.core.PApplet.handleDraw(PApplet.java:2117)
at processing.core.PGraphicsJava2D.requestDraw(PGraphicsJava2D.java:193)
at processing.core.PApplet.run(PApplet.java:2020)
at java.lang.Thread.run(Thread.java:722)
↧
↧
Re : Processing 2.06 OpenGL error I don't understand
Hi, you can find a list of controlP5 versions that work with the various/previous releases of processing including 2.0b6 and 2.0b7, have a look here http://code.google.com/p/controlp5/downloads/list
↧
No library found for com.sun.opengl.util
After updating to processing 2.0b7 I get :
"No library found for com.sun.opengl.util" - The package "com.sun.opengl" does not exist, .
(MacOSX 10.8.2, Nvidia GeForce GT 650M 1024MB, Java 1.7)
And its true, there is no OpenGL library in (File/Examples/Libraries/?) or in the Processing package
(Contents/Resources/Java/Modes/Java/Libraries/?)
Can someone point me in a direction?
↧
Adding sound to this counter
I have this counter, its pretty simple. But i'm wanting to add an mp3 I have playing over the top on repeat?
Do I look at minim?
PFont myFont = createFont( "Helvetica-Light", 120);
void setup(){
size(1500, 1500);
textFont( myFont );
}
void draw(){
background(0,0);
text( ""+ (float)millis()/ 142800.0, 175, 750);
text("gallons", 950, 750);
}
↧
String to number, serial port?
I want Processing to get a number from a website and send it via the serial port to Arduino. When I get the data from the internet I use a string which gives a number. I want to compare this number with another one and then send it to the serial port, but it does not work. Do I have to convert the string first? How can I get a number from it?
Thank you for your help!!
Thank you for your help!!
↧
↧
Re : No library found for com.sun.opengl.util
Hint: when you have such error, it can be useful to search for the package name in the Processing site...
For example, I found back an old thread: https://forum.processing.org/topic/problem-with-com-sun-opengl-util
For example, I found back an old thread: https://forum.processing.org/topic/problem-with-com-sun-opengl-util
↧
Re : Adding sound to this counter
Yes.
↧
Re : Adding sound to this counter
Everytime I add the Minim library and type in the code. It comes up with a blank grey screen and doesn't stalls my macbook. This is the code? I guess its wrong? Any help would be most appreciated.
Thanks x
import ddf.minim.*/
import ddf.minim.signals.*/
import ddf.minim.analysis.*/
import ddf.mnim.effects.*/
Minim minim;
AudioPlayer Sou;
PFont myFont = createFont( "Helvetica-Light", 120);
void setup(){
size(1500, 1500);
textFont( myFont );
minim = new Minim(this);
sou = minim.loadFile("iPhone-Ding-1.mp3");
sou.loop();
}
void draw(){
background(0,0);
text( ""+ (float)millis()/ 142800.0, 175, 750);
text("gallons", 950, 750);
}
↧
Swapping out Video Files
Hello
I have created a program that loads multiple instances of the same video. On playback it copies a vertical section of each video to the stage at the correct position (8 sections), essentially re-creating the original clip. The reason for doing this is that each section is controlled by a live audio input allowing me to jump to different times, alter playback speed etc. for each of them individually.
All is working fine, but I am now trying to implement a feature that allows you to select a different video clip to load and this is giving me some playback issues. I can load and replace the video with no problems (program freezes on loading new clip but this is fine) but once loaded the new video plays back slowly and the frame rate drops significantly.
I am guessing this has something to do with the fact that the old videos are not being removed from memory? and am unsure as to how to do this. have had a look through the forums and tried 'System.gc();' but has achieved nothing.
I have posted the section of code that deals with setting up and loading the video below and was wondering if anyone had any suggestions?
- String vidFile = "chile - 151.mov"; //stores current video file path and name
- void initVideo() {
- // Loading the movies into the array
- for (int i = 0; i < myMovies.length; i ++ ) {
- myMovies[i] = new Movie(this, vidFile);
- myMovies[i].loop();
- }
- // Initializing all the elements of the array (video objects)
- for (int i = 0; i < sections.length; i++) {
- sections[i] = new Section(i);
- }
- }
- //called via selectInput() when new video file is selected
- void fileSelected(File selection) {
- if (selection == null) {
- println("Window was closed or the user hit cancel.");
- }
- else {
- vidFile = selection.getAbsolutePath();
- initVideo(); //re-initiate video
- }
- }
Hope this makes sense. Thanks
↧
↧
Re : No library found for com.sun.opengl.util
Thanks PhiLho, but I started my search with this thread..
↧
Re : String to number, serial port?
int number = int(string);
↧
Re : Swapping out Video Files
Just in case anyone has any similar problems I seem to have solved this by stopping (movie.stop()) all the movies before initiating the new ones.
- //called via selectInput() when new video file is selected
- void fileSelected(File selection) {
- if (selection == null) {
- println("Window was closed or the user hit cancel.");
- }
- else {
- for (int i = 0; i < myMovies.length; i ++ ) {
- myMovies[i].stop();
- }
- vidFile = selection.getAbsolutePath();
- initVideo(); //re-initiate video
- }
- }
↧
smooth values (minim FFT)
HI,
I'd like to understand how can I smooth values: in particular FFT values. I'm using Minim library for a reactive video with music. For example, checking the console with println(fft.getBand(1), I can see that the numbers range from high to low too quickly (20.434664,13.539619, 9.14274, 0.24576, 29.752283, 31.745985); the results is a epileptic video
How can I smooth these values?
↧
↧
While trying to merge an audio example with an open file dialogue -> I get GLExeption: cannot call invokeAndWait?
Hi I have found this audio-pde at http://www.ee.columbia.edu/~dpwe/resources/Processing/.
As I have no clue on how to learn about audio-filters elsewhere, I am trying to learn from that code, by editing it, and merging it in to something more useful.
Processing.org has this example on how to open a file for 'processing it' : http://www.processing.org/reference/selectInput_.html
As I try to merge the two (as followed):
import ddf.minim.analysis.*;
import ddf.minim.*;
Minim minim;
AudioPlayer sound;
FFT fft;
Filter filter;
boolean paused = false;
// spectrum display configuration
int buffer_size = 2048; // also sets FFT size (frequency resolution)
float gain = 40; // in dB
float dB_scale = 2.0; // pixels per dB
int spectrum_height = 200; // determines range of dB shown
int legend_height = 20;
int spectrum_width = 512; // determines how much of spectrum we see
int legend_width = 50;
// filter properties
float centerFreq = 1000;
float bandwidth = 500;
String fselR = "";
void setup()
{
try{
selectInput("Select a file to process:");
}
catch(Exception e){
}
// size(legend_width+spectrum_width, spectrum_height+legend_height, P2D);
// size has to be explicit for the applet export to extract it correctly
size(562, 220, P2D);
//textMode(SCREEN);
textFont(createFont("SanSerif", 12));
minim = new Minim(this);
sound = minim.loadFile(fselR, buffer_size);
// sound = minim.loadFile("sound.mp3", buffer_size);
// make it repeat
sound.loop();
// create an FFT object that has a time-domain buffer
// the same size as line-in's sample buffer
fft = new FFT(sound.bufferSize(), sound.sampleRate());
// Tapered window important for log-domain display
fft.window(FFT.HAMMING);
// create a filter and insert it
filter = new Filter(centerFreq, bandwidth, sound.sampleRate());
sound.addEffect(filter);
}
// Convert a spectrum value into a y pixel position
int spectrum_y(float bandval)
{
float val;
if (bandval > 0) {
val = dB_scale*(20*((float)Math.log10(bandval)) + gain);
} else {
val = -200; // avoid log(0)
}
int y = spectrum_height - Math.round(val);
if (y > spectrum_height) { y = spectrum_height; }
return y;
}
String fileSelected(File selection, String fses) {
try{
if (selection == null) {
println("Window was closed or the user hit cancel.");
} else {
println("User selected " + selection.getAbsolutePath());
fselR = selection.getAbsolutePath();
}
}
catch(Exception e){
fselR = "";
}
return fselR;
}
void draw()
{
etc...
- - -
(the italic lines: is my own merging code)
The compiler complains about "GLExeption...: cannot call invokeAndWait..." as if the main audio-example won't permit me to have a pause in execution, where selected input of a pickable *.mp3 is put into the system as a string varible (to be used at: sound = minim.loadFile(fselR, buffer_size);)
As I have no clue on how to learn about audio-filters elsewhere, I am trying to learn from that code, by editing it, and merging it in to something more useful.
Processing.org has this example on how to open a file for 'processing it' : http://www.processing.org/reference/selectInput_.html
As I try to merge the two (as followed):
import ddf.minim.analysis.*;
import ddf.minim.*;
Minim minim;
AudioPlayer sound;
FFT fft;
Filter filter;
boolean paused = false;
// spectrum display configuration
int buffer_size = 2048; // also sets FFT size (frequency resolution)
float gain = 40; // in dB
float dB_scale = 2.0; // pixels per dB
int spectrum_height = 200; // determines range of dB shown
int legend_height = 20;
int spectrum_width = 512; // determines how much of spectrum we see
int legend_width = 50;
// filter properties
float centerFreq = 1000;
float bandwidth = 500;
String fselR = "";
void setup()
{
try{
selectInput("Select a file to process:");
}
catch(Exception e){
}
// size(legend_width+spectrum_width, spectrum_height+legend_height, P2D);
// size has to be explicit for the applet export to extract it correctly
size(562, 220, P2D);
//textMode(SCREEN);
textFont(createFont("SanSerif", 12));
minim = new Minim(this);
sound = minim.loadFile(fselR, buffer_size);
// sound = minim.loadFile("sound.mp3", buffer_size);
// make it repeat
sound.loop();
// create an FFT object that has a time-domain buffer
// the same size as line-in's sample buffer
fft = new FFT(sound.bufferSize(), sound.sampleRate());
// Tapered window important for log-domain display
fft.window(FFT.HAMMING);
// create a filter and insert it
filter = new Filter(centerFreq, bandwidth, sound.sampleRate());
sound.addEffect(filter);
}
// Convert a spectrum value into a y pixel position
int spectrum_y(float bandval)
{
float val;
if (bandval > 0) {
val = dB_scale*(20*((float)Math.log10(bandval)) + gain);
} else {
val = -200; // avoid log(0)
}
int y = spectrum_height - Math.round(val);
if (y > spectrum_height) { y = spectrum_height; }
return y;
}
String fileSelected(File selection, String fses) {
try{
if (selection == null) {
println("Window was closed or the user hit cancel.");
} else {
println("User selected " + selection.getAbsolutePath());
fselR = selection.getAbsolutePath();
}
}
catch(Exception e){
fselR = "";
}
return fselR;
}
void draw()
{
etc...
- - -
(the italic lines: is my own merging code)
The compiler complains about "GLExeption...: cannot call invokeAndWait..." as if the main audio-example won't permit me to have a pause in execution, where selected input of a pickable *.mp3 is put into the system as a string varible (to be used at: sound = minim.loadFile(fselR, buffer_size);)
↧
Re : While trying to merge an audio example with an open file dialogue -> I get GLExeption: cannot call invokeAndWait?
You can try and remove the P2D parameter from the size() call. At least, it would remove OpenGL from the equation...
↧
Re : While trying to merge an audio example with an open file dialogue -> I get GLExeption: cannot call invokeAndWait?
I woul also move the size() method call to be the first instruction in the setup method. Also which version of Processing are you using since the selectInput in V2 is very different from the selectInput in V1.5.1
↧