FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Topics & Contributions
   Sound
(Moderators: pitaru, REAS)
   Trouble with Sonia
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: Trouble with Sonia  (Read 424 times)
twothousandsix


Trouble with Sonia
« on: Oct 15th, 2004, 11:52pm »

I'm new to processing and am trying to implement sonia.
I'm coming up with the following error:
 
JSyn using native library JSynV142
JSyn for OS X, Built 4/16/03.
Input Device #0: Built-in Audio has 2 channels
Input Device#1: Built-in Audio has 2 channels
 
I am working on a Power Book running OS 10.3.5.
 
I am trying to get a .wav to play on MousePressed.  
My code looks like this:
 
BImage b;
Sample love;
void setup(){
  size (200, 200);
  background(150,100,100);
  b=loadImage("heart.gif");
  Sonia.start(this);
  love = new Sample ("lovelovelove.wav");
}
 
 
void loop()
{
  if (mousePressed == true) {
    image(b, 0,0);
    love.play();
    fill(200,50,3);
  triangle(100, 140, 75, 70, 125, 70);
  triangle(75,70,95,70,85,52);
  triangle(125,70,105,70,115,52);
  fill(50,50,50);
  triangle(79,70,91,70,85,57);
  triangle(121,70,109,70,115,57);
  fill(300,300,300);
  ellipse(90,85,5,5);
  line(105,87,110,87);
 
  } else {
    background(150,100,100);
    fill(200,50,3);
    triangle(100, 140, 75, 70, 125, 70);
    triangle(75,70,95,70,85,52);
    triangle(125,70,105,70,115,52);
    fill(50,50,50);
    triangle(79,70,91,70,85,57);
    triangle(121,70,109,70,115,57);
    fill(300,300,300);
    ellipse(90,85,5,5);
    fill(300, 300, 300);
    ellipse(105,85, 5, 5);
  }
  fill(189,24,1);
  ellipse(95,135,10,10);
}
 
public void stop(){
Sonia.stop();
super.stop();
}
 
 
Any guidance would be appreciated.
 
mattgilbert

tangramkid WWW Email
Re: Trouble with Sonia
« Reply #1 on: Oct 16th, 2004, 7:04pm »

That message isn't an error. It always comes up. It's just giving you a little information about the system, none of it bad.
 
As for your program, I haven't tested it, but it seems like it should work fine.  
 
Matt
 
« Last Edit: Oct 16th, 2004, 7:04pm by mattgilbert »  
Pages: 1 

« Previous topic | Next topic »