{
   "name" : "How to make a saw using only sines - Tweet Style",
   "author" : "Schemawound",
   "description" : "Using sine waves to generate a saw waveform",
   "ancestor_list" : [],
   "labels" : [
      "sctweet",
      "sine",
      "educational",
      "sawtooth"
   ],
   "code" : "q={|f,e|a=Array.fill(e,{|j|e-j}).reverse;(Mix.ar(a.collect{|x|SinOsc.ar(f*x,0,1/x)})/2)!2};{q.(60,300)}.play //saw from sine #supercollider\r\n\r\n//Change the values passed to q to control the frequency and how many sines are used.",
   "is_private" : null,
   "id" : "1-4SW"
}
