[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sc-users] real newbie question



hi, everyone!

it's been 3 hours that I study SC.
i'm on Intel Mackbook Pro/ OSX 10.4,

in the tutorial, there's this code:

(
    SynthDef("tutorial-args", { arg freq = 440, out = 0;
        Out.ar(out, SinOsc.ar(freq, 0, 0.2));
    }).send(s);
    )
    x = Synth("tutorial-args");                            // no args, so default values
    y = Synth("tutorial-args", ["freq", 660]);            // change freq
    z = Synth("tutorial-args", ["freq", 880, "out", 1]);

and everytime i try to play this, i get,

• ERROR: Parse error
   in file 'selected text'
   line 6 char 2:
      x• = Synth("tutorial-args");                            // no args, so default values
      y = Synth("tutorial-args", ["freq", 660]);            // change freq
-----------------------------------
• ERROR: Command line parse failed
nil


I don't understand anything about what's going on...
can somebody please tell me what's wrong???