vecnode commited on
Commit
dce3d6f
·
verified ·
1 Parent(s): 1f5a757

v0.1.2: 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.1.1` · repo `vecnode/supercollider-moe-dataset` · 10 files, 72.1 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
@@ -34,9 +34,9 @@ Profile: **full** · visibility: **private** · revision `v0.1.1` · repo `vecno
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` | 6,000 | 4.4 MB | `d10cc71a4c9ef2f7…` |
38
- | `data/sft/val.jsonl` | 215 | 0.1 MB | `d21af4f17525e30d…` |
39
- | `data/sft/pool.jsonl` | 14,398 | 8.2 MB | `910fe8bdcd7a8de3…` |
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.2` · repo `vecnode/supercollider-moe-dataset` · 10 files, 70.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
 
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` | 6,000 | 4.0 MB | `f5d4c5831c44e1c1…` |
38
+ | `data/sft/val.jsonl` | 201 | 0.1 MB | `2036bf01c619da65…` |
39
+ | `data/sft/pool.jsonl` | 13,412 | 7.0 MB | `e138717619f49780…` |
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,10 @@
1
  8454ed97da318f4de2c331bd195827b92e8c25ae5848211d89063513b7d50e0d data/pretrain/train.jsonl
2
  01c2d5fc0542d3a0d015e8d4403f612edfcee9cf0050dad195f009a7882f9928 data/pretrain/val.jsonl
3
- 910fe8bdcd7a8de33ba9df18e9272fee08f0d1d92c3a52ae8555caac7200009c data/sft/pool.jsonl
4
  74e4af14a1f151ef9de1094eb2364f5bd5eb8377b9fbb8a6474b49fd69cf54d1 data/sft/teacher.jsonl
5
- d10cc71a4c9ef2f75842e5ec968e98e1445463efc01c473697342b77b22de970 data/sft/train.jsonl
6
- d21af4f17525e30df594debab4d630e80bd7fef28a7a69f568e96d16de518581 data/sft/val.jsonl
7
  e48310f6d2062b4b6c7d2d12e5285ec14deb84e9d4339325879e746c3e0a4403 LICENCES.md
8
  de92d20b5bd404834e1343e5bf60497e4d29cacd7c60367f2e0c97e7810a7c89 SCHEMA.md
9
- c919aee58ff90d7c331907e71eaedafe653000aecb2c6f4d0a9e2e0eccfd9da1 stats.json
10
- 632070786629a761d04467f5f52bbd83d94afc3f9076e15f007e94226b9ddce7 verify_report.md
 
1
  8454ed97da318f4de2c331bd195827b92e8c25ae5848211d89063513b7d50e0d data/pretrain/train.jsonl
2
  01c2d5fc0542d3a0d015e8d4403f612edfcee9cf0050dad195f009a7882f9928 data/pretrain/val.jsonl
3
+ e138717619f49780c81be0a83dfffef3744347ae5a88b0880b1e8dc833a762d1 data/sft/pool.jsonl
4
  74e4af14a1f151ef9de1094eb2364f5bd5eb8377b9fbb8a6474b49fd69cf54d1 data/sft/teacher.jsonl
5
+ f5d4c5831c44e1c1be3a255fa1e8a51780933c93f117a983147e243e593ac305 data/sft/train.jsonl
6
+ 2036bf01c619da65bd0cd66be28507b05d2057965456ea4259b36b2be396af95 data/sft/val.jsonl
7
  e48310f6d2062b4b6c7d2d12e5285ec14deb84e9d4339325879e746c3e0a4403 LICENCES.md
8
  de92d20b5bd404834e1343e5bf60497e4d29cacd7c60367f2e0c97e7810a7c89 SCHEMA.md
9
+ c3bd07c50b05a13786cd936522afde5e46ab8aebd70d1ac6d59ed371b0bcf48f stats.json
10
+ ac93de78005e00897c935a8141c24d6a9531492e07d1eda6094ba224c7d48043 verify_report.md
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
@@ -184,30 +184,16 @@
184
  {"conversations": [{"role": "user", "content": "What does `SpecCentroid.kr` do? What arguments does it take?"}, {"role": "assistant", "content": "Spectral centroid Arguments: buffer — an FFT chain.."}]}
185
  {"conversations": [{"role": "user", "content": "What does `TGrains.ar` do? What arguments does it take?"}, {"role": "assistant", "content": "Buffer granulator. Arguments: numChannels — The number of output channels. Must be a nonzero, positive integer. This is fixed when the SynthDef is compiled so cannot be assigned to a SynthDef argument.; trigger — At each trigger, the following arguments are sampled and used as the arguments of a new grain. A trigger occurs when a signal changes from non-positive to a positive value. If the trigger is audio rate then the grains will start with sample accuracy.; bufnum — The index of the buffer to use. It must be a one channel (mono) buffer.; rate — 1.0 is normal, 2.0 is one octave up, 0.5 is one octave down -1.0 is backward normal rate… etc.; centerPos — The position in the buffer in seconds at which the grain envelope will reach maximum amplitude.; dur — Duration of the grain in seconds.; pan — determines where to pan the output.; amp — Amplitude of the grain.."}]}
186
  {"conversations": [{"role": "user", "content": "What does `ZeroCrossing.ar` do? What arguments does it take?"}, {"role": "assistant", "content": "Zero crossing frequency follower Arguments: in — Input signal.."}]}
187
- {"conversations": [{"role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\nb = BBCutBuffer(Platform.resourceDir +/+ \"sound/break.aiff\", 8);\n\n//defaults\nBBCut2(CutBuf3(),StatBalProc()).play(2.4);\n\n\n( //defaults\nBBCut2(CutBuf3(b),StatBalProc(\n StatBalStream([0.5,1.5],[0.3,0.7],0.02), //almost a deterministic swap in proportions 3:7\n StatBalStream([1,2],[0.6,0.4],1.0), //some random dispersion in the short term (long term works out at 3:2)\n 8000.0 //don't constrain the phrase for 2000 4/4 bars, ie 13 minutes at this tempo\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\nb = BBCutBuffer(Platform.resourceDir +/+ \"sound/break.aiff\", 8);\n\n//defaults\nBBCut2(CutBuf3(),StatBalProc()).play(2.4);\n\n\n( //defaults\nBBCut2(CutBuf3(b),StatBalProc(\n StatBalStream([0.5,1.5],[0.3,0.7],0.02), //almost a deterministic swap in proportions 3:7\n StatBalStream([1,2],[0.6,0.4],1.0), //some random dispersion in the short term (long term works out at 3:2)\n 8000.0 //don't constrain the phrase for 2000 4/4 bars, ie 13 minutes at this tempo\n //note that it makes rolls very very rare!\n)).play(2.4);\n);\n\n\n\n( //comparison with ChooseCutProc and Lehmer choices\nBBCut2(CutBuf3(b),\n ChooseCutProc({[0.5,1.5].wchoose([0.3,0.7])},{[1,2].wchoose([0.6,0.4])},nil,8000.0)\n).play(2.4);\n)\n```"}]}
188
- {"conversations": [{"role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\nSynthDef(\"help-LFNoise1\", { arg out=0;\n Out.ar(out,\n LFBrownNoise1.ar(1000, 1, MouseX.kr(0, 5), 0.25)\n )\n}).play;\n);\n\n//use as frequency control\n(\nSynthDef(\"help-LFNoise1\", { arg out=0;\n Out.ar(out,\n SinOsc.ar(\n LFBrownNoise1.ar(8.dup, 0.2, 2, 400, 450),\n 0, 0.2\n )\n )\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(\nSynthDef(\"help-LFNoise1\", { arg out=0;\n Out.ar(out,\n LFBrownNoise1.ar(1000, 1, MouseX.kr(0, 5), 0.25)\n )\n}).play;\n);\n\n//use as frequency control\n(\nSynthDef(\"help-LFNoise1\", { arg out=0;\n Out.ar(out,\n SinOsc.ar(\n LFBrownNoise1.ar(8.dup, 0.2, 2, 400, 450),\n 0, 0.2\n )\n )\n}).play;\n)\n```"}]}
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// used to lag pitch\n(\nSynthDef(\\lagud_help, { |out, freq = 300, lagup = 1, lagdown = 5|\n Out.ar(out,\n SinOsc.ar( // sine wave\n LagUD.kr( // lag the frequency\n freq,\n lagup,\n lagdown\n ),\n 0, // phase\n 0.2 // sine amplitude\n )\n );\n}).add;\n);\n\nx = Synth(\\lagud_help); // create the synth\nx.set(\\freq, 500); // set the frequency to a higher value (takes 1 second)\nx.set(\\freq, 100); // set the frequency to a lower value (takes 5 seconds\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\n// used to lag pitch\n(\nSynthDef(\\lagud_help, { |out, freq = 300, lagup = 1, lagdown = 5|\n Out.ar(out,\n SinOsc.ar( // sine wave\n LagUD.kr( // lag the frequency\n freq,\n lagup,\n lagdown\n ),\n 0, // phase\n 0.2 // sine amplitude\n )\n );\n}).add;\n);\n\nx = Synth(\\lagud_help); // create the synth\nx.set(\\freq, 500); // set the frequency to a higher value (takes 1 second)\nx.set(\\freq, 100); // set the frequency to a lower value (takes 5 seconds)\nx.free;\n```"}]}
192
- {"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```"}]}
193
- {"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```"}]}
194
- {"conversations": [{"role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// A sample synthDef\n// Here we use store instead of add to store the compiled synthdef in Platform.defaultTempDir +/+ \"synthdefs/\"\n// and make it available to the NRT server\n(\nSynthDef(\"helpscore\", { |out, freq = 440|\n Out.ar(out,\n SinOsc.ar(freq, 0, 0.2) * Line.kr(1, 0, 0.5, doneAction: Done.freeSelf)\n )\n}).store;\n);\n\n// write a sample file for testing\n(\nvar f, g;\nTempoClock.default.tempo = 1;\ng = [\n [0.1, [\\s_new, \\helpscore, 1000, 0, 0, \\freq, 440]],\n [0.2, [\\s_\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\n// A sample synthDef\n// Here we use store instead of add to store the compiled synthdef in Platform.defaultTempDir +/+ \"synthdefs/\"\n// and make it available to the NRT server\n(\nSynthDef(\"helpscore\", { |out, freq = 440|\n Out.ar(out,\n SinOsc.ar(freq, 0, 0.2) * Line.kr(1, 0, 0.5, doneAction: Done.freeSelf)\n )\n}).store;\n);\n\n// write a sample file for testing\n(\nvar f, g;\nTempoClock.default.tempo = 1;\ng = [\n [0.1, [\\s_new, \\helpscore, 1000, 0, 0, \\freq, 440]],\n [0.2, [\\s_new, \\helpscore, 1001, 0, 0, \\freq, 660]],\n [0.3, [\\s_new, \\helpscore, 1002, 0, 0, \\freq, 220]],\n [1, [\\c_set, 0, 0]] // finish\n ];\nf = File(Platform.defaultTempDir +/+ \"score-test\", \"w\");\nf.write(g.asCompileString);\nf.close;\n);\n\n// convert it to a binary OSC file for use with NRT\nScore.writeFromFile(Platform.defaultTempDir +/+ \"score-test\", Platform.defaultTempDir +/+ \"test.osc\");\n```"}]}
195
- {"conversations": [{"role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\nSynthDef(\"helpscore\", { |out, freq = 440|\n Out.ar(out,\n SinOsc.ar(freq, 0, 0.2) * Line.kr(1, 0, 0.5, doneAction: Done.freeSelf)\n )\n}).store;\n);\n\n// new pattern\n(\np = Pbind(\n \\instrument, \\helpscore,\n \\dur, Prand([0.3, 0.5], inf),\n \\freq, Prand([200, 300, 500], inf)\n);\n);\n\n// make a score from the pattern, 4 beats long\nz = p.asScore(4.0);\nz.score.postcs;\nz.play;\n\n// rendering a pattern to sound file directly:\n// render the pattern to wav (4 beats)\np.render(Platform\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\n(\nSynthDef(\"helpscore\", { |out, freq = 440|\n Out.ar(out,\n SinOsc.ar(freq, 0, 0.2) * Line.kr(1, 0, 0.5, doneAction: Done.freeSelf)\n )\n}).store;\n);\n\n// new pattern\n(\np = Pbind(\n \\instrument, \\helpscore,\n \\dur, Prand([0.3, 0.5], inf),\n \\freq, Prand([200, 300, 500], inf)\n);\n);\n\n// make a score from the pattern, 4 beats long\nz = p.asScore(4.0);\nz.score.postcs;\nz.play;\n\n// rendering a pattern to sound file directly:\n// render the pattern to wav (4 beats)\np.render(Platform.defaultTempDir +/+ \"asScore-Help.wav\", 4.0);\n```"}]}
196
- {"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```"}]}
197
  {"conversations": [{"role": "user", "content": "What does this SuperCollider code do?\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": "This should detect the 33rd value as the highest... ...until we set a new winner... (BufMin: detect the largest value (and its position) in an array of UGens)"}]}
198
  {"conversations": [{"role": "user", "content": "What does this SuperCollider code do?\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": "Original is left, conj is right Now we have the original and conjugate, what happens if we add them? (PV_Conj: Complex conjugate)"}]}
199
  {"conversations": [{"role": "user", "content": "What does this SuperCollider code do?\n```supercollider\n// A sample synthDef\n// Here we use store instead of add to store the compiled synthdef in Platform.defaultTempDir +/+ \"synthdefs/\"\n// and make it available to the NRT server\n(\nSynthDef(\"helpscore\", { |out, freq = 440|\n Out.ar(out,\n SinOsc.ar(freq, 0, 0.2) * Line.kr(1, 0, 0.5, doneAction: Done.freeSelf)\n )\n}).store;\n);\n\n// write a sample file for testing\n(\nvar f, g;\nTempoClock.default.tempo = 1;\ng = [\n [0.1, [\\s_new, \\helpscore, 1000, 0, 0, \\freq, 440]],\n [0.2, [\\s_\n// …\n```"}, {"role": "assistant", "content": "Here we use store instead of add to store the compiled synthdef in Platform.defaultTempDir +/+ \"synthdefs/\" and make it available to the NRT server (Score: score of timed OSC commands)"}]}
200
  {"conversations": [{"role": "user", "content": "Explain this SuperCollider code.\n```supercollider\n(\nSynthDef(\"helpscore\", { |out, freq = 440|\n Out.ar(out,\n SinOsc.ar(freq, 0, 0.2) * Line.kr(1, 0, 0.5, doneAction: Done.freeSelf)\n )\n}).store;\n);\n\n// new pattern\n(\np = Pbind(\n \\instrument, \\helpscore,\n \\dur, Prand([0.3, 0.5], inf),\n \\freq, Prand([200, 300, 500], inf)\n);\n);\n\n// make a score from the pattern, 4 beats long\nz = p.asScore(4.0);\nz.score.postcs;\nz.play;\n\n// rendering a pattern to sound file directly:\n// render the pattern to wav (4 beats)\np.render(Platform\n// …\n```"}, {"role": "assistant", "content": "make a score from the pattern, 4 beats long rendering a pattern to sound file directly: (Score: score of timed OSC commands)"}]}
 
 
 
 
201
  {"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```"}]}
202
- {"conversations": [{"role": "user", "content": "Write a minimal SuperCollider example that uses `LagUD`."}, {"role": "assistant", "content": "```supercollider\n// used to lag pitch\n(\nSynthDef(\\lagud_help, { |out, freq = 300, lagup = 1, lagdown = 5|\n Out.ar(out,\n SinOsc.ar( // sine wave\n LagUD.kr( // lag the frequency\n freq,\n lagup,\n lagdown\n ),\n 0, // phase\n 0.2 // sine amplitude\n )\n );\n}).add;\n);\n\nx = Synth(\\lagud_help); // create the synth\nx.set(\\freq, 500); // set the frequency to a higher value (takes 1 second)\nx.set(\\freq, 100); // set the frequency to a lower value (takes 5 seconds)\nx.free;\n```"}]}
203
  {"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```"}]}
204
- {"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```"}]}
205
- {"conversations": [{"role": "user", "content": "Show another SuperCollider example using `Score`."}, {"role": "assistant", "content": "```supercollider\n(\nSynthDef(\"helpscore\", { |out, freq = 440|\n Out.ar(out,\n SinOsc.ar(freq, 0, 0.2) * Line.kr(1, 0, 0.5, doneAction: Done.freeSelf)\n )\n}).store;\n);\n\n// new pattern\n(\np = Pbind(\n \\instrument, \\helpscore,\n \\dur, Prand([0.3, 0.5], inf),\n \\freq, Prand([200, 300, 500], inf)\n);\n);\n\n// make a score from the pattern, 4 beats long\nz = p.asScore(4.0);\nz.score.postcs;\nz.play;\n\n// rendering a pattern to sound file directly:\n// render the pattern to wav (4 beats)\np.render(Platform.defaultTempDir +/+ \"asScore-Help.wav\", 4.0);\n```"}]}
206
- {"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```"}]}
207
- {"conversations": [{"role": "user", "content": "Write a SuperCollider patch that makes 360 audio (a SuperCollider snippet)."}, {"role": "assistant", "content": "```supercollider\n(\ns.waitForBoot({\n Routine({\n var duration = 60; // Duration in seconds\n var filePath = \"~/Desktop/360_Soundscape.wav\".standardizePath;\n\n // 1. Define the Synth for a spatialized sound source\n SynthDef(\\SpatialSource, { |out=0, freq=440, az=0, amp=0.2, gate=1|\n var signal, w, x, y, z;\n \n // Generate a placeholder sound (using noise/filters to mimic your list)\n signal = HPF.ar(PinkNoise.ar(amp), freq) * EnvGen.kr(Env.asr(2, 1, 2), gate, doneAction: 2);\n \n // Encode into Ambisonics (B-format)\n #w, x, y, z = PanB.ar(signal, az, 0, 1); \n \n Out.ar(out, [w, x, y, z]);\n }).add;\n\n s.sync;\n\n // 2. Start Recording\n s.prepareForRecord(filePath, 4); // 4 channels for B-format\n s.record;\n\n // 3. Instantiate the 5 Sounds at different angles\n // [Sound Type, Frequency, Azimuth (-1 to 1)]\n // -1 = Rear, -0.5 = Left, 0 = Front, 0.5 = Right, 1 = Rear\n \n ~wind = Synth(\\SpatialSource, [\\freq, 100, \\az, -0.8, \\amp, 0.1]); // Back-Left\n ~birds = Synth(\\SpatialSource, [\\freq, 2000, \\az, 0.4, \\amp, 0.05]); // Front-Right\n ~car = Synth(\\SpatialSource, [\\freq, 50, \\az, 0.0, \\amp, 0.15]); // Center-Front\n ~chime = Synth(\\SpatialSource, [\\freq, 800, \\az, 0.8, \\amp, 0.1]); // Back-Right\n ~water = Synth(\\SpatialSource, [\\freq, 500, \\az, -0.3, \\amp, 0.08]); // Front-Left\n\n duration.wait;\n\n // 4. Cleanup and Save\n [~wind, ~birds, ~car, ~chime, ~water].do(_.set(\\gate, 0));\n 2.wait;\n s.stopRecording;\n \"File saved to Desktop as 360_Soundscape.wav\".postln;\n }).play;\n});\n)\n```"}]}
208
- {"conversations": [{"role": "user", "content": "Write a SuperCollider patch for Compander coded with ugens."}, {"role": "assistant", "content": "```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```"}]}
209
- {"conversations": [{"role": "user", "content": "Write a SuperCollider patch that makes Kind of music box."}, {"role": "assistant", "content": "```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 \\famt, Pclump(Pkey(\\n), Pwhite(3,6, inf)),\n \\hdur, Pclump(Pkey(\\n), Pwhite(0.05, 0.3, inf)),\n \\impdecay, Pclump(Pkey(\\n), Pwhite(0.001, 0.01, inf)),\n \\amp, Pclump(Pkey(\\n), Pwhite(0.01, 0.1, inf)) * 0.3,\n \\dur, Prand([1,2,4]/2, inf) + Pwhite(-0.1, 0.1, inf)\n)).play;\n\nNdef(\\ping)[10] = \\filter -> { |in|\n var amp = LFNoise2.kr(0.1).range(0.001, 0.1);\n in * SinOsc.ar(LFNoise2.kr(0.1).range(60.midicps,61.midicps) / 4, 0, amp, 1-amp)\n};\n\nNdef(\\ping)[15] = \\filter -> { |in| Compander.ar(in, in, 0.1, 1, 0.3) };\n```"}]}
210
- {"conversations": [{"role": "user", "content": "Write a SuperCollider patch for shepard tones alberto de campo."}, {"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```"}]}
211
  {"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```"}]}
212
  {"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..."}]}
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."}]}
 
184
  {"conversations": [{"role": "user", "content": "What does `SpecCentroid.kr` do? What arguments does it take?"}, {"role": "assistant", "content": "Spectral centroid Arguments: buffer — an FFT chain.."}]}
185
  {"conversations": [{"role": "user", "content": "What does `TGrains.ar` do? What arguments does it take?"}, {"role": "assistant", "content": "Buffer granulator. Arguments: numChannels — The number of output channels. Must be a nonzero, positive integer. This is fixed when the SynthDef is compiled so cannot be assigned to a SynthDef argument.; trigger — At each trigger, the following arguments are sampled and used as the arguments of a new grain. A trigger occurs when a signal changes from non-positive to a positive value. If the trigger is audio rate then the grains will start with sample accuracy.; bufnum — The index of the buffer to use. It must be a one channel (mono) buffer.; rate — 1.0 is normal, 2.0 is one octave up, 0.5 is one octave down -1.0 is backward normal rate… etc.; centerPos — The position in the buffer in seconds at which the grain envelope will reach maximum amplitude.; dur — Duration of the grain in seconds.; pan — determines where to pan the output.; amp — Amplitude of the grain.."}]}
186
  {"conversations": [{"role": "user", "content": "What does `ZeroCrossing.ar` do? What arguments does it take?"}, {"role": "assistant", "content": "Zero crossing frequency follower Arguments: in — Input signal.."}]}
 
 
 
 
 
 
 
 
 
 
187
  {"conversations": [{"role": "user", "content": "What does this SuperCollider code do?\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": "This should detect the 33rd value as the highest... ...until we set a new winner... (BufMin: detect the largest value (and its position) in an array of UGens)"}]}
188
  {"conversations": [{"role": "user", "content": "What does this SuperCollider code do?\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": "Original is left, conj is right Now we have the original and conjugate, what happens if we add them? (PV_Conj: Complex conjugate)"}]}
189
  {"conversations": [{"role": "user", "content": "What does this SuperCollider code do?\n```supercollider\n// A sample synthDef\n// Here we use store instead of add to store the compiled synthdef in Platform.defaultTempDir +/+ \"synthdefs/\"\n// and make it available to the NRT server\n(\nSynthDef(\"helpscore\", { |out, freq = 440|\n Out.ar(out,\n SinOsc.ar(freq, 0, 0.2) * Line.kr(1, 0, 0.5, doneAction: Done.freeSelf)\n )\n}).store;\n);\n\n// write a sample file for testing\n(\nvar f, g;\nTempoClock.default.tempo = 1;\ng = [\n [0.1, [\\s_new, \\helpscore, 1000, 0, 0, \\freq, 440]],\n [0.2, [\\s_\n// …\n```"}, {"role": "assistant", "content": "Here we use store instead of add to store the compiled synthdef in Platform.defaultTempDir +/+ \"synthdefs/\" and make it available to the NRT server (Score: score of timed OSC commands)"}]}
190
  {"conversations": [{"role": "user", "content": "Explain this SuperCollider code.\n```supercollider\n(\nSynthDef(\"helpscore\", { |out, freq = 440|\n Out.ar(out,\n SinOsc.ar(freq, 0, 0.2) * Line.kr(1, 0, 0.5, doneAction: Done.freeSelf)\n )\n}).store;\n);\n\n// new pattern\n(\np = Pbind(\n \\instrument, \\helpscore,\n \\dur, Prand([0.3, 0.5], inf),\n \\freq, Prand([200, 300, 500], inf)\n);\n);\n\n// make a score from the pattern, 4 beats long\nz = p.asScore(4.0);\nz.score.postcs;\nz.play;\n\n// rendering a pattern to sound file directly:\n// render the pattern to wav (4 beats)\np.render(Platform\n// …\n```"}, {"role": "assistant", "content": "make a score from the pattern, 4 beats long rendering a pattern to sound file directly: (Score: score of timed OSC commands)"}]}
191
+ {"conversations": [{"role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\nSynthDef(\"help-LFNoise1\", { arg out=0;\n Out.ar(out,\n LFBrownNoise1.ar(1000, 1, MouseX.kr(0, 5), 0.25)\n )\n}).play;\n);\n\n//use as frequency control\n(\nSynthDef(\"help-LFNoise1\", { arg out=0;\n Out.ar(out,\n SinOsc.ar(\n LFBrownNoise1.ar(8.dup, 0.2, 2, 400, 450),\n 0, 0.2\n )\n )\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(\nSynthDef(\"help-LFNoise1\", { arg out=0;\n Out.ar(out,\n LFBrownNoise1.ar(1000, 1, MouseX.kr(0, 5), 0.25)\n )\n}).play;\n);\n\n//use as frequency control\n(\nSynthDef(\"help-LFNoise1\", { arg out=0;\n Out.ar(out,\n SinOsc.ar(\n LFBrownNoise1.ar(8.dup, 0.2, 2, 400, 450),\n 0, 0.2\n )\n )\n}).play;\n)\n```"}]}
192
+ {"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```"}]}
193
+ {"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```"}]}
194
+ {"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```"}]}
195
  {"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```"}]}
 
196
  {"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```"}]}
 
 
 
 
 
 
 
197
  {"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```"}]}
198
  {"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..."}]}
199
  {"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."}]}
stats.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "generated_at": "2026-11-21T10:36:08+00:00",
3
  "root": "<local path removed>",
4
  "stages": {
5
  "10-extracted": {
@@ -166,21 +166,21 @@
166
  },
167
  "40-sft": {
168
  "mix-sft": {
169
- "finished_at": "2026-11-21T10:32:05+00:00",
170
  "counts": {
171
  "total": 6000,
172
- "val": 215,
173
- "pool": 14398,
174
  "teacher": 94,
175
  "families": {
176
- "F": {
177
  "share": 0.18,
178
- "pool": 215,
179
- "sampled": 1082,
180
- "repeats": 5.03,
181
  "wanted": 1080,
182
- "capped": 1080,
183
- "absorbs": 2
184
  },
185
  "B": {
186
  "share": 0.22,
@@ -192,21 +192,21 @@
192
  },
193
  "C": {
194
  "share": 0.11,
195
- "pool": 483,
196
- "sampled": 684,
197
- "repeats": 1.42,
198
  "wanted": 660,
199
  "capped": 660,
200
- "absorbs": 24
201
  },
202
  "E": {
203
  "share": 0.12,
204
- "pool": 1205,
205
- "sampled": 790,
206
- "repeats": 0.66,
207
  "wanted": 720,
208
  "capped": 720,
209
- "absorbs": 70
210
  },
211
  "A": {
212
  "share": 0.09,
@@ -278,47 +278,60 @@
278
  {
279
  "path": "sft_train.jsonl",
280
  "lines": 6000,
281
- "sha256": "d10cc71a4c9ef2f75842e5ec968e98e1445463efc01c473697342b77b22de970"
282
  },
283
  {
284
  "path": "sft_val.jsonl",
285
- "lines": 215,
286
- "sha256": "d21af4f17525e30df594debab4d630e80bd7fef28a7a69f568e96d16de518581"
287
  }
288
  ]
289
  },
290
  "sft": {
291
- "finished_at": "2026-11-21T10:32:04+00:00",
292
  "counts": {
293
- "pool": 14398,
294
  "families": {
295
  "D3": 118,
296
  "A": 3884,
297
  "B": 8050,
298
- "E": 1215,
299
  "D": 229,
300
- "C": 489,
301
- "F": 219,
302
  "G": 74,
 
303
  "C2": 85,
304
  "Q": 21,
 
305
  "I": 14
306
  },
307
  "dropped": {
308
  "prompt_too_long": 288,
309
- "answer_too_long": 1,
310
  "answer_too_short": 2,
311
- "code_does_not_compile": 765
312
  },
313
  "para": 2,
314
- "duplicate_questions_removed": 2233,
315
  "sft_seq": 512,
316
  "codecheck": {
317
- "tested": 1677,
318
- "dropped_pairs": 765,
319
- "dropped_blocks": 776,
320
- "compiled": 901
321
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
322
  },
323
  "config": {
324
  "pretrain_seq": 512,
@@ -331,8 +344,8 @@
331
  "outputs": [
332
  {
333
  "path": "sft_pool.jsonl",
334
- "lines": 14398,
335
- "sha256": "910fe8bdcd7a8de33ba9df18e9272fee08f0d1d92c3a52ae8555caac7200009c"
336
  }
337
  ]
338
  }
@@ -482,50 +495,63 @@
482
  "kept_supercollider": 1726
483
  },
484
  "sft_stats": {
485
- "pool": 14398,
486
  "families": {
487
  "D3": 118,
488
  "A": 3884,
489
  "B": 8050,
490
- "E": 1215,
491
  "D": 229,
492
- "C": 489,
493
- "F": 219,
494
  "G": 74,
 
495
  "C2": 85,
496
  "Q": 21,
 
497
  "I": 14
498
  },
499
  "dropped": {
500
  "prompt_too_long": 288,
501
- "answer_too_long": 1,
502
  "answer_too_short": 2,
503
- "code_does_not_compile": 765
504
  },
505
  "para": 2,
506
- "duplicate_questions_removed": 2233,
507
  "sft_seq": 512,
508
  "codecheck": {
509
- "tested": 1677,
510
- "dropped_pairs": 765,
511
- "dropped_blocks": 776,
512
- "compiled": 901
513
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
514
  },
515
  "mix_stats": {
516
  "total": 6000,
517
- "val": 215,
518
- "pool": 14398,
519
  "teacher": 94,
520
  "families": {
521
- "F": {
522
  "share": 0.18,
523
- "pool": 215,
524
- "sampled": 1082,
525
- "repeats": 5.03,
526
  "wanted": 1080,
527
- "capped": 1080,
528
- "absorbs": 2
529
  },
530
  "B": {
531
  "share": 0.22,
@@ -537,21 +563,21 @@
537
  },
538
  "C": {
539
  "share": 0.11,
540
- "pool": 483,
541
- "sampled": 684,
542
- "repeats": 1.42,
543
  "wanted": 660,
544
  "capped": 660,
545
- "absorbs": 24
546
  },
547
  "E": {
548
  "share": 0.12,
549
- "pool": 1205,
550
- "sampled": 790,
551
- "repeats": 0.66,
552
  "wanted": 720,
553
  "capped": 720,
554
- "absorbs": 70
555
  },
556
  "A": {
557
  "share": 0.09,
 
1
  {
2
+ "generated_at": "2026-11-21T18:54:18+00:00",
3
  "root": "<local path removed>",
4
  "stages": {
5
  "10-extracted": {
 
166
  },
167
  "40-sft": {
168
  "mix-sft": {
169
+ "finished_at": "2026-11-21T18:53:09+00:00",
170
  "counts": {
171
  "total": 6000,
172
+ "val": 201,
173
+ "pool": 13412,
174
  "teacher": 94,
175
  "families": {
176
+ "H": {
177
  "share": 0.18,
178
+ "pool": 153,
179
+ "sampled": 918,
180
+ "repeats": 6.0,
181
  "wanted": 1080,
182
+ "capped": 918,
183
+ "absorbs": 0
184
  },
185
  "B": {
186
  "share": 0.22,
 
192
  },
193
  "C": {
194
  "share": 0.11,
195
+ "pool": 241,
196
+ "sampled": 722,
197
+ "repeats": 3.0,
198
  "wanted": 660,
199
  "capped": 660,
200
+ "absorbs": 62
201
  },
202
  "E": {
203
  "share": 0.12,
204
+ "pool": 537,
205
+ "sampled": 916,
206
+ "repeats": 1.71,
207
  "wanted": 720,
208
  "capped": 720,
209
+ "absorbs": 196
210
  },
211
  "A": {
212
  "share": 0.09,
 
278
  {
279
  "path": "sft_train.jsonl",
280
  "lines": 6000,
281
+ "sha256": "f5d4c5831c44e1c1be3a255fa1e8a51780933c93f117a983147e243e593ac305"
282
  },
283
  {
284
  "path": "sft_val.jsonl",
285
+ "lines": 201,
286
+ "sha256": "2036bf01c619da65bd0cd66be28507b05d2057965456ea4259b36b2be396af95"
287
  }
288
  ]
289
  },
290
  "sft": {
291
+ "finished_at": "2026-11-21T18:51:08+00:00",
292
  "counts": {
293
+ "pool": 13412,
294
  "families": {
295
  "D3": 118,
296
  "A": 3884,
297
  "B": 8050,
 
298
  "D": 229,
299
+ "E": 541,
 
300
  "G": 74,
301
+ "C": 243,
302
  "C2": 85,
303
  "Q": 21,
304
+ "H": 153,
305
  "I": 14
306
  },
307
  "dropped": {
308
  "prompt_too_long": 288,
309
+ "answer_too_long": 7,
310
  "answer_too_short": 2,
311
+ "code_does_not_compile": 556
312
  },
313
  "para": 2,
314
+ "duplicate_questions_removed": 2285,
315
  "sft_seq": 512,
316
  "codecheck": {
317
+ "tested": 1162,
318
+ "dropped_pairs": 556,
319
+ "dropped_blocks": 567,
320
+ "compiled": 595
321
+ },
322
+ "prologue_gate": {
323
+ "C": {
324
+ "tested": 933,
325
+ "dropped_no_audio": 266,
326
+ "dropped_unbound": 239
327
+ },
328
+ "E": {
329
+ "tested": 1273,
330
+ "dropped_no_audio": 376,
331
+ "dropped_unbound": 334
332
+ }
333
+ },
334
+ "family_h_generated": 467
335
  },
336
  "config": {
337
  "pretrain_seq": 512,
 
344
  "outputs": [
345
  {
346
  "path": "sft_pool.jsonl",
347
+ "lines": 13412,
348
+ "sha256": "e138717619f49780c81be0a83dfffef3744347ae5a88b0880b1e8dc833a762d1"
349
  }
350
  ]
351
  }
 
495
  "kept_supercollider": 1726
496
  },
497
  "sft_stats": {
498
+ "pool": 13412,
499
  "families": {
500
  "D3": 118,
501
  "A": 3884,
502
  "B": 8050,
 
503
  "D": 229,
504
+ "E": 541,
 
505
  "G": 74,
506
+ "C": 243,
507
  "C2": 85,
508
  "Q": 21,
509
+ "H": 153,
510
  "I": 14
511
  },
512
  "dropped": {
513
  "prompt_too_long": 288,
514
+ "answer_too_long": 7,
515
  "answer_too_short": 2,
516
+ "code_does_not_compile": 556
517
  },
518
  "para": 2,
519
+ "duplicate_questions_removed": 2285,
520
  "sft_seq": 512,
521
  "codecheck": {
522
+ "tested": 1162,
523
+ "dropped_pairs": 556,
524
+ "dropped_blocks": 567,
525
+ "compiled": 595
526
+ },
527
+ "prologue_gate": {
528
+ "C": {
529
+ "tested": 933,
530
+ "dropped_no_audio": 266,
531
+ "dropped_unbound": 239
532
+ },
533
+ "E": {
534
+ "tested": 1273,
535
+ "dropped_no_audio": 376,
536
+ "dropped_unbound": 334
537
+ }
538
+ },
539
+ "family_h_generated": 467
540
  },
541
  "mix_stats": {
542
  "total": 6000,
543
+ "val": 201,
544
+ "pool": 13412,
545
  "teacher": 94,
546
  "families": {
547
+ "H": {
548
  "share": 0.18,
549
+ "pool": 153,
550
+ "sampled": 918,
551
+ "repeats": 6.0,
552
  "wanted": 1080,
553
+ "capped": 918,
554
+ "absorbs": 0
555
  },
556
  "B": {
557
  "share": 0.22,
 
563
  },
564
  "C": {
565
  "share": 0.11,
566
+ "pool": 241,
567
+ "sampled": 722,
568
+ "repeats": 3.0,
569
  "wanted": 660,
570
  "capped": 660,
571
+ "absorbs": 62
572
  },
573
  "E": {
574
  "share": 0.12,
575
+ "pool": 537,
576
+ "sampled": 916,
577
+ "repeats": 1.71,
578
  "wanted": 720,
579
  "capped": 720,
580
+ "absorbs": 196
581
  },
582
  "A": {
583
  "share": 0.09,
verify_report.md CHANGED
@@ -46,10 +46,10 @@
46
  "lines": 6000,
47
  "prompt_leaves_no_room": 0,
48
  "no_room_examples": [],
49
- "truncated": 1190,
50
  "markup_leaks": 0,
51
  "contradictory_answers": 0,
52
- "repeated_qa": 2153
53
  }
54
  ```
55
 
@@ -58,10 +58,10 @@
58
  ```json
59
  {
60
  "file": "sft_val.jsonl",
61
- "lines": 215,
62
  "prompt_leaves_no_room": 0,
63
  "no_room_examples": [],
64
- "truncated": 11,
65
  "markup_leaks": 0,
66
  "contradictory_answers": 0,
67
  "repeated_qa": 0
@@ -72,8 +72,8 @@
72
 
73
  ```json
74
  {
75
- "train": 3847,
76
- "val": 215,
77
  "overlap": 0
78
  }
79
  ```
@@ -82,7 +82,7 @@
82
 
83
  ```json
84
  {
85
- "ugen_calls": 22216,
86
  "unknown": 0,
87
  "worst": []
88
  }
 
46
  "lines": 6000,
47
  "prompt_leaves_no_room": 0,
48
  "no_room_examples": [],
49
+ "truncated": 787,
50
  "markup_leaks": 0,
51
  "contradictory_answers": 0,
52
+ "repeated_qa": 2667
53
  }
54
  ```
55
 
 
58
  ```json
59
  {
60
  "file": "sft_val.jsonl",
61
+ "lines": 201,
62
  "prompt_leaves_no_room": 0,
63
  "no_room_examples": [],
64
+ "truncated": 2,
65
  "markup_leaks": 0,
66
  "contradictory_answers": 0,
67
  "repeated_qa": 0
 
72
 
73
  ```json
74
  {
75
+ "train": 3333,
76
+ "val": 201,
77
  "overlap": 0
78
  }
79
  ```
 
82
 
83
  ```json
84
  {
85
+ "ugen_calls": 21815,
86
  "unknown": 0,
87
  "worst": []
88
  }