[{"data":1,"prerenderedAt":1917},["ShallowReactive",2],{"content-query-fiSduqh0CN":3},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":9,"created":10,"body":11,"_type":1911,"_id":1912,"_source":1913,"_file":1914,"_stem":1915,"_extension":1916},"/blog/supercaw","blog",false,"","supercaw","recently, sqx made caw (source), a lovely crow synth that works in the browser. i wanted to port it to SuperCollider, so here is an attempt:","2026-07-19",{"type":12,"children":13,"toc":1909},"root",[14,42,400,405,1167,1172,1177,1754,1759,1764,1903],{"type":15,"tag":16,"props":17,"children":18},"element","p",{},[19,22,31,33,40],{"type":20,"value":21},"text","recently, sqx made ",{"type":15,"tag":23,"props":24,"children":28},"a",{"href":25,"rel":26},"https://sqx.codeberg.page/hodgepodge/codes/caw.html",[27],"nofollow",[29],{"type":20,"value":30},"caw",{"type":20,"value":32}," (",{"type":15,"tag":23,"props":34,"children":37},{"href":35,"rel":36},"https://codeberg.org/sqx/hodgepodge/src/branch/master/codes/caw.html",[27],[38],{"type":20,"value":39},"source",{"type":20,"value":41},"), a lovely crow synth that works in the browser. i wanted to port it to SuperCollider, so here is an attempt:",{"type":15,"tag":43,"props":44,"children":48},"pre",{"className":45,"code":46,"language":47,"meta":7,"style":7},"language-supercollider shiki shiki-themes github-light github-dark","(\nSynthDef(\\caw, { |out=0, freq=50, freq1=600, duration=0.5, modfreq=63, envpeak=0.25, envshape=0.3, modgain0=325, modgain1=75, modshape=0.5, bpfreq=1150, bprq=0.1, hpfreq=1100, hprq=0.6, formfreq=1600, formrq=0.5, formgain=0.8, dist=0.4, pan=0, amp=0.5|\n    var env, mf, sig;\n    env = EnvGen.ar(Env.perc(envpeak*duration, 1.0-envpeak*duration, curve: \\linear), doneAction: Done.freeSelf) ** envshape;\n    mf = SinOsc.ar(modfreq).max(0) ** modshape;\n    sig = Saw.ar(env.linlin(0, 1, freq, freq1) + (mf * env.linlin(0, 1, modgain0, modgain1)));\n    sig = BPF.ar(sig, bpfreq, bprq, bprq.sqrt.reciprocal);\n    sig = HPF.ar(sig, hpfreq, hprq, hprq.sqrt.reciprocal);\n    sig = sig + (formgain * BPF.ar(sig, formfreq, formrq, formrq.sqrt.reciprocal));\n    sig = LeakDC.ar(sig);\n    sig = (sig * env * dist).tanh * 3 * amp;\n    sig = Pan2.ar(sig, pan);\n    Out.ar(out, sig);\n}).add;\n)\n","supercollider",[49],{"type":15,"tag":50,"props":51,"children":52},"code",{"__ignoreMap":7},[53,65,90,105,175,204,259,277,295,313,331,350,368,382,391],{"type":15,"tag":54,"props":55,"children":58},"span",{"class":56,"line":57},"line",1,[59],{"type":15,"tag":54,"props":60,"children":62},{"style":61},"--shiki-default:#24292E;--shiki-dark:#E1E4E8",[63],{"type":20,"value":64},"(\n",{"type":15,"tag":54,"props":66,"children":68},{"class":56,"line":67},2,[69,75,80,85],{"type":15,"tag":54,"props":70,"children":72},{"style":71},"--shiki-default:#6F42C1;--shiki-dark:#B392F0",[73],{"type":20,"value":74},"SynthDef",{"type":15,"tag":54,"props":76,"children":77},{"style":61},[78],{"type":20,"value":79},"(",{"type":15,"tag":54,"props":81,"children":82},{"style":71},[83],{"type":20,"value":84},"\\caw",{"type":15,"tag":54,"props":86,"children":87},{"style":61},[88],{"type":20,"value":89},", { |out=0, freq=50, freq1=600, duration=0.5, modfreq=63, envpeak=0.25, envshape=0.3, modgain0=325, modgain1=75, modshape=0.5, bpfreq=1150, bprq=0.1, hpfreq=1100, hprq=0.6, formfreq=1600, formrq=0.5, formgain=0.8, dist=0.4, pan=0, amp=0.5|\n",{"type":15,"tag":54,"props":91,"children":93},{"class":56,"line":92},3,[94,100],{"type":15,"tag":54,"props":95,"children":97},{"style":96},"--shiki-default:#D73A49;--shiki-dark:#F97583",[98],{"type":20,"value":99},"    var",{"type":15,"tag":54,"props":101,"children":102},{"style":61},[103],{"type":20,"value":104}," env, mf, sig;\n",{"type":15,"tag":54,"props":106,"children":108},{"class":56,"line":107},4,[109,114,119,124,129,134,140,145,150,155,160,165,170],{"type":15,"tag":54,"props":110,"children":111},{"style":61},[112],{"type":20,"value":113},"    env = ",{"type":15,"tag":54,"props":115,"children":116},{"style":71},[117],{"type":20,"value":118},"EnvGen",{"type":15,"tag":54,"props":120,"children":121},{"style":61},[122],{"type":20,"value":123},".ar(",{"type":15,"tag":54,"props":125,"children":126},{"style":71},[127],{"type":20,"value":128},"Env",{"type":15,"tag":54,"props":130,"children":131},{"style":61},[132],{"type":20,"value":133},".perc(envpeak*duration, ",{"type":15,"tag":54,"props":135,"children":137},{"style":136},"--shiki-default:#005CC5;--shiki-dark:#79B8FF",[138],{"type":20,"value":139},"1.0",{"type":15,"tag":54,"props":141,"children":142},{"style":61},[143],{"type":20,"value":144},"-envpeak*duration, ",{"type":15,"tag":54,"props":146,"children":147},{"style":136},[148],{"type":20,"value":149},"curve:",{"type":15,"tag":54,"props":151,"children":152},{"style":71},[153],{"type":20,"value":154}," \\linear",{"type":15,"tag":54,"props":156,"children":157},{"style":61},[158],{"type":20,"value":159},"), ",{"type":15,"tag":54,"props":161,"children":162},{"style":136},[163],{"type":20,"value":164},"doneAction:",{"type":15,"tag":54,"props":166,"children":167},{"style":71},[168],{"type":20,"value":169}," Done",{"type":15,"tag":54,"props":171,"children":172},{"style":61},[173],{"type":20,"value":174},".freeSelf) ** envshape;\n",{"type":15,"tag":54,"props":176,"children":178},{"class":56,"line":177},5,[179,184,189,194,199],{"type":15,"tag":54,"props":180,"children":181},{"style":61},[182],{"type":20,"value":183},"    mf = ",{"type":15,"tag":54,"props":185,"children":186},{"style":71},[187],{"type":20,"value":188},"SinOsc",{"type":15,"tag":54,"props":190,"children":191},{"style":61},[192],{"type":20,"value":193},".ar(modfreq).max(",{"type":15,"tag":54,"props":195,"children":196},{"style":136},[197],{"type":20,"value":198},"0",{"type":15,"tag":54,"props":200,"children":201},{"style":61},[202],{"type":20,"value":203},") ** modshape;\n",{"type":15,"tag":54,"props":205,"children":207},{"class":56,"line":206},6,[208,213,218,223,227,232,237,242,246,250,254],{"type":15,"tag":54,"props":209,"children":210},{"style":61},[211],{"type":20,"value":212},"    sig = ",{"type":15,"tag":54,"props":214,"children":215},{"style":71},[216],{"type":20,"value":217},"Saw",{"type":15,"tag":54,"props":219,"children":220},{"style":61},[221],{"type":20,"value":222},".ar(env.linlin(",{"type":15,"tag":54,"props":224,"children":225},{"style":136},[226],{"type":20,"value":198},{"type":15,"tag":54,"props":228,"children":229},{"style":61},[230],{"type":20,"value":231},", ",{"type":15,"tag":54,"props":233,"children":234},{"style":136},[235],{"type":20,"value":236},"1",{"type":15,"tag":54,"props":238,"children":239},{"style":61},[240],{"type":20,"value":241},", freq, freq1) + (mf * env.linlin(",{"type":15,"tag":54,"props":243,"children":244},{"style":136},[245],{"type":20,"value":198},{"type":15,"tag":54,"props":247,"children":248},{"style":61},[249],{"type":20,"value":231},{"type":15,"tag":54,"props":251,"children":252},{"style":136},[253],{"type":20,"value":236},{"type":15,"tag":54,"props":255,"children":256},{"style":61},[257],{"type":20,"value":258},", modgain0, modgain1)));\n",{"type":15,"tag":54,"props":260,"children":262},{"class":56,"line":261},7,[263,267,272],{"type":15,"tag":54,"props":264,"children":265},{"style":61},[266],{"type":20,"value":212},{"type":15,"tag":54,"props":268,"children":269},{"style":71},[270],{"type":20,"value":271},"BPF",{"type":15,"tag":54,"props":273,"children":274},{"style":61},[275],{"type":20,"value":276},".ar(sig, bpfreq, bprq, bprq.sqrt.reciprocal);\n",{"type":15,"tag":54,"props":278,"children":280},{"class":56,"line":279},8,[281,285,290],{"type":15,"tag":54,"props":282,"children":283},{"style":61},[284],{"type":20,"value":212},{"type":15,"tag":54,"props":286,"children":287},{"style":71},[288],{"type":20,"value":289},"HPF",{"type":15,"tag":54,"props":291,"children":292},{"style":61},[293],{"type":20,"value":294},".ar(sig, hpfreq, hprq, hprq.sqrt.reciprocal);\n",{"type":15,"tag":54,"props":296,"children":298},{"class":56,"line":297},9,[299,304,308],{"type":15,"tag":54,"props":300,"children":301},{"style":61},[302],{"type":20,"value":303},"    sig = sig + (formgain * ",{"type":15,"tag":54,"props":305,"children":306},{"style":71},[307],{"type":20,"value":271},{"type":15,"tag":54,"props":309,"children":310},{"style":61},[311],{"type":20,"value":312},".ar(sig, formfreq, formrq, formrq.sqrt.reciprocal));\n",{"type":15,"tag":54,"props":314,"children":316},{"class":56,"line":315},10,[317,321,326],{"type":15,"tag":54,"props":318,"children":319},{"style":61},[320],{"type":20,"value":212},{"type":15,"tag":54,"props":322,"children":323},{"style":71},[324],{"type":20,"value":325},"LeakDC",{"type":15,"tag":54,"props":327,"children":328},{"style":61},[329],{"type":20,"value":330},".ar(sig);\n",{"type":15,"tag":54,"props":332,"children":334},{"class":56,"line":333},11,[335,340,345],{"type":15,"tag":54,"props":336,"children":337},{"style":61},[338],{"type":20,"value":339},"    sig = (sig * env * dist).tanh * ",{"type":15,"tag":54,"props":341,"children":342},{"style":136},[343],{"type":20,"value":344},"3",{"type":15,"tag":54,"props":346,"children":347},{"style":61},[348],{"type":20,"value":349}," * amp;\n",{"type":15,"tag":54,"props":351,"children":353},{"class":56,"line":352},12,[354,358,363],{"type":15,"tag":54,"props":355,"children":356},{"style":61},[357],{"type":20,"value":212},{"type":15,"tag":54,"props":359,"children":360},{"style":71},[361],{"type":20,"value":362},"Pan2",{"type":15,"tag":54,"props":364,"children":365},{"style":61},[366],{"type":20,"value":367},".ar(sig, pan);\n",{"type":15,"tag":54,"props":369,"children":371},{"class":56,"line":370},13,[372,377],{"type":15,"tag":54,"props":373,"children":374},{"style":71},[375],{"type":20,"value":376},"    Out",{"type":15,"tag":54,"props":378,"children":379},{"style":61},[380],{"type":20,"value":381},".ar(out, sig);\n",{"type":15,"tag":54,"props":383,"children":385},{"class":56,"line":384},14,[386],{"type":15,"tag":54,"props":387,"children":388},{"style":61},[389],{"type":20,"value":390},"}).add;\n",{"type":15,"tag":54,"props":392,"children":394},{"class":56,"line":393},15,[395],{"type":15,"tag":54,"props":396,"children":397},{"style":61},[398],{"type":20,"value":399},")\n",{"type":15,"tag":16,"props":401,"children":402},{},[403],{"type":20,"value":404},"plus a pattern that plays randomized caws:",{"type":15,"tag":43,"props":406,"children":408},{"className":45,"code":407,"language":47,"meta":7,"style":7},"(\nPdef(\\caw, Pbind(\n    \\instrument, \\caw,\n    \\duration, Pwhite(0.2, 0.35),\n    \\envpeak, Pwhite(0.3, 0.3),\n    \\envshape, Pwhite(0.2, 0.4),\n    \\freq, Pwhite(0, 100),\n    \\freq1, Pwhite(550, 720),\n    \\modfreq, Pwhite(60, 65),\n    \\modgain0, Pwhite(300, 350),\n    \\modgain1, Pwhite(50, 100),\n    \\modshape, Pwhite(0.4, 0.6),\n    \\dist, Pwhite(0.3, 0.5),\n    \\formfreq, Pwhite(1500, 1700),\n    \\formgain, Pwhite(0.5, 1.1),\n    \\formrq, Pwhite(0.8, 0.9),\n    \\bpfreq, Pwhite(1000, 1300),\n    \\bprq, Pwhite(0.2, 0.3),\n    \\hpfreq, Pwhite(1000, 1200),\n    \\hprq, Pwhite(0.7, 0.8),\n    \\dur, 0.5,\n    \\amp, 0.6\n)).play\n)\n",[409],{"type":15,"tag":50,"props":410,"children":411},{"__ignoreMap":7},[412,419,448,469,509,546,583,620,658,696,734,771,808,845,883,920,959,998,1035,1073,1111,1132,1150,1159],{"type":15,"tag":54,"props":413,"children":414},{"class":56,"line":57},[415],{"type":15,"tag":54,"props":416,"children":417},{"style":61},[418],{"type":20,"value":64},{"type":15,"tag":54,"props":420,"children":421},{"class":56,"line":67},[422,427,431,435,439,444],{"type":15,"tag":54,"props":423,"children":424},{"style":71},[425],{"type":20,"value":426},"Pdef",{"type":15,"tag":54,"props":428,"children":429},{"style":61},[430],{"type":20,"value":79},{"type":15,"tag":54,"props":432,"children":433},{"style":71},[434],{"type":20,"value":84},{"type":15,"tag":54,"props":436,"children":437},{"style":61},[438],{"type":20,"value":231},{"type":15,"tag":54,"props":440,"children":441},{"style":71},[442],{"type":20,"value":443},"Pbind",{"type":15,"tag":54,"props":445,"children":446},{"style":61},[447],{"type":20,"value":64},{"type":15,"tag":54,"props":449,"children":450},{"class":56,"line":92},[451,456,460,464],{"type":15,"tag":54,"props":452,"children":453},{"style":71},[454],{"type":20,"value":455},"    \\instrument",{"type":15,"tag":54,"props":457,"children":458},{"style":61},[459],{"type":20,"value":231},{"type":15,"tag":54,"props":461,"children":462},{"style":71},[463],{"type":20,"value":84},{"type":15,"tag":54,"props":465,"children":466},{"style":61},[467],{"type":20,"value":468},",\n",{"type":15,"tag":54,"props":470,"children":471},{"class":56,"line":107},[472,477,481,486,490,495,499,504],{"type":15,"tag":54,"props":473,"children":474},{"style":71},[475],{"type":20,"value":476},"    \\duration",{"type":15,"tag":54,"props":478,"children":479},{"style":61},[480],{"type":20,"value":231},{"type":15,"tag":54,"props":482,"children":483},{"style":71},[484],{"type":20,"value":485},"Pwhite",{"type":15,"tag":54,"props":487,"children":488},{"style":61},[489],{"type":20,"value":79},{"type":15,"tag":54,"props":491,"children":492},{"style":136},[493],{"type":20,"value":494},"0.2",{"type":15,"tag":54,"props":496,"children":497},{"style":61},[498],{"type":20,"value":231},{"type":15,"tag":54,"props":500,"children":501},{"style":136},[502],{"type":20,"value":503},"0.35",{"type":15,"tag":54,"props":505,"children":506},{"style":61},[507],{"type":20,"value":508},"),\n",{"type":15,"tag":54,"props":510,"children":511},{"class":56,"line":177},[512,517,521,525,529,534,538,542],{"type":15,"tag":54,"props":513,"children":514},{"style":71},[515],{"type":20,"value":516},"    \\envpeak",{"type":15,"tag":54,"props":518,"children":519},{"style":61},[520],{"type":20,"value":231},{"type":15,"tag":54,"props":522,"children":523},{"style":71},[524],{"type":20,"value":485},{"type":15,"tag":54,"props":526,"children":527},{"style":61},[528],{"type":20,"value":79},{"type":15,"tag":54,"props":530,"children":531},{"style":136},[532],{"type":20,"value":533},"0.3",{"type":15,"tag":54,"props":535,"children":536},{"style":61},[537],{"type":20,"value":231},{"type":15,"tag":54,"props":539,"children":540},{"style":136},[541],{"type":20,"value":533},{"type":15,"tag":54,"props":543,"children":544},{"style":61},[545],{"type":20,"value":508},{"type":15,"tag":54,"props":547,"children":548},{"class":56,"line":206},[549,554,558,562,566,570,574,579],{"type":15,"tag":54,"props":550,"children":551},{"style":71},[552],{"type":20,"value":553},"    \\envshape",{"type":15,"tag":54,"props":555,"children":556},{"style":61},[557],{"type":20,"value":231},{"type":15,"tag":54,"props":559,"children":560},{"style":71},[561],{"type":20,"value":485},{"type":15,"tag":54,"props":563,"children":564},{"style":61},[565],{"type":20,"value":79},{"type":15,"tag":54,"props":567,"children":568},{"style":136},[569],{"type":20,"value":494},{"type":15,"tag":54,"props":571,"children":572},{"style":61},[573],{"type":20,"value":231},{"type":15,"tag":54,"props":575,"children":576},{"style":136},[577],{"type":20,"value":578},"0.4",{"type":15,"tag":54,"props":580,"children":581},{"style":61},[582],{"type":20,"value":508},{"type":15,"tag":54,"props":584,"children":585},{"class":56,"line":261},[586,591,595,599,603,607,611,616],{"type":15,"tag":54,"props":587,"children":588},{"style":71},[589],{"type":20,"value":590},"    \\freq",{"type":15,"tag":54,"props":592,"children":593},{"style":61},[594],{"type":20,"value":231},{"type":15,"tag":54,"props":596,"children":597},{"style":71},[598],{"type":20,"value":485},{"type":15,"tag":54,"props":600,"children":601},{"style":61},[602],{"type":20,"value":79},{"type":15,"tag":54,"props":604,"children":605},{"style":136},[606],{"type":20,"value":198},{"type":15,"tag":54,"props":608,"children":609},{"style":61},[610],{"type":20,"value":231},{"type":15,"tag":54,"props":612,"children":613},{"style":136},[614],{"type":20,"value":615},"100",{"type":15,"tag":54,"props":617,"children":618},{"style":61},[619],{"type":20,"value":508},{"type":15,"tag":54,"props":621,"children":622},{"class":56,"line":279},[623,628,632,636,640,645,649,654],{"type":15,"tag":54,"props":624,"children":625},{"style":71},[626],{"type":20,"value":627},"    \\freq1",{"type":15,"tag":54,"props":629,"children":630},{"style":61},[631],{"type":20,"value":231},{"type":15,"tag":54,"props":633,"children":634},{"style":71},[635],{"type":20,"value":485},{"type":15,"tag":54,"props":637,"children":638},{"style":61},[639],{"type":20,"value":79},{"type":15,"tag":54,"props":641,"children":642},{"style":136},[643],{"type":20,"value":644},"550",{"type":15,"tag":54,"props":646,"children":647},{"style":61},[648],{"type":20,"value":231},{"type":15,"tag":54,"props":650,"children":651},{"style":136},[652],{"type":20,"value":653},"720",{"type":15,"tag":54,"props":655,"children":656},{"style":61},[657],{"type":20,"value":508},{"type":15,"tag":54,"props":659,"children":660},{"class":56,"line":297},[661,666,670,674,678,683,687,692],{"type":15,"tag":54,"props":662,"children":663},{"style":71},[664],{"type":20,"value":665},"    \\modfreq",{"type":15,"tag":54,"props":667,"children":668},{"style":61},[669],{"type":20,"value":231},{"type":15,"tag":54,"props":671,"children":672},{"style":71},[673],{"type":20,"value":485},{"type":15,"tag":54,"props":675,"children":676},{"style":61},[677],{"type":20,"value":79},{"type":15,"tag":54,"props":679,"children":680},{"style":136},[681],{"type":20,"value":682},"60",{"type":15,"tag":54,"props":684,"children":685},{"style":61},[686],{"type":20,"value":231},{"type":15,"tag":54,"props":688,"children":689},{"style":136},[690],{"type":20,"value":691},"65",{"type":15,"tag":54,"props":693,"children":694},{"style":61},[695],{"type":20,"value":508},{"type":15,"tag":54,"props":697,"children":698},{"class":56,"line":315},[699,704,708,712,716,721,725,730],{"type":15,"tag":54,"props":700,"children":701},{"style":71},[702],{"type":20,"value":703},"    \\modgain0",{"type":15,"tag":54,"props":705,"children":706},{"style":61},[707],{"type":20,"value":231},{"type":15,"tag":54,"props":709,"children":710},{"style":71},[711],{"type":20,"value":485},{"type":15,"tag":54,"props":713,"children":714},{"style":61},[715],{"type":20,"value":79},{"type":15,"tag":54,"props":717,"children":718},{"style":136},[719],{"type":20,"value":720},"300",{"type":15,"tag":54,"props":722,"children":723},{"style":61},[724],{"type":20,"value":231},{"type":15,"tag":54,"props":726,"children":727},{"style":136},[728],{"type":20,"value":729},"350",{"type":15,"tag":54,"props":731,"children":732},{"style":61},[733],{"type":20,"value":508},{"type":15,"tag":54,"props":735,"children":736},{"class":56,"line":333},[737,742,746,750,754,759,763,767],{"type":15,"tag":54,"props":738,"children":739},{"style":71},[740],{"type":20,"value":741},"    \\modgain1",{"type":15,"tag":54,"props":743,"children":744},{"style":61},[745],{"type":20,"value":231},{"type":15,"tag":54,"props":747,"children":748},{"style":71},[749],{"type":20,"value":485},{"type":15,"tag":54,"props":751,"children":752},{"style":61},[753],{"type":20,"value":79},{"type":15,"tag":54,"props":755,"children":756},{"style":136},[757],{"type":20,"value":758},"50",{"type":15,"tag":54,"props":760,"children":761},{"style":61},[762],{"type":20,"value":231},{"type":15,"tag":54,"props":764,"children":765},{"style":136},[766],{"type":20,"value":615},{"type":15,"tag":54,"props":768,"children":769},{"style":61},[770],{"type":20,"value":508},{"type":15,"tag":54,"props":772,"children":773},{"class":56,"line":352},[774,779,783,787,791,795,799,804],{"type":15,"tag":54,"props":775,"children":776},{"style":71},[777],{"type":20,"value":778},"    \\modshape",{"type":15,"tag":54,"props":780,"children":781},{"style":61},[782],{"type":20,"value":231},{"type":15,"tag":54,"props":784,"children":785},{"style":71},[786],{"type":20,"value":485},{"type":15,"tag":54,"props":788,"children":789},{"style":61},[790],{"type":20,"value":79},{"type":15,"tag":54,"props":792,"children":793},{"style":136},[794],{"type":20,"value":578},{"type":15,"tag":54,"props":796,"children":797},{"style":61},[798],{"type":20,"value":231},{"type":15,"tag":54,"props":800,"children":801},{"style":136},[802],{"type":20,"value":803},"0.6",{"type":15,"tag":54,"props":805,"children":806},{"style":61},[807],{"type":20,"value":508},{"type":15,"tag":54,"props":809,"children":810},{"class":56,"line":370},[811,816,820,824,828,832,836,841],{"type":15,"tag":54,"props":812,"children":813},{"style":71},[814],{"type":20,"value":815},"    \\dist",{"type":15,"tag":54,"props":817,"children":818},{"style":61},[819],{"type":20,"value":231},{"type":15,"tag":54,"props":821,"children":822},{"style":71},[823],{"type":20,"value":485},{"type":15,"tag":54,"props":825,"children":826},{"style":61},[827],{"type":20,"value":79},{"type":15,"tag":54,"props":829,"children":830},{"style":136},[831],{"type":20,"value":533},{"type":15,"tag":54,"props":833,"children":834},{"style":61},[835],{"type":20,"value":231},{"type":15,"tag":54,"props":837,"children":838},{"style":136},[839],{"type":20,"value":840},"0.5",{"type":15,"tag":54,"props":842,"children":843},{"style":61},[844],{"type":20,"value":508},{"type":15,"tag":54,"props":846,"children":847},{"class":56,"line":384},[848,853,857,861,865,870,874,879],{"type":15,"tag":54,"props":849,"children":850},{"style":71},[851],{"type":20,"value":852},"    \\formfreq",{"type":15,"tag":54,"props":854,"children":855},{"style":61},[856],{"type":20,"value":231},{"type":15,"tag":54,"props":858,"children":859},{"style":71},[860],{"type":20,"value":485},{"type":15,"tag":54,"props":862,"children":863},{"style":61},[864],{"type":20,"value":79},{"type":15,"tag":54,"props":866,"children":867},{"style":136},[868],{"type":20,"value":869},"1500",{"type":15,"tag":54,"props":871,"children":872},{"style":61},[873],{"type":20,"value":231},{"type":15,"tag":54,"props":875,"children":876},{"style":136},[877],{"type":20,"value":878},"1700",{"type":15,"tag":54,"props":880,"children":881},{"style":61},[882],{"type":20,"value":508},{"type":15,"tag":54,"props":884,"children":885},{"class":56,"line":393},[886,891,895,899,903,907,911,916],{"type":15,"tag":54,"props":887,"children":888},{"style":71},[889],{"type":20,"value":890},"    \\formgain",{"type":15,"tag":54,"props":892,"children":893},{"style":61},[894],{"type":20,"value":231},{"type":15,"tag":54,"props":896,"children":897},{"style":71},[898],{"type":20,"value":485},{"type":15,"tag":54,"props":900,"children":901},{"style":61},[902],{"type":20,"value":79},{"type":15,"tag":54,"props":904,"children":905},{"style":136},[906],{"type":20,"value":840},{"type":15,"tag":54,"props":908,"children":909},{"style":61},[910],{"type":20,"value":231},{"type":15,"tag":54,"props":912,"children":913},{"style":136},[914],{"type":20,"value":915},"1.1",{"type":15,"tag":54,"props":917,"children":918},{"style":61},[919],{"type":20,"value":508},{"type":15,"tag":54,"props":921,"children":923},{"class":56,"line":922},16,[924,929,933,937,941,946,950,955],{"type":15,"tag":54,"props":925,"children":926},{"style":71},[927],{"type":20,"value":928},"    \\formrq",{"type":15,"tag":54,"props":930,"children":931},{"style":61},[932],{"type":20,"value":231},{"type":15,"tag":54,"props":934,"children":935},{"style":71},[936],{"type":20,"value":485},{"type":15,"tag":54,"props":938,"children":939},{"style":61},[940],{"type":20,"value":79},{"type":15,"tag":54,"props":942,"children":943},{"style":136},[944],{"type":20,"value":945},"0.8",{"type":15,"tag":54,"props":947,"children":948},{"style":61},[949],{"type":20,"value":231},{"type":15,"tag":54,"props":951,"children":952},{"style":136},[953],{"type":20,"value":954},"0.9",{"type":15,"tag":54,"props":956,"children":957},{"style":61},[958],{"type":20,"value":508},{"type":15,"tag":54,"props":960,"children":962},{"class":56,"line":961},17,[963,968,972,976,980,985,989,994],{"type":15,"tag":54,"props":964,"children":965},{"style":71},[966],{"type":20,"value":967},"    \\bpfreq",{"type":15,"tag":54,"props":969,"children":970},{"style":61},[971],{"type":20,"value":231},{"type":15,"tag":54,"props":973,"children":974},{"style":71},[975],{"type":20,"value":485},{"type":15,"tag":54,"props":977,"children":978},{"style":61},[979],{"type":20,"value":79},{"type":15,"tag":54,"props":981,"children":982},{"style":136},[983],{"type":20,"value":984},"1000",{"type":15,"tag":54,"props":986,"children":987},{"style":61},[988],{"type":20,"value":231},{"type":15,"tag":54,"props":990,"children":991},{"style":136},[992],{"type":20,"value":993},"1300",{"type":15,"tag":54,"props":995,"children":996},{"style":61},[997],{"type":20,"value":508},{"type":15,"tag":54,"props":999,"children":1001},{"class":56,"line":1000},18,[1002,1007,1011,1015,1019,1023,1027,1031],{"type":15,"tag":54,"props":1003,"children":1004},{"style":71},[1005],{"type":20,"value":1006},"    \\bprq",{"type":15,"tag":54,"props":1008,"children":1009},{"style":61},[1010],{"type":20,"value":231},{"type":15,"tag":54,"props":1012,"children":1013},{"style":71},[1014],{"type":20,"value":485},{"type":15,"tag":54,"props":1016,"children":1017},{"style":61},[1018],{"type":20,"value":79},{"type":15,"tag":54,"props":1020,"children":1021},{"style":136},[1022],{"type":20,"value":494},{"type":15,"tag":54,"props":1024,"children":1025},{"style":61},[1026],{"type":20,"value":231},{"type":15,"tag":54,"props":1028,"children":1029},{"style":136},[1030],{"type":20,"value":533},{"type":15,"tag":54,"props":1032,"children":1033},{"style":61},[1034],{"type":20,"value":508},{"type":15,"tag":54,"props":1036,"children":1038},{"class":56,"line":1037},19,[1039,1044,1048,1052,1056,1060,1064,1069],{"type":15,"tag":54,"props":1040,"children":1041},{"style":71},[1042],{"type":20,"value":1043},"    \\hpfreq",{"type":15,"tag":54,"props":1045,"children":1046},{"style":61},[1047],{"type":20,"value":231},{"type":15,"tag":54,"props":1049,"children":1050},{"style":71},[1051],{"type":20,"value":485},{"type":15,"tag":54,"props":1053,"children":1054},{"style":61},[1055],{"type":20,"value":79},{"type":15,"tag":54,"props":1057,"children":1058},{"style":136},[1059],{"type":20,"value":984},{"type":15,"tag":54,"props":1061,"children":1062},{"style":61},[1063],{"type":20,"value":231},{"type":15,"tag":54,"props":1065,"children":1066},{"style":136},[1067],{"type":20,"value":1068},"1200",{"type":15,"tag":54,"props":1070,"children":1071},{"style":61},[1072],{"type":20,"value":508},{"type":15,"tag":54,"props":1074,"children":1076},{"class":56,"line":1075},20,[1077,1082,1086,1090,1094,1099,1103,1107],{"type":15,"tag":54,"props":1078,"children":1079},{"style":71},[1080],{"type":20,"value":1081},"    \\hprq",{"type":15,"tag":54,"props":1083,"children":1084},{"style":61},[1085],{"type":20,"value":231},{"type":15,"tag":54,"props":1087,"children":1088},{"style":71},[1089],{"type":20,"value":485},{"type":15,"tag":54,"props":1091,"children":1092},{"style":61},[1093],{"type":20,"value":79},{"type":15,"tag":54,"props":1095,"children":1096},{"style":136},[1097],{"type":20,"value":1098},"0.7",{"type":15,"tag":54,"props":1100,"children":1101},{"style":61},[1102],{"type":20,"value":231},{"type":15,"tag":54,"props":1104,"children":1105},{"style":136},[1106],{"type":20,"value":945},{"type":15,"tag":54,"props":1108,"children":1109},{"style":61},[1110],{"type":20,"value":508},{"type":15,"tag":54,"props":1112,"children":1114},{"class":56,"line":1113},21,[1115,1120,1124,1128],{"type":15,"tag":54,"props":1116,"children":1117},{"style":71},[1118],{"type":20,"value":1119},"    \\dur",{"type":15,"tag":54,"props":1121,"children":1122},{"style":61},[1123],{"type":20,"value":231},{"type":15,"tag":54,"props":1125,"children":1126},{"style":136},[1127],{"type":20,"value":840},{"type":15,"tag":54,"props":1129,"children":1130},{"style":61},[1131],{"type":20,"value":468},{"type":15,"tag":54,"props":1133,"children":1135},{"class":56,"line":1134},22,[1136,1141,1145],{"type":15,"tag":54,"props":1137,"children":1138},{"style":71},[1139],{"type":20,"value":1140},"    \\amp",{"type":15,"tag":54,"props":1142,"children":1143},{"style":61},[1144],{"type":20,"value":231},{"type":15,"tag":54,"props":1146,"children":1147},{"style":136},[1148],{"type":20,"value":1149},"0.6\n",{"type":15,"tag":54,"props":1151,"children":1153},{"class":56,"line":1152},23,[1154],{"type":15,"tag":54,"props":1155,"children":1156},{"style":61},[1157],{"type":20,"value":1158},")).play\n",{"type":15,"tag":54,"props":1160,"children":1162},{"class":56,"line":1161},24,[1163],{"type":15,"tag":54,"props":1164,"children":1165},{"style":61},[1166],{"type":20,"value":399},{"type":15,"tag":16,"props":1168,"children":1169},{},[1170],{"type":20,"value":1171},"it does not sound quite as good as the original, but it's a start. still need to look deeper into the differences.",{"type":15,"tag":16,"props":1173,"children":1174},{},[1175],{"type":20,"value":1176},"also, a SuperDirt version:",{"type":15,"tag":43,"props":1178,"children":1180},{"className":45,"code":1179,"language":47,"meta":7,"style":7},"SynthDef(\\supercaw, { |out=0, freq, voice=0.5, sustain=1, rate=1, speed=1, pan=0, amp=0.5, cawenvpeak=0.3, cawbpf=1150, cawbpq=0.33, cawhpf=550, cawhpq=0.05, cawformf=1600, cawformq=0.1, cawformgain=0.9, cawdist=0.4|\n    var note, freq0, freq1, dur, env, mf, sig, bprq, formrq;\n    note = freq.cpsmidi;\n    freq0 = (freq*0.25) * speed;\n    freq1 = 600 * (note - 60 * 0.5).midiratio * speed;\n    dur = 0.5/(rate*speed);\n    env = EnvGen.ar(Env.perc(cawenvpeak*dur, 1.0-cawenvpeak*dur), doneAction: Done.freeSelf) ** 0.3;\n    mf = SinOsc.ar(voice.linexp(1, 0, 50, 80)).max(0) ** 0.5;\n    sig = Saw.ar(env.linlin(0, 1, freq0, freq1) + (mf * env.linlin(0, 1, 325, 75)));\n    bprq = cawbpq.linexp(0, 1, 1, 0.001);\n    sig = BPF.ar(sig, cawbpf, bprq, bprq.sqrt.reciprocal);\n    sig = RHPF.ar(sig, cawhpf*(note - 48 * 0.5).midiratio * speed, cawhpq.linexp(0, 1, 1, 0.001));\n    formrq = cawformq.linexp(0, 1, 1, 0.001);\n    sig = sig + (cawformgain * BPF.ar(sig, cawformf, formrq, formrq.sqrt.reciprocal));\n    sig = LeakDC.ar(sig);\n    sig = (sig * env * cawdist).tanh * 6 * amp;\n    sig = Pan2.ar(sig, pan);\n    Out.ar(out, DirtPan.ar(sig, ~dirt.numChannels, pan, env))\n}).add;\n",[1181],{"type":15,"tag":50,"props":1182,"children":1183},{"__ignoreMap":7},[1184,1205,1217,1225,1243,1279,1296,1351,1418,1485,1527,1543,1611,1651,1668,1683,1700,1715,1747],{"type":15,"tag":54,"props":1185,"children":1186},{"class":56,"line":57},[1187,1191,1195,1200],{"type":15,"tag":54,"props":1188,"children":1189},{"style":71},[1190],{"type":20,"value":74},{"type":15,"tag":54,"props":1192,"children":1193},{"style":61},[1194],{"type":20,"value":79},{"type":15,"tag":54,"props":1196,"children":1197},{"style":71},[1198],{"type":20,"value":1199},"\\supercaw",{"type":15,"tag":54,"props":1201,"children":1202},{"style":61},[1203],{"type":20,"value":1204},", { |out=0, freq, voice=0.5, sustain=1, rate=1, speed=1, pan=0, amp=0.5, cawenvpeak=0.3, cawbpf=1150, cawbpq=0.33, cawhpf=550, cawhpq=0.05, cawformf=1600, cawformq=0.1, cawformgain=0.9, cawdist=0.4|\n",{"type":15,"tag":54,"props":1206,"children":1207},{"class":56,"line":67},[1208,1212],{"type":15,"tag":54,"props":1209,"children":1210},{"style":96},[1211],{"type":20,"value":99},{"type":15,"tag":54,"props":1213,"children":1214},{"style":61},[1215],{"type":20,"value":1216}," note, freq0, freq1, dur, env, mf, sig, bprq, formrq;\n",{"type":15,"tag":54,"props":1218,"children":1219},{"class":56,"line":92},[1220],{"type":15,"tag":54,"props":1221,"children":1222},{"style":61},[1223],{"type":20,"value":1224},"    note = freq.cpsmidi;\n",{"type":15,"tag":54,"props":1226,"children":1227},{"class":56,"line":107},[1228,1233,1238],{"type":15,"tag":54,"props":1229,"children":1230},{"style":61},[1231],{"type":20,"value":1232},"    freq0 = (freq*",{"type":15,"tag":54,"props":1234,"children":1235},{"style":136},[1236],{"type":20,"value":1237},"0.25",{"type":15,"tag":54,"props":1239,"children":1240},{"style":61},[1241],{"type":20,"value":1242},") * speed;\n",{"type":15,"tag":54,"props":1244,"children":1245},{"class":56,"line":177},[1246,1251,1256,1261,1265,1270,1274],{"type":15,"tag":54,"props":1247,"children":1248},{"style":61},[1249],{"type":20,"value":1250},"    freq1 = ",{"type":15,"tag":54,"props":1252,"children":1253},{"style":136},[1254],{"type":20,"value":1255},"600",{"type":15,"tag":54,"props":1257,"children":1258},{"style":61},[1259],{"type":20,"value":1260}," * (note - ",{"type":15,"tag":54,"props":1262,"children":1263},{"style":136},[1264],{"type":20,"value":682},{"type":15,"tag":54,"props":1266,"children":1267},{"style":61},[1268],{"type":20,"value":1269}," * ",{"type":15,"tag":54,"props":1271,"children":1272},{"style":136},[1273],{"type":20,"value":840},{"type":15,"tag":54,"props":1275,"children":1276},{"style":61},[1277],{"type":20,"value":1278},").midiratio * speed;\n",{"type":15,"tag":54,"props":1280,"children":1281},{"class":56,"line":206},[1282,1287,1291],{"type":15,"tag":54,"props":1283,"children":1284},{"style":61},[1285],{"type":20,"value":1286},"    dur = ",{"type":15,"tag":54,"props":1288,"children":1289},{"style":136},[1290],{"type":20,"value":840},{"type":15,"tag":54,"props":1292,"children":1293},{"style":61},[1294],{"type":20,"value":1295},"/(rate*speed);\n",{"type":15,"tag":54,"props":1297,"children":1298},{"class":56,"line":261},[1299,1303,1307,1311,1315,1320,1324,1329,1333,1337,1342,1346],{"type":15,"tag":54,"props":1300,"children":1301},{"style":61},[1302],{"type":20,"value":113},{"type":15,"tag":54,"props":1304,"children":1305},{"style":71},[1306],{"type":20,"value":118},{"type":15,"tag":54,"props":1308,"children":1309},{"style":61},[1310],{"type":20,"value":123},{"type":15,"tag":54,"props":1312,"children":1313},{"style":71},[1314],{"type":20,"value":128},{"type":15,"tag":54,"props":1316,"children":1317},{"style":61},[1318],{"type":20,"value":1319},".perc(cawenvpeak*dur, ",{"type":15,"tag":54,"props":1321,"children":1322},{"style":136},[1323],{"type":20,"value":139},{"type":15,"tag":54,"props":1325,"children":1326},{"style":61},[1327],{"type":20,"value":1328},"-cawenvpeak*dur), ",{"type":15,"tag":54,"props":1330,"children":1331},{"style":136},[1332],{"type":20,"value":164},{"type":15,"tag":54,"props":1334,"children":1335},{"style":71},[1336],{"type":20,"value":169},{"type":15,"tag":54,"props":1338,"children":1339},{"style":61},[1340],{"type":20,"value":1341},".freeSelf) ** ",{"type":15,"tag":54,"props":1343,"children":1344},{"style":136},[1345],{"type":20,"value":533},{"type":15,"tag":54,"props":1347,"children":1348},{"style":61},[1349],{"type":20,"value":1350},";\n",{"type":15,"tag":54,"props":1352,"children":1353},{"class":56,"line":279},[1354,1358,1362,1367,1371,1375,1379,1383,1387,1391,1396,1401,1405,1410,1414],{"type":15,"tag":54,"props":1355,"children":1356},{"style":61},[1357],{"type":20,"value":183},{"type":15,"tag":54,"props":1359,"children":1360},{"style":71},[1361],{"type":20,"value":188},{"type":15,"tag":54,"props":1363,"children":1364},{"style":61},[1365],{"type":20,"value":1366},".ar(voice.linexp(",{"type":15,"tag":54,"props":1368,"children":1369},{"style":136},[1370],{"type":20,"value":236},{"type":15,"tag":54,"props":1372,"children":1373},{"style":61},[1374],{"type":20,"value":231},{"type":15,"tag":54,"props":1376,"children":1377},{"style":136},[1378],{"type":20,"value":198},{"type":15,"tag":54,"props":1380,"children":1381},{"style":61},[1382],{"type":20,"value":231},{"type":15,"tag":54,"props":1384,"children":1385},{"style":136},[1386],{"type":20,"value":758},{"type":15,"tag":54,"props":1388,"children":1389},{"style":61},[1390],{"type":20,"value":231},{"type":15,"tag":54,"props":1392,"children":1393},{"style":136},[1394],{"type":20,"value":1395},"80",{"type":15,"tag":54,"props":1397,"children":1398},{"style":61},[1399],{"type":20,"value":1400},")).max(",{"type":15,"tag":54,"props":1402,"children":1403},{"style":136},[1404],{"type":20,"value":198},{"type":15,"tag":54,"props":1406,"children":1407},{"style":61},[1408],{"type":20,"value":1409},") ** ",{"type":15,"tag":54,"props":1411,"children":1412},{"style":136},[1413],{"type":20,"value":840},{"type":15,"tag":54,"props":1415,"children":1416},{"style":61},[1417],{"type":20,"value":1350},{"type":15,"tag":54,"props":1419,"children":1420},{"class":56,"line":297},[1421,1425,1429,1433,1437,1441,1445,1450,1454,1458,1462,1466,1471,1475,1480],{"type":15,"tag":54,"props":1422,"children":1423},{"style":61},[1424],{"type":20,"value":212},{"type":15,"tag":54,"props":1426,"children":1427},{"style":71},[1428],{"type":20,"value":217},{"type":15,"tag":54,"props":1430,"children":1431},{"style":61},[1432],{"type":20,"value":222},{"type":15,"tag":54,"props":1434,"children":1435},{"style":136},[1436],{"type":20,"value":198},{"type":15,"tag":54,"props":1438,"children":1439},{"style":61},[1440],{"type":20,"value":231},{"type":15,"tag":54,"props":1442,"children":1443},{"style":136},[1444],{"type":20,"value":236},{"type":15,"tag":54,"props":1446,"children":1447},{"style":61},[1448],{"type":20,"value":1449},", freq0, freq1) + (mf * env.linlin(",{"type":15,"tag":54,"props":1451,"children":1452},{"style":136},[1453],{"type":20,"value":198},{"type":15,"tag":54,"props":1455,"children":1456},{"style":61},[1457],{"type":20,"value":231},{"type":15,"tag":54,"props":1459,"children":1460},{"style":136},[1461],{"type":20,"value":236},{"type":15,"tag":54,"props":1463,"children":1464},{"style":61},[1465],{"type":20,"value":231},{"type":15,"tag":54,"props":1467,"children":1468},{"style":136},[1469],{"type":20,"value":1470},"325",{"type":15,"tag":54,"props":1472,"children":1473},{"style":61},[1474],{"type":20,"value":231},{"type":15,"tag":54,"props":1476,"children":1477},{"style":136},[1478],{"type":20,"value":1479},"75",{"type":15,"tag":54,"props":1481,"children":1482},{"style":61},[1483],{"type":20,"value":1484},")));\n",{"type":15,"tag":54,"props":1486,"children":1487},{"class":56,"line":315},[1488,1493,1497,1501,1505,1509,1513,1517,1522],{"type":15,"tag":54,"props":1489,"children":1490},{"style":61},[1491],{"type":20,"value":1492},"    bprq = cawbpq.linexp(",{"type":15,"tag":54,"props":1494,"children":1495},{"style":136},[1496],{"type":20,"value":198},{"type":15,"tag":54,"props":1498,"children":1499},{"style":61},[1500],{"type":20,"value":231},{"type":15,"tag":54,"props":1502,"children":1503},{"style":136},[1504],{"type":20,"value":236},{"type":15,"tag":54,"props":1506,"children":1507},{"style":61},[1508],{"type":20,"value":231},{"type":15,"tag":54,"props":1510,"children":1511},{"style":136},[1512],{"type":20,"value":236},{"type":15,"tag":54,"props":1514,"children":1515},{"style":61},[1516],{"type":20,"value":231},{"type":15,"tag":54,"props":1518,"children":1519},{"style":136},[1520],{"type":20,"value":1521},"0.001",{"type":15,"tag":54,"props":1523,"children":1524},{"style":61},[1525],{"type":20,"value":1526},");\n",{"type":15,"tag":54,"props":1528,"children":1529},{"class":56,"line":333},[1530,1534,1538],{"type":15,"tag":54,"props":1531,"children":1532},{"style":61},[1533],{"type":20,"value":212},{"type":15,"tag":54,"props":1535,"children":1536},{"style":71},[1537],{"type":20,"value":271},{"type":15,"tag":54,"props":1539,"children":1540},{"style":61},[1541],{"type":20,"value":1542},".ar(sig, cawbpf, bprq, bprq.sqrt.reciprocal);\n",{"type":15,"tag":54,"props":1544,"children":1545},{"class":56,"line":352},[1546,1550,1555,1560,1565,1569,1573,1578,1582,1586,1590,1594,1598,1602,1606],{"type":15,"tag":54,"props":1547,"children":1548},{"style":61},[1549],{"type":20,"value":212},{"type":15,"tag":54,"props":1551,"children":1552},{"style":71},[1553],{"type":20,"value":1554},"RHPF",{"type":15,"tag":54,"props":1556,"children":1557},{"style":61},[1558],{"type":20,"value":1559},".ar(sig, cawhpf*(note - ",{"type":15,"tag":54,"props":1561,"children":1562},{"style":136},[1563],{"type":20,"value":1564},"48",{"type":15,"tag":54,"props":1566,"children":1567},{"style":61},[1568],{"type":20,"value":1269},{"type":15,"tag":54,"props":1570,"children":1571},{"style":136},[1572],{"type":20,"value":840},{"type":15,"tag":54,"props":1574,"children":1575},{"style":61},[1576],{"type":20,"value":1577},").midiratio * speed, cawhpq.linexp(",{"type":15,"tag":54,"props":1579,"children":1580},{"style":136},[1581],{"type":20,"value":198},{"type":15,"tag":54,"props":1583,"children":1584},{"style":61},[1585],{"type":20,"value":231},{"type":15,"tag":54,"props":1587,"children":1588},{"style":136},[1589],{"type":20,"value":236},{"type":15,"tag":54,"props":1591,"children":1592},{"style":61},[1593],{"type":20,"value":231},{"type":15,"tag":54,"props":1595,"children":1596},{"style":136},[1597],{"type":20,"value":236},{"type":15,"tag":54,"props":1599,"children":1600},{"style":61},[1601],{"type":20,"value":231},{"type":15,"tag":54,"props":1603,"children":1604},{"style":136},[1605],{"type":20,"value":1521},{"type":15,"tag":54,"props":1607,"children":1608},{"style":61},[1609],{"type":20,"value":1610},"));\n",{"type":15,"tag":54,"props":1612,"children":1613},{"class":56,"line":370},[1614,1619,1623,1627,1631,1635,1639,1643,1647],{"type":15,"tag":54,"props":1615,"children":1616},{"style":61},[1617],{"type":20,"value":1618},"    formrq = cawformq.linexp(",{"type":15,"tag":54,"props":1620,"children":1621},{"style":136},[1622],{"type":20,"value":198},{"type":15,"tag":54,"props":1624,"children":1625},{"style":61},[1626],{"type":20,"value":231},{"type":15,"tag":54,"props":1628,"children":1629},{"style":136},[1630],{"type":20,"value":236},{"type":15,"tag":54,"props":1632,"children":1633},{"style":61},[1634],{"type":20,"value":231},{"type":15,"tag":54,"props":1636,"children":1637},{"style":136},[1638],{"type":20,"value":236},{"type":15,"tag":54,"props":1640,"children":1641},{"style":61},[1642],{"type":20,"value":231},{"type":15,"tag":54,"props":1644,"children":1645},{"style":136},[1646],{"type":20,"value":1521},{"type":15,"tag":54,"props":1648,"children":1649},{"style":61},[1650],{"type":20,"value":1526},{"type":15,"tag":54,"props":1652,"children":1653},{"class":56,"line":384},[1654,1659,1663],{"type":15,"tag":54,"props":1655,"children":1656},{"style":61},[1657],{"type":20,"value":1658},"    sig = sig + (cawformgain * ",{"type":15,"tag":54,"props":1660,"children":1661},{"style":71},[1662],{"type":20,"value":271},{"type":15,"tag":54,"props":1664,"children":1665},{"style":61},[1666],{"type":20,"value":1667},".ar(sig, cawformf, formrq, formrq.sqrt.reciprocal));\n",{"type":15,"tag":54,"props":1669,"children":1670},{"class":56,"line":393},[1671,1675,1679],{"type":15,"tag":54,"props":1672,"children":1673},{"style":61},[1674],{"type":20,"value":212},{"type":15,"tag":54,"props":1676,"children":1677},{"style":71},[1678],{"type":20,"value":325},{"type":15,"tag":54,"props":1680,"children":1681},{"style":61},[1682],{"type":20,"value":330},{"type":15,"tag":54,"props":1684,"children":1685},{"class":56,"line":922},[1686,1691,1696],{"type":15,"tag":54,"props":1687,"children":1688},{"style":61},[1689],{"type":20,"value":1690},"    sig = (sig * env * cawdist).tanh * ",{"type":15,"tag":54,"props":1692,"children":1693},{"style":136},[1694],{"type":20,"value":1695},"6",{"type":15,"tag":54,"props":1697,"children":1698},{"style":61},[1699],{"type":20,"value":349},{"type":15,"tag":54,"props":1701,"children":1702},{"class":56,"line":961},[1703,1707,1711],{"type":15,"tag":54,"props":1704,"children":1705},{"style":61},[1706],{"type":20,"value":212},{"type":15,"tag":54,"props":1708,"children":1709},{"style":71},[1710],{"type":20,"value":362},{"type":15,"tag":54,"props":1712,"children":1713},{"style":61},[1714],{"type":20,"value":367},{"type":15,"tag":54,"props":1716,"children":1717},{"class":56,"line":1000},[1718,1722,1727,1732,1737,1742],{"type":15,"tag":54,"props":1719,"children":1720},{"style":71},[1721],{"type":20,"value":376},{"type":15,"tag":54,"props":1723,"children":1724},{"style":61},[1725],{"type":20,"value":1726},".ar(out, ",{"type":15,"tag":54,"props":1728,"children":1729},{"style":71},[1730],{"type":20,"value":1731},"DirtPan",{"type":15,"tag":54,"props":1733,"children":1734},{"style":61},[1735],{"type":20,"value":1736},".ar(sig, ",{"type":15,"tag":54,"props":1738,"children":1739},{"style":136},[1740],{"type":20,"value":1741},"~dirt",{"type":15,"tag":54,"props":1743,"children":1744},{"style":61},[1745],{"type":20,"value":1746},".numChannels, pan, env))\n",{"type":15,"tag":54,"props":1748,"children":1749},{"class":56,"line":1037},[1750],{"type":15,"tag":54,"props":1751,"children":1752},{"style":61},[1753],{"type":20,"value":390},{"type":15,"tag":16,"props":1755,"children":1756},{},[1757],{"type":20,"value":1758},"why did i name things differently here? we may never know.",{"type":15,"tag":16,"props":1760,"children":1761},{},[1762],{"type":20,"value":1763},"try a Tidal pattern like:",{"type":15,"tag":43,"props":1765,"children":1769},{"className":1766,"code":1767,"language":1768,"meta":7,"style":7},"language-haskell shiki shiki-themes github-light github-dark","d1\n  $ note \"\u003C0 12 24 -12 -24>*2\"\n  # s \"supercaw\"\n  # speed (rangex 0.5 2 rand)\n  # rate (rangex 0.5 2 $ fast 1.1 rand)\n  # voice (fast 1.2 rand)\n","haskell",[1770],{"type":15,"tag":50,"props":1771,"children":1772},{"__ignoreMap":7},[1773,1781,1800,1818,1844,1882],{"type":15,"tag":54,"props":1774,"children":1775},{"class":56,"line":57},[1776],{"type":15,"tag":54,"props":1777,"children":1778},{"style":61},[1779],{"type":20,"value":1780},"d1\n",{"type":15,"tag":54,"props":1782,"children":1783},{"class":56,"line":67},[1784,1789,1794],{"type":15,"tag":54,"props":1785,"children":1786},{"style":96},[1787],{"type":20,"value":1788},"  $",{"type":15,"tag":54,"props":1790,"children":1791},{"style":61},[1792],{"type":20,"value":1793}," note ",{"type":15,"tag":54,"props":1795,"children":1797},{"style":1796},"--shiki-default:#032F62;--shiki-dark:#9ECBFF",[1798],{"type":20,"value":1799},"\"\u003C0 12 24 -12 -24>*2\"\n",{"type":15,"tag":54,"props":1801,"children":1802},{"class":56,"line":92},[1803,1808,1813],{"type":15,"tag":54,"props":1804,"children":1805},{"style":96},[1806],{"type":20,"value":1807},"  #",{"type":15,"tag":54,"props":1809,"children":1810},{"style":61},[1811],{"type":20,"value":1812}," s ",{"type":15,"tag":54,"props":1814,"children":1815},{"style":1796},[1816],{"type":20,"value":1817},"\"supercaw\"\n",{"type":15,"tag":54,"props":1819,"children":1820},{"class":56,"line":107},[1821,1825,1830,1834,1839],{"type":15,"tag":54,"props":1822,"children":1823},{"style":96},[1824],{"type":20,"value":1807},{"type":15,"tag":54,"props":1826,"children":1827},{"style":61},[1828],{"type":20,"value":1829}," speed (rangex ",{"type":15,"tag":54,"props":1831,"children":1832},{"style":136},[1833],{"type":20,"value":840},{"type":15,"tag":54,"props":1835,"children":1836},{"style":136},[1837],{"type":20,"value":1838}," 2",{"type":15,"tag":54,"props":1840,"children":1841},{"style":61},[1842],{"type":20,"value":1843}," rand)\n",{"type":15,"tag":54,"props":1845,"children":1846},{"class":56,"line":177},[1847,1851,1856,1860,1864,1869,1874,1878],{"type":15,"tag":54,"props":1848,"children":1849},{"style":96},[1850],{"type":20,"value":1807},{"type":15,"tag":54,"props":1852,"children":1853},{"style":61},[1854],{"type":20,"value":1855}," rate (rangex ",{"type":15,"tag":54,"props":1857,"children":1858},{"style":136},[1859],{"type":20,"value":840},{"type":15,"tag":54,"props":1861,"children":1862},{"style":136},[1863],{"type":20,"value":1838},{"type":15,"tag":54,"props":1865,"children":1866},{"style":96},[1867],{"type":20,"value":1868}," $",{"type":15,"tag":54,"props":1870,"children":1871},{"style":61},[1872],{"type":20,"value":1873}," fast ",{"type":15,"tag":54,"props":1875,"children":1876},{"style":136},[1877],{"type":20,"value":915},{"type":15,"tag":54,"props":1879,"children":1880},{"style":61},[1881],{"type":20,"value":1843},{"type":15,"tag":54,"props":1883,"children":1884},{"class":56,"line":206},[1885,1889,1894,1899],{"type":15,"tag":54,"props":1886,"children":1887},{"style":96},[1888],{"type":20,"value":1807},{"type":15,"tag":54,"props":1890,"children":1891},{"style":61},[1892],{"type":20,"value":1893}," voice (fast ",{"type":15,"tag":54,"props":1895,"children":1896},{"style":136},[1897],{"type":20,"value":1898},"1.2",{"type":15,"tag":54,"props":1900,"children":1901},{"style":61},[1902],{"type":20,"value":1843},{"type":15,"tag":1904,"props":1905,"children":1906},"style",{},[1907],{"type":20,"value":1908},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":7,"searchDepth":67,"depth":67,"links":1910},[],"markdown","content:blog:supercaw.md","content","blog/supercaw.md","blog/supercaw","md",1784471707087]