Datasets:
v0.1.0: full profile
Browse files- .gitattributes +1 -0
- LICENCES.md +25 -0
- README.md +65 -0
- SCHEMA.md +141 -0
- checksums.sha256 +10 -0
- data/pretrain/train.jsonl +3 -0
- data/pretrain/val.jsonl +0 -0
- data/sft/pool.jsonl +0 -0
- data/sft/teacher.jsonl +94 -0
- data/sft/train.jsonl +0 -0
- data/sft/val.jsonl +215 -0
- stats.json +614 -0
- verify_report.md +89 -0
.gitattributes
CHANGED
|
@@ -58,3 +58,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 58 |
# Video files - compressed
|
| 59 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 58 |
# Video files - compressed
|
| 59 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
| 61 |
+
data/pretrain/train.jsonl filter=lfs diff=lfs merge=lfs -text
|
LICENCES.md
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# LICENCES
|
| 2 |
+
|
| 3 |
+
One row per source, read from its own `00-raw/<source>/<snapshot>/SOURCE.json` at manifest time.
|
| 4 |
+
|
| 5 |
+
| Source | Snapshot | Licence | Note |
|
| 6 |
+
|---|---|---|---|
|
| 7 |
+
| `local` | `20261121` | own work (no third-party licence) | Hand-written SuperCollider sessions and examples. |
|
| 8 |
+
| `quarks` | `20261121` | per-repository; see each repo's LICENSE (recorded per file) | supercollider-quarks/quarks directory.txt at fetch time; default branch of each repo. Licence varies per repository and is recorded in meta.quark_repo |
|
| 9 |
+
| `sc3-plugins` | `20261121` | GPL-3.0 | default branch archive; .sc/.schelp/.scd only. |
|
| 10 |
+
| `sccode` | `20261121` | none stated on sccode.org - treat as all-rights-reserved | Public dump of sccode.org snippets. Redistribution is NOT granted by the site; keep derived artifacts private unless the author grants a licence. |
|
| 11 |
+
| `scsynth` | `20261121` | Discourse site terms; posts are their authors' (CC BY-SA 4.0 by default on this site) | Top 700 topics by all-time score, then newest; cooked HTML -> text with code fenced. |
|
| 12 |
+
| `supercollider` | `a1cbc78df43dfb48641fe9f290c0477e854b4459` | GPL-3.0 | |
|
| 13 |
+
| teacher | this project | same as this project | hand-written pairs derived from the documentation above |
|
| 14 |
+
|
| 15 |
+
## Redistribution
|
| 16 |
+
|
| 17 |
+
- **supercollider/supercollider** — GPL-3.0. Training is fine; a derived *corpus* would have to be
|
| 18 |
+
GPL-3.0 as well, and weights trained on GPL text are legally untested.
|
| 19 |
+
- **Quarks** — licence varies per repository (mostly GPL/MIT). Each file records its repo in
|
| 20 |
+
`SOURCE.json`; a redistribution would have to be checked per repo, not per corpus.
|
| 21 |
+
- **sccode.org** — the site states no licence. Treat the code as all-rights-reserved: fine to learn
|
| 22 |
+
from locally, **not** fine to publish the snippets or a dataset built from them.
|
| 23 |
+
- **scsynth.org** — Discourse site terms; posts belong to their authors. Same caveat as sccode.
|
| 24 |
+
- **sc3-plugins** — GPL-3.0.
|
| 25 |
+
- **local/** — this project's own `.scd` examples, no third-party licence.
|
README.md
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: other
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
task_categories:
|
| 6 |
+
- text-generation
|
| 7 |
+
tags:
|
| 8 |
+
- supercollider
|
| 9 |
+
- audio
|
| 10 |
+
- code
|
| 11 |
+
- minimind
|
| 12 |
+
- moe
|
| 13 |
+
pretty_name: SuperCollider MoE corpus
|
| 14 |
+
size_categories:
|
| 15 |
+
- 10K<n<100K
|
| 16 |
+
---
|
| 17 |
+
|
| 18 |
+
# supercollider-moe-dataset
|
| 19 |
+
|
| 20 |
+
Training data for **SC-MiniMind-3-MoE**, a 198M-parameter SuperCollider language model: a pretraining
|
| 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.0` · 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
|
| 28 |
+
> `license: other` with takedown on request; it is not a grant of rights over that text.
|
| 29 |
+
> The `cleared` profile (sccode removed, Quarks filtered) is the redistributable build.
|
| 30 |
+
|
| 31 |
+
## Contents
|
| 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` | 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
|
| 43 |
+
`{"conversations": […]}`. The schema is in `SCHEMA.md`; the gates that passed are in
|
| 44 |
+
`verify_report.md`; every file is hashed in `checksums.sha256`.
|
| 45 |
+
|
| 46 |
+
## What it is
|
| 47 |
+
|
| 48 |
+
A SuperCollider corpus built from six sources — the official tree, 321 Quarks, the sccode.org public
|
| 49 |
+
dump, 700 scsynth.org threads, sc3-plugins, and the project's own `.scd` sessions — normalised, deduped,
|
| 50 |
+
chunk-packed at 512 tokens with a document- and chunk-disjoint validation split, and turned into an SFT
|
| 51 |
+
pool whose code answers were compiled with sclang 3.14.1 before being written (765 pairs dropped for not
|
| 52 |
+
parsing).
|
| 53 |
+
|
| 54 |
+
Full provenance and the per-source licence table: `LICENCES.md`. What it can and cannot teach: the
|
| 55 |
+
dataset card in the source repository (`docs/manifests/DATASET_CARD.md`).
|
| 56 |
+
|
| 57 |
+
## Intended use
|
| 58 |
+
|
| 59 |
+
Pretraining and SFT for small SuperCollider domain models. Not a general text corpus, and not a
|
| 60 |
+
substitute for the SuperCollider documentation.
|
| 61 |
+
|
| 62 |
+
## Versioning
|
| 63 |
+
|
| 64 |
+
Every upload is a commit; releases are tagged `vMAJOR.MINOR.PATCH`. The training harness records the
|
| 65 |
+
HF commit in each experiment's `config.json`, so a run names the exact bytes it used.
|
SCHEMA.md
ADDED
|
@@ -0,0 +1,141 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# SCHEMA v1 — record and artifact contracts
|
| 2 |
+
|
| 3 |
+
Two different kinds of thing live in this folder: **records** (rich, intermediate) and **artifacts**
|
| 4 |
+
(poor, exactly what the trainer reads). They are deliberately not the same schema: the trainer must never
|
| 5 |
+
depend on a field that a future cleaning pass might stop producing.
|
| 6 |
+
|
| 7 |
+
---
|
| 8 |
+
|
| 9 |
+
## 1. Record — `10-extracted/*.jsonl`, `20-clean/*.jsonl`
|
| 10 |
+
|
| 11 |
+
One JSON object per line. `schema` is bumped on any breaking change; a reader must refuse an unknown
|
| 12 |
+
`schema` rather than guess.
|
| 13 |
+
|
| 14 |
+
```json
|
| 15 |
+
{
|
| 16 |
+
"schema": 1,
|
| 17 |
+
"id": "supercollider:HelpSource/Classes/SinOsc.schelp",
|
| 18 |
+
"source": "supercollider",
|
| 19 |
+
"snapshot": "a1cbc78df43dfb48641fe9f290c0477e854b4459",
|
| 20 |
+
"kind": "schelp",
|
| 21 |
+
"path": "HelpSource/Classes/SinOsc.schelp",
|
| 22 |
+
"title": "SinOsc",
|
| 23 |
+
"class": "SinOsc",
|
| 24 |
+
"categories": "UGens>Generators>Deterministic",
|
| 25 |
+
"text": "SinOsc — Interpolating sine wavetable oscillator.\n\nCategory: UGens > Generators > Deterministic\n\n## ar, kr\n- freq: Frequency in Hertz.\n...\n```supercollider\n{ SinOsc.ar(200, 0, 0.5) }.play;\n```",
|
| 26 |
+
"code": ["{ SinOsc.ar(200, 0, 0.5) }.play;", "{ SinOsc.ar(XLine.kr(2000, 200), 0, 0.5) }.play;"],
|
| 27 |
+
"doc": {
|
| 28 |
+
"summary": "Interpolating sine wavetable oscillator.",
|
| 29 |
+
"description": "Generates a sine wave. Uses a wavetable lookup oscillator with linear interpolation. …",
|
| 30 |
+
"methods": [
|
| 31 |
+
{
|
| 32 |
+
"name": "ar, kr",
|
| 33 |
+
"desc": "Sine oscillator at audio rate.",
|
| 34 |
+
"args": [["freq", "Frequency in Hertz."], ["phase", "Phase in radians."], ["mul", "Output multiplier."], ["add", "Output offset."]],
|
| 35 |
+
"returns": "a signal in the range [-mul, mul]"
|
| 36 |
+
}
|
| 37 |
+
],
|
| 38 |
+
"related": ["Osc", "FSinOsc", "PMOsc"]
|
| 39 |
+
},
|
| 40 |
+
"meta": {
|
| 41 |
+
"chars": 4820,
|
| 42 |
+
"tokens": 2380,
|
| 43 |
+
"has_code": true,
|
| 44 |
+
"lang": "en",
|
| 45 |
+
"licence": "GPL-3.0",
|
| 46 |
+
"sha256": "…"
|
| 47 |
+
}
|
| 48 |
+
}
|
| 49 |
+
```
|
| 50 |
+
|
| 51 |
+
Rules:
|
| 52 |
+
|
| 53 |
+
- `id` is stable across runs: `"<source>:<relative path>"` for files, `"<source>:<snippet id>"` for web
|
| 54 |
+
sources. It is the join key everywhere downstream; a record with a different `id` is a different record.
|
| 55 |
+
- `text` is **the renderable view** and always the thing the pretrain packer sees. It must be valid as
|
| 56 |
+
plain text: no `.schelp` markup survives (`argument::`, `link::`, `code::` are all resolved).
|
| 57 |
+
- `code` is a **list of verbatim code blocks**, in document order. Untouched by cleaning. This is what the
|
| 58 |
+
SFT families C/D/E are built from, which is why they must never be fenced, escaped or reformatted.
|
| 59 |
+
- `doc` is optional and only present for `kind` values that can be parsed structurally (`schelp`). SFT
|
| 60 |
+
quality comes from here, not from regex over `text`.
|
| 61 |
+
- `meta.tokens` is measured with **the model's tokenizer**, recorded so the packer can plan without
|
| 62 |
+
re-tokenising everything.
|
| 63 |
+
|
| 64 |
+
## 2. Pretrain artifact — `30-corpus/pretrain_*.jsonl`
|
| 65 |
+
|
| 66 |
+
Exactly one key. Nothing else, ever.
|
| 67 |
+
|
| 68 |
+
```json
|
| 69 |
+
{"text": "…≤ 510 tokens of SuperCollider…"}
|
| 70 |
+
```
|
| 71 |
+
|
| 72 |
+
Invariants (checked by `scpipe verify`):
|
| 73 |
+
|
| 74 |
+
| # | Invariant | Why |
|
| 75 |
+
|---|---|---|
|
| 76 |
+
| P1 | `tokens(text) ≤ seq_len - 2` for **every** line, using the same tokenizer the trainer loads | `PretrainDataset` truncates silently; P1 makes it a no-op |
|
| 77 |
+
| P2 | no line is empty or under 40 tokens | stubs teach nothing and waste a step |
|
| 78 |
+
| P3 | no `text` appears twice (exact, on normalised whitespace) | duplicated chunks are memorisation fuel |
|
| 79 |
+
| P4 | no `.schelp` markup token survives (`argument::`, `link::`, `method::`, `code::`) | otherwise the model learns the docs' markup |
|
| 80 |
+
| P5 | train/val are doc-disjoint (`val` ids ∩ `train` ids = ∅ at document level) | otherwise val loss measures repetition |
|
| 81 |
+
|
| 82 |
+
## 3. SFT artifact — `40-sft/sft_*.jsonl`
|
| 83 |
+
|
| 84 |
+
Exactly the contract `SFTDataset` parses, and nothing more.
|
| 85 |
+
|
| 86 |
+
```json
|
| 87 |
+
{"conversations": [{"role": "user", "content": "What does `SinOsc.ar` do? What arguments does it take?"},
|
| 88 |
+
{"role": "assistant", "content": "`SinOsc.ar` generates the oscillator at audio rate. Arguments: freq — Frequency in Hertz; …"}]}
|
| 89 |
+
```
|
| 90 |
+
|
| 91 |
+
`role` is only ever `user` or `assistant` (the dataset injects a system prompt for 20% of samples itself,
|
| 92 |
+
and tool/thinking fields are out of scope for v1).
|
| 93 |
+
|
| 94 |
+
Invariants (checked by `scpipe verify`):
|
| 95 |
+
|
| 96 |
+
| # | Invariant | Why |
|
| 97 |
+
|---|---|---|
|
| 98 |
+
| S1 | `len(tokens(render(conversations))) ≤ sft_seq` | the loader truncates at this point |
|
| 99 |
+
| S2 | `len(tokens(render(conversations[:-1], add_generation_prompt=True))) ≤ sft_seq - 24` | **the NaN guard**: if the prompt fills the window the answer is cut and the label mask is all `-100`, and `cross_entropy` over an empty target set returns NaN |
|
| 100 |
+
| S3 | every assistant turn is 40–2,400 chars and non-empty after `.strip()` | |
|
| 101 |
+
| S4 | no two records share the same first 200 chars of `content[0]` **and** the same first 200 of `content[-1]` | duplicate questions with different answers teach contradiction |
|
| 102 |
+
| S5 | `val` records come from documents absent from `train` | same reasoning as P5 |
|
| 103 |
+
| S6 | no `link::`, `argument::`, `method::`, `code::` in any `content` | markup leak |
|
| 104 |
+
|
| 105 |
+
## 4. Stage bookkeeping — `_SUCCESS` and `<stage>_stats.json`
|
| 106 |
+
|
| 107 |
+
Every stage folder gets a `_SUCCESS` written **last**. Its presence means "this folder is internally
|
| 108 |
+
consistent with these inputs":
|
| 109 |
+
|
| 110 |
+
```json
|
| 111 |
+
{
|
| 112 |
+
"stage": "pack",
|
| 113 |
+
"schema": 1,
|
| 114 |
+
"finished_at": "2026-11-20T20:41:07Z",
|
| 115 |
+
"command": "python -m dataset.scpipe pack --seq 512",
|
| 116 |
+
"inputs": [{"path": "20-clean/supercollider.jsonl", "bytes": 91234567, "sha256": "…"}],
|
| 117 |
+
"config": {"seq_len": 512, "max_tokens": 510, "overlap": 32, "tokenizer": "model/tokenizer.json"},
|
| 118 |
+
"outputs": [{"path": "30-corpus/pretrain_train.jsonl", "lines": 8774, "sha256": "…"}],
|
| 119 |
+
"counts": {"chunks": 8954, "tokens": 4127766, "max_tokens_per_chunk": 510, "docs_split": 1339},
|
| 120 |
+
"duration_s": 41.2,
|
| 121 |
+
"git_commit": "cc9629e"
|
| 122 |
+
}
|
| 123 |
+
```
|
| 124 |
+
|
| 125 |
+
A stage skips when every `inputs[].sha256` still matches and `config` matches the requested config;
|
| 126 |
+
otherwise it refuses to run without `--force`. That is the whole of the reproducibility story: raw bytes +
|
| 127 |
+
config + command + code commit.
|
| 128 |
+
|
| 129 |
+
## 5. Naming
|
| 130 |
+
|
| 131 |
+
| Thing | Pattern | Example |
|
| 132 |
+
|---|---|---|
|
| 133 |
+
| raw snapshot | `00-raw/<source>/<sha-or-date>/` | `00-raw/supercollider/a1cbc78df43d…/` |
|
| 134 |
+
| extracted | `10-extracted/<source>.jsonl` | `10-extracted/supercollider.jsonl` |
|
| 135 |
+
| clean | `20-clean/<source>.jsonl` | `20-clean/supercollider.jsonl` |
|
| 136 |
+
| pretrain | `30-corpus/pretrain_{train,val}.jsonl` | |
|
| 137 |
+
| sft | `40-sft/sft_{pool,train,val}.jsonl` | |
|
| 138 |
+
| logs | `90-logs/<stage>-<yyyymmdd-HHMMss>.jsonl` | `90-logs/pack-20261120-204107.jsonl` |
|
| 139 |
+
|
| 140 |
+
No timestamps in artifact *file names* — only in logs and snapshots. An artifact's identity is its path
|
| 141 |
+
plus its `_SUCCESS` hash, not the day it was built.
|
checksums.sha256
ADDED
|
@@ -0,0 +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
|
data/pretrain/train.jsonl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8454ed97da318f4de2c331bd195827b92e8c25ae5848211d89063513b7d50e0d
|
| 3 |
+
size 58188770
|
data/pretrain/val.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
data/sft/pool.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
data/sft/teacher.jsonl
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"schema": 1, "id": "teacher:concept:ugen-graph", "family": "T1", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "What is a UGen graph in SuperCollider?"}, {"role": "assistant", "content": "A UGen graph is the directed acyclic graph of unit generators that a SynthDef describes: sources (SinOsc, WhiteNoise) feed processors (LPF, EnvGen, Pan2) and end at an output such as Out.ar. The language builds the graph; the server instantiates it once per Synth. A signal path is drawn by passing one UGen's output as another's input, and because UGens are multi-channel by default, the same expression can build a stereo or 8-channel graph depending on the arrays inside it."}]}
|
| 2 |
+
{"schema": 1, "id": "teacher:concept:ar-kr-ir", "family": "T1", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "What is the difference between .ar, .kr and .ir?"}, {"role": "assistant", "content": "The rate method decides how often a UGen is evaluated. `.ar` runs at the audio rate, once per sample, and produces an audio signal. `.kr` runs at the control rate, once per block of 64 samples by default, so it is cheaper and is used for parameters that do not need sample accuracy. `.ir` is evaluated once when the Synth is created and then never again, for constants such as SampleRate.ir or a size. Using .kr where you need audio-rate modulation gives stepped, zipper-noise-like control; using .ar where .kr would do costs CPU."}]}
|
| 3 |
+
{"schema": 1, "id": "teacher:concept:mul-add", "family": "T1", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "Why does every UGen have mul and add arguments?"}, {"role": "assistant", "content": "They are a convenience applied to the UGen's output: the result is `ugens_result * mul + add`. So `SinOsc.ar(440, 0, 0.2)` is the same as `SinOsc.ar(440) * 0.2`, and `SinOsc.ar(440, 0, 0.5, 1800)` is usable directly as a frequency. They exist because multiplying and offsetting is so common that folding it into the UGen saves a node in the graph and a line in the source."}]}
|
| 4 |
+
{"schema": 1, "id": "teacher:concept:doneaction", "family": "T1", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "What does doneAction do?"}, {"role": "assistant", "content": "It tells the server what to do to the enclosing Synth when the UGen finishes. The one that matters most is `doneAction: 2`, which frees the Synth: that is how a percussive sound cleans itself up instead of leaking silent nodes. `doneAction: 0` does nothing, so the Synth keeps running. EnvGen, Line, XLine, LinePan and friends all accept it, which is why `EnvGen.kr(Env.perc(0.01, 1), doneAction: 2)` is the standard envelope idiom."}]}
|
| 5 |
+
{"schema": 1, "id": "teacher:concept:synth-vs-synthdef", "family": "T1", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "What is the difference between a Synth and a SynthDef?"}, {"role": "assistant", "content": "A SynthDef is a definition: a compiled UGen graph with named controls, registered on the server once. A Synth is one running instance of that definition. You create the definition with `SynthDef(\\bell, { |freq = 440| ... }).add` and then instances with `Synth(\\bell, [\\freq, 660])`. Defining the same SynthDef twice replaces it for future instances; already running Synths keep the old graph until they are freed."}]}
|
| 6 |
+
{"schema": 1, "id": "teacher:concept:buses", "family": "T1", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "What is the difference between an audio bus and a control bus?"}, {"role": "assistant", "content": "Both are numbered channels on the server used to move signal between nodes. An audio bus carries audio-rate signal and holds one or more audio channels; a control bus carries one value per block, like a parameter. You write with Out.ar / Out.kr and read with In.ar / In.kr, or with `.asMap` / `\\param, bus.asMap` to drive a Synth's control from a bus. Buses are how effects are chained: a synth writes to a private bus, the effect reads it and writes to Out.ar(0, …)."}]}
|
| 7 |
+
{"schema": 1, "id": "teacher:concept:node-tree", "family": "T1", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "What is the node tree and what is a Group for?"}, {"role": "assistant", "content": "Everything running on the server is a node: Synths and Groups, arranged in a tree under the root group. Order matters, because audio flows through buses from earlier to later nodes in the same branch. A Group is a container that lets you address many nodes at once, which is what you want for an effect chain — put the instruments in one group, the effect in another, and `freeAll` or a volume change hits the whole group instead of a list of node ids."}]}
|
| 8 |
+
{"schema": 1, "id": "teacher:concept:waitforboot", "family": "T1", "weight": 3, "turns_count": 1, "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."}]}
|
| 9 |
+
{"schema": 1, "id": "teacher:concept:env-and-envgen", "family": "T1", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "What is the difference between Env and EnvGen?"}, {"role": "assistant", "content": "Env is a language-side description: a list of levels, times and a curve, e.g. `Env.perc(0.01, 1)` or `Env.adsr(0.01, 0.1, 0.5, 0.8)`. EnvGen is the UGen that plays it on the server: `EnvGen.kr(env, gate, doneAction: 2)`. The same Env can be played by many EnvGens, and Env also has language-side uses such as `.asStream` inside Patterns and `.plot`."}]}
|
| 10 |
+
{"schema": 1, "id": "teacher:concept:buffer-vs-soundfile", "family": "T1", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "What is a Buffer, and how is it different from a SoundFile?"}, {"role": "assistant", "content": "A Buffer is server-side memory: an array of samples (or a wavetable) living on scsynth, addressed by an integer bufnum. A SoundFile is a language-side object for reading or writing a file on disk. `Buffer.read(s, path)` loads a sound file into server memory and gives you a Buffer; `SoundFile.openRead(path)` just reads metadata such as duration and sample rate without loading audio. PlayBuf, GrainBuf and BufRd all take a Buffer, never a SoundFile."}]}
|
| 11 |
+
{"schema": 1, "id": "teacher:concept:ndef", "family": "T1", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "What is Ndef used for?"}, {"role": "assistant", "content": "Ndef is the JITLib node proxy: a named placeholder for a running signal chain that you can redefine while it plays. `Ndef(\\drone, { SinOsc.ar(55) * 0.1 }).play` starts it, and calling Ndef(\\drone, { ... }) again crossfades to the new definition without restarting the sound. It also supports chaining, `Ndef(\\drone)[1] = \\filter -> { |in| LPF.ar(in, 800) }`, which is the idiomatic way to build and modify a live patch."}]}
|
| 12 |
+
{"schema": 1, "id": "teacher:concept:patterns-vs-synthdefs", "family": "T1", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "When should I use a Pattern instead of writing Synth code by hand?"}, {"role": "assistant", "content": "Use a Pattern when what you want to express is a sequence over time — notes, durations, amplitudes, parameters — rather than a signal. A Pbind describes events, and `.play` turns each event into a Synth (by default of the \\default instrument, or of \\instrument if you name one). Hand-written Synth code is for the sound itself; Patterns are for what plays when. The two compose: a SynthDef named \\bell is triggered from `Pbind(\\instrument, \\bell, ...)`."}]}
|
| 13 |
+
{"schema": 1, "id": "teacher:concept:clocks", "family": "T1", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "What is the difference between TempoClock and SystemClock?"}, {"role": "assistant", "content": "SystemClock runs in real time and is what `.wait` uses by default. TempoClock runs in beats and has a tempo, so it can be changed while things are playing and Patterns scheduled on it follow. `TempoClock.default` is the clock Patterns use unless told otherwise, which is why `TempoClock.default.tempo = 2` changes the speed of everything you already have running."}]}
|
| 14 |
+
{"schema": 1, "id": "teacher:concept:env-vars", "family": "T1", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "What is the difference between ~foo and a local variable?"}, {"role": "assistant", "content": "`var foo` is a local: it exists only inside the function or file block that declares it. `~foo` is an environment variable: it lives in the current Environment, survives between executions of the same block, and is visible to everything running in that environment. That is why `~buf = Buffer.read(s, path)` works in one cell and `PlayBuf.ar(1, ~buf)` works in the next, while a `var` would be gone."}]}
|
| 15 |
+
{"schema": 1, "id": "teacher:concept:multichannel", "family": "T1", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "How does multi-channel expansion work?"}, {"role": "assistant", "content": "If any argument of a UGen is an Array, the UGen is built once per element and the results are returned as an Array. So `SinOsc.ar([220, 330, 440])` is three oscillators, and `SinOsc.ar(220 * [1, 1.5])` is two. This is not a special stereo feature: it is uniform expansion, which is why `Splay.ar(SinOsc.ar([220,330,440]) * 0.1)` gives you a spread stereo field from three mono sources."}]}
|
| 16 |
+
{"schema": 1, "id": "teacher:concept:block-size", "family": "T1", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "What are the server's default sample rate and block size?"}, {"role": "assistant", "content": "44100 Hz and 64 samples per block by default, so the control rate is 44100/64 = 689.06 Hz. You can read them from the language with `s.sampleRate` and `s.options.blockSize`, or from inside a Synth with `SampleRate.ir` and `ControlRate.ir`. A `.kr` signal therefore updates about 689 times a second, which is why it is smooth enough for filters and envelopes but not for audio-rate FM."}]}
|
| 17 |
+
{"schema": 1, "id": "teacher:concept:play", "family": "T1", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "What happens when I call .play on a function?"}, {"role": "assistant", "content": "`.play` on a Function builds a SynthDef from the function body, adds it to the server under an anonymous name, and starts one Synth of it. You get back the Synth, so `x = { SinOsc.ar(440) * 0.1 }.play; x.free;` stops it. It is the fastest way to hear something, but it is not how you write a piece: nothing is named, nothing can be reused, and the definition is lost when the Synth is freed."}]}
|
| 18 |
+
{"schema": 1, "id": "teacher:api:bpf-rq", "family": "T5", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "What is rq in BPF.ar?"}, {"role": "assistant", "content": "rq is the reciprocal of Q, so it is a bandwidth control, not a Q control. Small rq means a narrow, resonant band; large rq means a wide, gentle one. The signature is `BPF.ar(in, freq, rq, mul, add)`. A common idiom is `rq = 0.3` for a broad sweep and `rq = 0.02` for a whistle. The same rq convention applies to RLPF and RHPF."}]}
|
| 19 |
+
{"schema": 1, "id": "teacher:api:grainbuf", "family": "T5", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "What are the arguments of GrainBuf.ar?"}, {"role": "assistant", "content": "`GrainBuf.ar(numChannels, trigger, dur, sndbuf, rate, pos, interp, pan, envbufnum, maxGrains, mul, add)`. The ones you always pass are numChannels (1 or 2), trigger (a UGen that fires grains, e.g. Impulse.kr(20)), dur (grain length in seconds), sndbuf (an integer buffer number, or `~buf`), rate (playback rate per grain), and pos (read position 0..1 into the buffer). Raise maxGrains if the server complains about too many grains rather than lowering density."}]}
|
| 20 |
+
{"schema": 1, "id": "teacher:api:envgen", "family": "T5", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "What are the arguments of EnvGen?"}, {"role": "assistant", "content": "`EnvGen.ar(envelope, gate, levelScale, levelBias, timeScale, doneAction)` — or the .kr form. Envelope is an Env; gate is the signal that holds the envelope open (a number for a one-shot, a trigger or gate control for a sustained sound); levelScale and levelBias scale and offset the output; timeScale stretches durations. Use `doneAction: 2` on a one-shot so the Synth frees itself."}]}
|
| 21 |
+
{"schema": 1, "id": "teacher:api:env-perc", "family": "T5", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "What is Env.perc and what does it take?"}, {"role": "assistant", "content": "`Env.perc(attackTime, releaseTime, level, curve)` — an attack to `level` (default 1) then a decay to zero, with curve defaulting to -4 (an exponential-ish decay). `Env.perc(0.01, 1)` is the default percussive envelope, and it is a complete Env, not a generator: pair it with EnvGen to hear it."}]}
|
| 22 |
+
{"schema": 1, "id": "teacher:api:playbuf", "family": "T5", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "What are the arguments of PlayBuf.ar?"}, {"role": "assistant", "content": "`PlayBuf.ar(numChannels, bufnum, rate, trigger, startPos, loop)`. numChannels must match what is in the buffer, or you get a channel mismatch; bufnum is the Buffer's integer number; rate is playback speed where 1 is normal and negative plays backwards; trigger restarts playback on each trigger in loop mode; startPos is in frames; loop is 0 or 1. `PlayBuf.ar(1, ~buf, BufRateScale.kr(~buf), loop: 1)` is the standard pitch-correct form."}]}
|
| 23 |
+
{"schema": 1, "id": "teacher:api:pbind-keys", "family": "T5", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "Which keys does a Pbind understand?"}, {"role": "assistant", "content": "The ones you use constantly are \\instrument (a SynthDef name), \\dur (seconds), \\degree (scale degree), \\midinote, \\freq, \\amp, \\legato (note length as a fraction of \\dur), and \\scale plus \\root for the scale used by \\degree. Everything else is passed to the Synth as an argument, so a SynthDef with `|cutoff = 800|` can be driven by `\\cutoff, Pwhite(400, 4000)`."}]}
|
| 24 |
+
{"schema": 1, "id": "teacher:api:degree-midinote-freq", "family": "T5", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "What is the difference between \\degree, \\midinote and \\freq in a Pbind?"}, {"role": "assistant", "content": "`\\freq` is the frequency in Hz and is used as-is. `\\midinote` is a MIDI note number, converted to frequency by the default instrument. `\\degree` is a scale degree, quantised to the scale in \\scale (default major) rooted at \\root; degrees can be negative or fractional. If you set both, the more specific conversion wins, so set exactly one."}]}
|
| 25 |
+
{"schema": 1, "id": "teacher:api:splay", "family": "T5", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "What does Splay.ar do?"}, {"role": "assistant", "content": "`Splay.ar(inArray, spread, level, center, levelComp)` takes an array of mono signals and distributes them across the stereo field, so `Splay.ar(SinOsc.ar([220, 330, 440]) * 0.1)` is a three-source stereo chord rather than three separate synths. spread (0..1) controls how far the voices fan out and center shifts the middle. It is the shorthand for 'make this array stereo'."}]}
|
| 26 |
+
{"schema": 1, "id": "teacher:api:lag", "family": "T5", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "What does Lag do?"}, {"role": "assistant", "content": "`Lag.ar(in, lagTime)` and `Lag.kr(in, lagTime)` smooth a signal with an exponential lag towards its target, which removes the clicks and zipper noise a stepped control would produce. Lag.kr on a mouse or MIDI input is the standard way to make a parameter feel analogue: `Lag.kr(MouseX.kr(200, 4000), 0.2)`. Lag2 and Lag3 are the second- and third-order versions, smoother and slower."}]}
|
| 27 |
+
{"schema": 1, "id": "teacher:api:line-xline", "family": "T5", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "What is the difference between Line and XLine?"}, {"role": "assistant", "content": "Both are ramps: `Line.kr(start, end, dur, mul, add, doneAction)` moves linearly, `XLine.kr(...)` moves exponentially in a fixed ratio per unit time. Use Line for amplitude and XLine for frequency or any parameter you hear logarithmically — a linear frequency sweep sounds like it rushes at the top and crawls at the bottom. Both take doneAction, so both can end a Synth."}]}
|
| 28 |
+
{"schema": 1, "id": "teacher:api:pan2", "family": "T5", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "What are the arguments of Pan2?"}, {"role": "assistant", "content": "`Pan2.ar(in, pos, level)` — in is the mono signal, pos is -1 (left) to 1 (right) with 0 in the middle, and level scales the output. It is equal-power, so a centred signal is -3 dB per channel rather than half amplitude. `Pan2.ar(sig, SinOsc.kr(0.1))` is the simplest autopan."}]}
|
| 29 |
+
{"schema": 1, "id": "teacher:api:freeverb", "family": "T5", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "How do I add reverb with FreeVerb?"}, {"role": "assistant", "content": "`FreeVerb.ar(in, mix, room, damp)` — mix 0..1 is dry/wet, room 0..1 is the size (0.5 is a small room, 0.9 is a hall), damp 0..1 rolls off the high end of the tail. Put it after your sound: `FreeVerb.ar(SinOsc.ar(440) * 0.1, 0.4, 0.8, 0.5)`. For a send-style reverb, write the dry signal to Out.ar(0, …) and the same signal through FreeVerb to a second bus."}]}
|
| 30 |
+
{"schema": 1, "id": "teacher:api:combn", "family": "T5", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "How do I make a delay line?"}, {"role": "assistant", "content": "`CombN.ar(in, maxdelaytime, delaytime, decaytime)` is a feedback delay: maxdelaytime is the buffer size, delaytime the actual delay (and it can modulate), decaytime how long the repeats take to die. For a clean single echo use `DelayN.ar(in, maxdelaytime, delaytime)`, which has no feedback. Both replace the `in` with the delayed signal, so mix with the dry: `dry + CombN.ar(dry, 0.5, 0.3, 2) * 0.4`."}]}
|
| 31 |
+
{"schema": 1, "id": "teacher:api:poll-scope", "family": "T5", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "How do I see what a signal is doing?"}, {"role": "assistant", "content": "`.poll` prints values to the post window — `SinOsc.kr(1).poll` prints once per control block, and `.poll(10)` limits it to every 10th. `s.scope` opens an oscilloscope on the main output, and `.scope` on a UGen shows just that signal. For a numeric snapshot of many signals at once, `s.meter` shows the output levels, and `\".dump\".postln` style probes are common while debugging."}]}
|
| 32 |
+
{"schema": 1, "id": "teacher:task:bell", "family": "T2", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "Write a bell in SuperCollider."}, {"role": "assistant", "content": "A bell is a set of inharmonic partials with a long percussive decay. The ratios below are the\nclassic bell ones; the envelope frees the Synth when it ends.\n\n```supercollider\n(\nSynthDef(\\bell, { |out = 0, freq = 440, amp = 0.2, dur = 3|\n var partials = [1, 2.76, 5.4, 8.93];\n var amps = [1, 0.5, 0.3, 0.15];\n var sig = SinOsc.ar(freq * partials) * amps;\n var env = EnvGen.kr(Env.perc(0.001, dur, 1, -6), doneAction: 2);\n Out.ar(out, Pan2.ar(Mix(sig) * env * amp, 0));\n}).add;\n);\nSynth(\\bell, [\\freq, 660, \\dur, 4]);\n```"}]}
|
| 33 |
+
{"schema": 1, "id": "teacher:task:kick", "family": "T2", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "Write a kick drum in SuperCollider."}, {"role": "assistant", "content": "A pitch-swept sine with a fast decay: the frequency envelope is what makes it read as a kick.\n\n```supercollider\n(\nSynthDef(\\kick, { |out = 0, amp = 0.8|\n var pitch = EnvGen.kr(Env([150, 50, 40], [0.03, 0.15], -4));\n var env = EnvGen.kr(Env.perc(0.001, 0.35, 1, -6), doneAction: 2);\n Out.ar(out, Pan2.ar(SinOsc.ar(pitch) * env * amp));\n}).add;\n);\nSynth(\\kick);\n```"}]}
|
| 34 |
+
{"schema": 1, "id": "teacher:task:snare", "family": "T2", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "Write a snare drum in SuperCollider."}, {"role": "assistant", "content": "Two ingredients: a short tonal body and band-passed noise for the rattle.\n\n```supercollider\n(\nSynthDef(\\snare, { |out = 0, amp = 0.6|\n var env = EnvGen.kr(Env.perc(0.001, 0.18, 1, -6), doneAction: 2);\n var body = SinOsc.ar(180) * 0.4;\n var rattle = BPF.ar(WhiteNoise.ar, 1800, 0.4) * 3;\n Out.ar(out, Pan2.ar((body + rattle) * env * amp));\n}).add;\n);\nSynth(\\snare);\n```"}]}
|
| 35 |
+
{"schema": 1, "id": "teacher:task:hat", "family": "T2", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "Write a closed hi-hat in SuperCollider."}, {"role": "assistant", "content": "High-passed noise with a very short envelope — the filter is what makes it a hat rather than a hiss.\n\n```supercollider\n(\nSynthDef(\\hat, { |out = 0, amp = 0.3, dur = 0.06|\n var env = EnvGen.kr(Env.perc(0.001, dur, 1, -6), doneAction: 2);\n Out.ar(out, Pan2.ar(HPF.ar(WhiteNoise.ar, 7000) * env * amp));\n}).add;\n);\nSynth(\\hat, [\\dur, 0.04]);\n```"}]}
|
| 36 |
+
{"schema": 1, "id": "teacher:task:pluck", "family": "T2", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "Write a plucked string in SuperCollider."}, {"role": "assistant", "content": "Pluck is a Karplus-Strong string: a noise burst into a tuned delay with feedback. The delay time is\nthe reciprocal of the frequency.\n\n```supercollider\n(\nSynthDef(\\pluck, { |out = 0, freq = 220, amp = 0.5, dur = 3|\n var period = freq.reciprocal;\n var sig = Pluck.ar(WhiteNoise.ar(0.2), Impulse.kr(0), period, period, dur, 0.5);\n Out.ar(out, Pan2.ar(sig * amp, 0));\n}).add;\n);\nSynth(\\pluck, [\\freq, 330, \\dur, 4]);\n```"}]}
|
| 37 |
+
{"schema": 1, "id": "teacher:task:fm-bell", "family": "T2", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "Write an FM bell in SuperCollider."}, {"role": "assistant", "content": "PMOsc is phase modulation: a non-integer modulator ratio gives the inharmonic clang.\n\n```supercollider\n(\nSynthDef(\\fmBell, { |out = 0, freq = 440, amp = 0.2, dur = 4|\n var index = EnvGen.kr(Env([8, 0.2], [dur], -4));\n var sig = PMOsc.ar(freq, freq * 1.4, index, 0, 1);\n var env = EnvGen.kr(Env.perc(0.002, dur, 1, -5), doneAction: 2);\n Out.ar(out, Pan2.ar(sig * env * amp, 0));\n}).add;\n);\nSynth(\\fmBell, [\\freq, 550]);\n```"}]}
|
| 38 |
+
{"schema": 1, "id": "teacher:task:additive-bell", "family": "T2", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "How do I make an additive bell with Klank?"}, {"role": "assistant", "content": "Klank is a bank of resonant filters excited by a short impulse: you describe the partials as\nfrequencies, amplitudes and decay times.\n\n```supercollider\n(\nSynthDef(\\klank, { |out = 0, freq = 440, amp = 0.3|\n var ratios = [1, 2.2, 3.7, 5.1, 7.3];\n var decays = [4, 2.6, 1.8, 1.2, 0.8];\n var sig = Klank.ar(`[ratios * freq, nil, decays], Impulse.ar(0, 0, 0.2), 1, 0, 0.3);\n Out.ar(out, Pan2.ar(sig * amp, 0));\n}).add;\n);\nSynth(\\klank);\n```"}]}
|
| 39 |
+
{"schema": 1, "id": "teacher:task:granular", "family": "T2", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "Write a granular texture in SuperCollider."}, {"role": "assistant", "content": "Read a sound file into a buffer, then trigger grains from it. Grain density is the Impulse rate and\ngrain length is dur; keep the density times the length under maxGrains or raise it.\n\n```supercollider\n(\ns.waitForBoot {\n ~buf = Buffer.read(s, Platform.resourceDir +/+ \"sounds/a11wlk01.wav\");\n SynthDef(\\grain, { |out = 0, amp = 0.4, density = 30, dur = 0.08|\n var trig = Impulse.kr(density);\n var sig = GrainBuf.ar(2, trig, dur, ~buf, 1, LFNoise0.kr(2).range(0, 1), 2, 0, -1, 512);\n Out.ar(out, sig * amp);\n }).add;\n s.sync;\n Synth(\\grain);\n};\n)\n```"}]}
|
| 40 |
+
{"schema": 1, "id": "teacher:task:filter-sweep", "family": "T2", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "Write a filter sweep over a saw."}, {"role": "assistant", "content": "An LFO on the cutoff of a resonant low-pass; XLine or an LFO both work, the LFO is the loopable one.\n\n```supercollider\n{ LPF.ar(Saw.ar([60, 60.2]), SinOsc.kr(0.2).exprange(150, 4000), 0.4) * 0.2 }.play;\n```\n\n`.exprange` is the exponential mapping you want for frequency; a linear `.range` sweep sounds uneven."}]}
|
| 41 |
+
{"schema": 1, "id": "teacher:task:delay-send", "family": "T2", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "How do I set up a delay send in SuperCollider?"}, {"role": "assistant", "content": "One synth writes dry to the master and also to a private bus; a second synth reads that bus, delays\nit, and writes the wet signal to the master.\n\n```supercollider\n(\n~delayBus = Bus.audio(s, 2);\nSynthDef(\\src, { |out = 0, send = 0, freq = 440|\n var sig = SinOsc.ar(freq) * 0.15;\n Out.ar(out, sig);\n Out.ar(send, sig);\n}).add;\nSynthDef(\\dly, { |in = 0, out = 0, time = 0.3|\n var dry = In.ar(in, 2);\n var wet = CombN.ar(dry, 0.6, time, 3);\n Out.ar(out, wet * 0.6);\n}).add;\n);\nSynth(\\dly, [\\in, ~delayBus, \\time, 0.375]);\nSynth(\\src, [\\send, ~delayBus]);\n```"}]}
|
| 42 |
+
{"schema": 1, "id": "teacher:task:reverb-send", "family": "T2", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "How do I add a reverb send to a whole group?"}, {"role": "assistant", "content": "Same shape as the delay: a private stereo bus, one effect reading it, instruments writing both dry\nand wet.\n\n```supercollider\n(\n~verbBus = Bus.audio(s, 2);\nSynthDef(\\verb, { |in = 0, out = 0, room = 0.85, mix = 0.5|\n Out.ar(out, FreeVerb.ar(In.ar(in, 2), mix, room, 0.5) * 0.7);\n}).add;\nSynthDef(\\blip, { |out = 0, send = 0, freq = 440, amp = 0.1|\n var env = EnvGen.kr(Env.perc(0.002, 0.4), doneAction: 2);\n var sig = SinOsc.ar(freq) * env * amp;\n Out.ar(out, sig);\n Out.ar(send, sig);\n}).add;\n);\nSynth(\\verb, [\\in, ~verbBus]);\nPbind(\\instrument, \\blip, \\send, ~verbBus, \\degree, Pseq([0, 4, 7, 11], inf), \\dur, 0.25).play;\n```"}]}
|
| 43 |
+
{"schema": 1, "id": "teacher:task:euclidean", "family": "T2", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "How do I get a Euclidean-style rhythm in SuperCollider?"}, {"role": "assistant", "content": "Describe the pattern as a list of hits and rests; `Rest` gives the gap without starting a Synth.\n\n```supercollider\n(\nPbind(\n \\instrument, \\hat,\n \\dur, 0.125,\n \\amp, Pseq([0.3, 0, 0, 0.3, 0, 0.3, 0, 0], inf).collect { |x| x + 0.001 }\n).play;\n)\n```\n\nFor real Euclidean generation use `Pseq([1,0,0,1,0,1,0,0], inf)` on a duration multiplier and wrap rests\nwith `Rest`, or compute the pattern with `bjorklund`-style logic in a Function and `Pseq` the result."}]}
|
| 44 |
+
{"schema": 1, "id": "teacher:task:pentatonic", "family": "T2", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "Write a random pentatonic melody that plays by itself."}, {"role": "assistant", "content": "Pick degrees from a pentatonic scale; `\\scale` and `\\root` define the pitch space, and `\\degree`\npicks within it.\n\n```supercollider\n(\nPbind(\n \\instrument, \\default,\n \\scale, Scale.minorPentatonic,\n \\root, 3,\n \\degree, Pwhite(0, 9, inf),\n \\octave, 5,\n \\dur, Pwhite(0.12, 0.28, inf),\n \\amp, 0.2,\n \\legato, 0.8\n).play;\n)\n```"}]}
|
| 45 |
+
{"schema": 1, "id": "teacher:task:chords", "family": "T2", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "Write a chord progression with Pbind."}, {"role": "assistant", "content": "Put an array of degrees in the pattern, use \\strum to spread the chord, and the default instrument\nplays all notes of each event.\n\n```supercollider\n(\nPbind(\n \\scale, Scale.minor,\n \\root, 2,\n \\degree, Pseq([[0, 4, 7], [-3, 0, 4], [-5, -1, 2], [0, 4, 7]], inf),\n \\dur, 1.5,\n \\strum, 0.02,\n \\amp, 0.12,\n \\legato, 0.9\n).play;\n)\n```"}]}
|
| 46 |
+
{"schema": 1, "id": "teacher:task:drone-ndef", "family": "T2", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "Build a slowly evolving drone with Ndef."}, {"role": "assistant", "content": "Ndef gives you a named patch you can redefine while it plays; the filter is a separate node in the\nchain so you can change it on its own.\n\n```supercollider\n(\nNdef(\\drone, { |freq = 55, amp = 0.12|\n var detune = [0, 0.07, -0.11];\n var sig = Mix(Saw.ar(freq * (1 + detune))) * amp;\n LPF.ar(sig, 400);\n}).play;\n\nNdef(\\drone)[1] = \\filter -> { |in| RLPF.ar(in, LFNoise1.kr(0.1).exprange(200, 1800), 0.3) };\n)\n```\n\nRedefining Ndef(\\drone, { ... }) later crossfades to the new definition; Ndef(\\drone).stop stops it."}]}
|
| 47 |
+
{"schema": 1, "id": "teacher:task:tdef", "family": "T2", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "How do I structure a live-coding performance in one file?"}, {"role": "assistant", "content": "One Tdef per musical layer, each with its own loop, so you can start and stop layers while the set\nruns.\n\n```supercollider\n(\nTdef(\\kick, {\n loop {\n Synth(\\kick);\n 0.5.wait;\n }\n}).play;\n\nTdef(\\hats, {\n loop {\n Synth(\\hat, [\\amp, 0.15]);\n (1/8).wait;\n }\n}).play;\n)\n```\n`Tdef(\\kick).stop` stops one layer, `Tdef(\\kick).reset` restarts it at the next cycle, and\n`CmdPeriod.run` stops everything."}]}
|
| 48 |
+
{"schema": 1, "id": "teacher:task:sample", "family": "T2", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "How do I play a sample from disk?"}, {"role": "assistant", "content": "Load it into a Buffer on the server, then play the buffer. `BufRateScale` keeps the pitch right when\nthe file's sample rate differs from the server's.\n\n```supercollider\n(\ns.waitForBoot {\n ~buf = Buffer.read(s, \"C:/sounds/break.wav\");\n SynthDef(\\player, { |out = 0, buf = 0, amp = 0.6, rate = 1|\n var sig = PlayBuf.ar(2, buf, BufRateScale.kr(buf) * rate, loop: 1);\n Out.ar(out, sig * amp);\n }).add;\n s.sync;\n ~player = Synth(\\player, [\\buf, ~buf]);\n};\n)\n```\nUse `numChannels` 1 for a mono file; a mismatch is silent or wrong-sounding rather than an error."}]}
|
| 49 |
+
{"schema": 1, "id": "teacher:task:distortion", "family": "T2", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "How do I distort a signal?"}, {"role": "assistant", "content": "Drive it into a nonlinearity, then tame the level: `tanh` is soft clipping, `.distort` is harder,\nand a low-pass after the drive keeps it from getting fizzy.\n\n```supercollider\n(\n{\n var sig = SinOsc.ar(110) * 0.3;\n var driven = (sig * 12).tanh;\n LPF.ar(driven, 5000) * 0.4\n}.play;\n)\n```\n\nMore drive means more harmonics; because they are generated, the output is louder as well as brighter, so\nscale the result down after the nonlinearity."}]}
|
| 50 |
+
{"schema": 1, "id": "teacher:task:pan-pattern", "family": "T2", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "How do I pan notes around the stereo field in a pattern?"}, {"role": "assistant", "content": "Put `\\pan` in the Pbind: the default instrument understands it and passes it to Pan2.\n\n```supercollider\n(\nPbind(\n \\scale, Scale.minorPentatonic,\n \\degree, Pseq([0, 2, 4, 7, 9, 7, 4, 2], inf),\n \\dur, 0.2,\n \\pan, Pseq([-1, -0.5, 0, 0.5, 1, 0.5, 0, -0.5], inf),\n \\amp, 0.15\n).play;\n)\n```\n\nTo pan an arbitrary synth, add a `pan = 0` argument to the SynthDef and wrap the output in\n`Pan2.ar(sig, pan)`."}]}
|
| 51 |
+
{"schema": 1, "id": "teacher:task:pad", "family": "T2", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "Write a warm pad in SuperCollider."}, {"role": "assistant", "content": "Detuned saws through a slow filter envelope and a long release: the detune is what makes it wide.\n\n```supercollider\n(\nSynthDef(\\pad, { |out = 0, freq = 220, amp = 0.15, gate = 1|\n var detune = [-0.06, -0.02, 0.02, 0.06];\n var sig = Mix(Saw.ar(freq * (1 + detune))) * 0.25;\n var env = EnvGen.kr(Env.adsr(1.2, 0.5, 0.7, 3), gate, doneAction: 2);\n var cutoff = SinOsc.kr(0.05).exprange(300, 2000);\n sig = RLPF.ar(sig, cutoff, 0.4);\n Out.ar(out, Splay.ar([sig, DelayN.ar(sig, 0.02, 0.012)]) * env * amp);\n}).add;\n);\n~pad = Synth(\\pad, [\\freq, 165]);\n~pad.set(\\gate, 0);\n```\n`gate` is what makes a sustained sound controllable: `\\gate, 0` releases it and `doneAction: 2` then\nfrees the Synth."}]}
|
| 52 |
+
{"schema": 1, "id": "teacher:debug:synthdef-not-found", "family": "T3", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "I get 'FAILURE IN SERVER /s_new SynthDef not found'. What is wrong?"}, {"role": "assistant", "content": "The server does not know that SynthDef. Three usual causes, in order of likelihood:\n\n1. **The SynthDef was added before the server booted.** `SynthDef(...).add` is asynchronous; wrap the work\n in `s.waitForBoot { ... }` or put `s.sync` after `.add`.\n2. **The name does not match.** `SynthDef(\\bell, ...)` is played by `Synth(\\bell)`, not `\\Bell` — symbols\n are case-sensitive.\n3. **`.add` was never called.** Writing `SynthDef(\\bell, { ... })` without `.add` builds the definition in\n the language and sends nothing.\n\nCheck with `SynthDescLib.global.dict.keys` — if the name is not there, it never reached the server."}]}
|
| 53 |
+
{"schema": 1, "id": "teacher:debug:silent-synth", "family": "T3", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "My Synth runs but I hear nothing. How do I debug it?"}, {"role": "assistant", "content": "Check in this order, because each step eliminates a whole class of causes:\n\n1. **Is anything coming out of the bus you write to?** `Out.ar(0, sig)` for the master. A typo like\n `Out.ar(2, ...)` is silence.\n2. **Is the amplitude non-zero?** Multiply chain of `mul`/`add`, `amp`, and `env` all have to be positive;\n an envelope with `level: 0` or a gate that never opens is silent.\n3. **Did the Synth free itself immediately?** `doneAction: 2` on an EnvGen whose envelope is already\n finished at creation kills the node instantly. `s.plotTree` shows whether the node exists at all.\n4. **Is the envelope actually moving?** `env.poll` inside the SynthDef prints it per block.\n5. **Is the filter closed?** A `LPF.ar(sig, 50)` on a 440 Hz sine leaves almost nothing.\n\nThe fastest single tool is `s.plotTree`: if the Synth is not in the tree, the problem is lifecycle; if it\nis, the problem is signal."}]}
|
| 54 |
+
{"schema": 1, "id": "teacher:debug:node-not-found", "family": "T3", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "I get 'Node not found' when I call .set on a Synth after a while."}, {"role": "assistant", "content": "The Synth was freed and the language still holds a reference. That happens whenever the SynthDef used `doneAction: 2` and the envelope finished, or when something called `freeAll`/`CmdPeriod`. Guard it with `if (x.notNil and: { x.isPlaying }) { x.set(\\freq, 300) }`, or store the node in a variable that you clear when it ends. For sustained sounds the right pattern is a `gate` argument with `doneAction: 2` on the EnvGen, so the node lives until you release it."}]}
|
| 55 |
+
{"schema": 1, "id": "teacher:debug:buffer-no-data", "family": "T3", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "I get 'Buffer UGen: no buffer data'. What does it mean?"}, {"role": "assistant", "content": "The UGen got a bufnum that the server has no data for. `Buffer.read` is asynchronous: the Buffer object exists immediately but the samples arrive later, so a Synth created straight after `Buffer.read` reads nothing. Wait for it — `s.sync` after the read, or `Buffer.read(s, path, action: { |b| ... })` and create the Synth in the action. The other cause is a nil or wrong buffer: `PlayBuf.ar(1, ~buf)` where ~buf was never assigned passes 0, which is 'no buffer'."}]}
|
| 56 |
+
{"schema": 1, "id": "teacher:debug:ar-not-understood", "family": "T3", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "I get \"Message 'ar' not understood\". Why?"}, {"role": "assistant", "content": "You called a rate method on something that is not a UGen. `Env.ar(...)` and `Buffer.ar(...)` are the classic cases: Env is a language-side description and is played by `EnvGen.ar(env, ...)`; a Buffer is server memory and is played by `PlayBuf.ar` or `BufRd.ar`. The UGen is the thing with a rate method — if it is a description or a container, there is another UGen that consumes it."}]}
|
| 57 |
+
{"schema": 1, "id": "teacher:debug:missing-semicolon", "family": "T3", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "I get 'syntax error, unexpected NAME' on a block that looks fine."}, {"role": "assistant", "content": "Almost always a missing semicolon between two statements — SuperCollider does not insert them.\n\n```supercollider\n// broken: two statements, no separator\n{ var sig = SinOsc.ar(440) sig = sig * 0.1; sig }.play\n```\n\n```supercollider\n// fixed\n{ var sig = SinOsc.ar(440); sig = sig * 0.1; sig }.play\n```\nThe error points at the second statement, not at the missing semicolon before it, which is why it looks\nfine. If it is not a semicolon, count the brackets: `.ar(` open, `)` closed."}]}
|
| 58 |
+
{"schema": 1, "id": "teacher:debug:gate-stuck", "family": "T3", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "My sustained synth never stops, even when I set the gate to 0."}, {"role": "assistant", "content": "A sustained EnvGen only releases when the gate goes from positive to non-positive *after* the envelope has started, and the Synth only disappears if that EnvGen has `doneAction: 2`. Check three things: the SynthDef actually takes a `gate = 1` argument, the Env is a sustained shape (Env.adsr or Env.asr, not Env.perc), and you call `x.set(\\gate, 0)` on the Synth object. Setting the gate on a different Synth, or on a Group, does nothing."}]}
|
| 59 |
+
{"schema": 1, "id": "teacher:debug:index-out-of-range", "family": "T3", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "I get 'index out of range' when playing a buffer."}, {"role": "assistant", "content": "A read position is past the end of the buffer. `PlayBuf` with a `startPos` in frames beyond `~buf.numFrames`, or a `BufRd`/`GrainBuf` whose phase goes above 1, produces this. For GrainBuf, pos is normalised 0..1, so pass `LFNoise1.kr(1).range(0, 1)` rather than a frame count; for PlayBuf, cap the position at `~buf.numFrames - 1`. If you just loaded the file, check `~buf.numFrames` — a failed read gives 0 frames and every position is out of range."}]}
|
| 60 |
+
{"schema": 1, "id": "teacher:debug:file-not-found", "family": "T3", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "Buffer.read fails and I get a path error. What should the path look like?"}, {"role": "assistant", "content": "On Windows use forward slashes or escaped backslashes inside the string: `Buffer.read(s, \"C:/sounds/kick.wav\")`. A single backslash starts an escape sequence, which is why `\"C:\\sounds\\kick.wav\"` fails. Also check the extension is real (`.wav`, `.aiff`, `.flac`) and that the file is not on a network path — the server reads it, not the language, and it may resolve differently. For sounds that ship with SuperCollider, `Platform.resourceDir +/+ \"sounds/a11wlk01.wav\"` is the portable form."}]}
|
| 61 |
+
{"schema": 1, "id": "teacher:debug:too-many-grains", "family": "T3", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "GrainBuf complains about too many grains."}, {"role": "assistant", "content": "The number of simultaneous grains is `density × dur` in seconds, and it exceeds maxGrains (512 by default). Either lower the trigger rate, shorten the grains, or raise the limit: `GrainBuf.ar(2, trig, dur, buf, 1, pos, 2, 0, -1, 1024)` — the 1024 is maxGrains. Raising it costs server CPU per grain, so prefer halving the density if the sound does not need it."}]}
|
| 62 |
+
{"schema": 1, "id": "teacher:debug:server-not-running", "family": "T3", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "I get 'server not running' or nothing happens at all."}, {"role": "assistant", "content": "The server is not booted. In the IDE press Ctrl+B, or evaluate `s.boot`. If code depends on a SynthDef being there, put it inside `s.waitForBoot { ... }`. When a script runs headless you can do `s.boot; s.sync;` and continue. `s.serverRunning` tells you the truth; if it is false, look at the post window for the boot error (usually an audio device problem)."}]}
|
| 63 |
+
{"schema": 1, "id": "teacher:debug:nil-does-not-understand", "family": "T3", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "I get 'Message not understood' on a nil variable."}, {"role": "assistant", "content": "`~buffer` (or any variable) was never assigned, or it was assigned in a different environment. Environment variables are per-environment: a `~buf` set in one server-side file block is not visible in another. Check with `~buf.postln` before using it. The other common cause is an assignment that failed silently, e.g. `~buf = Buffer.read(...)` where the file was missing — the error is posted but ~buf stays nil."}]}
|
| 64 |
+
{"schema": 1, "id": "teacher:debug:redefined-synthdef", "family": "T3", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "I edited a SynthDef and the running sound did not change."}, {"role": "assistant", "content": "Redefining a SynthDef only affects Synths created after the new definition reaches the server; existing instances keep the graph they were built with. Free and recreate them: `~s.free; ~s = Synth(\\name)`. In JITLib, Ndef is the tool designed for this — redefining `Ndef(\\name, { ... })` crossfades to the new graph while it plays."}]}
|
| 65 |
+
{"schema": 1, "id": "teacher:explain:perc-sine", "family": "T4", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "Explain this SuperCollider code:\n```supercollider\n{ SinOsc.ar(440) * EnvGen.kr(Env.perc(0.01, 1), doneAction: 2) }.play;\n```"}, {"role": "assistant", "content": "It plays a 440 Hz sine with a percussive envelope, and the Synth frees itself when the envelope\nends.\n\n- `SinOsc.ar(440)` is an audio-rate sine at 440 Hz.\n- `Env.perc(0.01, 1)` is a 10 ms attack to full level then a 1 s decay to zero.\n- `EnvGen.kr(...)` plays that envelope at control rate and multiplies the sine, so the sound fades out.\n- `doneAction: 2` frees the Synth at the end of the envelope, so it does not accumulate silent nodes.\n- `.play` on the function builds an anonymous SynthDef and starts one Synth of it."}]}
|
| 66 |
+
{"schema": 1, "id": "teacher:explain:pbind-basic", "family": "T4", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "Explain this code:\n```supercollider\nPbind(\\degree, Pseq([0, 2, 4, 7], inf), \\dur, 0.25).play;\n```"}, {"role": "assistant", "content": "It plays a four-note major arpeggio in a loop, one note every 250 ms.\n\n`Pbind` builds an event stream: each event is the current value of every key. `Pseq([0, 2, 4, 7], inf)`\ncycles the degrees forever, and `\\dur, 0.25` sets the time between events in beats on the default\nTempoClock. With no `\\instrument`, the `\\default` SynthDef is used, which converts `\\degree` to a\nfrequency through the current scale (major, rooted at C by default). `.play` schedules it on the clock\nand returns an EventStreamPlayer."}]}
|
| 67 |
+
{"schema": 1, "id": "teacher:explain:filter-lfo", "family": "T4", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "Explain this code:\n```supercollider\n{ LPF.ar(Saw.ar(100), SinOsc.kr(0.5).exprange(200, 2000)) * 0.2 }.play;\n```"}, {"role": "assistant", "content": "A sawtooth through a low-pass filter whose cutoff is swept slowly up and down — a classic filter\nsweep.\n\n- `Saw.ar(100)` is a 100 Hz sawtooth, rich in harmonics.\n- `SinOsc.kr(0.5)` is a control-rate sine at 0.5 Hz, so one full cycle takes 2 seconds.\n- `.exprange(200, 2000)` maps that -1..1 sine exponentially onto 200..2000 Hz — exponential is the right\n mapping for frequency, because we hear pitch logarithmically.\n- `LPF.ar(sig, cutoff)` removes harmonics above the cutoff; as it opens and closes you hear the tone\n brighten and darken.\n- `* 0.2` keeps the output from clipping."}]}
|
| 68 |
+
{"schema": 1, "id": "teacher:explain:routine-loop", "family": "T4", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "Explain this code:\n```supercollider\nRoutine({ loop { Synth(\\kick); 0.5.wait } }).play;\n```"}, {"role": "assistant", "content": "It starts a kick every half second, forever.\n\nA Routine is a language-side coroutine: `.play` runs it on the clock, and `wait` suspends it until the next\nbeat without blocking anything else. Inside the `loop`, `Synth(\\kick)` creates a kick and `0.5.wait` waits\nhalf a beat on the current TempoClock — the tempo, not seconds, so changing the clock changes the rate.\nBecause the kick SynthDef frees itself with `doneAction: 2`, the loop can run for hours without leaking\nnodes."}]}
|
| 69 |
+
{"schema": 1, "id": "teacher:explain:buffer-play", "family": "T4", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "Explain this code:\n```supercollider\n~buf = Buffer.read(s, \"C:/sounds/break.wav\");\nPlayBuf.ar(1, ~buf, BufRateScale.kr(~buf), loop: 1);\n```"}, {"role": "assistant", "content": "Loads a sound file into server memory, then plays it in a loop at the file's original pitch.\n\n- `Buffer.read(s, path)` allocates a buffer on the server and fills it from the file. It is asynchronous:\n the Buffer object returns immediately, the samples arrive later.\n- `PlayBuf.ar(1, buf, ...)` needs the channel count first — 1 for a mono file. A wrong count is the usual\n cause of a buffer that plays wrongly or not at all.\n- `BufRateScale.kr(buf)` compensates when the file's sample rate differs from the server's, so `rate: 1` is\n the file's true speed.\n- `loop: 1` restarts at the end instead of stopping.\n\nBecause the read is asynchronous, this line pair is only safe if a `s.sync` or a wait happened in between;\notherwise PlayBuf sees a buffer with no data yet."}]}
|
| 70 |
+
{"schema": 1, "id": "teacher:explain:mix-array", "family": "T4", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "Explain this code:\n```supercollider\nMix.ar([SinOsc.ar(220, 0, 0.1), SinOsc.ar(330, 0, 0.1)])\n```"}, {"role": "assistant", "content": "Sums two sine waves into one signal — a perfect fifth, 220 Hz and 330 Hz, at 0.1 amplitude each.\n\n`[SinOsc.ar(220, 0, 0.1), SinOsc.ar(330, 0, 0.1)]` is an Array of two audio-rate signals (each UGen\nreturns a signal; an array of them is just a list). `Mix.ar` adds the elements together. The alternative\n`+` operator does the same for two signals, and `Splay.ar` would spread them across the stereo field\ninstead of summing them."}]}
|
| 71 |
+
{"schema": 1, "id": "teacher:explain:synth-args", "family": "T4", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "Explain this code:\n```supercollider\nx = { |freq = 440, amp = 0.2| SinOsc.ar(freq) * amp }.play;\nx.set(\\freq, 660);\n```"}, {"role": "assistant", "content": "Starts an anonymous synth with two controls, then changes one of them while it plays.\n\nThe `|freq = 440, amp = 0.2|` are arguments of the function, and `.play` turns each into a Synth control\nwith that default value. `x` holds the Synth node. `.set(\\freq, 660)` sends a `/n_set` message to the\nserver, so the oscillator changes frequency without being restarted — that is why the sound glides rather\nthan re-triggering. Note that `\\freq` is a Symbol: the backslash is part of the name."}]}
|
| 72 |
+
{"schema": 1, "id": "teacher:explain:ndef-filter", "family": "T4", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "Explain this code:\n```supercollider\nNdef(\\x, { Saw.ar(110) * 0.1 }).play;\nNdef(\\x)[1] = \\filter -> { |in| RLPF.ar(in, 800, 0.4) };\n```"}, {"role": "assistant", "content": "Two nodes in one named proxy: a saw source, then a resonant low-pass filter fed by it.\n\n`Ndef(\\x, { ... })` defines the first node of the chain and `.play` starts it. `Ndef(\\x)[1] = \\filter ->`\ninserts a second node at index 1; the `\\filter` key says 'make this node an effect that receives the\nprevious node's output as `in`'. So the patch is `Saw -> RLPF -> out`. Because it is an Ndef, calling\n`Ndef(\\x, { ... })` again replaces the source with a crossfade instead of restarting, and\n`Ndef(\\x).stop` removes the whole chain."}]}
|
| 73 |
+
{"schema": 1, "id": "teacher:explain:impulse-env", "family": "T4", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "Explain this code:\n```supercollider\n{ var sig = SinOsc.ar(440) * 0.2; Out.ar(0, sig) }.play;\n```"}, {"role": "assistant", "content": "The minimal SynthDef idiom: a source multiplied by an amplitude, written to the master bus.\n\n`var sig = SinOsc.ar(440) * 0.2` builds the signal; `Out.ar(0, sig)` is the only mandatory part, because a\nUGen graph that never reaches an output produces no sound. `Out`'s first argument is the bus number — 0 is\nthe main stereo output — and the second is the signal. The function's return value does not matter here,\nwhich is why the `Out.ar` can sit on its own line. `.play` compiles this into an anonymous SynthDef and\nstarts one instance."}]}
|
| 74 |
+
{"schema": 1, "id": "teacher:explain:gate-release", "family": "T4", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "Explain this code:\n```supercollider\n~pad = Synth(\\pad, [\\freq, 165]);\n~pad.set(\\gate, 0);\n```"}, {"role": "assistant", "content": "It starts a sustained synth and then releases it.\n\n`Synth(\\pad, [\\freq, 165])` creates an instance of a SynthDef that takes a `gate` argument (default 1). The\narray after the name is alternating argument names and values: `\\freq, 165`. Setting `\\gate` to 0 does not\ncut the sound dead — the EnvGen inside sees the gate close and runs the release stage of its Env, then frees\nthe Synth because that EnvGen has `doneAction: 2`. This is the standard lifecycle for pads, drones and any\nsound you want to stop gracefully."}]}
|
| 75 |
+
{"schema": 1, "id": "teacher:explain:pan-lfo", "family": "T4", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "Explain this code:\n```supercollider\n{ Pan2.ar(SinOsc.ar(440) * 0.2, SinOsc.kr(0.1)) }.play;\n```"}, {"role": "assistant", "content": "A sine that slowly moves between the speakers.\n\n`SinOsc.kr(0.1)` is a control-rate sine at 0.1 Hz — one cycle every 10 seconds — running between -1 and 1.\n`Pan2.ar(sig, pos)` treats that as the pan position, where -1 is hard left, 0 centre, 1 hard right, so the\nsound drifts across the stereo field. Pan2 is equal-power, so the centre is -3 dB per channel rather than\nhalf amplitude on each. The `* 0.2` sets the level before panning."}]}
|
| 76 |
+
{"schema": 1, "id": "teacher:mt:no-sound", "family": "T6", "weight": 2, "turns_count": 3, "conversations": [{"role": "user", "content": "I made a synth and I hear nothing. Where do I start?"}, {"role": "assistant", "content": "Start with the node tree, not the code: evaluate `s.plotTree`. If your Synth is not there, it never started or it already freed itself; if it is there, the problem is in the signal. Which of the two do you see?"}, {"role": "user", "content": "It's in the tree."}, {"role": "assistant", "content": "Then the node lives and the signal is being lost. Check three things in order: does the SynthDef reach `Out.ar(0, ...)` with bus 0; is any `amp`/`mul` zero; and is a filter closed, e.g. `LPF.ar(sig, 50)` on a 440 Hz sine. Paste the SynthDef and I will read it."}, {"role": "user", "content": "SynthDef(\\x, { |out = 0| Out.ar(out, LPF.ar(Saw.ar(60), 80) * 0.1) }).add; Synth(\\x, [\\out, 2]);"}, {"role": "assistant", "content": "Two things. You wrote a low-pass at 80 Hz over a 60 Hz saw, which leaves almost nothing above the fundamental — the patch is nearly a sine at 60 Hz at very low level. And you passed `\\out, 2`, so it is going to bus 2, not the master. Try `Synth(\\x)` with the default out and a cutoff of 800:\n\n```supercollider\nSynthDef(\\x, { |out = 0, cutoff = 800| Out.ar(out, LPF.ar(Saw.ar(60), cutoff) * 0.1) }).add;\nSynth(\\x);\n```"}]}
|
| 77 |
+
{"schema": 1, "id": "teacher:mt:brighten", "family": "T6", "weight": 2, "turns_count": 2, "conversations": [{"role": "user", "content": "How do I make this brighter?\n```supercollider\n{ LPF.ar(Saw.ar(110), 400) * 0.2 }.play;\n```"}, {"role": "assistant", "content": "Raise the cutoff. 400 Hz is well below the harmonics that carry brightness, so open it to 2000-4000 Hz:\n\n```supercollider\n{ LPF.ar(Saw.ar(110), 3000) * 0.2 }.play;\n```"}, {"role": "user", "content": "Still dull."}, {"role": "assistant", "content": "Then the low-pass is not the limit — the source is. A saw at 110 Hz has energy up to Nyquist, so check the amplitude: at 0.2 the high harmonics are quiet. Two moves: add resonance so the filter peak is audible, and raise the level slightly.\n\n```supercollider\n{ RLPF.ar(Saw.ar(110), 2500, 0.3) * 0.35 }.play;\n```\n\nIf that is still dull, the answer is a different source: `Saw` is band-limited and soft; try `LFSaw` or add a second detuned saw for more high content."}]}
|
| 78 |
+
{"schema": 1, "id": "teacher:mt:four-on-floor", "family": "T6", "weight": 2, "turns_count": 2, "conversations": [{"role": "user", "content": "I have a kick SynthDef called \\kick. How do I get a four-on-the-floor?"}, {"role": "assistant", "content": "One kick per beat on the default tempo clock:\n\n```supercollider\nTdef(\\four, { loop { Synth(\\kick); 1.wait } }).play;\n```\n\n`1.wait` is one beat, so `TempoClock.default.tempo = 2` makes it 120 BPM."}, {"role": "user", "content": "Now add hats on the offbeats."}, {"role": "assistant", "content": "A second layer, offset by half a beat:\n\n```supercollider\nTdef(\\hats, {\n loop {\n (1/2).wait;\n Synth(\\hat, [\\amp, 0.12]);\n (1/2).wait;\n }\n}).play;\n```\n\nStarting with the wait puts the hat half a beat after the kick. `Tdef(\\hats).stop` removes just that layer."}]}
|
| 79 |
+
{"schema": 1, "id": "teacher:mt:pattern-wont-stop", "family": "T6", "weight": 2, "turns_count": 2, "conversations": [{"role": "user", "content": "My pattern keeps playing after I press Ctrl+."}, {"role": "assistant", "content": "Ctrl+. (CmdPeriod) stops everything scheduled on the clocks, including Patterns. If yours survives, it is not scheduled on a clock — most often it is a `Synth` created directly, or a `Task`/`Routine` started on `SystemClock` in a way that outlived the period. Do you still see the node in `s.plotTree`?"}, {"role": "user", "content": "Yes, there's a synth."}, {"role": "assistant", "content": "Then the sound is a node, not a pattern: `s.freeAll` will stop it. The likely cause is a SynthDef whose EnvGen has no `doneAction`, or a drone with `gate = 1` that nothing releases. Add `doneAction: 2` to the envelope, or keep a reference and `x.set(\\gate, 0)` when you want it to end."}]}
|
| 80 |
+
{"schema": 1, "id": "teacher:mt:reverb-too-wet", "family": "T6", "weight": 2, "turns_count": 2, "conversations": [{"role": "user", "content": "How do I put reverb on everything?"}, {"role": "assistant", "content": "Send it: one private bus, one FreeVerb instance reading it, and every instrument writing dry to the master and wet to the bus.\n\n```supercollider\n~verb = Bus.audio(s, 2);\nSynthDef(\\verb, { |in = 0| Out.ar(0, FreeVerb.ar(In.ar(in, 2), 0.5, 0.85, 0.5) * 0.7) }).add;\nSynth(\\verb, [\\in, ~verb]);\n```"}, {"role": "user", "content": "Too much reverb now."}, {"role": "assistant", "content": "Lower the wet mix and the return level, not the room size: the room is what makes it sound like a space, the mix is how much of it you hear. `FreeVerb.ar(In.ar(in, 2), 0.25, 0.85, 0.5) * 0.5`. To change it live without restarting, add a control and `.set` it: `|mix = 0.5|` then `~verbSynth.set(\\mix, 0.25)`."}]}
|
| 81 |
+
{"schema": 1, "id": "teacher:mt:first-bus", "family": "T6", "weight": 2, "turns_count": 2, "conversations": [{"role": "user", "content": "What is a bus, in one sentence?"}, {"role": "assistant", "content": "A numbered channel on the server that nodes write signal into and read signal out of, which is how sounds are chained without cables."}, {"role": "user", "content": "Show me using one for an effect."}, {"role": "assistant", "content": "Write the source to a private bus, read it in the effect, send the effect to the master:\n\n```supercollider\n(\n~bus = Bus.audio(s, 1);\nSynthDef(\\src, { |out = 0| Out.ar(out, Saw.ar(110) * 0.1) }).add;\nSynthDef(\\fx, { |in = 0| Out.ar(0, RLPF.ar(In.ar(in, 1), 1200, 0.3)) }).add;\n);\nSynth(\\fx, [\\in, ~bus]);\nSynth(\\src, [\\out, ~bus]);\n```\n\nOrder matters: the effect exists before the source, so the source's output has a listener."}]}
|
| 82 |
+
{"schema": 1, "id": "teacher:mt:learn-env", "family": "T6", "weight": 2, "turns_count": 2, "conversations": [{"role": "user", "content": "What's the difference between Env.perc and Env.adsr?"}, {"role": "assistant", "content": "`Env.perc(attack, release)` goes up once and decays to zero — one-shot sounds. `Env.adsr(a, d, s, r)` holds at a sustain level while its gate is open and only releases when the gate closes — notes you start and stop."}, {"role": "user", "content": "So which do I use for a pad?"}, {"role": "assistant", "content": "adsr, with `gate` as a Synth argument and `doneAction: 2` on the EnvGen:\n\n```supercollider\nSynthDef(\\pad, { |out = 0, freq = 220, gate = 1|\n var env = EnvGen.kr(Env.adsr(0.8, 0.4, 0.7, 2), gate, doneAction: 2);\n Out.ar(out, Saw.ar(freq) * env * 0.1)\n}).add;\n```\n\nThen `x.set(\\gate, 0)` releases it over the 2 seconds of release time."}]}
|
| 83 |
+
{"schema": 1, "id": "teacher:workflow:record", "family": "T7", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "How do I record my output to a file?"}, {"role": "assistant", "content": "`s.record(path)` starts recording the server's output; `s.stopRecording` stops it.\n\n```supercollider\ns.record(\"C:/audio/take1.wav\");\n// play for a while\ns.stopRecording;\n```\n\nThe path must be writable and the format follows the extension (.wav, .aiff, .flac). The file is written\nby the server, so it captures exactly what the master bus produces — including your effects, which is what\nyou want. `s.record` also accepts `duration:` to stop by itself, which is the reproducible form for a take."}]}
|
| 84 |
+
{"schema": 1, "id": "teacher:workflow:deterministic", "family": "T7", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "How do I make a piece reproducible instead of a different take every time?"}, {"role": "assistant", "content": "Three things make a SuperCollider piece repeatable: a fixed seed, a fixed tempo, and no live input.\n\n```supercollider\n(\nthisThread.randSeed = 1234;\nTempoClock.default.tempo = 2;\nPbind(\\degree, Pwhite(0, 7, inf), \\dur, 0.25).play;\n)\n```\n\n`thisThread.randSeed` fixes the random sequence of the current thread, so `Pwhite`, `Prand` and friends give\nthe same values again. Recording with `s.record(path, duration: 30)` then makes the take an artifact rather\nthan a performance. Input from `MouseX` or a MIDI controller is the usual remaining source of difference."}]}
|
| 85 |
+
{"schema": 1, "id": "teacher:workflow:server-broken", "family": "T7", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "The server stopped responding. What do I do?"}, {"role": "assistant", "content": "In order: `Ctrl+.` (CmdPeriod) to reset scheduling, then `s.reboot` if the server itself is wedged.\nA reboot drops every SynthDef and buffer, so re-add them — which is why real projects keep their SynthDefs\nin a file you can re-evaluate rather than typing them in the REPL.\n\nIf the boot itself fails, the post window has the reason: usually the audio device (another application\nholding exclusive access) or a sample-rate mismatch. `Server.default.options.device` picks a device before\n`s.boot`."}]}
|
| 86 |
+
{"schema": 1, "id": "teacher:workflow:stop-everything", "family": "T7", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "What is the correct way to stop everything?"}, {"role": "assistant", "content": "Depends on what is playing, and they are different layers:\n\n- `s.freeAll` — frees every node on the server (all sound stops, definitions survive).\n- `CmdPeriod.run` — stops everything scheduled on the clocks (Patterns, Routines, Tasks).\n- `Ndef.clear; Pdef.clear` — clears the JITLib proxies.\n- `s.quit` — shuts the server down entirely.\n\nIn a session the habit is `CmdPeriod.run` first (stops the sequencing), then `s.freeAll` if a drone is still\nsounding."}]}
|
| 87 |
+
{"schema": 1, "id": "teacher:workflow:organise", "family": "T7", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "How should I organise a SuperCollider project on disk?"}, {"role": "assistant", "content": "One folder per piece, with a fixed shape:\n\n```text\nmy-piece/\n synthdefs.scd // only SynthDef(...).add, loaded first\n material.scd // buffers, samples, scales\n piece.scd // the performance: Tdefs, Pbinds, Ndefs\n README.md // tempo, required samples, how to run it\n```\n\nThen the workflow is: open `synthdefs.scd`, Ctrl+A Ctrl+Enter to load it, load `material.scd`, and work in\n`piece.scd`. Keeping definitions out of the performance file is what makes a reboot survivable and a piece\nre-runnable six months later."}]}
|
| 88 |
+
{"schema": 1, "id": "teacher:workflow:metronome", "family": "T7", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "How do I use a metronome or check my timing?"}, {"role": "assistant", "content": "A click on the clock you are using, plus a counter to see where you are in the bar:\n\n```supercollider\n(\nTdef(\\click, {\n var count = 0;\n loop {\n (Synth(\\hat, [\\amp, if (count % 4 == 0) { 0.25 } { 0.08 }]));\n count = count + 1;\n 1.wait;\n }\n}).play;\n)\n```\n\nBecause it waits on `TempoClock.default`, it stays in sync with every Pbind you start, which makes it a\ntempo reference rather than a separate sound."}]}
|
| 89 |
+
{"schema": 1, "id": "teacher:workflow:learn-order", "family": "T7", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "In what order should I learn SuperCollider?"}, {"role": "assistant", "content": "The order that pays off fastest:\n\n1. **One UGen and Out** — `{ SinOsc.ar(440) * 0.2 }.play`. Learn that a graph must reach Out.\n2. **Envelopes and doneAction** — the difference between a sound and a click.\n3. **SynthDef and Synth** — naming a graph, controlling it with arguments, freeing it with a gate.\n4. **Patterns** — `Pbind` for sequence, so you stop writing loops by hand.\n5. **Buses and effects** — chaining, sends, groups.\n6. **JITLib** — Ndef for patches you modify while they play.\n\nVocabulary to carry: UGen, SynthDef, Synth, bus, group, envelope, gate, doneAction, Pattern, clock. Every\nconfusion in SuperCollider tends to be one of those words."}]}
|
| 90 |
+
{"schema": 1, "id": "teacher:workflow:headless", "family": "T7", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "Can I run SuperCollider without the IDE?"}, {"role": "assistant", "content": "Yes. `sclang` runs the language and `scsynth` the server, and they are separate processes by design\n— the IDE is only a client. A headless script is a `.scd` run with `sclang my-piece.scd`, and it must boot\nthe server itself:\n\n```supercollider\ns.boot;\ns.waitForBoot {\n // build SynthDefs, play, then wait\n 30.wait;\n s.quit;\n};\n```\n\nThat shape — boot, wait, play, quit, exit — is what makes a piece runnable from a cron job or a\nRaspberry Pi."}]}
|
| 91 |
+
{"schema": 1, "id": "teacher:limits:no-audio", "family": "T8", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "Can you listen to the sound you generate?"}, {"role": "assistant", "content": "No. I am 198M parameters trained on SuperCollider's documentation and class library; I have no audio input and no way to hear a result. What I can do is reason about the code: whether it reaches an output bus, whether the envelope will ever open, whether a filter at that cutoff leaves anything audible. Treat my patches as a starting point you listen to, not as a judgement about how they sound."}]}
|
| 92 |
+
{"schema": 1, "id": "teacher:limits:cannot-run", "family": "T8", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "Can you run this code and tell me if it works?"}, {"role": "assistant", "content": "No — I cannot execute SuperCollider. What I can tell you is what would break and why: bracket balance, arguments that must exist for the class, a SynthDef that never reaches Out, a SynthDef played before it is added, an envelope that frees the Synth immediately. For certainty, evaluate it: the post window reports errors precisely, and `s.plotTree` shows whether the node exists."}]}
|
| 93 |
+
{"schema": 1, "id": "teacher:limits:knowledge-boundary", "family": "T8", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "How current is your SuperCollider knowledge?"}, {"role": "assistant", "content": "It comes from a snapshot of the SuperCollider repository (documentation, class library and examples) plus code I can reason about. So classes and arguments in that snapshot I know well, including argument order. Quarks, newer UGens, and anything outside the official tree I may not know at all, and I will say so rather than invent a method name. If you need certainty about a class, check its help page — `SinOsc.schelp` in the source tree is the authority."}]}
|
| 94 |
+
{"schema": 1, "id": "teacher:limits:verify", "family": "T8", "weight": 3, "turns_count": 1, "conversations": [{"role": "user", "content": "How should I check an answer you give me?"}, {"role": "assistant", "content": "Three quick checks, cheapest first. Does it evaluate without a syntax error — the post window points at the exact character. Does the node appear in `s.plotTree` — if yes, the problem is signal rather than lifecycle. Does it reach `Out.ar(0, ...)` with a non-zero amplitude and an open filter. If those three pass and it is still silent, the class's own help page will show the argument order you may have assumed wrong."}]}
|
data/sft/train.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
data/sft/val.jsonl
ADDED
|
@@ -0,0 +1,215 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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."}]}
|
| 4 |
+
{"conversations": [{"role": "user", "content": "Explain `MotifCutProc` in SuperCollider briefly."}, {"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."}]}
|
| 5 |
+
{"conversations": [{"role": "user", "content": "What is `StatBalProc` in SuperCollider?"}, {"role": "assistant", "content": "StatBalProc — Automatic breakbeat cutting algorithm using statistical feedback Extension of ChooseCutProc using Charles Ames' method of statistical feedback to control selection of cut size and repeat states. The essential auxilliary class is StatBalStream. The theoretical basis of the use of statistical feedback is control over a continuum from Lehmer style random number generation to deterministic behaviour via the heterogeneity parameter. The application to automatic cutt Category: Libraries > BBCut > Cut procedures."}]}
|
| 6 |
+
{"conversations": [{"role": "user", "content": "Explain `StatBalProc` in SuperCollider briefly."}, {"role": "assistant", "content": "StatBalProc — Automatic breakbeat cutting algorithm using statistical feedback Extension of ChooseCutProc using Charles Ames' method of statistical feedback to control selection of cut size and repeat states. The essential auxilliary class is StatBalStream. The theoretical basis of the use of statistical feedback is control over a continuum from Lehmer style random number generation to deterministic behaviour via the heterogeneity parameter. The application to automatic cutt Category: Libraries > BBCut > Cut procedures."}]}
|
| 7 |
+
{"conversations": [{"role": "user", "content": "What is `Canvas3DItem` in SuperCollider?"}, {"role": "assistant", "content": "Canvas3DItem — A 3D vector graphics item Canvas3DItem provides wire-frame 3D vector graphics items for use with Canvas3D Category: GUI > 3D."}]}
|
| 8 |
+
{"conversations": [{"role": "user", "content": "Explain `Canvas3DItem` in SuperCollider briefly."}, {"role": "assistant", "content": "Canvas3DItem — A 3D vector graphics item Canvas3DItem provides wire-frame 3D vector graphics items for use with Canvas3D Category: GUI > 3D."}]}
|
| 9 |
+
{"conversations": [{"role": "user", "content": "What is `EaseInOutBounce` in SuperCollider?"}, {"role": "assistant", "content": "EaseInOutBounce — Bounce ease-in/out Easing equation for a bounce (exponentially decaying parabolic bounce) ease-in/out, accelerating until halfway, then decelerating. The a parameter controls overshoot, the default producing a 10% overshoot. Category: Ease."}]}
|
| 10 |
+
{"conversations": [{"role": "user", "content": "Explain `EaseInOutBounce` in SuperCollider briefly."}, {"role": "assistant", "content": "EaseInOutBounce — Bounce ease-in/out Easing equation for a bounce (exponentially decaying parabolic bounce) ease-in/out, accelerating until halfway, then decelerating. The a parameter controls overshoot, the default producing a 10% overshoot. Category: Ease."}]}
|
| 11 |
+
{"conversations": [{"role": "user", "content": "What is `EaseOutSine` in SuperCollider?"}, {"role": "assistant", "content": "EaseOutSine — Sinusoidal ease-out Easing equation for a sinusoidal (sin(t)) ease-out, decelerating from zero velocity. Category: Ease."}]}
|
| 12 |
+
{"conversations": [{"role": "user", "content": "Explain `EaseOutSine` in SuperCollider briefly."}, {"role": "assistant", "content": "EaseOutSine — Sinusoidal ease-out Easing equation for a sinusoidal (sin(t)) ease-out, decelerating from zero velocity. Category: Ease."}]}
|
| 13 |
+
{"conversations": [{"role": "user", "content": "What is `ProteinBioSynthesis` in SuperCollider?"}, {"role": "assistant", "content": "ProteinBioSynthesis — Pattern class for the sonification of DNA information in terms of the aminoacids it encodes in a living cell. The superclass for a number of pattern classes that are related with mapping DNA data to aminoacid names and numbers. Category: Streams-Patterns-Events, Sonification."}]}
|
| 14 |
+
{"conversations": [{"role": "user", "content": "Explain `ProteinBioSynthesis` in SuperCollider briefly."}, {"role": "assistant", "content": "ProteinBioSynthesis — Pattern class for the sonification of DNA information in terms of the aminoacids it encodes in a living cell. The superclass for a number of pattern classes that are related with mapping DNA data to aminoacid names and numbers. Category: Streams-Patterns-Events, Sonification."}]}
|
| 15 |
+
{"conversations": [{"role": "user", "content": "What is `CallWindow` in SuperCollider?"}, {"role": "assistant", "content": "CallWindow — A call window Category: Libraries > Radicles."}]}
|
| 16 |
+
{"conversations": [{"role": "user", "content": "Explain `CallWindow` in SuperCollider briefly."}, {"role": "assistant", "content": "CallWindow — A call window Category: Libraries > Radicles."}]}
|
| 17 |
+
{"conversations": [{"role": "user", "content": "What is `InspManager` in SuperCollider?"}, {"role": "assistant", "content": "InspManager — a global manager for all Insp displaying them in a sidebar navigation and a main display area In debugging code you can call .insp quite often and each call will result in a snapshot being added to the global manager's sidebar. You can navigate through different snapshots using the sidebar. Category: Debugging, Language."}]}
|
| 18 |
+
{"conversations": [{"role": "user", "content": "Explain `InspManager` in SuperCollider briefly."}, {"role": "assistant", "content": "InspManager — a global manager for all Insp displaying them in a sidebar navigation and a main display area In debugging code you can call .insp quite often and each call will result in a snapshot being added to the global manager's sidebar. You can navigate through different snapshots using the sidebar. Category: Debugging, Language."}]}
|
| 19 |
+
{"conversations": [{"role": "user", "content": "What is `TraerParticle` in SuperCollider?"}, {"role": "assistant", "content": "TraerParticle — move around in 3D space based on forces applied to them Particles can represent objects, corners of 2D or 3D shapes or abstract things that won't even be drawn. Particles have 5 properties: Category: TraerPhysics."}]}
|
| 20 |
+
{"conversations": [{"role": "user", "content": "Explain `TraerParticle` in SuperCollider briefly."}, {"role": "assistant", "content": "TraerParticle — move around in 3D space based on forces applied to them Particles can represent objects, corners of 2D or 3D shapes or abstract things that won't even be drawn. Particles have 5 properties: Category: TraerPhysics."}]}
|
| 21 |
+
{"conversations": [{"role": "user", "content": "What is `PLastValue` in SuperCollider?"}, {"role": "assistant", "content": "PLastValue — UGenPatterns quark library Based on LastValue Category: Streams-Patterns-Events > UGenPatterns > Modifiers."}]}
|
| 22 |
+
{"conversations": [{"role": "user", "content": "Explain `PLastValue` in SuperCollider briefly."}, {"role": "assistant", "content": "PLastValue — UGenPatterns quark library Based on LastValue Category: Streams-Patterns-Events > UGenPatterns > Modifiers."}]}
|
| 23 |
+
{"conversations": [{"role": "user", "content": "What is `FoaMagNa` in SuperCollider?"}, {"role": "assistant", "content": "FoaMagNa — First Order Ambisonic (FOA) Magnitude of Soundfield Unit Normalized Active Intensity Vector Return the Magnitude of Unit Normalized Active Intensity Vector, ||Na||, of a first order ambisonic (B-format) signal. Category: Libraries > Ambisonic Toolkit > UGens > FOA > Analyzer, UGens > Multichannel > Ambisonics, UGens > Analysis > Ambisonics."}]}
|
| 24 |
+
{"conversations": [{"role": "user", "content": "Explain `FoaMagNa` in SuperCollider briefly."}, {"role": "assistant", "content": "FoaMagNa — First Order Ambisonic (FOA) Magnitude of Soundfield Unit Normalized Active Intensity Vector Return the Magnitude of Unit Normalized Active Intensity Vector, ||Na||, of a first order ambisonic (B-format) signal. Category: Libraries > Ambisonic Toolkit > UGens > FOA > Analyzer, UGens > Multichannel > Ambisonics, UGens > Analysis > Ambisonics."}]}
|
| 25 |
+
{"conversations": [{"role": "user", "content": "What is `FoaRotate` in SuperCollider?"}, {"role": "assistant", "content": "FoaRotate — First Order Ambisonic (FOA) rotation transformer Rotate a First Order Ambisonic signal (B-format) around the z-axis. Category: Libraries > Ambisonic Toolkit > UGens > FOA > Transformer, UGens > Multichannel > Ambisonics."}]}
|
| 26 |
+
{"conversations": [{"role": "user", "content": "Explain `FoaRotate` in SuperCollider briefly."}, {"role": "assistant", "content": "FoaRotate — First Order Ambisonic (FOA) rotation transformer Rotate a First Order Ambisonic signal (B-format) around the z-axis. Category: Libraries > Ambisonic Toolkit > UGens > FOA > Transformer, UGens > Multichannel > Ambisonics."}]}
|
| 27 |
+
{"conversations": [{"role": "user", "content": "What is `AudioSpec` in SuperCollider?"}, {"role": "assistant", "content": "AudioSpec — datatype expressing an 'audio' rate object An audio spec specifies that the input should be an audio signal, or that an output will be an audio signal. Inputs with an AudioSpec are expecting an audio rate player. eg. filters and effects that take an audio input. Category: Spec, Libraries > crucial > Spec."}]}
|
| 28 |
+
{"conversations": [{"role": "user", "content": "Explain `AudioSpec` in SuperCollider briefly."}, {"role": "assistant", "content": "AudioSpec — datatype expressing an 'audio' rate object An audio spec specifies that the input should be an audio signal, or that an output will be an audio signal. Inputs with an AudioSpec are expecting an audio rate player. eg. filters and effects that take an audio input. Category: Spec, Libraries > crucial > Spec."}]}
|
| 29 |
+
{"conversations": [{"role": "user", "content": "What is `DictionaryEditor` in SuperCollider?"}, {"role": "assistant", "content": "DictionaryEditor — presents an Editor for each value in a dictionary Presents an Editor for each value in a dictionary. Each value has its own natural Editor as derived from Editor.for Category: Libraries > crucial > Editors."}]}
|
| 30 |
+
{"conversations": [{"role": "user", "content": "Explain `DictionaryEditor` in SuperCollider briefly."}, {"role": "assistant", "content": "DictionaryEditor — presents an Editor for each value in a dictionary Presents an Editor for each value in a dictionary. Each value has its own natural Editor as derived from Editor.for Category: Libraries > crucial > Editors."}]}
|
| 31 |
+
{"conversations": [{"role": "user", "content": "What is `MultiChanRecorder` in SuperCollider?"}, {"role": "assistant", "content": "MultiChanRecorder — a utility for recording multiple Busses to multiple time-aligned files This is a utility for recording an array of supplied Busses to multiple files. Recording can be paused/resumed. The busses can be optionally mixed and monitored through the main outs. Category: Files."}]}
|
| 32 |
+
{"conversations": [{"role": "user", "content": "Explain `MultiChanRecorder` in SuperCollider briefly."}, {"role": "assistant", "content": "MultiChanRecorder — a utility for recording multiple Busses to multiple time-aligned files This is a utility for recording an array of supplied Busses to multiple files. Recording can be paused/resumed. The busses can be optionally mixed and monitored through the main outs. Category: Files."}]}
|
| 33 |
+
{"conversations": [{"role": "user", "content": "What is `PlayerMixerGui` in SuperCollider?"}, {"role": "assistant", "content": "PlayerMixerGui — gui class Category: Libraries > crucial > GuiClasses."}]}
|
| 34 |
+
{"conversations": [{"role": "user", "content": "Explain `PlayerMixerGui` in SuperCollider briefly."}, {"role": "assistant", "content": "PlayerMixerGui — gui class Category: Libraries > crucial > GuiClasses."}]}
|
| 35 |
+
{"conversations": [{"role": "user", "content": "What is `DXEnvFan` in SuperCollider?"}, {"role": "assistant", "content": "DXEnvFan — returns crossfade envelopes according to demand-rate control DXEnvFan returns the multichannel envelope signal, which is used by DXMix / DXMixIn / DXFan / DXFanOut implicitely. It can be used as envelope and trigger at the same time, which leads to applications such as crossfading PlayBufs and different kinds of granulation, using a buffer or not. Category: Libraries > miSCellaneous > DX suite."}]}
|
| 36 |
+
{"conversations": [{"role": "user", "content": "Explain `DXEnvFan` in SuperCollider briefly."}, {"role": "assistant", "content": "DXEnvFan — returns crossfade envelopes according to demand-rate control DXEnvFan returns the multichannel envelope signal, which is used by DXMix / DXMixIn / DXFan / DXFanOut implicitely. It can be used as envelope and trigger at the same time, which leads to applications such as crossfading PlayBufs and different kinds of granulation, using a buffer or not. Category: Libraries > miSCellaneous > DX suite."}]}
|
| 37 |
+
{"conversations": [{"role": "user", "content": "What is `PSVunion_o` in SuperCollider?"}, {"role": "assistant", "content": "PSVunion_o — Sieve pattern for union of integer generators with offsets and point output Pattern for union of integer generators with offsets and point output. Corresponds to Sieve's methods Sieve#*union_o and Sieve#-union_o. For an introduction and more examples see Sieves_and_Psieve_patterns. Category: Libraries > miSCellaneous > Sieves and Psieve Patterns, Streams-Patterns-Events > Sieves and Psieve Patterns."}]}
|
| 38 |
+
{"conversations": [{"role": "user", "content": "Explain `PSVunion_o` in SuperCollider briefly."}, {"role": "assistant", "content": "PSVunion_o — Sieve pattern for union of integer generators with offsets and point output Pattern for union of integer generators with offsets and point output. Corresponds to Sieve's methods Sieve#*union_o and Sieve#-union_o. For an introduction and more examples see Sieves_and_Psieve_patterns. Category: Libraries > miSCellaneous > Sieves and Psieve Patterns, Streams-Patterns-Events > Sieves and Psieve Patterns."}]}
|
| 39 |
+
{"conversations": [{"role": "user", "content": "What is `RedSampler` in SuperCollider?"}, {"role": "assistant", "content": "RedSampler — playing soundfiles from memory Nothing fancy. This class just loads soundfiles into RAM and then uses PlayBuf to play them back. It uses the same interface as RedDiskInSampler (except for `numFrames` which is is not implemented here). Category: Red > redSampler."}]}
|
| 40 |
+
{"conversations": [{"role": "user", "content": "Explain `RedSampler` in SuperCollider briefly."}, {"role": "assistant", "content": "RedSampler — playing soundfiles from memory Nothing fancy. This class just loads soundfiles into RAM and then uses PlayBuf to play them back. It uses the same interface as RedDiskInSampler (except for `numFrames` which is is not implemented here). Category: Red > redSampler."}]}
|
| 41 |
+
{"conversations": [{"role": "user", "content": "What is `SDroneAmplitudes` in SuperCollider?"}, {"role": "assistant", "content": "SDroneAmplitudes — control SDrone amplitudes Amplitude control for LINKClasses/SDrone. Category: SInstruments."}]}
|
| 42 |
+
{"conversations": [{"role": "user", "content": "Explain `SDroneAmplitudes` in SuperCollider briefly."}, {"role": "assistant", "content": "SDroneAmplitudes — control SDrone amplitudes Amplitude control for LINKClasses/SDrone. Category: SInstruments."}]}
|
| 43 |
+
{"conversations": [{"role": "user", "content": "What is `LFBrownNoise1` in SuperCollider?"}, {"role": "assistant", "content": "LFBrownNoise1 — random walk linear interp Random walk with Gendyn distributions. Category: UGens > Generators > Stochastic."}]}
|
| 44 |
+
{"conversations": [{"role": "user", "content": "Explain `LFBrownNoise1` in SuperCollider briefly."}, {"role": "assistant", "content": "LFBrownNoise1 — random walk linear interp Random walk with Gendyn distributions. Category: UGens > Generators > Stochastic."}]}
|
| 45 |
+
{"conversations": [{"role": "user", "content": "What is `Concat` in SuperCollider?"}, {"role": "assistant", "content": "Concat — Concatenative Cross-Synthesis on Live Streams Implementation of concatenative sound synthesis based on matching four features from a control input to the database generated from a source input. The control determines which frames of the source get played back, and you can change the weighting of features to refine your matching criteria (ie, make rms the most heavily weighted to have amplitude as the most important criteria). You can also mod Category: UGens > GranularSynthesis."}]}
|
| 46 |
+
{"conversations": [{"role": "user", "content": "Explain `Concat` in SuperCollider briefly."}, {"role": "assistant", "content": "Concat — Concatenative Cross-Synthesis on Live Streams Implementation of concatenative sound synthesis based on matching four features from a control input to the database generated from a source input. The control determines which frames of the source get played back, and you can change the weighting of features to refine your matching criteria (ie, make rms the most heavily weighted to have amplitude as the most important criteria). You can also mod Category: UGens > GranularSynthesis."}]}
|
| 47 |
+
{"conversations": [{"role": "user", "content": "What is `BufMin` in SuperCollider?"}, {"role": "assistant", "content": "BufMin — detect the largest value (and its position) in an array of UGens Finds the smallest value in a Buffer, and outputs the value and the index. Category: UGens > Multichannel, UGens > Analysis."}]}
|
| 48 |
+
{"conversations": [{"role": "user", "content": "Explain `BufMin` in SuperCollider briefly."}, {"role": "assistant", "content": "BufMin — detect the largest value (and its position) in an array of UGens Finds the smallest value in a Buffer, and outputs the value and the index. Category: UGens > Multichannel, UGens > Analysis."}]}
|
| 49 |
+
{"conversations": [{"role": "user", "content": "What is `Goertzel` in SuperCollider?"}, {"role": "assistant", "content": "Goertzel — Calculate a single DFT bin, to detect presence of a frequency The Goertzel algorithm is a way to calculate the magnitude and phase of a signal's content at a single specified frequency. It's the equivalent of running an FFT, and then only looking at the output corresponding to a single bin. If you're only interested in a small number of bins then it is more efficient; if you're interested in the majority of bins, you typically want to do an FFT instead. Category: UGens > Filters."}]}
|
| 50 |
+
{"conversations": [{"role": "user", "content": "Explain `Goertzel` in SuperCollider briefly."}, {"role": "assistant", "content": "Goertzel — Calculate a single DFT bin, to detect presence of a frequency The Goertzel algorithm is a way to calculate the magnitude and phase of a signal's content at a single specified frequency. It's the equivalent of running an FFT, and then only looking at the output corresponding to a single bin. If you're only interested in a small number of bins then it is more efficient; if you're interested in the majority of bins, you typically want to do an FFT instead. Category: UGens > Filters."}]}
|
| 51 |
+
{"conversations": [{"role": "user", "content": "What is `Dfsm` in SuperCollider?"}, {"role": "assistant", "content": "Dfsm — demand rate finite state machine Similar to Pfsm, Dfsm implements a markov chain. Each state has a number of next states out of which one is randomly chosen. Category: UGens > Demand."}]}
|
| 52 |
+
{"conversations": [{"role": "user", "content": "Explain `Dfsm` in SuperCollider briefly."}, {"role": "assistant", "content": "Dfsm — demand rate finite state machine Similar to Pfsm, Dfsm implements a markov chain. Each state has a number of next states out of which one is randomly chosen. Category: UGens > Demand."}]}
|
| 53 |
+
{"conversations": [{"role": "user", "content": "What is `BRZ2` in SuperCollider?"}, {"role": "assistant", "content": "BRZ2 — Two zero fixed midcut. A special case fixed filter. Implements the formula: Category: UGens > Filters > Linear."}]}
|
| 54 |
+
{"conversations": [{"role": "user", "content": "Explain `BRZ2` in SuperCollider briefly."}, {"role": "assistant", "content": "BRZ2 — Two zero fixed midcut. A special case fixed filter. Implements the formula: Category: UGens > Filters > Linear."}]}
|
| 55 |
+
{"conversations": [{"role": "user", "content": "What is `DragBoth` in SuperCollider?"}, {"role": "assistant", "content": "DragBoth — A simple drag-and-drop source and receiver Category: GUI > Views."}]}
|
| 56 |
+
{"conversations": [{"role": "user", "content": "Explain `DragBoth` in SuperCollider briefly."}, {"role": "assistant", "content": "DragBoth — A simple drag-and-drop source and receiver Category: GUI > Views."}]}
|
| 57 |
+
{"conversations": [{"role": "user", "content": "What is `InterplXYC` in SuperCollider?"}, {"role": "assistant", "content": "InterplXYC — envelope specification Takes sets of x, y and curve values and returns a new instance of InterplEnv. x values can be negative (for use in indexing with negative values or signals). See InterplEnv Help for more info. Category: Control, Envelopes."}]}
|
| 58 |
+
{"conversations": [{"role": "user", "content": "Explain `InterplXYC` in SuperCollider briefly."}, {"role": "assistant", "content": "InterplXYC — envelope specification Takes sets of x, y and curve values and returns a new instance of InterplEnv. x values can be negative (for use in indexing with negative values or signals). See InterplEnv Help for more info. Category: Control, Envelopes."}]}
|
| 59 |
+
{"conversations": [{"role": "user", "content": "What is `LagUD` in SuperCollider?"}, {"role": "assistant", "content": "LagUD — Exponential lag This is essentially the same as Lag except that you can supply a different 60 dB time for when the signal goes up, from when the signal goes down. This is useful for smoothing out control signals, where \"fade in\" should be different from \"fade out\". Category: UGens > Filters."}]}
|
| 60 |
+
{"conversations": [{"role": "user", "content": "Explain `LagUD` in SuperCollider briefly."}, {"role": "assistant", "content": "LagUD — Exponential lag This is essentially the same as Lag except that you can supply a different 60 dB time for when the signal goes up, from when the signal goes down. This is useful for smoothing out control signals, where \"fade in\" should be different from \"fade out\". Category: UGens > Filters."}]}
|
| 61 |
+
{"conversations": [{"role": "user", "content": "What is `MIDIMessageDispatcherNV` in SuperCollider?"}, {"role": "assistant", "content": "MIDIMessageDispatcherNV — The default dispatcher for MIDIFunc's and MIDIdef's set to respond to touch, program, and bend messages. MIDIMessageDispatcherNV is used to dispatch incoming MIDI touch, program, and bend messages to matching functions. Normally users should not have to create or message instances of this class directly. Category: External Control > MIDI > Dispatchers."}]}
|
| 62 |
+
{"conversations": [{"role": "user", "content": "Explain `MIDIMessageDispatcherNV` in SuperCollider briefly."}, {"role": "assistant", "content": "MIDIMessageDispatcherNV — The default dispatcher for MIDIFunc's and MIDIdef's set to respond to touch, program, and bend messages. MIDIMessageDispatcherNV is used to dispatch incoming MIDI touch, program, and bend messages to matching functions. Normally users should not have to create or message instances of this class directly. Category: External Control > MIDI > Dispatchers."}]}
|
| 63 |
+
{"conversations": [{"role": "user", "content": "What is `NumChannels` in SuperCollider?"}, {"role": "assistant", "content": "NumChannels — Ensures the number of output channels Ensures the output has the stated number of channels, regardless of the number of input channels. Category: UGens > Multichannel."}]}
|
| 64 |
+
{"conversations": [{"role": "user", "content": "Explain `NumChannels` in SuperCollider briefly."}, {"role": "assistant", "content": "NumChannels — Ensures the number of output channels Ensures the output has the stated number of channels, regardless of the number of input channels. Category: UGens > Multichannel."}]}
|
| 65 |
+
{"conversations": [{"role": "user", "content": "What is `PV_Conj` in SuperCollider?"}, {"role": "assistant", "content": "PV_Conj — Complex conjugate Converts the FFT frames to their complex conjugate (i.e. reverses the sign of their imaginary part). This is not usually a useful audio effect in itself, but may be a component of other analysis or transformation processes... Category: UGens > FFT."}]}
|
| 66 |
+
{"conversations": [{"role": "user", "content": "Explain `PV_Conj` in SuperCollider briefly."}, {"role": "assistant", "content": "PV_Conj — Complex conjugate Converts the FFT frames to their complex conjugate (i.e. reverses the sign of their imaginary part). This is not usually a useful audio effect in itself, but may be a component of other analysis or transformation processes... Category: UGens > FFT."}]}
|
| 67 |
+
{"conversations": [{"role": "user", "content": "What is `Pmeanrand` in SuperCollider?"}, {"role": "assistant", "content": "Pmeanrand — random values that tend toward ((lo + hi) / 2) Category: Streams-Patterns-Events > Patterns > Random."}]}
|
| 68 |
+
{"conversations": [{"role": "user", "content": "Explain `Pmeanrand` in SuperCollider briefly."}, {"role": "assistant", "content": "Pmeanrand — random values that tend toward ((lo + hi) / 2) Category: Streams-Patterns-Events > Patterns > Random."}]}
|
| 69 |
+
{"conversations": [{"role": "user", "content": "What is `PriorityQueue` in SuperCollider?"}, {"role": "assistant", "content": "PriorityQueue — Priority queue data structure PriorityQueue implements a priority queue data structure, which is used to build schedulers. It allows you to put in items at some arbitrary time and pop them in time order. Category: Collections > Ordered."}]}
|
| 70 |
+
{"conversations": [{"role": "user", "content": "Explain `PriorityQueue` in SuperCollider briefly."}, {"role": "assistant", "content": "PriorityQueue — Priority queue data structure PriorityQueue implements a priority queue data structure, which is used to build schedulers. It allows you to put in items at some arbitrary time and pop them in time order. Category: Collections > Ordered."}]}
|
| 71 |
+
{"conversations": [{"role": "user", "content": "What is `Pselect` in SuperCollider?"}, {"role": "assistant", "content": "Pselect — Filters values returned by a source pattern. This pattern will filter the source pattern using the supplied function func. Category: Streams-Patterns-Events > Patterns > Filter."}]}
|
| 72 |
+
{"conversations": [{"role": "user", "content": "Explain `Pselect` in SuperCollider briefly."}, {"role": "assistant", "content": "Pselect — Filters values returned by a source pattern. This pattern will filter the source pattern using the supplied function func. Category: Streams-Patterns-Events > Patterns > Filter."}]}
|
| 73 |
+
{"conversations": [{"role": "user", "content": "What is `Score` in SuperCollider?"}, {"role": "assistant", "content": "Score — score of timed OSC commands Score encapsulates a list of timed OSC commands and provides some methods for using it, as well as support for the creation of binary OSC files for non-realtime synthesis. See Non-Realtime-Synthesis for more details. Category: Control, Server > NRT, External Control > OSC."}]}
|
| 74 |
+
{"conversations": [{"role": "user", "content": "Explain `Score` in SuperCollider briefly."}, {"role": "assistant", "content": "Score — score of timed OSC commands Score encapsulates a list of timed OSC commands and provides some methods for using it, as well as support for the creation of binary OSC files for non-realtime synthesis. See Non-Realtime-Synthesis for more details. Category: Control, Server > NRT, External Control > OSC."}]}
|
| 75 |
+
{"conversations": [{"role": "user", "content": "What is `SpecCentroid` in SuperCollider?"}, {"role": "assistant", "content": "SpecCentroid — Spectral centroid Given an FFT chain, this measures the spectral centroid, which is the weighted mean frequency, or the \"centre of mass\" of the spectrum. (DC is ignored.) Category: UGens > FFT."}]}
|
| 76 |
+
{"conversations": [{"role": "user", "content": "Explain `SpecCentroid` in SuperCollider briefly."}, {"role": "assistant", "content": "SpecCentroid — Spectral centroid Given an FFT chain, this measures the spectral centroid, which is the weighted mean frequency, or the \"centre of mass\" of the spectrum. (DC is ignored.) Category: UGens > FFT."}]}
|
| 77 |
+
{"conversations": [{"role": "user", "content": "What is `TGrains` in SuperCollider?"}, {"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."}]}
|
| 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 `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."}]}
|
| 82 |
+
{"conversations": [{"role": "user", "content": "What does `MotifCutProc.new` do?"}, {"role": "assistant", "content": "Create a MotifCutProc object with the given"}]}
|
| 83 |
+
{"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"}]}
|
| 84 |
+
{"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.."}]}
|
| 85 |
+
{"conversations": [{"role": "user", "content": "What does `Canvas3DItem.cube` do?"}, {"role": "assistant", "content": "Create a 2x2x2 cube centered around [0,0,0]. You can then use #-transform to change it's size, position and Returns: A new instance."}]}
|
| 86 |
+
{"conversations": [{"role": "user", "content": "What does `Canvas3DItem.grid` do?"}, {"role": "assistant", "content": "Create a flat NxN grid centered around [0,0,0], spanning [-1,-1,0] to Returns: A new instance."}]}
|
| 87 |
+
{"conversations": [{"role": "user", "content": "What does `Canvas3DItem.paths` do?"}, {"role": "assistant", "content": "Get/set the array of paths, where each path is an array of 3D vectors:"}]}
|
| 88 |
+
{"conversations": [{"role": "user", "content": "What does `Canvas3DItem.fill` do?"}, {"role": "assistant", "content": "Get/set the Boolean flag for stroking versus filling the item's path. See Pen#*stroke and"}]}
|
| 89 |
+
{"conversations": [{"role": "user", "content": "What does `Canvas3DItem.transforms` do?"}, {"role": "assistant", "content": "An array of transformation matrices to be applied when displayed in the canvas. See"}]}
|
| 90 |
+
{"conversations": [{"role": "user", "content": "What does `Canvas3DItem.transform` do? What arguments does it take?"}, {"role": "assistant", "content": "Apply a transformation matrix on this items Arguments: matrix — A matrix. See Canvas3D#matrix_transforms.."}]}
|
| 91 |
+
{"conversations": [{"role": "user", "content": "What does `EaseInOutBounce.ar` do? What arguments does it take?"}, {"role": "assistant", "content": "Bounce ease-in/out Arguments: t — signal in the range 0.0 to 1.0.; a — overshoot.."}]}
|
| 92 |
+
{"conversations": [{"role": "user", "content": "What does `EaseInOutBounce.value` do? What arguments does it take?"}, {"role": "assistant", "content": "Bounce ease-in/out Arguments: t — a Float between 0.0 and 1.0.; a — overshoot. The default is 1.70158."}]}
|
| 93 |
+
{"conversations": [{"role": "user", "content": "What does `EaseOutSine.value` do? What arguments does it take?"}, {"role": "assistant", "content": "Sinusoidal ease-out Arguments: t — a Float between 0.0 and 1.0.."}]}
|
| 94 |
+
{"conversations": [{"role": "user", "content": "What does `ProteinBioSynthesis.new` do? What arguments does it take?"}, {"role": "assistant", "content": "Return a new pattern from a Arguments: genome — The genome data, a string containing the characters representing the four nucleic acids: guanine (G), adenine (A), thymine (T), or cytosine (C).."}]}
|
| 95 |
+
{"conversations": [{"role": "user", "content": "What does `ProteinBioSynthesis.transcriptionDict` do?"}, {"role": "assistant", "content": "The mapping of the 64 tripletIDs to the 21 aminoacids, represented as integer numbers (see below). The genetic code is called 'degenerated', because it is partly redundant. By default, this is the standard translation table for most higher forms of life, the interpretation varies in different"}]}
|
| 96 |
+
{"conversations": [{"role": "user", "content": "What does `ProteinBioSynthesis.tripletDict` do?"}, {"role": "assistant", "content": "Internally used to map from triplets (all combinations of the bases) to"}]}
|
| 97 |
+
{"conversations": [{"role": "user", "content": "What does `ProteinBioSynthesis.bases` do?"}, {"role": "assistant", "content": "A string of four characters representing the"}]}
|
| 98 |
+
{"conversations": [{"role": "user", "content": "What does `ProteinBioSynthesis.aminoacids` do?"}, {"role": "assistant", "content": "An IdentityDictionary mapping aminoacid ids to aminoacid"}]}
|
| 99 |
+
{"conversations": [{"role": "user", "content": "What does `ProteinBioSynthesis.startcodon` do?"}, {"role": "assistant", "content": "The triplet that marks the beginning of a valid sequence. This is only used by"}]}
|
| 100 |
+
{"conversations": [{"role": "user", "content": "What does `ProteinBioSynthesis.stopcodon` do?"}, {"role": "assistant", "content": "The triplet that marks the end of a valid sequence. This is only used by"}]}
|
| 101 |
+
{"conversations": [{"role": "user", "content": "What does `ProteinBioSynthesis.translate` do? What arguments does it take?"}, {"role": "assistant", "content": "Translate nucleic acid triplets to aminoacid id. This is what in protein bio synthesis is called Arguments: triplet — A string of three characters from the nucleic acids. `ProteinBioSynthesis().translate(\"atttggatac\");`."}]}
|
| 102 |
+
{"conversations": [{"role": "user", "content": "What does `ProteinBioSynthesis.translateBack` do? What arguments does it take?"}, {"role": "assistant", "content": "Translate from aminoacid id to nucleic acid Arguments: aminoacidIndex — An integer index.."}]}
|
| 103 |
+
{"conversations": [{"role": "user", "content": "What does `ProteinBioSynthesis.verbose` do?"}, {"role": "assistant", "content": "If set to true, print information to the post"}]}
|
| 104 |
+
{"conversations": [{"role": "user", "content": "What does `ProteinBioSynthesis.transcribe` do?"}, {"role": "assistant", "content": "Transcription is the process that produces the so called codons, the aminoacids from nucleic acid triplets."}]}
|
| 105 |
+
{"conversations": [{"role": "user", "content": "What does `ProteinBioSynthesis.loadData` do? What arguments does it take?"}, {"role": "assistant", "content": "Load a genome data file (see example Arguments: path — The file path.; finishFunc — A function to be called when the reading has finished. `x = AminoacidPattern.new.loadData(\"data/escherichia-coli\".re`."}]}
|
| 106 |
+
{"conversations": [{"role": "user", "content": "What does `CallWindow.callFunc` do? What arguments does it take?"}, {"role": "assistant", "content": "A call window Arguments: string — String associated with a function to evaluate.; post — Boolean to determine if function gets posted in post window.."}]}
|
| 107 |
+
{"conversations": [{"role": "user", "content": "What does `InspManager.global` do?"}, {"role": "assistant", "content": "This will get or create the global Returns: the global InspManager"}]}
|
| 108 |
+
{"conversations": [{"role": "user", "content": "What does `InspManager.front` do?"}, {"role": "assistant", "content": "bring the global InspManager to the front if it isn't"}]}
|
| 109 |
+
{"conversations": [{"role": "user", "content": "What does `InspManager.window` do?"}, {"role": "assistant", "content": "The window that the InspManager is Returns: a Window"}]}
|
| 110 |
+
{"conversations": [{"role": "user", "content": "What does `InspManager.watch` do? What arguments does it take?"}, {"role": "assistant", "content": "called internally to add an Insp to the Arguments: insp — an Insp. Returns: this"}]}
|
| 111 |
+
{"conversations": [{"role": "user", "content": "What does `InspManager.showInsp` do? What arguments does it take?"}, {"role": "assistant", "content": "shows this insp in the main viewing area, hiding any Arguments: insp. Returns: this"}]}
|
| 112 |
+
{"conversations": [{"role": "user", "content": "What does `InspManager.remove` do?"}, {"role": "assistant", "content": "internal cleanup function for when the window Returns: this"}]}
|
| 113 |
+
{"conversations": [{"role": "user", "content": "What does `TraerParticle.position` do?"}, {"role": "assistant", "content": "Move the particle to some 3D location with CODEpositon.set(x, y, z);. Move the particle by some 3D amount with CODEposition.add(x, y, z);. And this is how you get to the dimensions of particle position. CODEposition.x; position.y;"}]}
|
| 114 |
+
{"conversations": [{"role": "user", "content": "What does `TraerParticle.velocity` do?"}, {"role": "assistant", "content": "Set the velocity to some 3D quantity, maybe use this to send a particle flying off in a particular direction: CODEvelocity.set(x, y, z);. This adds some 3D quantity to the velocity of the particle. You could maybe use this to speed up or slow down a particle: CODEvelocity.add(x, y, z);. And this is how you get at the dimensions of the particles velocity: CODEvelocity.x; velocity.y;"}]}
|
| 115 |
+
{"conversations": [{"role": "user", "content": "What does `TraerParticle.setMass` do?"}, {"role": "assistant", "content": "Set the mass of the particle. Heavier particles will have more inertia and will accelerate slower. Attraction/repulsion forces will also be stronger for heavier particles. If you aren't doing anything special this will probably be the same for all"}]}
|
| 116 |
+
{"conversations": [{"role": "user", "content": "What does `TraerParticle.makeFixed` do?"}, {"role": "assistant", "content": "Particles can either be fixed or free. If they are free they move around and are affected by forces, if they are fixed they stay where they"}]}
|
| 117 |
+
{"conversations": [{"role": "user", "content": "What does `TraerParticle.age` do?"}, {"role": "assistant", "content": "How long the particle has been around. Every time you advance the simulation by CODEt every particle gets a little older by"}]}
|
| 118 |
+
{"conversations": [{"role": "user", "content": "What does `PLastValue.new` do? What arguments does it take?"}, {"role": "assistant", "content": "UGenPatterns quark library Arguments: pattern; diff."}]}
|
| 119 |
+
{"conversations": [{"role": "user", "content": "What does `FoaMagNa.ar` do? What arguments does it take?"}, {"role": "assistant", "content": "First Order Ambisonic (FOA) Magnitude of Soundfield Unit Normalized Active Intensity Vector Arguments: in — The B-format signal, an array: [w, x, y, z]; size — Analysis filter kernel size.; method — The Soundfield analysis method:."}]}
|
| 120 |
+
{"conversations": [{"role": "user", "content": "What does `FoaRotate.ar` do? What arguments does it take?"}, {"role": "assistant", "content": "First Order Ambisonic (FOA) rotation transformer Arguments: in — The B-format signal, an array: [w, x, y, z]; angle — Rotation angle, in radians.; mul — Output will be multiplied by this value.; add — This value will be added to the output.."}]}
|
| 121 |
+
{"conversations": [{"role": "user", "content": "What does `AudioSpec.new` do? What arguments does it take?"}, {"role": "assistant", "content": "datatype expressing an 'audio' rate object Arguments: numChannels — The number of channels your input requires. Default value is 1. This can also be nil which expresses that your Instr will multi-channel expand if given more than one channel. ie. its mono-stereo compatible."}]}
|
| 122 |
+
{"conversations": [{"role": "user", "content": "What does `AudioSpec.initClass` do?"}, {"role": "assistant", "content": "datatype expressing an 'audio' rate object"}]}
|
| 123 |
+
{"conversations": [{"role": "user", "content": "What does `AudioSpec.numChannels` do?"}, {"role": "assistant", "content": "datatype expressing an 'audio' rate object"}]}
|
| 124 |
+
{"conversations": [{"role": "user", "content": "What does `AudioSpec.defaultControl` do?"}, {"role": "assistant", "content": "datatype expressing an 'audio' rate object"}]}
|
| 125 |
+
{"conversations": [{"role": "user", "content": "What does `AudioSpec.storeArgs` do?"}, {"role": "assistant", "content": "datatype expressing an 'audio' rate object"}]}
|
| 126 |
+
{"conversations": [{"role": "user", "content": "What does `AudioSpec.rate` do?"}, {"role": "assistant", "content": "datatype expressing an 'audio' rate object"}]}
|
| 127 |
+
{"conversations": [{"role": "user", "content": "What does `AudioSpec.canAccept` do? What arguments does it take?"}, {"role": "assistant", "content": "datatype expressing an 'audio' rate object Arguments: thing."}]}
|
| 128 |
+
{"conversations": [{"role": "user", "content": "What does `AudioSpec.constrain` do? What arguments does it take?"}, {"role": "assistant", "content": "datatype expressing an 'audio' rate object Arguments: ... args."}]}
|
| 129 |
+
{"conversations": [{"role": "user", "content": "What does `AudioSpec.color` do?"}, {"role": "assistant", "content": "datatype expressing an 'audio' rate object"}]}
|
| 130 |
+
{"conversations": [{"role": "user", "content": "What does `DictionaryEditor.new` do? What arguments does it take?"}, {"role": "assistant", "content": "presents an Editor for each value in a dictionary Arguments: dict."}]}
|
| 131 |
+
{"conversations": [{"role": "user", "content": "What does `DictionaryEditor.editing` do?"}, {"role": "assistant", "content": "presents an Editor for each value in a dictionary"}]}
|
| 132 |
+
{"conversations": [{"role": "user", "content": "What does `DictionaryEditor.value` do? What arguments does it take?"}, {"role": "assistant", "content": "presents an Editor for each value in a dictionary Arguments: dict."}]}
|
| 133 |
+
{"conversations": [{"role": "user", "content": "What does `DictionaryEditor.guiClass` do?"}, {"role": "assistant", "content": "presents an Editor for each value in a dictionary"}]}
|
| 134 |
+
{"conversations": [{"role": "user", "content": "What does `MultiChanRecorder.new` do? What arguments does it take?"}, {"role": "assistant", "content": "a utility for recording multiple Busses to multiple time-aligned files Arguments: busses."}]}
|
| 135 |
+
{"conversations": [{"role": "user", "content": "What does `MultiChanRecorder.limit` do?"}, {"role": "assistant", "content": "boolean By default it uses a Limiter on each channel. Set limit to false to defeat"}]}
|
| 136 |
+
{"conversations": [{"role": "user", "content": "What does `MultiChanRecorder.path` do?"}, {"role": "assistant", "content": "a utility for recording multiple Busses to multiple time-aligned files"}]}
|
| 137 |
+
{"conversations": [{"role": "user", "content": "What does `MultiChanRecorder.recHeaderFormat` do?"}, {"role": "assistant", "content": "a utility for recording multiple Busses to multiple time-aligned files"}]}
|
| 138 |
+
{"conversations": [{"role": "user", "content": "What does `MultiChanRecorder.recSampleFormat` do?"}, {"role": "assistant", "content": "a utility for recording multiple Busses to multiple time-aligned files"}]}
|
| 139 |
+
{"conversations": [{"role": "user", "content": "What does `MultiChanRecorder.init` do? What arguments does it take?"}, {"role": "assistant", "content": "a utility for recording multiple Busses to multiple time-aligned files Arguments: buses."}]}
|
| 140 |
+
{"conversations": [{"role": "user", "content": "What does `MultiChanRecorder.prepareForRecord` do? What arguments does it take?"}, {"role": "assistant", "content": "a utility for recording multiple Busses to multiple time-aligned files Arguments: basePath."}]}
|
| 141 |
+
{"conversations": [{"role": "user", "content": "What does `MultiChanRecorder.isPrepared` do?"}, {"role": "assistant", "content": "a utility for recording multiple Busses to multiple time-aligned files"}]}
|
| 142 |
+
{"conversations": [{"role": "user", "content": "What does `MultiChanRecorder.record` do? What arguments does it take?"}, {"role": "assistant", "content": "a utility for recording multiple Busses to multiple time-aligned files Arguments: atTime — see atTime."}]}
|
| 143 |
+
{"conversations": [{"role": "user", "content": "What does `MultiChanRecorder.isRecording` do?"}, {"role": "assistant", "content": "a utility for recording multiple Busses to multiple time-aligned files"}]}
|
| 144 |
+
{"conversations": [{"role": "user", "content": "What does `MultiChanRecorder.pauseRecording` do? What arguments does it take?"}, {"role": "assistant", "content": "a utility for recording multiple Busses to multiple time-aligned files Arguments: atTime — see atTime."}]}
|
| 145 |
+
{"conversations": [{"role": "user", "content": "What does `MultiChanRecorder.stop` do?"}, {"role": "assistant", "content": "a utility for recording multiple Busses to multiple time-aligned files"}]}
|
| 146 |
+
{"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."}]}
|
| 147 |
+
{"conversations": [{"role": "user", "content": "What does `MultiChanRecorder.isMonitoring` do?"}, {"role": "assistant", "content": "a utility for recording multiple Busses to multiple time-aligned files"}]}
|
| 148 |
+
{"conversations": [{"role": "user", "content": "What does `MultiChanRecorder.cmdPeriod` do?"}, {"role": "assistant", "content": "a utility for recording multiple Busses to multiple time-aligned files"}]}
|
| 149 |
+
{"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."}]}
|
| 150 |
+
{"conversations": [{"role": "user", "content": "What does `DXEnvFan.kr` do?"}, {"role": "assistant", "content": "returns crossfade envelopes according to demand-rate control"}]}
|
| 151 |
+
{"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.."}]}
|
| 152 |
+
{"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.."}]}
|
| 153 |
+
{"conversations": [{"role": "user", "content": "What does `SDroneAmplitudes.def` do?"}, {"role": "assistant", "content": "the definition that send out control data on bus Returns: a LINKClasses/SynthDef."}]}
|
| 154 |
+
{"conversations": [{"role": "user", "content": "What does `LFBrownNoise1.ar` do? What arguments does it take?"}, {"role": "assistant", "content": "random walk linear interp Arguments: freq — approximate rate at which to generate random values.; dev — scale maximum step (0-1).; dist — Gendyn distribution to use (0-5: see Gendy1 for details).."}]}
|
| 155 |
+
{"conversations": [{"role": "user", "content": "What does `Concat.ar` do? What arguments does it take?"}, {"role": "assistant", "content": "Concatenative Cross-Synthesis on Live Streams Arguments: control — audio rate input, acts as control; source — audio rate input, source for cross-synthesis; storesize — size of source store sample buffer in seconds; seektime — Time in seconds into the past to start searching for matches; seekdur — Time in seconds from seektime towards the present to test matches; matchlength — Match length in seconds (this will be rounded to the nearest FFT frame); freezestore — Stop collecting novel source input, keep store (database) fixed; zcr — Weight for zero crossing rate feature."}]}
|
| 156 |
+
{"conversations": [{"role": "user", "content": "What does `BufMin.kr` do? What arguments does it take?"}, {"role": "assistant", "content": "detect the largest value (and its position) in an array of UGens Arguments: bufnum; gate — You don't need to make use of the gate control: if you do use it, the calculation is only performed when gate>0.. Returns: # val, index"}]}
|
| 157 |
+
{"conversations": [{"role": "user", "content": "What does `Goertzel.kr` do? What arguments does it take?"}, {"role": "assistant", "content": "Calculate a single DFT bin, to detect presence of a frequency Arguments: in; bufsize — used in the same way as an FFT buffer size - the larger this value, the better the frequency resolution, but the worse the time resolution.; freq — target frequency. This can not be modulated.; hop — same meaning as in the FFT UGen. Supply a value between zero and one, for the amount of overlap between Goertzel \"frames\". The default is a hop of 1 (meaning no overlap between frames). If you specify 0.5 then the analysis value will be produced twice as often; 0.25, four times as often.."}]}
|
| 158 |
+
{"conversations": [{"role": "user", "content": "What does `Dfsm.new` do? What arguments does it take?"}, {"role": "assistant", "content": "demand rate finite state machine Arguments: rules — array in the format:; n — number of items from each state to embed. If inf, they are embedded completely.; rgen — demand rate random number generator that should ouput values between 0.0 and 1.0. If a deterministic ugen is used, the choice of next states of the finite state machine can be controlled (i.e. 0 will allways choose the first, 1 always the last, else in between).."}]}
|
| 159 |
+
{"conversations": [{"role": "user", "content": "What does `BRZ2.ar` do? What arguments does it take?"}, {"role": "assistant", "content": "Two zero fixed midcut. Arguments: in — The input signal.."}]}
|
| 160 |
+
{"conversations": [{"role": "user", "content": "What does `DragBoth.defaultGetDrag` do?"}, {"role": "assistant", "content": "A simple drag-and-drop source and receiver Returns: The StaticText#-object#-object."}]}
|
| 161 |
+
{"conversations": [{"role": "user", "content": "What does `DragBoth.defaultCanReceiveDrag` do?"}, {"role": "assistant", "content": "A simple drag-and-drop source and receiver Returns: Always True."}]}
|
| 162 |
+
{"conversations": [{"role": "user", "content": "What does `DragBoth.defaultReceiveDrag` do?"}, {"role": "assistant", "content": "Sets the StaticText#-object#-object to the current drag"}]}
|
| 163 |
+
{"conversations": [{"role": "user", "content": "What does `LagUD.ar` do? What arguments does it take?"}, {"role": "assistant", "content": "Exponential lag Arguments: in — input signal.; lagTimeU — 60 dB lag time in seconds for the upgoing signal.; lagTimeD — 60 dB lag time in seconds for the downgoing signal.; mul; add."}]}
|
| 164 |
+
{"conversations": [{"role": "user", "content": "What does `MIDIMessageDispatcherNV.getKeysForFuncProxy` do? What arguments does it take?"}, {"role": "assistant", "content": "Get the keys at which a responder func's functions are stored in this dispatcher's active dictionary. The keys will be MIDI Arguments: funcProxy — The MIDIFunc or MIDIdef whose keys should be returned.. Returns: An Array containing the funcProxy's channel number as an Integer."}]}
|
| 165 |
+
{"conversations": [{"role": "user", "content": "What does `MIDIMessageDispatcherNV.value` do? What arguments does it take?"}, {"role": "assistant", "content": "Attempt to match an incoming MIDI message with this dispatcher's responder funcs, and evaluate their functions for all matches Arguments: src — The UID of the source of the MIDI message as an Integer.; chan — The channel number of the MIDI message as an Integer. Note this should be in the range 0-15.; val — The message value (e.g. velocity, etc.) of the MIDI message as an Integer. Note this should be in the range 0-127.."}]}
|
| 166 |
+
{"conversations": [{"role": "user", "content": "What does `MIDIMessageDispatcherNV.wrapFunc` do? What arguments does it take?"}, {"role": "assistant", "content": "Called internally to wrap functions in message matcher objects, if Arguments: funcProxy — An instance of MIDIFunc or MIDIdef whose function(s) are to be wrapped.."}]}
|
| 167 |
+
{"conversations": [{"role": "user", "content": "What does `NumChannels.ar` do? What arguments does it take?"}, {"role": "assistant", "content": "Ensures the number of output channels Arguments: input — the audio signal; numChannels — an integer; mixdown — true/false, whether you want to mixdown or just use the first channel."}]}
|
| 168 |
+
{"conversations": [{"role": "user", "content": "What does `PV_Conj.new` do? What arguments does it take?"}, {"role": "assistant", "content": "Complex conjugate Arguments: buffer — FFT chain.."}]}
|
| 169 |
+
{"conversations": [{"role": "user", "content": "What does `Pmeanrand.new` do? What arguments does it take?"}, {"role": "assistant", "content": "random values that tend toward ((lo + hi) / 2) Arguments: lo — lower boundary of values.; hi — upper boundary of values.; length — number of values produced.."}]}
|
| 170 |
+
{"conversations": [{"role": "user", "content": "What does `PriorityQueue.topPriority` do?"}, {"role": "assistant", "content": "Returns the time of the earliest item in the"}]}
|
| 171 |
+
{"conversations": [{"role": "user", "content": "What does `PriorityQueue.notEmpty` do?"}, {"role": "assistant", "content": "Return a Boolean whether the queue is not"}]}
|
| 172 |
+
{"conversations": [{"role": "user", "content": "What does `Pselect.new` do? What arguments does it take?"}, {"role": "assistant", "content": "Filters values returned by a source pattern. Arguments: func — A Function that takes one parameter (the next value from pattern) and returns a boolean.; pattern — The source Pattern.."}]}
|
| 173 |
+
{"conversations": [{"role": "user", "content": "What does `Score.new` do? What arguments does it take?"}, {"role": "assistant", "content": "returns a new Score object with the supplied list. The score is automatically sorted by ascending timestamps, so it is not necessary to call #-sort unless you modify the score Arguments: list — can be an Array, a List, or similar object.."}]}
|
| 174 |
+
{"conversations": [{"role": "user", "content": "What does `Score.newFromFile` do? What arguments does it take?"}, {"role": "assistant", "content": "as #*new, but reads the list in from a text Arguments: path — a String indicating the path of the file. The file must contain a valid SC expression.."}]}
|
| 175 |
+
{"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.."}]}
|
| 176 |
+
{"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.."}]}
|
| 177 |
+
{"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.."}]}
|
| 178 |
+
{"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`!."}]}
|
| 179 |
+
{"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"}]}
|
| 180 |
+
{"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"}]}
|
| 181 |
+
{"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 ="}]}
|
| 182 |
+
{"conversations": [{"role": "user", "content": "What does `Score.sort` do?"}, {"role": "assistant", "content": "sort the score by ascending timestamps. The relative order of bundles with the same timestamp is preserved! The initial list passed to the #*new method is sorted automatically. If you modify the score afterwards, it is recommended to sort it before recordNRT or write when you are not sure about the bundle"}]}
|
| 183 |
+
{"conversations": [{"role": "user", "content": "What does `Score.recordNRT` do?"}, {"role": "assistant", "content": "synthesize the score in non-realtime. For details of the arguments see #*recordNRT"}]}
|
| 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."}]}
|
| 214 |
+
{"conversations": [{"role": "user", "content": "How do I set up a delay send in SuperCollider?"}, {"role": "assistant", "content": "One synth writes dry to the master and also to a private bus; a second synth reads that bus, delays\nit, and writes the wet signal to the master.\n\n```supercollider\n(\n~delayBus = Bus.audio(s, 2);\nSynthDef(\\src, { |out = 0, send = 0, freq = 440|\n var sig = SinOsc.ar(freq) * 0.15;\n Out.ar(out, sig);\n Out.ar(send, sig);\n}).add;\nSynthDef(\\dly, { |in = 0, out = 0, time = 0.3|\n var dry = In.ar(in, 2);\n var wet = CombN.ar(dry, 0.6, time, 3);\n Out.ar(out, wet * 0.6);\n}).add;\n);\nSynth(\\dly, [\\in, ~delayBus, \\time, 0.375]);\nSynth(\\src, [\\send, ~delayBus]);\n```"}]}
|
| 215 |
+
{"conversations": [{"role": "user", "content": "I have a kick SynthDef called \\kick. How do I get a four-on-the-floor?"}, {"role": "assistant", "content": "One kick per beat on the default tempo clock:\n\n```supercollider\nTdef(\\four, { loop { Synth(\\kick); 1.wait } }).play;\n```\n\n`1.wait` is one beat, so `TempoClock.default.tempo = 2` makes it 120 BPM."}, {"role": "user", "content": "Now add hats on the offbeats."}, {"role": "assistant", "content": "A second layer, offset by half a beat:\n\n```supercollider\nTdef(\\hats, {\n loop {\n (1/2).wait;\n Synth(\\hat, [\\amp, 0.12]);\n (1/2).wait;\n }\n}).play;\n```\n\nStarting with the wait puts the hat half a beat after the kick. `Tdef(\\hats).stop` removes just that layer."}]}
|
stats.json
ADDED
|
@@ -0,0 +1,614 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"generated_at": "2026-11-21T10:36:08+00:00",
|
| 3 |
+
"root": "<local path removed>",
|
| 4 |
+
"stages": {
|
| 5 |
+
"10-extracted": {
|
| 6 |
+
"extract": {
|
| 7 |
+
"finished_at": "2026-11-21T10:19:54+00:00",
|
| 8 |
+
"counts": {
|
| 9 |
+
"records": 19747,
|
| 10 |
+
"by_source": {
|
| 11 |
+
"local": 16,
|
| 12 |
+
"quarks": 7014,
|
| 13 |
+
"sc3-plugins": 527,
|
| 14 |
+
"sccode": 1040,
|
| 15 |
+
"scsynth": 9416,
|
| 16 |
+
"supercollider": 1734
|
| 17 |
+
},
|
| 18 |
+
"kinds": {
|
| 19 |
+
"scd": 2109,
|
| 20 |
+
"schelp": 3536,
|
| 21 |
+
"classlib": 3646,
|
| 22 |
+
"sccode": 1040,
|
| 23 |
+
"forum": 9416
|
| 24 |
+
},
|
| 25 |
+
"skipped": {
|
| 26 |
+
"too_short": 362,
|
| 27 |
+
"empty": 1
|
| 28 |
+
}
|
| 29 |
+
},
|
| 30 |
+
"config": {
|
| 31 |
+
"pretrain_seq": 512,
|
| 32 |
+
"overlap": 32,
|
| 33 |
+
"sft_seq": 512,
|
| 34 |
+
"val_fraction": 0.02,
|
| 35 |
+
"seed": 42,
|
| 36 |
+
"tokenizer": "model"
|
| 37 |
+
},
|
| 38 |
+
"outputs": [
|
| 39 |
+
{
|
| 40 |
+
"path": "local.jsonl",
|
| 41 |
+
"lines": 16,
|
| 42 |
+
"sha256": "969b7a3c55dfd69bfd7732ffe81bab3dec7be0c495575209ad82843a54e6d351"
|
| 43 |
+
},
|
| 44 |
+
{
|
| 45 |
+
"path": "quarks.jsonl",
|
| 46 |
+
"lines": 7014,
|
| 47 |
+
"sha256": "84eadabc580a95be009acd1f193707bdfc0b43263b894b36663716a7ad6c28bd"
|
| 48 |
+
},
|
| 49 |
+
{
|
| 50 |
+
"path": "sc3-plugins.jsonl",
|
| 51 |
+
"lines": 527,
|
| 52 |
+
"sha256": "df173db90175e029d84fc1bec57a7fbd7b7773507aab4600ccee6584bfa020a2"
|
| 53 |
+
},
|
| 54 |
+
{
|
| 55 |
+
"path": "sccode.jsonl",
|
| 56 |
+
"lines": 1040,
|
| 57 |
+
"sha256": "2f39fafe1822f3518c4fd0ca50863ece31bd58941261ccd042b2aef70b652fe8"
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"path": "scsynth.jsonl",
|
| 61 |
+
"lines": 9416,
|
| 62 |
+
"sha256": "78be726e9e9cb1b813793576301e5e8d53637b8fc3e0d2e068adb2611d05bf21"
|
| 63 |
+
},
|
| 64 |
+
{
|
| 65 |
+
"path": "supercollider.jsonl",
|
| 66 |
+
"lines": 1734,
|
| 67 |
+
"sha256": "7043e0cd4bbfee3cf027ab55b3da3a96d6b5887acb316c1e8c42d84d334e3e58"
|
| 68 |
+
}
|
| 69 |
+
]
|
| 70 |
+
}
|
| 71 |
+
},
|
| 72 |
+
"20-clean": {
|
| 73 |
+
"clean": {
|
| 74 |
+
"finished_at": "2026-11-21T10:20:18+00:00",
|
| 75 |
+
"counts": {
|
| 76 |
+
"input": 19747,
|
| 77 |
+
"boilerplate_groups": 9,
|
| 78 |
+
"kept": 19519,
|
| 79 |
+
"sanitized_markup": 3133,
|
| 80 |
+
"separator_inserts": 15514,
|
| 81 |
+
"separator_docs": 2770,
|
| 82 |
+
"drop_low_alpha": 76,
|
| 83 |
+
"drop_too_short": 11,
|
| 84 |
+
"drop_near_dup_cross_source": 12,
|
| 85 |
+
"drop_exact_dup": 3,
|
| 86 |
+
"drop_boilerplate": 126,
|
| 87 |
+
"kept_local": 16,
|
| 88 |
+
"kept_quarks": 6957,
|
| 89 |
+
"kept_sc3-plugins": 517,
|
| 90 |
+
"kept_sccode": 1028,
|
| 91 |
+
"kept_scsynth": 9275,
|
| 92 |
+
"kept_supercollider": 1726
|
| 93 |
+
},
|
| 94 |
+
"config": {
|
| 95 |
+
"pretrain_seq": 512,
|
| 96 |
+
"overlap": 32,
|
| 97 |
+
"sft_seq": 512,
|
| 98 |
+
"val_fraction": 0.02,
|
| 99 |
+
"seed": 42,
|
| 100 |
+
"tokenizer": "model"
|
| 101 |
+
},
|
| 102 |
+
"outputs": [
|
| 103 |
+
{
|
| 104 |
+
"path": "local.jsonl",
|
| 105 |
+
"lines": 16,
|
| 106 |
+
"sha256": "122277f8aef23a0814a2a54fc2d767ae1dc098f55634d6611c9f051eeba6c760"
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
"path": "quarks.jsonl",
|
| 110 |
+
"lines": 6957,
|
| 111 |
+
"sha256": "337ed971660424d015960d99f7a36f56edab949af784a41f40a7a2f6876215d0"
|
| 112 |
+
},
|
| 113 |
+
{
|
| 114 |
+
"path": "sc3-plugins.jsonl",
|
| 115 |
+
"lines": 517,
|
| 116 |
+
"sha256": "8e6a7ff332ff32efe85cf18b7f5bebaac1a36941491d0c20917ab1ad7fe29a90"
|
| 117 |
+
},
|
| 118 |
+
{
|
| 119 |
+
"path": "sccode.jsonl",
|
| 120 |
+
"lines": 1028,
|
| 121 |
+
"sha256": "d7a558d26fb3a55109885274bf658edc678b580bcd000f7d28fef7ebeab6678f"
|
| 122 |
+
},
|
| 123 |
+
{
|
| 124 |
+
"path": "scsynth.jsonl",
|
| 125 |
+
"lines": 9275,
|
| 126 |
+
"sha256": "69c9f0817277cad198aeb490bb2062de1639c13977714839cf8de8e4c59b4614"
|
| 127 |
+
},
|
| 128 |
+
{
|
| 129 |
+
"path": "supercollider.jsonl",
|
| 130 |
+
"lines": 1726,
|
| 131 |
+
"sha256": "04ee89140c486dd5146063cf4a136f14fc9696725a395383499f0bc1731c1064"
|
| 132 |
+
}
|
| 133 |
+
]
|
| 134 |
+
}
|
| 135 |
+
},
|
| 136 |
+
"30-corpus": {
|
| 137 |
+
"pack": {
|
| 138 |
+
"finished_at": "2026-11-21T10:25:33+00:00",
|
| 139 |
+
"counts": {
|
| 140 |
+
"chunks": 60414,
|
| 141 |
+
"tokens": 25775825,
|
| 142 |
+
"max_tokens": 510,
|
| 143 |
+
"val_chunks": 1235
|
| 144 |
+
},
|
| 145 |
+
"config": {
|
| 146 |
+
"pretrain_seq": 512,
|
| 147 |
+
"overlap": 32,
|
| 148 |
+
"sft_seq": 512,
|
| 149 |
+
"val_fraction": 0.02,
|
| 150 |
+
"seed": 42,
|
| 151 |
+
"tokenizer": "model"
|
| 152 |
+
},
|
| 153 |
+
"outputs": [
|
| 154 |
+
{
|
| 155 |
+
"path": "pretrain_train.jsonl",
|
| 156 |
+
"lines": 59179,
|
| 157 |
+
"sha256": "8454ed97da318f4de2c331bd195827b92e8c25ae5848211d89063513b7d50e0d"
|
| 158 |
+
},
|
| 159 |
+
{
|
| 160 |
+
"path": "pretrain_val.jsonl",
|
| 161 |
+
"lines": 1235,
|
| 162 |
+
"sha256": "01c2d5fc0542d3a0d015e8d4403f612edfcee9cf0050dad195f009a7882f9928"
|
| 163 |
+
}
|
| 164 |
+
]
|
| 165 |
+
}
|
| 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,
|
| 187 |
+
"pool": 7944,
|
| 188 |
+
"sampled": 1320,
|
| 189 |
+
"repeats": 0.17,
|
| 190 |
+
"wanted": 1320,
|
| 191 |
+
"capped": 1320
|
| 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,
|
| 213 |
+
"pool": 3804,
|
| 214 |
+
"sampled": 540,
|
| 215 |
+
"repeats": 0.14,
|
| 216 |
+
"wanted": 540,
|
| 217 |
+
"capped": 540
|
| 218 |
+
},
|
| 219 |
+
"teacher": {
|
| 220 |
+
"share": 0.08,
|
| 221 |
+
"pool": 91,
|
| 222 |
+
"sampled": 480,
|
| 223 |
+
"repeats": 5.27,
|
| 224 |
+
"wanted": 480,
|
| 225 |
+
"capped": 480
|
| 226 |
+
},
|
| 227 |
+
"D3": {
|
| 228 |
+
"share": 0.07,
|
| 229 |
+
"pool": 118,
|
| 230 |
+
"sampled": 420,
|
| 231 |
+
"repeats": 3.56,
|
| 232 |
+
"wanted": 420,
|
| 233 |
+
"capped": 420
|
| 234 |
+
},
|
| 235 |
+
"D": {
|
| 236 |
+
"share": 0.05,
|
| 237 |
+
"pool": 225,
|
| 238 |
+
"sampled": 300,
|
| 239 |
+
"repeats": 1.33,
|
| 240 |
+
"wanted": 300,
|
| 241 |
+
"capped": 300
|
| 242 |
+
},
|
| 243 |
+
"Q": {
|
| 244 |
+
"share": 0.02,
|
| 245 |
+
"pool": 20,
|
| 246 |
+
"sampled": 120,
|
| 247 |
+
"repeats": 6.0,
|
| 248 |
+
"wanted": 120,
|
| 249 |
+
"capped": 120
|
| 250 |
+
},
|
| 251 |
+
"G": {
|
| 252 |
+
"share": 0.03,
|
| 253 |
+
"pool": 74,
|
| 254 |
+
"sampled": 180,
|
| 255 |
+
"repeats": 2.43,
|
| 256 |
+
"wanted": 180,
|
| 257 |
+
"capped": 180
|
| 258 |
+
},
|
| 259 |
+
"I": {
|
| 260 |
+
"share": 0.03,
|
| 261 |
+
"pool": 14,
|
| 262 |
+
"sampled": 84,
|
| 263 |
+
"repeats": 6.0,
|
| 264 |
+
"wanted": 180,
|
| 265 |
+
"capped": 84
|
| 266 |
+
}
|
| 267 |
+
}
|
| 268 |
+
},
|
| 269 |
+
"config": {
|
| 270 |
+
"pretrain_seq": 512,
|
| 271 |
+
"overlap": 32,
|
| 272 |
+
"sft_seq": 512,
|
| 273 |
+
"val_fraction": 0.02,
|
| 274 |
+
"seed": 42,
|
| 275 |
+
"tokenizer": "model"
|
| 276 |
+
},
|
| 277 |
+
"outputs": [
|
| 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,
|
| 325 |
+
"overlap": 32,
|
| 326 |
+
"sft_seq": 512,
|
| 327 |
+
"val_fraction": 0.02,
|
| 328 |
+
"seed": 42,
|
| 329 |
+
"tokenizer": "model"
|
| 330 |
+
},
|
| 331 |
+
"outputs": [
|
| 332 |
+
{
|
| 333 |
+
"path": "sft_pool.jsonl",
|
| 334 |
+
"lines": 14398,
|
| 335 |
+
"sha256": "910fe8bdcd7a8de33ba9df18e9272fee08f0d1d92c3a52ae8555caac7200009c"
|
| 336 |
+
}
|
| 337 |
+
]
|
| 338 |
+
}
|
| 339 |
+
}
|
| 340 |
+
},
|
| 341 |
+
"sources": [
|
| 342 |
+
{
|
| 343 |
+
"source": "local",
|
| 344 |
+
"snapshot": "20261121",
|
| 345 |
+
"kind": "files",
|
| 346 |
+
"licence": "own work (no third-party licence)",
|
| 347 |
+
"note": "Hand-written SuperCollider sessions and examples.",
|
| 348 |
+
"urls": [
|
| 349 |
+
"<local path removed>"
|
| 350 |
+
],
|
| 351 |
+
"counts": {
|
| 352 |
+
"files": 16,
|
| 353 |
+
"chars": 32570
|
| 354 |
+
},
|
| 355 |
+
"fetched_at": "2026-11-21T10:05:34Z"
|
| 356 |
+
},
|
| 357 |
+
{
|
| 358 |
+
"source": "quarks",
|
| 359 |
+
"snapshot": "20261121",
|
| 360 |
+
"kind": "files",
|
| 361 |
+
"licence": "per-repository; see each repo's LICENSE (recorded per file)",
|
| 362 |
+
"note": "supercollider-quarks/quarks directory.txt at fetch time; default branch of each repo. Licence varies per repository and is recorded in meta.quark_repo.",
|
| 363 |
+
"urls": [
|
| 364 |
+
"https://raw.githubusercontent.com/supercollider-quarks/quarks/master/directory.txt"
|
| 365 |
+
],
|
| 366 |
+
"counts": {
|
| 367 |
+
"repos_listed": 321,
|
| 368 |
+
"repos_ok": 317,
|
| 369 |
+
"repos_failed": 4,
|
| 370 |
+
"files": 7037,
|
| 371 |
+
"chars": 30307492
|
| 372 |
+
},
|
| 373 |
+
"fetched_at": "2026-11-21T10:05:32Z"
|
| 374 |
+
},
|
| 375 |
+
{
|
| 376 |
+
"source": "sc3-plugins",
|
| 377 |
+
"snapshot": "20261121",
|
| 378 |
+
"kind": "files",
|
| 379 |
+
"licence": "GPL-3.0",
|
| 380 |
+
"note": "default branch archive; .sc/.schelp/.scd only.",
|
| 381 |
+
"urls": [
|
| 382 |
+
"https://github.com/supercollider/sc3-plugins"
|
| 383 |
+
],
|
| 384 |
+
"counts": {
|
| 385 |
+
"files": 530,
|
| 386 |
+
"chars": 1021187,
|
| 387 |
+
"skipped": 11
|
| 388 |
+
},
|
| 389 |
+
"fetched_at": "2026-11-21T10:05:34Z"
|
| 390 |
+
},
|
| 391 |
+
{
|
| 392 |
+
"source": "sccode",
|
| 393 |
+
"snapshot": "20261121",
|
| 394 |
+
"kind": "jsonl",
|
| 395 |
+
"licence": "none stated on sccode.org - treat as all-rights-reserved",
|
| 396 |
+
"note": "Public dump of sccode.org snippets. Redistribution is NOT granted by the site; keep derived artifacts private unless the author grants a licence.",
|
| 397 |
+
"urls": [
|
| 398 |
+
"https://sccode.org/api/dump"
|
| 399 |
+
],
|
| 400 |
+
"counts": {
|
| 401 |
+
"snippets": 1053,
|
| 402 |
+
"code_chars": 3606056,
|
| 403 |
+
"raw_bytes": 1113949
|
| 404 |
+
},
|
| 405 |
+
"fetched_at": "2026-11-21T10:04:07Z"
|
| 406 |
+
},
|
| 407 |
+
{
|
| 408 |
+
"source": "scsynth",
|
| 409 |
+
"snapshot": "20261121",
|
| 410 |
+
"kind": "jsonl",
|
| 411 |
+
"licence": "Discourse site terms; posts are their authors' (CC BY-SA 4.0 by default on this site)",
|
| 412 |
+
"note": "Top 700 topics by all-time score, then newest; cooked HTML -> text with code fenced.",
|
| 413 |
+
"urls": [
|
| 414 |
+
"https://scsynth.org/top.json",
|
| 415 |
+
"https://scsynth.org/latest.json"
|
| 416 |
+
],
|
| 417 |
+
"counts": {
|
| 418 |
+
"topics": 700,
|
| 419 |
+
"posts": 9715,
|
| 420 |
+
"chars": 9486260,
|
| 421 |
+
"failures": 0
|
| 422 |
+
},
|
| 423 |
+
"fetched_at": "2026-11-21T10:13:42Z"
|
| 424 |
+
},
|
| 425 |
+
{
|
| 426 |
+
"source": "supercollider",
|
| 427 |
+
"snapshot": "a1cbc78df43dfb48641fe9f290c0477e854b4459",
|
| 428 |
+
"kind": "files",
|
| 429 |
+
"licence": "GPL-3.0",
|
| 430 |
+
"note": null,
|
| 431 |
+
"urls": null,
|
| 432 |
+
"counts": {
|
| 433 |
+
"files": 1762,
|
| 434 |
+
"bytes": 8192482
|
| 435 |
+
},
|
| 436 |
+
"fetched_at": "2026-11-20T20:27:27Z"
|
| 437 |
+
}
|
| 438 |
+
],
|
| 439 |
+
"pack_stats": {
|
| 440 |
+
"train": {
|
| 441 |
+
"docs": 19129,
|
| 442 |
+
"split_docs": 9310,
|
| 443 |
+
"chunks": 59179,
|
| 444 |
+
"tokens": 25247915,
|
| 445 |
+
"max_tokens": 510,
|
| 446 |
+
"trimmed": 0,
|
| 447 |
+
"dropped_short": 163,
|
| 448 |
+
"dropped_duplicate": 25
|
| 449 |
+
},
|
| 450 |
+
"val": {
|
| 451 |
+
"docs": 390,
|
| 452 |
+
"split_docs": 200,
|
| 453 |
+
"chunks": 1235,
|
| 454 |
+
"tokens": 527910,
|
| 455 |
+
"max_tokens": 510,
|
| 456 |
+
"trimmed": 0,
|
| 457 |
+
"dropped_short": 3,
|
| 458 |
+
"dropped_duplicate": 1
|
| 459 |
+
},
|
| 460 |
+
"over_length_train": 0,
|
| 461 |
+
"over_length_val": 0,
|
| 462 |
+
"seq_len": 512,
|
| 463 |
+
"overlap": 32
|
| 464 |
+
},
|
| 465 |
+
"clean_stats": {
|
| 466 |
+
"input": 19747,
|
| 467 |
+
"boilerplate_groups": 9,
|
| 468 |
+
"kept": 19519,
|
| 469 |
+
"sanitized_markup": 3133,
|
| 470 |
+
"separator_inserts": 15514,
|
| 471 |
+
"separator_docs": 2770,
|
| 472 |
+
"drop_low_alpha": 76,
|
| 473 |
+
"drop_too_short": 11,
|
| 474 |
+
"drop_near_dup_cross_source": 12,
|
| 475 |
+
"drop_exact_dup": 3,
|
| 476 |
+
"drop_boilerplate": 126,
|
| 477 |
+
"kept_local": 16,
|
| 478 |
+
"kept_quarks": 6957,
|
| 479 |
+
"kept_sc3-plugins": 517,
|
| 480 |
+
"kept_sccode": 1028,
|
| 481 |
+
"kept_scsynth": 9275,
|
| 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,
|
| 532 |
+
"pool": 7944,
|
| 533 |
+
"sampled": 1320,
|
| 534 |
+
"repeats": 0.17,
|
| 535 |
+
"wanted": 1320,
|
| 536 |
+
"capped": 1320
|
| 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,
|
| 558 |
+
"pool": 3804,
|
| 559 |
+
"sampled": 540,
|
| 560 |
+
"repeats": 0.14,
|
| 561 |
+
"wanted": 540,
|
| 562 |
+
"capped": 540
|
| 563 |
+
},
|
| 564 |
+
"teacher": {
|
| 565 |
+
"share": 0.08,
|
| 566 |
+
"pool": 91,
|
| 567 |
+
"sampled": 480,
|
| 568 |
+
"repeats": 5.27,
|
| 569 |
+
"wanted": 480,
|
| 570 |
+
"capped": 480
|
| 571 |
+
},
|
| 572 |
+
"D3": {
|
| 573 |
+
"share": 0.07,
|
| 574 |
+
"pool": 118,
|
| 575 |
+
"sampled": 420,
|
| 576 |
+
"repeats": 3.56,
|
| 577 |
+
"wanted": 420,
|
| 578 |
+
"capped": 420
|
| 579 |
+
},
|
| 580 |
+
"D": {
|
| 581 |
+
"share": 0.05,
|
| 582 |
+
"pool": 225,
|
| 583 |
+
"sampled": 300,
|
| 584 |
+
"repeats": 1.33,
|
| 585 |
+
"wanted": 300,
|
| 586 |
+
"capped": 300
|
| 587 |
+
},
|
| 588 |
+
"Q": {
|
| 589 |
+
"share": 0.02,
|
| 590 |
+
"pool": 20,
|
| 591 |
+
"sampled": 120,
|
| 592 |
+
"repeats": 6.0,
|
| 593 |
+
"wanted": 120,
|
| 594 |
+
"capped": 120
|
| 595 |
+
},
|
| 596 |
+
"G": {
|
| 597 |
+
"share": 0.03,
|
| 598 |
+
"pool": 74,
|
| 599 |
+
"sampled": 180,
|
| 600 |
+
"repeats": 2.43,
|
| 601 |
+
"wanted": 180,
|
| 602 |
+
"capped": 180
|
| 603 |
+
},
|
| 604 |
+
"I": {
|
| 605 |
+
"share": 0.03,
|
| 606 |
+
"pool": 14,
|
| 607 |
+
"sampled": 84,
|
| 608 |
+
"repeats": 6.0,
|
| 609 |
+
"wanted": 180,
|
| 610 |
+
"capped": 84
|
| 611 |
+
}
|
| 612 |
+
}
|
| 613 |
+
}
|
| 614 |
+
}
|
verify_report.md
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# verify report
|
| 2 |
+
|
| 3 |
+
## pretrain_train: **pass**
|
| 4 |
+
|
| 5 |
+
```json
|
| 6 |
+
{
|
| 7 |
+
"file": "pretrain_train.jsonl",
|
| 8 |
+
"lines": 59179,
|
| 9 |
+
"over_length": 0,
|
| 10 |
+
"over_examples": [],
|
| 11 |
+
"under_40_tokens": 0,
|
| 12 |
+
"exact_duplicates": 0,
|
| 13 |
+
"markup_leaks": 0
|
| 14 |
+
}
|
| 15 |
+
```
|
| 16 |
+
|
| 17 |
+
## pretrain_val: **pass**
|
| 18 |
+
|
| 19 |
+
```json
|
| 20 |
+
{
|
| 21 |
+
"file": "pretrain_val.jsonl",
|
| 22 |
+
"lines": 1235,
|
| 23 |
+
"over_length": 0,
|
| 24 |
+
"over_examples": [],
|
| 25 |
+
"under_40_tokens": 0,
|
| 26 |
+
"exact_duplicates": 0,
|
| 27 |
+
"markup_leaks": 0
|
| 28 |
+
}
|
| 29 |
+
```
|
| 30 |
+
|
| 31 |
+
## pretrain_split: **pass**
|
| 32 |
+
|
| 33 |
+
```json
|
| 34 |
+
{
|
| 35 |
+
"train": 59179,
|
| 36 |
+
"val": 1235,
|
| 37 |
+
"overlap": 0
|
| 38 |
+
}
|
| 39 |
+
```
|
| 40 |
+
|
| 41 |
+
## sft_train: **pass**
|
| 42 |
+
|
| 43 |
+
```json
|
| 44 |
+
{
|
| 45 |
+
"file": "sft_train.jsonl",
|
| 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 |
+
|
| 56 |
+
## sft_val: **pass**
|
| 57 |
+
|
| 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
|
| 68 |
+
}
|
| 69 |
+
```
|
| 70 |
+
|
| 71 |
+
## sft_split: **pass**
|
| 72 |
+
|
| 73 |
+
```json
|
| 74 |
+
{
|
| 75 |
+
"train": 3847,
|
| 76 |
+
"val": 215,
|
| 77 |
+
"overlap": 0
|
| 78 |
+
}
|
| 79 |
+
```
|
| 80 |
+
|
| 81 |
+
## sft_known_classes: **pass**
|
| 82 |
+
|
| 83 |
+
```json
|
| 84 |
+
{
|
| 85 |
+
"ugen_calls": 22216,
|
| 86 |
+
"unknown": 0,
|
| 87 |
+
"worst": []
|
| 88 |
+
}
|
| 89 |
+
```
|