1) Start a piece of code:
Select it and hit enter (not return)
2) Stop a the sound:
cmd-. (period)
if there are round parentheses like this:
( ... code ... )
It usually means that you should evaluate everything between these at once.
You can double-click near to one of them and the proper selection will appear.
Other statements can often be evaluated line-by-line.
for example this piece of code:
( c = { arg f=900; var x; x = SinOsc.ar(f); x * 0.1 }.play; ) c.set(\f, 400); c.set(\f, 670);
would be used correctly by
- first selecting the part in parens (starts a synth and stores it in the interpreter variable c)
- then c.set(\f, 400); (setting frequency to 400 Hz)
- then c.set(\f, 670); (setting frequency to 670 Hz)
In order to play sound the local server should be running.
you can start it by evaluating
s.boot
or by using the boot button of the localserver GUI.