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

Re: [sc-users] real newbie question



Try this (see the comments)

// double click the paren - press enter to execute this block (or, all the code in the parens)
(
    SynthDef("tutorial-args", { arg freq = 440, out = 0; 
        Out.ar(out, SinOsc.ar(freq, 0, 0.2)); 
    }).send(s);
    )

// now, place the cursor on the next line, and press enter - do this for each line of code
    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]);

Hope that helps,

Josh

On Oct 21, 2007, at 9:46 AM, 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


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

_______________________________________________
sc-users mailing list

******************************************

/* Joshua D. Parmenter

http://www.realizedsound.net/josh/


“Every composer – at all times and in all cases – gives his own interpretation of how modern society is structured: whether actively or passively, consciously or unconsciously, he makes choices in this regard. He may be conservative or he may subject himself to continual renewal; or he may strive for a revolutionary, historical or social palingenesis." - Luigi Nono

*/