«How to make a saw using only sines - Tweet Style» by Schemawound

on 25 Mar'13 12:04 in sctweetsineeducationalsawtooth

Using sine waves to generate a saw waveform

1
2
3
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

//Change the values passed to q to control the frequency and how many sines are used.
descendants
«Re: How to make a saw using only sines - Tweet Style» by julian.rohrhuber (private)
full graph
raw 228 chars (focus & ctrl+a+c to copy)
reception
comments