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.
IndexProgramming Questions & HelpSound,  Music Libraries › Problems with Ess and Processing 1.0.3
Page Index Toggle Pages: 1
Problems with Ess and Processing 1.0.3 (Read 797 times)
Problems with Ess and Processing 1.0.3
May 18th, 2009, 8:08am
 
Hello folks, I've problem using aiff or wav files within processing.

this is the sketch

     
Code:

// Example by Krister Olsson

import krister.Ess.*;

AudioChannel myChannel;
BandPass myBandPass;
Normalize myNormalize;

void setup() {
size(256,200);

// start up Ess
Ess.start(this);

// load "cell.aif" into a new AudioChannel
myChannel=new AudioChannel("/home/mbutubuntu/Scrivania/vivaldi.wav");

// apply a band pass filter
myBandPass=new BandPass(960,-20,16);

myBandPass.filter(myChannel);

// normalize
myNormalize=new Normalize();

myNormalize.filter(myChannel);

// play
myChannel.play();
}

void draw() {
}

// we are done, clean up Ess

public void stop() {
Ess.stop();
super.stop();
}



and this is the problem

Code:
Exception in thread "Animation Thread" java.lang.NoClassDefFoundError: com/jcraft/jogg/SyncState
at org.tritonus.sampled.file.jorbis.JorbisAudioFileReader.getAudioFileFormat(JorbisAudioFileReader.java:73)
at org.tritonus.share.sampled.file.TAudioFileReader.getAudioInputStream(TAudioFileReader.java:366)
at org.tritonus.share.sampled.file.TAudioFileReader.getAudioInputStream(TAudioFileReader.java:245)
at javax.sound.sampled.AudioSystem.getAudioInputStream(AudioSystem.java:1162)
at krister.Ess.SPIWorkaround.getAudioInputStream(SPIWorkaround.java:47)
at krister.Ess.AudioChannel.loadSound(AudioChannel.java:230)
at krister.Ess.AudioChannel.loadSound(AudioChannel.java:208)
at krister.Ess.AudioChannel.<init>(AudioChannel.java:55)
at sketch_may18a.setup(sketch_may18a.java:36)
at processing.core.PApplet.handleDraw(PApplet.java:1400)
at processing.core.PApplet.run(PApplet.java:1328)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.ClassNotFoundException: com.jcraft.jogg.SyncState
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
... 12 more



Please help me!

thanks
Page Index Toggle Pages: 1