/* Example 1b - same as Example 1a, without comments */
s = Server.internal;
s.boot;
Server.default = s;
s.scope;
(
var noteObject, note;
noteObject = CtkSynthDef(\oscili, {arg freq, amp;
var osc, env;
osc = SinOsc.ar(freq, 0, amp);
env = Line.kr(1, 0, 2);
Out.ar(0, osc * env);
});
note = noteObject.new(1.0, 2.0);
note.freq_(440).amp_(0.5);
note.play;
);