start a process

this message is of common use in sc. Different objects respond to it in various

ways, but the simple meaning is: start a process.

It is usually implemented by objects in contributed libraries as well.

play usually returns the playing object which might not be the same as the one

the message was sent to.

opposite: stop

returns: the clock


r ={ "...playing".postln; 1.wait; "ok, that was it".postln });;


returns: the routine{ "...playing".postln; 1.wait; "ok, that was it".postln }).play;

returns the stream

the stream will loop until it returns nil

FuncStream({ "ok, that was it".postln; 1 }).play; /

returns the stream

a ={ "ok, that was it".postln; 1 }));;



a ={ loop({ "ok, that was it".postln; 1.wait; }) });;

a.stop;, protoEvent)

returns: an EventStreamPlayer



Pbind(\freq, Pn(500, 1)),

Pbind(\dur, Pn(0.1, 1))

], 2).play;



The following play messages both cause a SynthDef to be written, send it to the server 

and start a synth with it there.

they should not be used in quickly running automated processes,

as there are more efficient alternatives (see SynthDefsVsSynths), args, addAction)

returns: a Synth

note that you need an out ugen to hear the result.

in sc3 synths can write to busses using an out ugen or they can also just run without any writing activity.

one example of a synth without an out ugen is SendTrig, whereas you find different examples

of how to write to the busses in the helpfiles: Out / ReplaceOut / XOut / OffsetOut

as what is audible through the hardware busses must be written on them, one way or another

an out ugen is always needed.

some operations provide an out ugen internally: see for example, which plays out

to a bus number provided in the argument passed to .play


x = SynthDef("test", { arg out, amp=0.1;

var sound;

sound = * [1,1]);, sound);



//set the synth

x.set(\amp, 0.2);

//free the synth;

note:, is synonymous. for backwards compatibility with sc2, outbus, fadeTime)

returns: a Synth

adds to tail by default

soft fade in and out.

//note that you can use Out ugens but you do not need to

{*[1,1]) }.play;

//mouse x controls level

{,,1),*[1,1])) }.play;

the arguments of the function are the same as in, which means you cannot pass

in any value - they are used to build Controls for the synth.

you can set the controls in the running synth:

x = { arg freq=900;[1,1]), freq, 0.01) }.play(s, 0);

x.set(\freq, 1400);;

which this is equivalent to:


x = SynthDef("nextrandomname", { arg freq=900;,[1,1]), freq, 0.01))



x.set(\freq, 1400);;

more modularity can be achieved by using [Instr] from the CRUCIAL-LIBRARY.

Berlin: clubs bars cafes nightlife going out