{
   "ancestor_list" : [],
   "description" : "Based on the answer to my question if there is a synced oscillator on SuperCollider, I played with SyncSaw as suggested by JmC.",
   "author" : "LFSaw",
   "name" : "SyncSaw madness",
   "code" : "(\r\nNdef(\\fun, {\r\n\tvar src, freq = 25;\r\n\tvar lagTime = \\lagTime.kr(0);\r\n\tvar vibrato = \\vibrato.kr([ 1.3515662384033, 1.3061940193176, 0.604791264534, 1.2328997278214, 0.33569867610931, 0.40528120040894, 1.0865307760239, 1.22394572258, 1.7781081724167, 0.15319232463837 ], lagTime);\r\n\t\r\n\tvar vibRatio = \\vibRatio.kr([ 2.9047239411079, 0.39578121743921, 0.10932490532285, 0.051738858660565, 0.17840235868831, 0.024495380749894, 3.9689920754869, 4.1139229659643, 0.23327501819885, 0.97643604193256 ], lagTime);\r\n\t\r\n\tvar freqVary = \\freqVary.kr([ 143.76541377614, 14.25479545154, 6.6728691888342, 58.434807398325, 154.89385962072, 34.112274650688, 3.1140823758236, 10.42040949808, 158.59959972037, 1.2163188440936 ], lagTime);\r\n\t\r\n\t\r\n\tvar numSrcs = vibrato.size;\r\n\r\n\tsrc = numSrcs.collect{|i|\r\n\t\tvar freq2 = (freq * freqVary[i]) * LFNoise2.kr(0.01).range(1, 1.5);\r\n\t    \r\n\tSyncSaw.ar(freq2, freq2 * SinOsc.ar(Line.kr(1, vibrato[i], 20) * vibRatio[i], Rand(0, 0.8)).range(pi, pi * 0.1)) * rrand(0.05, 0.1)\r\n\t};\r\n\t\r\n\tsrc = Splay.ar(src);\r\n\t\r\n}).play\r\n)\r\n\r\nNdef(\\fun).fadeTime = 20;\r\n\r\nNdef(\\fun).rebuild\r\n\r\n(\r\nNdef(\\fun).setn(\r\n\t\\lagTime, [5],\r\n\t\\vibRatio, {exprand(0.1, 3)}!10,\r\n\t\\freqVary, {exprand(1, 150)}!10,\r\n\t\\vibrato, {exprand(0.3, 3)}!10\r\n)\r\n)\r\n(\r\nNdef(\\fun).setn(\r\n\t\\lagTime, [200],\r\n\t\\vibRatio, ({exprand(0.1, 3)}!10).sort,\r\n\t\\freqVary, ({exprand(1, 150)}!10).sort,\r\n\t\\vibrato, ({exprand(0.3, 3)}!10).sort\r\n)\r\n)\r\n\r\n(\r\nNdef(\\fun).xsetn(\r\n\t\\lagTime, [100],\r\n\t\\vibRatio, {exprand(0.1, 3)}!10,\r\n\t\\freqVary, {exprand(1, 150)}!10,\r\n\t\\vibrato, {exprand(0.3, 3)}!10\r\n))",
   "id" : "1-4QF",
   "is_private" : null,
   "labels" : [
      "scary"
   ]
}
