We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
krister.ess? (Read 5422 times)
krister.ess?
Dec 12th, 2007, 9:58pm
 
Hi,

New to all of this (not a programmer), however wondering about something. I downloaded one of the sample sound programs "synthesizer 1".

There is an "import" statement at the beginning of the code: import import krister.Ess.*;

Now I did download the ESS sound library and placed it in my Processing folder, however I don't see the "krister.ess" class.

When I try to run the code I get an error that says 'can't find krister.ess, etc.

Is this class not included in the sound library? If not, then where can I find the krister.ess class?

Thanks for any help.
Tony
Re: krister.ess?
Reply #1 - Dec 12th, 2007, 10:08pm
 
Where did you put the library? It's got to be placed into the correct subdirectory of your processing-0135 folder

Quote:
To install Ess simply unzip Ess_r2.zip and place the 'Ess' folder inside the Processing 'libraries' folder


You'll also have to restart processing after you've done that.
Re: krister.ess?
Reply #2 - Dec 12th, 2007, 10:12pm
 
Hi,

Yes, I placed it in my processing-0135 folder.

Well, I tried again and it's all working now. I don't know why it didn't work the first few times.

As you've said, I believe it was the re-starting of the Processing IDE that did it. Thank you.

Thanks for the reply and help, I appreciate it.

Tony
Re: krister.ess?
Reply #3 - Feb 10th, 2008, 6:33pm
 
Hello dear community,

i've got the same problem with the krister.ess library.

I downloaded the file and opened up my Processing-0135 folder. I opened the subfolder "libraries".
Where do I have to put the "Ess.jar" data file? Simply inside the "libraries" folder? if i do so and start Example 01 from the Processing book i receive this error:

"You need to modify your classpath, sourcepath, bootclasspath, and/or extdirs setup. Jlkes could not find package "krister.Ess" in the code folder or in any libraries."

Could you please help me? Actually I really like Processing but in this point I simply don't have any idea where to start solving the problem.

So this is the script I want to start up with:


/**
* Sound is generated in real time by summing together harmonically related
* sine tones. Overall pitch and harmonic detuning is controlled by the mouse.
* Based on the Spooky Stream Save Ess example
*/

import krister.Ess.*;

int numSines = 5; // Number of oscillators to use
AudioStream myStream; // Audio stream to write into
SineWave[] myWave; // Array of sines
FadeOut myFadeOut; // Amplitude ramp function
FadeIn myFadeIn; // Amplitude ramp function

void setup() {
 size(256, 200);
 Ess.start(this); // Start Ess
 myStream = new AudioStream(); // Create a new AudioStream
 myStream.smoothPan = true;
 myWave = new SineWave[numSines]; // Initialize the oscillators
 for (int i = 0; i < myWave.length; i++) {
   float sinVolume = (1.0 / myWave.length) / (i + 1);
   myWave[i] = new SineWave(0, sinVolume);
 }
 myFadeOut = new FadeOut(); // Create amplitude ramp
 myFadeIn = new FadeIn(); // Create amplitude ramp
 myStream.start(); // Start audio
}

void draw() {
 noStroke();
 fill(0, 20);
 rect(0, 0, width, height); // Draw the background
 float offset = millis() - myStream.bufferStartTime;
 int interp = int((offset / myStream.duration) * myStream.size);
 stroke(255);
 for (int i = 0; i < width; i++) {
   float y1 = mouseY;
   float y2 = y1;
   if (i + interp + 1 < myStream.buffer2.length) {
     y1 -= myStream.buffer2[i+interp] * height / 2;
     y2 -= myStream.buffer2[i+interp+1] * height / 2;
   }
   line(i, y1, i + 1, y2); // Draw the waves
 }
}
void audioStreamWrite(AudioStream s) {
 // Figure out frequencies and detune amounts from the mouse
 // using exponential scaling to approximate pitch perception
 float yoffset = (height - mouseY) / float(height);
 float frequency = pow(1000, yoffset) + 150;
 float detune = float(mouseX) / width - 0.5;
 myWave[0].generate(myStream); // Generate first sine, replace Stream
 myWave[0].phase += myStream.size; // Increment the phase
 myWave[0].phase %= myStream.sampleRate;
 for (int i = 1; i < myWave.length; i++) { // Add remaining sines into the Stream
   myWave[i].generate(myStream, Ess.ADD);
   myWave[i].phase = myWave[0].phase;
 }
 myFadeOut.filter(myStream); // Fade down the audio
 for (int i = 0; i < myWave.length; i++) { // Set the frequencies
   myWave[i].frequency = round(frequency * (i + 1 + i * detune));
   myWave[i].phase = 0;
 }
 myFadeIn.filter(myStream); // Fade up the audio
}

Re: krister.ess?
Reply #4 - Feb 10th, 2008, 6:43pm
 
just as a further comment. in my programm i want to load the "krister.ess" file...in my libraries i only find a file "ess.jar" not a "krister.ess". might this be the problem?
Re: krister.ess?
Reply #5 - Feb 10th, 2008, 6:50pm
 
From the Ess download page:

To install Ess simply unzip Ess_r2.zip and place the 'Ess' folder inside the Processing 'libraries' folder.

krister.ess is a java namespace, not a filename.
Re: krister.ess?
Reply #6 - Feb 10th, 2008, 6:51pm
 
I had to restart my IDE, then it worked.

(See above).

TOny
Re: krister.ess?
Reply #7 - Feb 10th, 2008, 8:30pm
 
restart didn't solve the problem.
ok, so i just put the whole folder in the libraries folder....

i chose the first of the three download links. is this the right one?
http://www.tree-axis.com/Ess/download.html


Re: krister.ess?
Reply #8 - Feb 11th, 2008, 4:45pm
 
hey guys, i just solved the thing.
i forgot to put the whole ESS folder in the libraries folder. I just placed the "library" file inside...sorry for being that stupid Wink Thanks anyway!
Re: krister.ess?
Reply #9 - Feb 11th, 2008, 4:56pm
 
leanderlike wrote on Feb 11th, 2008, 4:45pm:
hey guys, i just solved the thing.
i forgot to put the whole ESS folder in the libraries folder. I just placed the "library" file inside...sorry for being that stupid Wink Thanks anyway!


I did the same thing the first time...

T
Re: krister.ess?
Reply #10 - Sep 26th, 2008, 4:19am
 
when I downloaded the files of the ess library, it didn´t come with anything called krister ... can anybody help me? the error that appears is "The package "krister" does not exist. Yoy might be missing a library." I put all the files in the libraries folder.. i dont know what happens!!
Re: krister.ess?
Reply #11 - Feb 16th, 2009, 5:11pm
 
Hi guys! I am having the same problem as above.

I am new to this processing malarky. I have downloaded the Ess_r2.zip  and extracted the files. I then placed all the files into my processing-1.0.1\libraries folder. I then open up the code i have written up hoping it would work but it doesnt it still says the package krister does not exist. you may be missing a library. I read above that it says place the ESS folder into the library folder, which I also tried but it still gives the same messege.

Anyone have any ideas!? Any help would be uber nice!? Smiley
Re: krister.ess?
Reply #12 - Apr 30th, 2009, 1:22pm
 
i didn't find krister either but i put ess.jar inside->library inside->Ess inside->libraries inside-> processing director and it works just fine  Cool from inside all those  Cheesy folders  Smiley
Page Index Toggle Pages: 1