/////////////////////////////////////THE BASICS//////////////////////////// //function f = { arg a, b; a + b }; f.value(2, 3.9).postln; f.value(7).postln; //error f = { arg a, b=1; a + b }; f.value(7).postln; f = { arg a, b=1; a + b + 0.3.rand }; f.value(1, 3).postln; //array a = [1000, pi, 5.5]; a.at(0).postln; 1000 a.at(1).postln; 3.14159 a.at(2).postln; 5.5 a.at(3).postln; nil a.put(0, 550); a.postln; a.put(3, 550);//error (a + 1).postln; f = { arg a, b; a + b }; f.value([1,2,3], 1.2).postln; w = GUIWindow.new("ahoi", Rect.newBy(100, 100, 500, 50)); w.backColor = Color.new(200, 100, 60); w.name = "-----"; w.close; f = { arg color; w.backColor = color }; f.value(Color.new(100, 255, 255)); f.value(Color.new(0, 0, 0)); f.value(Color.new(255, 255, 255)); f.value(Color.guiGrey); f = { SinOsc.ar(440,0,0.1) }; Synth.play(f); Synth.play({ f.value }); f = { arg freq; SinOsc.ar(freq,0,0.1) }; Synth.play({ f.value(800) }); Synth.play({ f.value(500) }); Synth.play({ a = Plug.kr(500); f.value(a) }); a.source = 600; a.source = 400; Synth.play({ a = SinOsc.kr(1, 0, 100, 300); f.value(a) });