AJ | Pact | logo
PACT
Supercollider a day

Supercollider a day

1 September 2009

Hackpact (30 posts)

For Hackpact I will attempt to learn the Supercollider audio programming language, updating this page with a new block of code each day.

Something random in one function

29/09/09

Something random in one function.

/* ==========================================================================
   Supercollider a day - for HackPact 2009
   -------------------
   by Adam Jansch
  
   29 September 2009
   
   Something random in one function
   ========================================================================== */


 
(
  {
    var freqs = #[40, 50, 60, 70];
    
    Splay.ar(Saw.ar(SinOsc.ar(Saw.ar(SinOsc.ar(freqs, 0.0, 1.0)) * freqs, 0.0, 1.0) * 100.0, 1.0));
  }.play;
)