co34pt live - SuperCollider

//Live coding can unexpectedly get loud. Always use protection
StageLimiter.activate

(
Quarks.install("Bjorklund");
Quarks.install("BatLib");
Quarks.install("ddwSnippets");
)

//stop the server (Ctrl/Cmd+.)
Server.hardFreeAll

//Start ProxySpace
p = ProxySpace.push(s);

~sine1 = {SinOsc.ar([400,500],0,0.1)};

//play those sine waves
~sine1.play;

//change the frequency of those sine waves instantly
~sine1 = {SinOsc.ar([500,600],0,0.1)};

//add a fade to ProxySpace
p.fadeTime = 2;
//you can also assign individual fade times to proxies
~sine1.fadeTime = 3;

//change the frequencies again and hear a fade
~sine1 = {SinOsc.ar([200,300],0,0.1)};

//make a second sine wave and play it alongside the first
~sine2 = {SinOsc.ar([350,450],0,0.1)};
~sine2.play;


Leave a Reply