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 › I need help with sc p5!
Page Index Toggle Pages: 1
I need help with sc p5! (Read 975 times)
I need help with sc p5!
Feb 2nd, 2010, 8:26pm
 
Hi, I'm totally new to processing & Supercollider

I finished installation of sc p5 & osc and I copied an examples and run it but it doesn't work.Error message is 'ClassNotFoundException : oscP5.OscPacket'. What is problem? Could anybody help me?

This is exmaple that I pasted.

import supercollider.*;

Synth synth;

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

   // uses default sc server at 127.0.0.1:57110    
   // does NOT create synth!
   synth = new Synth("sine");
   
   // set initial arguments
   synth.set("amp", 0.5);
   synth.set("freq", 80);
   
   // create synth
   synth.create();
}

void draw ()
{
   background(0);
   stroke(255);
   line(mouseX, 0, mouseX, height);
}

void mouseMoved ()
{
   synth.set("freq", 40 + (mouseX * 3));
}

void stop ()
{
   synth.free();
}
Re: I need help with sc p5!
Reply #1 - Feb 3rd, 2010, 12:48am
 
1. get oscP5 and install it
2. restart processing
3. do sketch > import library > oscP5

Re: I need help with sc p5!
Reply #2 - Feb 3rd, 2010, 12:49am
 
yeah,

you need to install the oscP5 library too.
It is an oversight from this tuto.
have a good trip into sound Smiley
Page Index Toggle Pages: 1