Submit
Browse
Anonymous
Login
RSS
SuperCollider Code
Fork Code: How to make a saw using only sines - Tweet Style
name
code content
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.
code description
Using sine waves to generate a saw waveform
use markdown for formating
category tags
comma separated, i.g. "wild, siren" (do not enter default SC class names, please)
ancestor(s)
comma separated identificators, i.g. "1-C,1-1,1-4M,1-x"
Private?
the code will be accessible by direct url and not visible in public activity
signup to submit public code without captcha
comment of change