vecnode commited on
Commit
96d6049
·
verified ·
1 Parent(s): 53408f1

v0.1.11: full profile

Browse files
README.md CHANGED
@@ -21,7 +21,7 @@ Training data for **SC-MiniMind-3-MoE**, a 198M-parameter SuperCollider language
21
  corpus, a supervised fine-tuning set whose code answers were compiled with `sclang`, and the manifests
22
  that make both checkable.
23
 
24
- Profile: **full** · visibility: **private** · revision `v0.2.0` · repo `vecnode/supercollider-moe-dataset` · 10 files, 69.5 MB
25
 
26
  > **Licence warning.** This build includes text derived from sccode.org, which states no
27
  > licence, and from scsynth.org, whose posts belong to their authors. It is published as
@@ -32,11 +32,11 @@ Profile: **full** · visibility: **private** · revision `v0.2.0` · repo `vecno
32
 
33
  | file | rows | size | sha256 |
34
  |---|---|---|---|
35
- | `data/pretrain/train.jsonl` | 35,353 | 56.2 MB | `a08608174bc52d20…` |
36
- | `data/pretrain/val.jsonl` | 735 | 1.2 MB | `110c126dec48cad3…` |
37
- | `data/sft/train.jsonl` | 6,000 | 4.2 MB | `1e4ba71a91148816…` |
38
- | `data/sft/val.jsonl` | 215 | 0.1 MB | `771b8cbb3c9e2dc7…` |
39
- | `data/sft/pool.jsonl` | 13,932 | 7.8 MB | `47449ea92538842e…` |
40
  | `data/sft/teacher.jsonl` | 94 | 0.1 MB | `74e4af14a1f151ef…` |
41
 
42
  `data/pretrain/train.jsonl` lines are exactly `{"text": …}`; `data/sft/train.jsonl` lines are exactly
 
21
  corpus, a supervised fine-tuning set whose code answers were compiled with `sclang`, and the manifests
22
  that make both checkable.
23
 
24
+ Profile: **full** · visibility: **private** · revision `v0.1.11` · repo `vecnode/supercollider-moe-dataset` · 9 files, 75.3 MB
25
 
26
  > **Licence warning.** This build includes text derived from sccode.org, which states no
27
  > licence, and from scsynth.org, whose posts belong to their authors. It is published as
 
32
 
33
  | file | rows | size | sha256 |
34
  |---|---|---|---|
35
+ | `data/pretrain/train.jsonl` | 59,179 | 58.2 MB | `8454ed97da318f4d…` |
36
+ | `data/pretrain/val.jsonl` | 1,235 | 1.2 MB | `01c2d5fc0542d3a0…` |
37
+ | `data/sft/train.jsonl` | 17,032 | 8.5 MB | `6f802fa66f57fc08…` |
38
+ | `data/sft/val.jsonl` | 200 | 0.1 MB | `cc927549a13e0566…` |
39
+ | `data/sft/pool.jsonl` | 13,691 | 7.3 MB | `53bcd9966033d515…` |
40
  | `data/sft/teacher.jsonl` | 94 | 0.1 MB | `74e4af14a1f151ef…` |
41
 
42
  `data/pretrain/train.jsonl` lines are exactly `{"text": …}`; `data/sft/train.jsonl` lines are exactly
checksums.sha256 CHANGED
@@ -1,10 +1,9 @@
1
- a08608174bc52d20c3d1d0b6bac983f3b341d3900095b29bb6674d2d13f16ab4 data/pretrain/train.jsonl
2
- 110c126dec48cad338f32aecaca3c56b0f615263f53ee1d64144147f139db40a data/pretrain/val.jsonl
3
- 47449ea92538842ef0286529b84746baced0ea01e712c9750f3e92d9f1a43553 data/sft/pool.jsonl
4
  74e4af14a1f151ef9de1094eb2364f5bd5eb8377b9fbb8a6474b49fd69cf54d1 data/sft/teacher.jsonl
5
- 1e4ba71a91148816e53c339100791df941fd96017d4930d6c1290e8ac8b72e22 data/sft/train.jsonl
6
- 771b8cbb3c9e2dc71ed281ef44f2c27002483d922fd5d47f1ac8e2effb152a29 data/sft/val.jsonl
7
  e48310f6d2062b4b6c7d2d12e5285ec14deb84e9d4339325879e746c3e0a4403 LICENCES.md
8
  de92d20b5bd404834e1343e5bf60497e4d29cacd7c60367f2e0c97e7810a7c89 SCHEMA.md
9
- 6d4d58ef2fdc1cfac36ef2abadd0f77098177fa30800da352aa5a9f24c6a5316 stats.json
10
- 78d74c93b53e7d9069a9f94f39c05d5b216e1f9b4820c1392587d7b3ee7f7eea verify_report.md
 
1
+ 8454ed97da318f4de2c331bd195827b92e8c25ae5848211d89063513b7d50e0d data/pretrain/train.jsonl
2
+ 01c2d5fc0542d3a0d015e8d4403f612edfcee9cf0050dad195f009a7882f9928 data/pretrain/val.jsonl
3
+ 53bcd9966033d5153d7103662cc8f47faf7f7d5af01f84af613348208cd75e0c data/sft/pool.jsonl
4
  74e4af14a1f151ef9de1094eb2364f5bd5eb8377b9fbb8a6474b49fd69cf54d1 data/sft/teacher.jsonl
5
+ 6f802fa66f57fc08c971a10825e2550be1e07d4749236a98ef8821c96ae723d9 data/sft/train.jsonl
6
+ cc927549a13e05665df420e7a953c26bab753eb9b74f56861c5d02b98cb4e85d data/sft/val.jsonl
7
  e48310f6d2062b4b6c7d2d12e5285ec14deb84e9d4339325879e746c3e0a4403 LICENCES.md
8
  de92d20b5bd404834e1343e5bf60497e4d29cacd7c60367f2e0c97e7810a7c89 SCHEMA.md
9
+ 4f3af2969931404a2ce1d230dd91a15f1e97bc6370c293a07b033d61392448e0 verify_report.md
 
data/pretrain/train.jsonl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:a08608174bc52d20c3d1d0b6bac983f3b341d3900095b29bb6674d2d13f16ab4
3
- size 56158388
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8454ed97da318f4de2c331bd195827b92e8c25ae5848211d89063513b7d50e0d
3
+ size 58188770
data/pretrain/val.jsonl CHANGED
The diff for this file is too large to render. See raw diff
 
data/sft/pool.jsonl CHANGED
The diff for this file is too large to render. See raw diff
 
data/sft/train.jsonl CHANGED
The diff for this file is too large to render. See raw diff
 
data/sft/val.jsonl CHANGED
@@ -1,11 +1,3 @@
1
- {"conversations": [{"role": "user", "content": "Explain this SuperCollider patch.\n```supercollider\n//an area middle of the screen has friction - no gravity in this world\n\n(\nvar width= 300, height= 300, w, world, acc, vel, loc, obj, fric, ff;\n\n//--world\nw= RedWindow(\"friction test\", Rect(128, 64, width, height)).front;\nworld= RedWorld(RedVector2D[width, height], 0, 30, 0.8); //dim,grav,maxvel,damp\n\n//--objects\nacc= RedVector2D[0, 0];\nvel= RedVector2D[3.5, 10];\nloc= RedVector2D[250, 10];\nobj= RedObject(world, loc, vel, acc, 1.5, 10);\n\nfric= Rect(0, height*0.4, width, 40); //area with friction\nff= -0.5; //amount of friction\n\n//--loop\nw.draw{\n if(fric.containsPoint(obj.loc.asPoint), {\n if(obj.vel.mag>0 and:{obj.vel.mag>obj.frictionForce(ff).mag}, {\n obj.addForce(obj.frictionForce(ff));\n }, {\n obj.vel= obj.vel*0; //stop object\n });\n });\n obj.update;\n world.contain(obj);\n\n //--render\n Pen.fillColor= Color.red;\n Pen.fillRect(fric);\n Pen.strokeColor= Color.white;\n Pen.strokeRect(Rect.aboutRedObject2D(obj));\n};\nw.play;\nCmdPeriod.doOnce({w.close});\n)\n```"}, {"role": "assistant", "content": "an area middle of the screen has friction - no gravity in this world."}]}
2
- {"conversations": [{"role": "user", "content": "What does this SuperCollider patch do?\n```supercollider\nSynthDef(\"task_efef68ae-1aef-4dc3-9bc3-274765c62cb1\", {\n arg out=0, gate=1, freq=220, amp=0.3, tempo=1.0;\n var env, warmPad, vocalSim, tapeSat, analogFilt, wobble, pan, sig, time, dust;\n \n // Long evolving envelope\n env = EnvGen.kr(Env([0, 0.7, 1, 0.8, 0], [8, 25, 30, 15] / tempo, [2, -2, 3, -4]), gate, doneAction: 2);\n time = SinOsc.kr(0.02 * tempo);\n \n // Warm analog-style pad\n warmPad = Mix.ar([\n Saw.ar(freq * [0.99, 1.01, 1.503]) * 0.4,\n Pulse.ar(freq * [0.5, 0.752], LFNoise1.kr(0.3).range(0.3, 0.7)) * 0.3\n ]);\n \n // Simulated children's vocal formants\n vocalSim = Formant.ar(\n freq * [0.7, 0.9] + LFNoise1.kr(2).range(-5, 5),\n [800, 1200] + (time * 200),\n [100, 150],\n LFNoise1.kr(0.1).range(0.05, 0.15)\n );\n \n // Analog filter with slow modulation\n wobble = SinOsc.kr([0.07, 0.05] * tempo).range(0.3, 1.2);\n analogFilt = RLPF.ar(warmPad + vocalSim, \n (400 + (time * 600) + LFNoise1.kr(0.3).range(0, 300)) * wobble, \n 0.4 + LFNoise1.kr(0.2).range(0, 0.3)\n );\n \n // Tape saturation simulation\n tapeSat = (ana\n```"}, {"role": "assistant", "content": "warm ambient textures with filtered voices, analog-style processing, and evolving pads reminiscent of Boards of Canada."}]}
3
- {"conversations": [{"role": "user", "content": "What does this SuperCollider patch do?\n```supercollider\n~file = \"~/Musique/sc/samplekit/loop/lovin.flac\".standardizePath;\n\ne = SCMIRAudioFile(~file, [[MFCC, 13], [Chromagram, 12]]); // open file for SCMIR\nb = Buffer.read(Server.default, ~file); // buffer for the Pbind\n{e.extractFeatures()}.fork; // extract features before creating similarityMatrix\nm = e.similarityMatrix(unit:10, metric:2); // create similarityMatrix \n\n(\n// simple buffer player\nSynthDef(\\playersec, { arg out=0, amp=0.1, gate=1, pan=0, freq=200, bufnum, speed=1, pos=0, doneAction=2, loop=0, trigger=1, velamp=1;\n // pos in seconds\n var sig;\n var sig1;\n sig = PlayBuf.ar(2, bufnum, BufRateScale.kr(bufnum) * speed, trigger, startPos: (pos*BufSampleRate.kr(bufnum)), doneAction:doneAction, loop: loop);\n sig = sig * EnvGen.ar(\\adsr.kr(Env.adsr(0.001,0,1,0.01)),gate,doneAction:doneAction);\n //sig = Pan2.ar(sig, pan, 1).sum;\n Out.ar(out, sig * \\gain.kr(1) * velamp);\n}).add;\n);\n\n(\nPdef(\\sortsample,\n Pbind(\n \\instrument, \\playersec,\n \\bufnum, b,\n // take sample at column 105 and play other columns by order of similarity\n // pos is position in the sample in seconds\n // column 105 start at 105*m.reducedrows+0 and ends at 105*m.reducedrows+m.reducedcolumns\n \n```"}, {"role": "assistant", "content": "analyze a sample with SCMIR and sort sample segments by similarity (a SuperCollider snippet)."}]}
4
- {"conversations": [{"role": "user", "content": "What does this SuperCollider patch do?\n```supercollider\n~myDust = {[Resonz.ar([[Dust, Dust2].choose.ar(ChaosGen.allSubclasses.choose.ar(0.1).abs * 10), [Dust, Dust2].choose.ar(ChaosGen.allSubclasses.choose.ar(0.1).abs * 10)], rrand(30, 1200), 0.05)*60FreeVerb.ar(Resonz.ar([[Dust, Dust2].choose.ar(ChaosGen.allSubclasses.choose.ar(0.1).abs * 10), [Dust, Dust2].choose.ar(ChaosGen.allSubclasses.choose.ar(0.1).abs * 10)], rrand(30, 1200), 0.05)*60)]};\n\n(\n~mySine={var a, b, c, d;\na={[SinOsc.ar(rrand(30, 75), mul: ChaosGen.allSubclasses.choose.ar(rrand(1, 30))), SinOsc.ar(rrand(30, 75), mul: ChaosGen.allSubclasses.choose.ar(rrand(1, 30)))] * 0.3};\nb={[SinOsc.ar(rrand(220, 440), mul: ChaosGen.allSubclasses.choose.ar(rrand(1, 30))), SinOsc.ar(rrand(220, 440), mul: ChaosGen.allSubclasses.choose.ar(rrand(1, 30)))] * 0.1};\nc={[SinOsc.ar(rrand(880, 2200), mul: ChaosGen.allSubclasses.choose.ar(rrand(1, 30))), SinOsc.ar(rrand(880, 2200), mul: ChaosGen.allSubclasses.choose.ar(rrand(1, 30)))] * 0.064};\nd={[SinOsc.ar(rrand(8800, 22000), mul: ChaosGen.allSubclasses.choose.ar(rrand(1, 30))), SinOsc.ar(rrand(8800, 22000), mul: ChaosGen.allSubclasses.choose.ar(rrand(1, 30)))] * 0.064};\n Out.ar(0, (a+b+c+d)*0.4);\n};\n);\n\n~dustM1={CmdPeriod.run; ~myDust.play; \n```"}, {"role": "assistant", "content": "sinewaves with pulses. a lot of stochastic stuff, result leading to interesting things."}]}
5
- {"conversations": [{"role": "user", "content": "What does this SuperCollider patch do?\n```supercollider\n// setup\nPdef.all.clear;\nNdef.all.clear;\n(\nSynthDef(\\blip, { |out= 0, freq = 261.6255653006, nharm = 10, gate = 1, amp = 0.1|\n var sig = Blip.ar(freq * ((-2..2)/500 + 1), nharm); // five channels, detuned\n var env = EnvGen.kr(Env.adsr(), gate, doneAction:2);\n sig = sig * env;\n Out.ar(out, Splay.ar(sig) * amp)\n}).add\n);\n\n~hitzpath=\"/Users/jsimon/Music/SuperCollider Recordings/hitzamples/\"; // various drum samples\n~bufs = (~hitzpath ++ \"*.aiff\").pathMatch.collect({ |i| Buffer.read(s, i)});\n(\nSynthDef(\\bf, {|out=0 buf=0 amp=0.1 freq=261.6255653006|\n var sig = PlayBuf.ar(2, buf, BufRateScale.kr(buf) * freq/60.midicps, doneAction:2);\n Out.ar(out, sig * amp)\n}).add\n);\n\nt = TempoClock(140/60).permanent_(true);\n\n~mbus = Bus.audio(s, 2);\nNdef(\\m).put(0, { InFeedback.ar(~mbus, 2) }).fadeTime_(0.2).play; // actually never used!\n\n// go\n\nPbindef(\\b, \\instrument, \\blip)\n~mel = {-12.rand}!16\nPbindef(\\b, \\scale, Scale.hexMajor7)\nPbindef(\\b, \\degree, Pseq(~mel,inf))\nPbindef(\\b, \\dur, 1/4)\nPbindef(\\b, \\out, ~mbus).play(t, quant:4) // <-----------------\n~mel2 = {-12.rand}!32\nPbindef(\\b, \\degree, Pseq(~mel2,inf))\nPbindef(\\b, \\degree, Pseq([~mel, ~mel, ~mel2].flatten,inf))\n// need to do somethin\n```"}, {"role": "assistant", "content": "More rehearsals towards a sort of algorave gig I've been offered, tidied up a bit. One run of this here https://soundcloud.com/tedthetrumpet/lcode-04-gmsnprep-05."}]}
6
- {"conversations": [{"role": "user", "content": "What does this SuperCollider patch do?\n```supercollider\n(//compander -> amplitude\nn=Ndef(\\ct,{\n //var sig=SinOsc.ar*(1-LFSaw.ar(1,0,0.5,0.5));\n var sig=SinOsc.ar*(1-LFPulse.ar(1));\n var inputspecs=[\n Spec.add(\\clampTime, [0.00001, 10,\\exp,0,0.05]);\n Spec.add(\\clampTime2, [0, 1,\\lin,0,0.05]);\n Spec.add(\\relaxTime, [0.00001, 60,\\exp,0,1]);\n Spec.add(\\compression, [0.01, 1,\\lin,0,0.1]);\n Spec.add(\\slopeBelow, [0.01, 10,\\lin,0,0.1]);\n Spec.add(\\slopeAbove, [0.0001, 1,\\lin,0,0.25]);\n ];\n var t=\\thresh.kr(0.75);\n var ct=\\clampTime.kr(0.05);\n var rt=\\relaxTime.kr(1);\n var slopeBelow= \\slopeBelow.kr(1);\n var slopeAbove= \\slopeAbove.kr(0.9);\n\n var a=Amplitude.ar(sig,ct,rt);\n var prevmaxval=a.abs;\n var lg1=pow(prevmaxval / t, slopeBelow - 1);\n var absx = lg1.abs;\n var lg=if((absx < 1e-15),0,if((absx > 1e15),1,lg1));\n var ag=pow(prevmaxval / t, slopeAbove - 1);\n var next_gain=if (prevmaxval < t,lg,ag);\n \n var cp=Compander.ar(sig,sig,t,slopeBelow,slopeAbove,ct,rt);\n Out.ar(0,[sig * next_gain,cp]);\n});\nn.gui;\n\n);\n\ns.scope(bufsize:2**14)\n```"}, {"role": "assistant", "content": "I am not sure if anybody else is interested in such a thing but i think it is cool be able to look inside the working of compander inside of SuperCollider.\r\n\r\nleftchannel=different UGens\r\nrightchannel=Compander.ar."}]}
7
- {"conversations": [{"role": "user", "content": "What does this SuperCollider patch do?\n```supercollider\nSynthDef(\\ping, { |out, freq=440, amp=0.1, impdecay=0.01, attack=0.0001,sustain=0.1, famt=3, ffreq=1000, hdur=0.1|\n var snd, trig, decay;\n trig = Impulse.ar(0);\n decay = Decay2.ar(trig, attack, impdecay) * 1;\n snd = Mix(Ringz.ar(decay, freq*[1,2], sustain));\n snd = snd + Mix(SinOsc.ar(freq*[Rand(1,1.1),Rand(1.4, 1.6), Rand(1.9,2.1), Rand(3.9, 4.1)], mul:Decay2.ar(trig, 0.01,hdur)));\n snd = BLowPass.ar(snd, ffreq * decay.linexp(0,1,1,famt), 0.1);\n snd = snd * EnvGen.ar(Env.linen(0, sustain/Rand(1.0,4.0), 0.1), doneAction:2);\n OffsetOut.ar(out, (snd * amp)!2);\n}).add;\n\nNdef(\\ping, Pbind(\n \\instrument, \\ping,\n \\scale, Scale.mixolydian,\n \\n, Pwhite(1,4,inf),\n \\octave, Pclump(Pkey(\\n), Prand([6,7], inf)),\n// \\degree, Pclump(Pkey(\\n), Pwrand([0,2,3,4,5,6], [10,7,3,5,2,1].normalizeSum, inf)),\n \\degree, Pclump(Pkey(\\n), Place([[0,1,2,3,4], [2,3,4,5,6], [4,3,4,3,6,7], [0,2,1,2,1,4,3,3,5]], inf)),\n \\attack, Pclump(Pkey(\\n), Pwhite(0.0005, 0.001)),\n \\sustain, Pfunc{ |e| e.octave / 4 } + Pwhite(0.01, 0.5, inf),\n \\strum, Prand([0, 1/3, 1/4, 1/16, 1/32, 1, 2], inf),\n \\detune, Pclump(Pkey(\\n), Pwhite(-2.0, 2.0, inf)),\n \\ffreq, Pclump(Pkey(\\n), Pwhite(200.0, 2000.0, inf\n```"}, {"role": "assistant", "content": "I was trying to to a music box sound that sounds kind of broken.\r\nNot very disappointed with the result :)."}]}
8
- {"conversations": [{"role": "user", "content": "Explain this SuperCollider patch.\n```supercollider\n// LMFAP: Little Man From Another Place (the dwarf in the Red Room)\n// (thor magnusson) (2006)\n\n// better use headphones !!!\n(\ns = Server.local;\nb = Buffer.alloc(s, 44100 * 6.0, 2);\n);\n(\nSynthDef(\\LMFAP, {|combdecay=1, allpassdecay=0.5, wet=0.1, bufnum, rate=1, end=264600|\n var in, signal;\n in = SoundIn.ar([0,1]);\n z = DelayN.ar(in, 0.1, 0.51);\n y = Mix.ar(Array.fill(3,{ CombL.ar(z, 0.05, rrand(0.03, 0.05), combdecay) }));\n 6.do({ y = AllpassN.ar(y, 0.030, rrand(0.01, 0.03), allpassdecay) });\n BufWr.ar(in+(y*wet), bufnum, Phasor.ar(0, 1, 0, end));\n signal = BufRd.ar(2, bufnum, Phasor.ar(0, BufRateScale.kr(0)*rate, 0, end));\n y = Mix.ar(Array.fill(7,{ CombL.ar(signal, 0.05, rrand(0.03, 0.05), combdecay) }));\n 6.do({ y = AllpassN.ar(y, 0.050, rrand(0.03, 0.05), allpassdecay) });\n Out.ar(0, signal+(y*wet));\n}).add;\n);\n\n// wait a bit\nc = Synth(\\LMFAP, [\\bufnum, b.bufnum, \\rate, -1]);\n\n\nc.set(\\combdecay, 3)\nc.set(\\allpassdecay, 0.4)\n\nc.set(\\rate, -0.8)\n\nc.set(\\wet, 0.4) // more reverb\n\nc.set(\\end, 44100*3) // 3 sec loop\n\nc.free;\nb.free;\n```"}, {"role": "assistant", "content": "LMFAP: Little Man From Another Place (the dwarf in the Red Room) (thor magnusson) (2006) better use headphones !!!."}]}
9
  {"conversations": [{"role": "user", "content": "What is `CutBuf2` in SuperCollider?"}, {"role": "assistant", "content": "CutBuf2 — BBCut2 buffer playback with modulatable grain parameters Playback for a buffer, with individual grains spawned for each cut. Each grain may have associated parameters for playback speed, enveloping and dutycycle (ratio of duration to inter-onset-interval). Category: Libraries > BBCut > Cut synths."}]}
10
  {"conversations": [{"role": "user", "content": "Explain `CutBuf2` in SuperCollider briefly."}, {"role": "assistant", "content": "CutBuf2 — BBCut2 buffer playback with modulatable grain parameters Playback for a buffer, with individual grains spawned for each cut. Each grain may have associated parameters for playback speed, enveloping and dutycycle (ratio of duration to inter-onset-interval). Category: Libraries > BBCut > Cut synths."}]}
11
  {"conversations": [{"role": "user", "content": "What is `MotifCutProc` in SuperCollider?"}, {"role": "assistant", "content": "MotifCutProc — Automatic breakbeat cutting algorithm with a hierarchical structure This cut procedure provides an intermediate level of hierachy between a phrase and a block. A motif is a short rhythmic cell, represented by nested arrays. A block is taken an array of cuts, for example: Category: Libraries > BBCut > Cut procedures."}]}
@@ -86,7 +78,6 @@
86
  {"conversations": [{"role": "user", "content": "Explain `TGrains` in SuperCollider briefly."}, {"role": "assistant", "content": "TGrains — Buffer granulator. Triggers generate grains from a buffer. Each grain has a Hanning envelope `(sin2(x) for x from 0 to π)` and can be panned over multichannel output. Category: UGens > Buffer, UGens > Generators > Granular."}]}
87
  {"conversations": [{"role": "user", "content": "What is `ZeroCrossing` in SuperCollider?"}, {"role": "assistant", "content": "ZeroCrossing — Zero crossing frequency follower Outputs a frequency based upon the distance between interceptions of the X axis. The X intercepts are determined via linear interpolation so this gives better than just integer wavelength resolution. This is a very crude pitch follower, but can be useful in some situations. Category: UGens > Analysis > Pitch."}]}
88
  {"conversations": [{"role": "user", "content": "Explain `ZeroCrossing` in SuperCollider briefly."}, {"role": "assistant", "content": "ZeroCrossing — Zero crossing frequency follower Outputs a frequency based upon the distance between interceptions of the X axis. The X intercepts are determined via linear interpolation so this gives better than just integer wavelength resolution. This is a very crude pitch follower, but can be useful in some situations. Category: UGens > Analysis > Pitch."}]}
89
- {"conversations": [{"role": "user", "content": "What does `CutBuf2.new` do? What arguments does it take?"}, {"role": "assistant", "content": "All of the arguments apart from bbcutbuf can have more complex objects than SimpleNumbers passed in. You can pass in anything which responds to value (like a Function) or even objects which respond to the updateblock method such as CutPBS1 (see examples Arguments: bbcutbuf — An instance of BBCutBuffer representing the buffer to be cut-up.; offset — A parameter to be passed to any cut playback position determining routine. The default chooseoffset method is in BBCutBuffer and the parameter is a single number from 0.0 to 1.0 giving the chance of a jump to a random event in the source.; pbsfunc — Playback speed (rate) control for each cut. This can be a constant, or some other object that responds to .value, which is called for every repeat in a block. The first argument is the repeat number in the block, and the second argument is the block itself. If pbsfunc responds to .updateblock, that ; dutycycle — Ratio of duration to inter-onset-interval (IOI). 0.5 would mean that the duration of grains is only half the length between cut start times.; atkprop — Enveloping parameter for attack speed. Rated as a proportion of the overall envelope (0.0 to 1.0); relprop — Enveloping parameter for release speed. Rated as a proportion of the overall envelope (0.0 to 1.0); curve — Envelope curve."}]}
90
  {"conversations": [{"role": "user", "content": "What does `MotifCutProc.new` do?"}, {"role": "assistant", "content": "Create a MotifCutProc object with the given"}]}
91
  {"conversations": [{"role": "user", "content": "What does `MotifCutProc.stringtomotif` do?"}, {"role": "assistant", "content": "Converts a string in a particular form into a Motif. Used for entering Motifs in a StringDialog in live coding. The class method returns a Motif. The form uses integers and the the letter 'r' for repeats, and ignores all else. For example `3r4 = [ 3, 3, 3,3 ]` It would then be converted into beats, by a multiplier like 0.5, 0.25. This method is unnecessary since you can go"}]}
92
  {"conversations": [{"role": "user", "content": "What does `StatBalProc.new` do? What arguments does it take?"}, {"role": "assistant", "content": "Automatic breakbeat cutting algorithm using statistical feedback Arguments: cutsbs — A StatBalStream object that returns a cut size from the next method.; repeatsbs — A StatBalStream object that returns the number of repeats from the next method.; phraselength — Next length of phrase in beats.; rollchance — A probability of a roll near the end of a phrase.; rollallowed — number of beats within sight of the end of the current phrase within which a roll is permissible.; bpsd — beats per sub division. Sets a primitive cut size resolution for choose offset messages.."}]}
@@ -154,7 +145,6 @@
154
  {"conversations": [{"role": "user", "content": "What does `MultiChanRecorder.monitor` do? What arguments does it take?"}, {"role": "assistant", "content": "a utility for recording multiple Busses to multiple time-aligned files Arguments: boo."}]}
155
  {"conversations": [{"role": "user", "content": "What does `MultiChanRecorder.isMonitoring` do?"}, {"role": "assistant", "content": "a utility for recording multiple Busses to multiple time-aligned files"}]}
156
  {"conversations": [{"role": "user", "content": "What does `MultiChanRecorder.cmdPeriod` do?"}, {"role": "assistant", "content": "a utility for recording multiple Busses to multiple time-aligned files"}]}
157
- {"conversations": [{"role": "user", "content": "What does `DXEnvFan.ar` do? What arguments does it take?"}, {"role": "assistant", "content": "returns crossfade envelopes according to demand-rate control Arguments: out — Determines the sequence of channels between which the envelopes should be crossfaded. A channel index, a demand rate or other ugen returning channel indices or a SequenceableCollection of such, causing multichannel expansion. If in this case the overall multichannel size is larger than the size of o; fadeTime — A fade time, a demand rate or other ugens returning fade times or a SequenceableCollection of such, causing multichannel expansion. If in this case the overall multichannel size is larger than the size of fadeTime and the latter contains demand rate ugens, they must all be wrapped into Functions. Th; stepTime — A step time, a demand rate or other ugens returning step times or a SequenceableCollection of such, causing multichannel expansion. If in this case the overall multichannel size is larger than the size of stepTime and the latter contains demand rate ugens, they must all be wrapped into Functions. Th; fadeMode — Integers between 0 and 4 or a SequenceableCollection of such, causing multichannel expansion. Not modulatable.; sine — Determines the crossfade type: sine-based or not. A Boolean, 0 or 1 or a demand rate or other ugen returning sine numbers or a SequenceableCollection of such, causing multichannel expansion. If in this case the overall multichannel size is larger than the size of sine and the latter contains demand ; equalPower — Determines if crossfading of equal power type (square root) should be applied. A Boolean, 0 or 1 or a demand rate or other ugen returning equalPower numbers or a SequenceableCollection of such, causing multichannel expansion. If in this case the overall multichannel size is larger than the size of e; power — This only comes into play if equalPower equals 0, then it's applied to the crossfade amplitude. If power and curve are passed, power applies before. A positive Number or a demand rate or other ugen returning positive power numbers or a SequenceableCollection of such, causing multichannel expansion. ; curve — This only comes into play if equalPower equals 0, then it's applied to the crossfade amplitude according to the lincurve mapping. If power and curve are passed, power applies before. A Number or a demand rate or other ugen returning curve numbers or a SequenceableCollection of such, causing multicha."}]}
158
  {"conversations": [{"role": "user", "content": "What does `DXEnvFan.kr` do?"}, {"role": "assistant", "content": "returns crossfade envelopes according to demand-rate control"}]}
159
  {"conversations": [{"role": "user", "content": "What does `PSVunion_o.new` do? What arguments does it take?"}, {"role": "assistant", "content": "Creates a new PSVunion_o Arguments: genList — An array of generators and corresponding offsets. Allowed generators: Integers, Streams or Patterns producing intervals or Sieves itself. Integers and Stream/Pattern output must be strictly positive. Integers as generators produce zero and its positive multiples. Offsets must be integers.; maxLength — Integer. Maximum number of items, which the stream will return. Defaults to inf.; limit — Integer. Limit up to which integers can be returned by the stream. If no limit is passed, returned integers might go up to default limit 65536.."}]}
160
  {"conversations": [{"role": "user", "content": "What does `RedSampler.prepareForPlay` do? What arguments does it take?"}, {"role": "assistant", "content": "Attach a soundfile to a key (number or symbol) and create buffers - one for each overlapping voice. This method is also has the alias `preload` for backward Arguments: key — A number or a symbol.; path — A string to a soundfile.; startFrame — In samples.; numFrames — How much of the file to load in samples. Leave as `nil` to load the complete file.."}]}
@@ -183,7 +173,6 @@
183
  {"conversations": [{"role": "user", "content": "What does `Score.play` do? What arguments does it take?"}, {"role": "assistant", "content": "as #*new but immediately plays it. (See also the instance method Arguments: list — the list.; server — If no value is supplied it will play on the default Server.."}]}
184
  {"conversations": [{"role": "user", "content": "What does `Score.write` do? What arguments does it take?"}, {"role": "assistant", "content": "a convenience method to create a binary OSC file for NRT synthesis. Does not create an Arguments: list — the list.; oscFilePath — a String containing the desired path of the OSC file.; clock — Use clock as a tempo base. `TempoClock.default` is used if clock is nil.."}]}
185
  {"conversations": [{"role": "user", "content": "What does `Score.writeFromFile` do? What arguments does it take?"}, {"role": "assistant", "content": "as #*write but reads the list from a Arguments: path — a path to a file with a list.; oscFilePath — a String containing the desired path of the OSC file.; clock — Use clock as a tempo base. `TempoClock.default` is used if clock is nil.."}]}
186
- {"conversations": [{"role": "user", "content": "What does `Score.recordNRT` do? What arguments does it take?"}, {"role": "assistant", "content": "a convenience method to synthesize list in non-realtime. This method writes an OSC file to oscFilePath (you have to do your own cleanup if desired) and then starts a server app to synthesize it. For details on valid headerFormats and sampleFormats see SoundFile. Use `TempoClock.default` as a tempo base. Does not return an Arguments: list — the list. It is sorted automatically by timestamp.; oscFilePath — the path to which the binary OSC file will be written. If `nil` (= default), Score will generate a temporary filename for you.; outputFilePath — the path of the resulting soundfile.; inputFilePath — an optional path for an input soundfile. Its contents will be streamed to the NRT server's hardware input buses.; sampleRate — the sample rate at which synthesis will occur.; headerFormat — the header format of the output file. The default is 'AIFF'. See SoundFile#-headerFormat for valid format strings.; sampleFormat — the sample format of the output file. The default is 'int16'. See SoundFile#-sampleFormat for valid format strings.; options — an instance of ServerOptions. If not supplied the options of the default Server will be used. You should at least specify the number of output channels, e.g. `ServerOptions.new.numOutputBusChannels_(4)`. If you use an input file, make sure to also specify `numInputBusChannels`!."}]}
187
  {"conversations": [{"role": "user", "content": "What does `Score.play` do?"}, {"role": "assistant", "content": "play the list on server, use clock as a tempo base and quantize start time to quant. If server is nil, then on the default server. `TempoClock.default` if clock is nil. now if quant is"}]}
188
  {"conversations": [{"role": "user", "content": "What does `Score.write` do?"}, {"role": "assistant", "content": "create a binary OSC file for NRT synthesis from the list. Use clock as a tempo base. `TempoClock.default` if clock is"}]}
189
  {"conversations": [{"role": "user", "content": "What does `Score.addSystemSynthDefs` do?"}, {"role": "assistant", "content": "Some code requires a number of SynthDefs that are assumed to exist on the server (SystemSynthDefs). When booting a server in realtime mode, they are sent automatically. In non-realtime mode, they need to be added to the score explicitly: `x ="}]}
@@ -200,14 +189,10 @@
200
  {"conversations": [{"role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\ns.boot;\n\nb = Buffer.alloc(s, 100);\nb.zero;\nb.set(33, -1.034);\n// This should detect the 33rd value as the highest...\nx = {BufMin.kr(b).poll}.play;\n\n// ...until we set a new winner...\nb.set(74, -1.038;\n```"}, {"role": "assistant", "content": "A closing bracket is missing: the parenthesis opened earlier is never closed, so the expression cannot be parsed.\n\n```supercollider\ns.boot;\n\nb = Buffer.alloc(s, 100);\nb.zero;\nb.set(33, -1.034);\n// This should detect the 33rd value as the highest...\nx = {BufMin.kr(b).poll}.play;\n\n// ...until we set a new winner...\nb.set(74, -1.038);\n```"}]}
201
  {"conversations": [{"role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// Compare:\n\n{ WhiteNoise.ar(0.25) }.play;\n\n{ BRZ2.ar(WhiteNoise.ar(0.25) }.play;\n```"}, {"role": "assistant", "content": "A closing bracket is missing: the parenthesis opened earlier is never closed, so the expression cannot be parsed.\n\n```supercollider\n// Compare:\n\n{ WhiteNoise.ar(0.25) }.play;\n\n{ BRZ2.ar(WhiteNoise.ar(0.25)) }.play;\n```"}]}
202
  {"conversations": [{"role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\n{\n NumChannels.ar(\n SinOsc.ar(100, 0, 0.2), // 1 becomes 2\n 2)\n}.play\n);\n\n(\n{\n NumChannels.ar(\n SinOsc.ar([100, 200, 300], 0, 0.2), // 3 becomes 2\n 2)\n}.play\n);\n\n(\n{\n NumChannels.ar(\n SinOsc.ar([100, 200, 300, 100], 0, 0.2), // 4 becomes 2\n\n 2)\n}.play\n```"}, {"role": "assistant", "content": "A closing bracket is missing: the parenthesis opened earlier is never closed, so the expression cannot be parsed.\n\n```supercollider\n(\n{\n NumChannels.ar(\n SinOsc.ar(100, 0, 0.2), // 1 becomes 2\n 2)\n}.play\n);\n\n(\n{\n NumChannels.ar(\n SinOsc.ar([100, 200, 300], 0, 0.2), // 3 becomes 2\n 2)\n}.play\n);\n\n(\n{\n NumChannels.ar(\n SinOsc.ar([100, 200, 300, 100], 0, 0.2), // 4 becomes 2\n\n 2)\n}.play\n)\n```"}]}
203
- {"conversations": [{"role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\ns.boot;\n\n(\nb = Buffer.alloc(s, 2048, 1);\nc = Buffer.read(s, ExampleFiles.child);\nd = Buffer.alloc(s, 2048, 1);\n);\n\n(\nSynthDef(\\help_pvconj, { |out = 0, bufnum = 0, soundBufnum = 2|\n var in, chain;\n in = PlayBuf.ar(1, soundBufnum, BufRateScale.kr(soundBufnum), loop: 1);\n chain = FFT(bufnum, in);\n chain = PV_Conj(chain);\n // Original is left, conj is right\n Out.ar(out, 0.3 * [in, IFFT(chain)]);\n}).play(s, [\\out, 0, \\\n// …\n```"}, {"role": "assistant", "content": "A closing bracket is missing: the parenthesis opened earlier is never closed, so the expression cannot be parsed.\n\n```supercollider\ns.boot;\n\n(\nb = Buffer.alloc(s, 2048, 1);\nc = Buffer.read(s, ExampleFiles.child);\nd = Buffer.alloc(s, 2048, 1);\n);\n\n(\nSynthDef(\\help_pvconj, { |out = 0, bufnum = 0, soundBufnum = 2|\n var in, chain;\n in = PlayBuf.ar(1, soundBufnum, BufRateScale.kr(soundBufnum), loop: 1);\n chain = FFT(bufnum, in);\n chain = PV_Conj(chain);\n // Original is left, conj is right\n Out.ar(out, 0.3 * [in, IFFT(chain)]);\n}).play(s, [\\out, 0, \\bufnum, b, \\soundBufnum, c]);\n);\n\n(\nSynthDef(\\help_pvconj2, { |out = 0, bufnum = 0, soundBufnum = 2|\n var in, chainA, chainB;\n in = PlayBuf.ar(1, soundBufnum, BufRateScale.kr(soundBufnum), loop: 1);\n chainA = FFT(bufnum, in);\n chainB = PV_Copy(chainA, d);\n chainB = PV_Conj(chainB);\n // Now we have the original and conjugate, what happens if we add them?\n Out.ar(out, 0.3 * (IFFT(PV_Add(chainA, chainB)).dup));\n}).play(s, [\\out, 0, \\bufnum, b, \\soundBufnum, c]);\n)\n```"}]}
204
- {"conversations": [{"role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\ns.boot;\nb = Buffer.alloc(s, 2048, 1);\n(\nx = {\n var in, chain, freq, rq, centroid;\n\n // freq = LFPar.kr(0.3).exprange(100, 1000);\n freq = MouseY.kr(1000, 100, 1);\n in = Blip.ar(freq, MouseX.kr(1, 100, 1));\n chain = FFT(LocalBuf(2048), in);\n centroid = SpecCentroid.kr(chain);\n centroid.poll(10);\n in.dup * 0.1\n\n}.play\n;\n\nx.free;\n```"}, {"role": "assistant", "content": "A closing bracket is missing: the parenthesis opened earlier is never closed, so the expression cannot be parsed.\n\n```supercollider\ns.boot;\nb = Buffer.alloc(s, 2048, 1);\n(\nx = {\n var in, chain, freq, rq, centroid;\n\n // freq = LFPar.kr(0.3).exprange(100, 1000);\n freq = MouseY.kr(1000, 100, 1);\n in = Blip.ar(freq, MouseX.kr(1, 100, 1));\n chain = FFT(LocalBuf(2048), in);\n centroid = SpecCentroid.kr(chain);\n centroid.poll(10);\n in.dup * 0.1\n\n}.play\n);\n\nx.free;\n```"}]}
205
  {"conversations": [{"role": "user", "content": "Write a minimal SuperCollider example that uses `BRZ2`."}, {"role": "assistant", "content": "```supercollider\n// Compare:\n\n{ WhiteNoise.ar(0.25) }.play;\n\n{ BRZ2.ar(WhiteNoise.ar(0.25)) }.play;\n```"}]}
206
  {"conversations": [{"role": "user", "content": "Write a minimal SuperCollider example that uses `NumChannels`."}, {"role": "assistant", "content": "```supercollider\n(\n{\n NumChannels.ar(\n SinOsc.ar(100, 0, 0.2), // 1 becomes 2\n 2)\n}.play\n);\n\n(\n{\n NumChannels.ar(\n SinOsc.ar([100, 200, 300], 0, 0.2), // 3 becomes 2\n 2)\n}.play\n);\n\n(\n{\n NumChannels.ar(\n SinOsc.ar([100, 200, 300, 100], 0, 0.2), // 4 becomes 2\n\n 2)\n}.play\n)\n```"}]}
207
- {"conversations": [{"role": "user", "content": "Write a minimal SuperCollider example that uses `PV_Conj`."}, {"role": "assistant", "content": "```supercollider\ns.boot;\n\n(\nb = Buffer.alloc(s, 2048, 1);\nc = Buffer.read(s, ExampleFiles.child);\nd = Buffer.alloc(s, 2048, 1);\n);\n\n(\nSynthDef(\\help_pvconj, { |out = 0, bufnum = 0, soundBufnum = 2|\n var in, chain;\n in = PlayBuf.ar(1, soundBufnum, BufRateScale.kr(soundBufnum), loop: 1);\n chain = FFT(bufnum, in);\n chain = PV_Conj(chain);\n // Original is left, conj is right\n Out.ar(out, 0.3 * [in, IFFT(chain)]);\n}).play(s, [\\out, 0, \\bufnum, b, \\soundBufnum, c]);\n);\n\n(\nSynthDef(\\help_pvconj2, { |out = 0, bufnum = 0, soundBufnum = 2|\n var in, chainA, chainB;\n in = PlayBuf.ar(1, soundBufnum, BufRateScale.kr(soundBufnum), loop: 1);\n chainA = FFT(bufnum, in);\n chainB = PV_Copy(chainA, d);\n chainB = PV_Conj(chainB);\n // Now we have the original and conjugate, what happens if we add them?\n Out.ar(out, 0.3 * (IFFT(PV_Add(chainA, chainB)).dup));\n}).play(s, [\\out, 0, \\bufnum, b, \\soundBufnum, c]);\n)\n```"}]}
208
  {"conversations": [{"role": "user", "content": "Write a minimal SuperCollider example that uses `SpecCentroid`."}, {"role": "assistant", "content": "```supercollider\ns.boot;\nb = Buffer.alloc(s, 2048, 1);\n(\nx = {\n var in, chain, freq, rq, centroid;\n\n // freq = LFPar.kr(0.3).exprange(100, 1000);\n freq = MouseY.kr(1000, 100, 1);\n in = Blip.ar(freq, MouseX.kr(1, 100, 1));\n chain = FFT(LocalBuf(2048), in);\n centroid = SpecCentroid.kr(chain);\n centroid.poll(10);\n in.dup * 0.1\n\n}.play\n);\n\nx.free;\n```"}]}
209
  {"conversations": [{"role": "user", "content": "How is `ZeroCrossing` typically used in SuperCollider?"}, {"role": "assistant", "content": "```supercollider\ns.boot;\n(\n{\n var a;\n a = SinOsc.ar(SinOsc.kr(1, 0, 600, 700), 0, 0.1);\n [a, ZeroCrossing.ar(a) * 0.0005]\n}.scope;\n)\n```"}]}
210
- {"conversations": [{"role": "user", "content": "How to sync between clock and running synth?"}, {"role": "assistant", "content": "SuperCollider forum — How to sync between clock and running synth\n\nFirst, I don’t encounter any drift with your example here on my system (SC 3.9.3 on Mac with 10.10).\n\nThere are two points that confused me a bit with this example: The doubling of the LFPulse frequency (due to causing 2 DC clicks per period, which is kind of harsh) and the random duration in the Pattern. OffsetOut improves accuracy, but even with Out this variant doesn’t run out of sync here:\n\n```supercollider\n(\n~myClock = TempoClock.new(2.2);\nSynthDef(\\beep, { OffsetOut.ar(0, SinOsc.ar(\\freq.kr(440), mul:\\amp.kr)!2*EnvGate()) }).add;\n{\n Ndef(\\a).proxyspace.clock = ~myClock;\n Ndef(\\a).proxyspace.quant = 1;\n Ndef(\\b).proxyspace.clock = ~myClock;\n Ndef(\\b).proxyspace.quant = 1;\n\n Ndef(\\a, Pbind(\\instrument, \\beep,\n \\dur, 1,\n \\degree, Prand((0..14),inf),\n \\amp, 0.4,\n \\legato, 0.03));\n Ndef(\\b, { Decay.ar(Impulse.ar(2.2!2), 1, mul:0.2).lag(0.001) });\n\n Ndef(\\a).play;\n Ndef(\\b).play;\n\n}.fork(~myClock);\n)\n```\n\nHow long does it need to get out of sync on your machine ?\n\nBesides of the concrete example: yes, syncing between Patterns and Server can be demanding and the reason for this is a necessary realtime adjustment that probably can’t be overcome. I have given an example here:\n\n Imperfection of language-based timing Learning\n\n This goes back to an observation of my colleague Gerhard Eckel. I posted this a while ago on the mailing list, but can’t find it anymore in the archives. As I think it’s an interesting topic I’m reposting it here again for future reference.\nTiming in general is a crucial topic and practically users are mainly confronted with asynchronicity between server and language, latency, quantization, the Out/OffsetOut differences etc. Sample-accurate timing isn’t relevant in all contexts, nevertheless in..."}]}
211
  {"conversations": [{"role": "user", "content": "Write a self-contained SuperCollider patch that uses `SpecCentroid`. Define every value it uses."}, {"role": "assistant", "content": "```supercollider\ns.boot;\nb = Buffer.alloc(s, 2048, 1);\n(\nx = {\n var in, chain, freq, rq, centroid;\n\n // freq = LFPar.kr(0.3).exprange(100, 1000);\n freq = MouseY.kr(1000, 100, 1);\n in = Blip.ar(freq, MouseX.kr(1, 100, 1));\n chain = FFT(LocalBuf(2048), in);\n centroid = SpecCentroid.kr(chain);\n centroid.poll(10);\n in.dup * 0.1\n\n}.play\n);\n\nx.free;\n```"}]}
212
  {"conversations": [{"role": "user", "content": "Write a SuperCollider patch for shepard tones alberto de campo that runs as it is, with nothing assumed about the session."}, {"role": "assistant", "content": "```supercollider\n// shepard tones\n// alberto de campo\n(\nvar ampTable, freqTable, b1, b2;\n\nampTable = Signal.hanningWindow(1024).squared;\nfreqTable = Signal.newClear(1024).waveFill({ arg i; 0.5 ** i * 20000 }, 0, 10);\n\nb1 = Buffer.loadCollection(s, freqTable);\nb2 = Buffer.loadCollection(s, ampTable);\n\n{\n var freqs, amps, phasor, ratescale, rate, phases;\n ratescale = 1024 / 44100 / 10;\n rate = 0.1; // once per 10 sec\n phasor = Phasor.ar(0, rate * ratescale, 0, 1024);\n phases = (0..9) * 0.1 * 1024 + phasor;\n\n freqs = BufRd.ar(1, b1.bufnum, phases);\n amps = BufRd.ar(1, b2.bufnum, phases);\n\n Mix.ar(SinOsc.ar(freqs) * amps) * 0.1;\n}.play;\n\n)\n```"}]}
213
  {"conversations": [{"role": "user", "content": "Why does everyone wrap code in s.waitForBoot?"}, {"role": "assistant", "content": "Because the server boots asynchronously, and a SynthDef added before it is up never reaches it. `s.waitForBoot { ... }` runs the block once the server has finished booting; inside a Routine you can also use `s.boot; s.sync;` for the same effect. If you see 'SynthDef not found' on code that clearly looks right, this is usually why."}]}
 
 
 
 
 
 
 
 
 
1
  {"conversations": [{"role": "user", "content": "What is `CutBuf2` in SuperCollider?"}, {"role": "assistant", "content": "CutBuf2 — BBCut2 buffer playback with modulatable grain parameters Playback for a buffer, with individual grains spawned for each cut. Each grain may have associated parameters for playback speed, enveloping and dutycycle (ratio of duration to inter-onset-interval). Category: Libraries > BBCut > Cut synths."}]}
2
  {"conversations": [{"role": "user", "content": "Explain `CutBuf2` in SuperCollider briefly."}, {"role": "assistant", "content": "CutBuf2 — BBCut2 buffer playback with modulatable grain parameters Playback for a buffer, with individual grains spawned for each cut. Each grain may have associated parameters for playback speed, enveloping and dutycycle (ratio of duration to inter-onset-interval). Category: Libraries > BBCut > Cut synths."}]}
3
  {"conversations": [{"role": "user", "content": "What is `MotifCutProc` in SuperCollider?"}, {"role": "assistant", "content": "MotifCutProc — Automatic breakbeat cutting algorithm with a hierarchical structure This cut procedure provides an intermediate level of hierachy between a phrase and a block. A motif is a short rhythmic cell, represented by nested arrays. A block is taken an array of cuts, for example: Category: Libraries > BBCut > Cut procedures."}]}
 
78
  {"conversations": [{"role": "user", "content": "Explain `TGrains` in SuperCollider briefly."}, {"role": "assistant", "content": "TGrains — Buffer granulator. Triggers generate grains from a buffer. Each grain has a Hanning envelope `(sin2(x) for x from 0 to π)` and can be panned over multichannel output. Category: UGens > Buffer, UGens > Generators > Granular."}]}
79
  {"conversations": [{"role": "user", "content": "What is `ZeroCrossing` in SuperCollider?"}, {"role": "assistant", "content": "ZeroCrossing — Zero crossing frequency follower Outputs a frequency based upon the distance between interceptions of the X axis. The X intercepts are determined via linear interpolation so this gives better than just integer wavelength resolution. This is a very crude pitch follower, but can be useful in some situations. Category: UGens > Analysis > Pitch."}]}
80
  {"conversations": [{"role": "user", "content": "Explain `ZeroCrossing` in SuperCollider briefly."}, {"role": "assistant", "content": "ZeroCrossing — Zero crossing frequency follower Outputs a frequency based upon the distance between interceptions of the X axis. The X intercepts are determined via linear interpolation so this gives better than just integer wavelength resolution. This is a very crude pitch follower, but can be useful in some situations. Category: UGens > Analysis > Pitch."}]}
 
81
  {"conversations": [{"role": "user", "content": "What does `MotifCutProc.new` do?"}, {"role": "assistant", "content": "Create a MotifCutProc object with the given"}]}
82
  {"conversations": [{"role": "user", "content": "What does `MotifCutProc.stringtomotif` do?"}, {"role": "assistant", "content": "Converts a string in a particular form into a Motif. Used for entering Motifs in a StringDialog in live coding. The class method returns a Motif. The form uses integers and the the letter 'r' for repeats, and ignores all else. For example `3r4 = [ 3, 3, 3,3 ]` It would then be converted into beats, by a multiplier like 0.5, 0.25. This method is unnecessary since you can go"}]}
83
  {"conversations": [{"role": "user", "content": "What does `StatBalProc.new` do? What arguments does it take?"}, {"role": "assistant", "content": "Automatic breakbeat cutting algorithm using statistical feedback Arguments: cutsbs — A StatBalStream object that returns a cut size from the next method.; repeatsbs — A StatBalStream object that returns the number of repeats from the next method.; phraselength — Next length of phrase in beats.; rollchance — A probability of a roll near the end of a phrase.; rollallowed — number of beats within sight of the end of the current phrase within which a roll is permissible.; bpsd — beats per sub division. Sets a primitive cut size resolution for choose offset messages.."}]}
 
145
  {"conversations": [{"role": "user", "content": "What does `MultiChanRecorder.monitor` do? What arguments does it take?"}, {"role": "assistant", "content": "a utility for recording multiple Busses to multiple time-aligned files Arguments: boo."}]}
146
  {"conversations": [{"role": "user", "content": "What does `MultiChanRecorder.isMonitoring` do?"}, {"role": "assistant", "content": "a utility for recording multiple Busses to multiple time-aligned files"}]}
147
  {"conversations": [{"role": "user", "content": "What does `MultiChanRecorder.cmdPeriod` do?"}, {"role": "assistant", "content": "a utility for recording multiple Busses to multiple time-aligned files"}]}
 
148
  {"conversations": [{"role": "user", "content": "What does `DXEnvFan.kr` do?"}, {"role": "assistant", "content": "returns crossfade envelopes according to demand-rate control"}]}
149
  {"conversations": [{"role": "user", "content": "What does `PSVunion_o.new` do? What arguments does it take?"}, {"role": "assistant", "content": "Creates a new PSVunion_o Arguments: genList — An array of generators and corresponding offsets. Allowed generators: Integers, Streams or Patterns producing intervals or Sieves itself. Integers and Stream/Pattern output must be strictly positive. Integers as generators produce zero and its positive multiples. Offsets must be integers.; maxLength — Integer. Maximum number of items, which the stream will return. Defaults to inf.; limit — Integer. Limit up to which integers can be returned by the stream. If no limit is passed, returned integers might go up to default limit 65536.."}]}
150
  {"conversations": [{"role": "user", "content": "What does `RedSampler.prepareForPlay` do? What arguments does it take?"}, {"role": "assistant", "content": "Attach a soundfile to a key (number or symbol) and create buffers - one for each overlapping voice. This method is also has the alias `preload` for backward Arguments: key — A number or a symbol.; path — A string to a soundfile.; startFrame — In samples.; numFrames — How much of the file to load in samples. Leave as `nil` to load the complete file.."}]}
 
173
  {"conversations": [{"role": "user", "content": "What does `Score.play` do? What arguments does it take?"}, {"role": "assistant", "content": "as #*new but immediately plays it. (See also the instance method Arguments: list — the list.; server — If no value is supplied it will play on the default Server.."}]}
174
  {"conversations": [{"role": "user", "content": "What does `Score.write` do? What arguments does it take?"}, {"role": "assistant", "content": "a convenience method to create a binary OSC file for NRT synthesis. Does not create an Arguments: list — the list.; oscFilePath — a String containing the desired path of the OSC file.; clock — Use clock as a tempo base. `TempoClock.default` is used if clock is nil.."}]}
175
  {"conversations": [{"role": "user", "content": "What does `Score.writeFromFile` do? What arguments does it take?"}, {"role": "assistant", "content": "as #*write but reads the list from a Arguments: path — a path to a file with a list.; oscFilePath — a String containing the desired path of the OSC file.; clock — Use clock as a tempo base. `TempoClock.default` is used if clock is nil.."}]}
 
176
  {"conversations": [{"role": "user", "content": "What does `Score.play` do?"}, {"role": "assistant", "content": "play the list on server, use clock as a tempo base and quantize start time to quant. If server is nil, then on the default server. `TempoClock.default` if clock is nil. now if quant is"}]}
177
  {"conversations": [{"role": "user", "content": "What does `Score.write` do?"}, {"role": "assistant", "content": "create a binary OSC file for NRT synthesis from the list. Use clock as a tempo base. `TempoClock.default` if clock is"}]}
178
  {"conversations": [{"role": "user", "content": "What does `Score.addSystemSynthDefs` do?"}, {"role": "assistant", "content": "Some code requires a number of SynthDefs that are assumed to exist on the server (SystemSynthDefs). When booting a server in realtime mode, they are sent automatically. In non-realtime mode, they need to be added to the score explicitly: `x ="}]}
 
189
  {"conversations": [{"role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\ns.boot;\n\nb = Buffer.alloc(s, 100);\nb.zero;\nb.set(33, -1.034);\n// This should detect the 33rd value as the highest...\nx = {BufMin.kr(b).poll}.play;\n\n// ...until we set a new winner...\nb.set(74, -1.038;\n```"}, {"role": "assistant", "content": "A closing bracket is missing: the parenthesis opened earlier is never closed, so the expression cannot be parsed.\n\n```supercollider\ns.boot;\n\nb = Buffer.alloc(s, 100);\nb.zero;\nb.set(33, -1.034);\n// This should detect the 33rd value as the highest...\nx = {BufMin.kr(b).poll}.play;\n\n// ...until we set a new winner...\nb.set(74, -1.038);\n```"}]}
190
  {"conversations": [{"role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// Compare:\n\n{ WhiteNoise.ar(0.25) }.play;\n\n{ BRZ2.ar(WhiteNoise.ar(0.25) }.play;\n```"}, {"role": "assistant", "content": "A closing bracket is missing: the parenthesis opened earlier is never closed, so the expression cannot be parsed.\n\n```supercollider\n// Compare:\n\n{ WhiteNoise.ar(0.25) }.play;\n\n{ BRZ2.ar(WhiteNoise.ar(0.25)) }.play;\n```"}]}
191
  {"conversations": [{"role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\n{\n NumChannels.ar(\n SinOsc.ar(100, 0, 0.2), // 1 becomes 2\n 2)\n}.play\n);\n\n(\n{\n NumChannels.ar(\n SinOsc.ar([100, 200, 300], 0, 0.2), // 3 becomes 2\n 2)\n}.play\n);\n\n(\n{\n NumChannels.ar(\n SinOsc.ar([100, 200, 300, 100], 0, 0.2), // 4 becomes 2\n\n 2)\n}.play\n```"}, {"role": "assistant", "content": "A closing bracket is missing: the parenthesis opened earlier is never closed, so the expression cannot be parsed.\n\n```supercollider\n(\n{\n NumChannels.ar(\n SinOsc.ar(100, 0, 0.2), // 1 becomes 2\n 2)\n}.play\n);\n\n(\n{\n NumChannels.ar(\n SinOsc.ar([100, 200, 300], 0, 0.2), // 3 becomes 2\n 2)\n}.play\n);\n\n(\n{\n NumChannels.ar(\n SinOsc.ar([100, 200, 300, 100], 0, 0.2), // 4 becomes 2\n\n 2)\n}.play\n)\n```"}]}
 
 
192
  {"conversations": [{"role": "user", "content": "Write a minimal SuperCollider example that uses `BRZ2`."}, {"role": "assistant", "content": "```supercollider\n// Compare:\n\n{ WhiteNoise.ar(0.25) }.play;\n\n{ BRZ2.ar(WhiteNoise.ar(0.25)) }.play;\n```"}]}
193
  {"conversations": [{"role": "user", "content": "Write a minimal SuperCollider example that uses `NumChannels`."}, {"role": "assistant", "content": "```supercollider\n(\n{\n NumChannels.ar(\n SinOsc.ar(100, 0, 0.2), // 1 becomes 2\n 2)\n}.play\n);\n\n(\n{\n NumChannels.ar(\n SinOsc.ar([100, 200, 300], 0, 0.2), // 3 becomes 2\n 2)\n}.play\n);\n\n(\n{\n NumChannels.ar(\n SinOsc.ar([100, 200, 300, 100], 0, 0.2), // 4 becomes 2\n\n 2)\n}.play\n)\n```"}]}
 
194
  {"conversations": [{"role": "user", "content": "Write a minimal SuperCollider example that uses `SpecCentroid`."}, {"role": "assistant", "content": "```supercollider\ns.boot;\nb = Buffer.alloc(s, 2048, 1);\n(\nx = {\n var in, chain, freq, rq, centroid;\n\n // freq = LFPar.kr(0.3).exprange(100, 1000);\n freq = MouseY.kr(1000, 100, 1);\n in = Blip.ar(freq, MouseX.kr(1, 100, 1));\n chain = FFT(LocalBuf(2048), in);\n centroid = SpecCentroid.kr(chain);\n centroid.poll(10);\n in.dup * 0.1\n\n}.play\n);\n\nx.free;\n```"}]}
195
  {"conversations": [{"role": "user", "content": "How is `ZeroCrossing` typically used in SuperCollider?"}, {"role": "assistant", "content": "```supercollider\ns.boot;\n(\n{\n var a;\n a = SinOsc.ar(SinOsc.kr(1, 0, 600, 700), 0, 0.1);\n [a, ZeroCrossing.ar(a) * 0.0005]\n}.scope;\n)\n```"}]}
 
196
  {"conversations": [{"role": "user", "content": "Write a self-contained SuperCollider patch that uses `SpecCentroid`. Define every value it uses."}, {"role": "assistant", "content": "```supercollider\ns.boot;\nb = Buffer.alloc(s, 2048, 1);\n(\nx = {\n var in, chain, freq, rq, centroid;\n\n // freq = LFPar.kr(0.3).exprange(100, 1000);\n freq = MouseY.kr(1000, 100, 1);\n in = Blip.ar(freq, MouseX.kr(1, 100, 1));\n chain = FFT(LocalBuf(2048), in);\n centroid = SpecCentroid.kr(chain);\n centroid.poll(10);\n in.dup * 0.1\n\n}.play\n);\n\nx.free;\n```"}]}
197
  {"conversations": [{"role": "user", "content": "Write a SuperCollider patch for shepard tones alberto de campo that runs as it is, with nothing assumed about the session."}, {"role": "assistant", "content": "```supercollider\n// shepard tones\n// alberto de campo\n(\nvar ampTable, freqTable, b1, b2;\n\nampTable = Signal.hanningWindow(1024).squared;\nfreqTable = Signal.newClear(1024).waveFill({ arg i; 0.5 ** i * 20000 }, 0, 10);\n\nb1 = Buffer.loadCollection(s, freqTable);\nb2 = Buffer.loadCollection(s, ampTable);\n\n{\n var freqs, amps, phasor, ratescale, rate, phases;\n ratescale = 1024 / 44100 / 10;\n rate = 0.1; // once per 10 sec\n phasor = Phasor.ar(0, rate * ratescale, 0, 1024);\n phases = (0..9) * 0.1 * 1024 + phasor;\n\n freqs = BufRd.ar(1, b1.bufnum, phases);\n amps = BufRd.ar(1, b2.bufnum, phases);\n\n Mix.ar(SinOsc.ar(freqs) * amps) * 0.1;\n}.play;\n\n)\n```"}]}
198
  {"conversations": [{"role": "user", "content": "Why does everyone wrap code in s.waitForBoot?"}, {"role": "assistant", "content": "Because the server boots asynchronously, and a SynthDef added before it is up never reaches it. `s.waitForBoot { ... }` runs the block once the server has finished booting; inside a Routine you can also use `s.boot; s.sync;` for the same effect. If you see 'SynthDef not found' on code that clearly looks right, this is usually why."}]}
verify_report.md CHANGED
@@ -5,7 +5,7 @@
5
  ```json
6
  {
7
  "file": "pretrain_train.jsonl",
8
- "lines": 35353,
9
  "over_length": 0,
10
  "over_examples": [],
11
  "under_40_tokens": 0,
@@ -19,7 +19,7 @@
19
  ```json
20
  {
21
  "file": "pretrain_val.jsonl",
22
- "lines": 735,
23
  "over_length": 0,
24
  "over_examples": [],
25
  "under_40_tokens": 0,
@@ -32,8 +32,8 @@
32
 
33
  ```json
34
  {
35
- "train": 35353,
36
- "val": 735,
37
  "overlap": 0
38
  }
39
  ```
@@ -43,13 +43,13 @@
43
  ```json
44
  {
45
  "file": "sft_train.jsonl",
46
- "lines": 6000,
47
  "prompt_leaves_no_room": 0,
48
  "no_room_examples": [],
49
- "truncated": 0,
50
  "markup_leaks": 0,
51
  "contradictory_answers": 0,
52
- "repeated_qa": 2187
53
  }
54
  ```
55
 
@@ -58,7 +58,7 @@
58
  ```json
59
  {
60
  "file": "sft_val.jsonl",
61
- "lines": 215,
62
  "prompt_leaves_no_room": 0,
63
  "no_room_examples": [],
64
  "truncated": 0,
@@ -72,8 +72,8 @@
72
 
73
  ```json
74
  {
75
- "train": 3813,
76
- "val": 215,
77
  "overlap": 0
78
  }
79
  ```
@@ -82,7 +82,7 @@
82
 
83
  ```json
84
  {
85
- "ugen_calls": 23711,
86
  "unknown": 0,
87
  "worst": []
88
  }
 
5
  ```json
6
  {
7
  "file": "pretrain_train.jsonl",
8
+ "lines": 59179,
9
  "over_length": 0,
10
  "over_examples": [],
11
  "under_40_tokens": 0,
 
19
  ```json
20
  {
21
  "file": "pretrain_val.jsonl",
22
+ "lines": 1235,
23
  "over_length": 0,
24
  "over_examples": [],
25
  "under_40_tokens": 0,
 
32
 
33
  ```json
34
  {
35
+ "train": 59179,
36
+ "val": 1235,
37
  "overlap": 0
38
  }
39
  ```
 
43
  ```json
44
  {
45
  "file": "sft_train.jsonl",
46
+ "lines": 17032,
47
  "prompt_leaves_no_room": 0,
48
  "no_room_examples": [],
49
+ "truncated": 5,
50
  "markup_leaks": 0,
51
  "contradictory_answers": 0,
52
+ "repeated_qa": 8318
53
  }
54
  ```
55
 
 
58
  ```json
59
  {
60
  "file": "sft_val.jsonl",
61
+ "lines": 200,
62
  "prompt_leaves_no_room": 0,
63
  "no_room_examples": [],
64
  "truncated": 0,
 
72
 
73
  ```json
74
  {
75
+ "train": 8714,
76
+ "val": 200,
77
  "overlap": 0
78
  }
79
  ```
 
82
 
83
  ```json
84
  {
85
+ "ugen_calls": 43361,
86
  "unknown": 0,
87
  "worst": []
88
  }