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

Re: [sc-users] real newbie question



You shouldn't select the whole code block and execute it at once.

First do just the part inside the parentheses. Then move to the x = line and run it separately.

hjh

On Oct 21, 2007, at 12:46 PM, Djého Youn wrote:

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



: H. James Harkins

: jamshark70@xxxxxxxxxxxxxxxxx

: http://www.dewdrop-world.net

.::!:.:.......:.::........:..!.::.::...:..:...:.:.:.:..:


"Come said the Muse,

Sing me a song no poet has yet chanted,

Sing me the universal."  -- Whitman