File size: 35,403 Bytes
3a3e909
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
{"conversations": [{"role": "user", "content": "In a paragraph, what is the job of the SuperCollider server?"}, {"role": "assistant", "content": "The server, scsynth, is the process that actually makes sound. It owns the audio device, the node tree, buses and buffers, and it runs the compiled UGen graphs in real time at control and audio rate. Everything that is timing, notation or code lives on the language side; the server only knows nodes and their controls."}], "family": "PR", "prompt_tokens": 37, "answer_tokens": 103, "source_id": "pr:000:r0"}
{"conversations": [{"role": "user", "content": "What part of SuperCollider is hardest for a small language model, in your view?"}, {"role": "assistant", "content": "Keeping a patch coherent past the first two lines. The syntax is learnable from the corpus; knowing that a name must be declared before it is read, that a fenced block has to close, and that an envelope needs a doneAction to free its synth is what breaks - and none of it is visible to a compiler when the name is an environment variable."}], "family": "PR", "prompt_tokens": 42, "answer_tokens": 105, "source_id": "pr:001:r0"}
{"conversations": [{"role": "user", "content": "Explain the split between sclang and scsynth without writing any code."}, {"role": "assistant", "content": "sclang is the client: it parses your code, runs the clock and the Patterns, and sends messages. scsynth is the server: it receives those messages and does the DSP. They talk over OSC, so a language-side crash does not necessarily stop a sound that is already running."}], "family": "PR", "prompt_tokens": 38, "answer_tokens": 88, "source_id": "pr:002:r0"}
{"conversations": [{"role": "user", "content": "Why can a SuperCollider patch compile, run, and still make no sound?"}, {"role": "assistant", "content": "Because the compiler checks syntax, not signal. An envelope with a zero level, an amplitude multiplied twice, a UGen graph that is never written to an output, or a synth freed on the same frame it starts all parse cleanly and are silent."}], "family": "PR", "prompt_tokens": 40, "answer_tokens": 81, "source_id": "pr:003:r0"}
{"conversations": [{"role": "user", "content": "What is a bus, in plain words?"}, {"role": "assistant", "content": "A bus is a numbered channel that audio or control values travel on. Audio buses carry signals between nodes; control buses carry single values that many synths can read and one can write. The hardware output is just the first few audio buses."}], "family": "PR", "prompt_tokens": 27, "answer_tokens": 72, "source_id": "pr:004:r0"}
{"conversations": [{"role": "user", "content": "What is the difference between audio rate and control rate?"}, {"role": "assistant", "content": "Audio rate is sampled once per sample - 44,100 times a second by default - and is what you need for sound. Control rate is one value per block, 64 samples, and is enough for parameters that change slowly: cutoffs, amplitudes, LFO shapes that are read rather than heard."}], "family": "PR", "prompt_tokens": 31, "answer_tokens": 92, "source_id": "pr:005:r0"}
{"conversations": [{"role": "user", "content": "Why would a Pbind produce no notes?"}, {"role": "assistant", "content": "Usually because nothing it names exists: an instrument symbol with no matching SynthDef, a scale or degree that resolves outside the range, or a clock that is not running. A Pbind is a stream of events; if the events name a synth that was never added, they are silently dropped."}], "family": "PR", "prompt_tokens": 29, "answer_tokens": 92, "source_id": "pr:006:r0"}
{"conversations": [{"role": "user", "content": "What does adding a SynthDef to the server actually do?"}, {"role": "assistant", "content": "It compiles the UGen graph into a server-side definition, once, and stores it under a name. Instances are then cheap: a Synth is a node that points at that definition and supplies control values. That is why the definition has to be sent before anything can play it."}], "family": "PR", "prompt_tokens": 35, "answer_tokens": 83, "source_id": "pr:007:r0"}
{"conversations": [{"role": "user", "content": "What is a UGen graph?"}, {"role": "assistant", "content": "A directed graph of unit generators: sources, filters and controls, wired by their inputs, ending at an output. The server evaluates it in a fixed order every block, which is why a graph cannot have feedback without an explicit delay, and why the order of your code does not matter inside a SynthDef."}], "family": "PR", "prompt_tokens": 26, "answer_tokens": 95, "source_id": "pr:008:r0"}
{"conversations": [{"role": "user", "content": "Explain what an envelope does, in one or two sentences."}, {"role": "assistant", "content": "An envelope is a shaped control signal: it moves from one value to another over time, usually from zero up and back to zero. Multiplying a sound by an envelope is what makes it start and stop instead of beginning and ending abruptly."}], "family": "PR", "prompt_tokens": 34, "answer_tokens": 73, "source_id": "pr:009:r0"}
{"conversations": [{"role": "user", "content": "How is a running Synth different from the definition it came from?"}, {"role": "assistant", "content": "The definition is the graph, compiled once and stored by name; the running Synth is one instance of it with its own control values and node id. You can have a hundred instances of one definition, and freeing one leaves the definition in place."}], "family": "PR", "prompt_tokens": 36, "answer_tokens": 71, "source_id": "pr:010:r0"}
{"conversations": [{"role": "user", "content": "What does waiting for the server to boot protect you from?"}, {"role": "assistant", "content": "From sending a definition, a buffer or a synth to a server that is not listening yet. Boot is asynchronous; if you allocate a buffer before the server answers, the allocation is lost and the patch fails later, in a place that looks unrelated."}], "family": "PR", "prompt_tokens": 34, "answer_tokens": 84, "source_id": "pr:011:r0"}
{"conversations": [{"role": "user", "content": "What is a node, and why does the order of nodes matter?"}, {"role": "assistant", "content": "A node is anything the server runs: a Synth, a group, a buffer player. They execute in tree order, so a node that reads a bus must run after the node that writes it, and a group is how you move a whole set of nodes around at once."}], "family": "PR", "prompt_tokens": 36, "answer_tokens": 75, "source_id": "pr:012:r0"}
{"conversations": [{"role": "user", "content": "Why does a granular synth need a buffer?"}, {"role": "assistant", "content": "Because granular synthesis is playback of many short windows of an existing signal. The buffer is the sound being granulated - read from disk into memory - and the grain UGen only decides where in it to start, how long to read and how to pan each window."}], "family": "PR", "prompt_tokens": 33, "answer_tokens": 79, "source_id": "pr:013:r0"}
{"conversations": [{"role": "user", "content": "What is multichannel expansion?"}, {"role": "assistant", "content": "When an argument that expects one value receives an array, SuperCollider builds one copy of the UGen per element. It is not a special stereo object: it is the same rule applied recursively, which is why an array of frequencies produces an array of oscillators, and why the output is spread across channels."}], "family": "PR", "prompt_tokens": 27, "answer_tokens": 94, "source_id": "pr:014:r0"}
{"conversations": [{"role": "user", "content": "What does an Ndef give you that a SynthDef does not?"}, {"role": "assistant", "content": "Live replacement. An Ndef is a named proxy whose graph you can swap while it plays, keeping its routing and its place in the node tree. A SynthDef is compiled once and instantiated; changing it means adding a new definition and starting new synths."}], "family": "PR", "prompt_tokens": 34, "answer_tokens": 82, "source_id": "pr:015:r0"}
{"conversations": [{"role": "user", "content": "How does a reverb work in SuperCollider, conceptually?"}, {"role": "assistant", "content": "It is a network of delays with feedback and filtering: early reflections, then a dense tail whose decay time is set by how much signal each pass feeds back. FreeVerb and GVerb are built from comb and allpass delays, which is why their arguments are room size, damping and spread rather than anything musical."}], "family": "PR", "prompt_tokens": 35, "answer_tokens": 96, "source_id": "pr:016:r0"}
{"conversations": [{"role": "user", "content": "What is a Pattern, and what is it not?"}, {"role": "assistant", "content": "A Pattern is a recipe for a stream of values: it describes events over time rather than playing them. It is not a synth and it holds no audio; it is read by a clock, and the clock is what turns its output into notes on the server."}], "family": "PR", "prompt_tokens": 30, "answer_tokens": 74, "source_id": "pr:017:r0"}
{"conversations": [{"role": "user", "content": "What is the difference between a sequence that repeats and one that shuffles?"}, {"role": "assistant", "content": "A repeating sequence plays the same values in the same order every time; a shuffled one draws from the same set without immediate repetition. In SuperCollider those are different Patterns over the same list, and the difference is audible the moment the loop comes round."}], "family": "PR", "prompt_tokens": 36, "answer_tokens": 76, "source_id": "pr:018:r0"}
{"conversations": [{"role": "user", "content": "Why does a synth free itself immediately?"}, {"role": "assistant", "content": "Because something in it finished and asked to be freed: an envelope with doneAction set to free the node reached its end, or the graph's output was never connected and the server culled it. A patch that sounds for a moment and stops is usually an envelope measured in milliseconds."}], "family": "PR", "prompt_tokens": 31, "answer_tokens": 93, "source_id": "pr:019:r0"}
{"conversations": [{"role": "user", "content": "What is doneAction for?"}, {"role": "assistant", "content": "It tells the server what to do when the UGen that carries it finishes - usually free the node, which stops its CPU cost and releases its bus and buffer references. Without it a one-shot envelope leaves a silent synth running forever."}], "family": "PR", "prompt_tokens": 25, "answer_tokens": 76, "source_id": "pr:020:r0"}
{"conversations": [{"role": "user", "content": "Should I reach for an Ndef or a SynthDef?"}, {"role": "assistant", "content": "A SynthDef when the instrument is finished and you want many cheap instances of it; an Ndef while you are still changing the graph, or when you want one evolving voice you can edit without stopping. Most live-coding setups use both, and the Ndef usually plays the SynthDefs."}], "family": "PR", "prompt_tokens": 35, "answer_tokens": 88, "source_id": "pr:021:r0"}
{"conversations": [{"role": "user", "content": "Why is the language/server split worth knowing about?"}, {"role": "assistant", "content": "Because it explains most of the confusing failures: code that runs without error but does nothing is usually a message that reached a server with no node to receive it, and a sound that keeps playing after an error is a server that never heard about the error."}], "family": "PR", "prompt_tokens": 33, "answer_tokens": 76, "source_id": "pr:022:r0"}
{"conversations": [{"role": "user", "content": "What makes a patch sound like a musical instrument rather than a test tone?"}, {"role": "assistant", "content": "An envelope with a shape, a small amount of movement in the parameters, and a filter that responds to level. A bare oscillator is a test tone because nothing about it changes over the life of the note; the ear reads change as intention."}], "family": "PR", "prompt_tokens": 40, "answer_tokens": 69, "source_id": "pr:023:r0"}
{"conversations": [{"role": "user", "content": "In a paragraph, what is the job of the SuperCollider server?"}, {"role": "assistant", "content": "The server, scsynth, is the process that actually makes sound. It owns the audio device, the node tree, buses and buffers, and it runs the compiled UGen graphs in real time at control and audio rate. Everything that is timing, notation or code lives on the language side; the server only knows nodes and their controls."}], "family": "PR", "prompt_tokens": 37, "answer_tokens": 103, "source_id": "pr:000:r1"}
{"conversations": [{"role": "user", "content": "What part of SuperCollider is hardest for a small language model, in your view?"}, {"role": "assistant", "content": "Keeping a patch coherent past the first two lines. The syntax is learnable from the corpus; knowing that a name must be declared before it is read, that a fenced block has to close, and that an envelope needs a doneAction to free its synth is what breaks - and none of it is visible to a compiler when the name is an environment variable."}], "family": "PR", "prompt_tokens": 42, "answer_tokens": 105, "source_id": "pr:001:r1"}
{"conversations": [{"role": "user", "content": "Explain the split between sclang and scsynth without writing any code."}, {"role": "assistant", "content": "sclang is the client: it parses your code, runs the clock and the Patterns, and sends messages. scsynth is the server: it receives those messages and does the DSP. They talk over OSC, so a language-side crash does not necessarily stop a sound that is already running."}], "family": "PR", "prompt_tokens": 38, "answer_tokens": 88, "source_id": "pr:002:r1"}
{"conversations": [{"role": "user", "content": "Why can a SuperCollider patch compile, run, and still make no sound?"}, {"role": "assistant", "content": "Because the compiler checks syntax, not signal. An envelope with a zero level, an amplitude multiplied twice, a UGen graph that is never written to an output, or a synth freed on the same frame it starts all parse cleanly and are silent."}], "family": "PR", "prompt_tokens": 40, "answer_tokens": 81, "source_id": "pr:003:r1"}
{"conversations": [{"role": "user", "content": "What is a bus, in plain words?"}, {"role": "assistant", "content": "A bus is a numbered channel that audio or control values travel on. Audio buses carry signals between nodes; control buses carry single values that many synths can read and one can write. The hardware output is just the first few audio buses."}], "family": "PR", "prompt_tokens": 27, "answer_tokens": 72, "source_id": "pr:004:r1"}
{"conversations": [{"role": "user", "content": "What is the difference between audio rate and control rate?"}, {"role": "assistant", "content": "Audio rate is sampled once per sample - 44,100 times a second by default - and is what you need for sound. Control rate is one value per block, 64 samples, and is enough for parameters that change slowly: cutoffs, amplitudes, LFO shapes that are read rather than heard."}], "family": "PR", "prompt_tokens": 31, "answer_tokens": 92, "source_id": "pr:005:r1"}
{"conversations": [{"role": "user", "content": "Why would a Pbind produce no notes?"}, {"role": "assistant", "content": "Usually because nothing it names exists: an instrument symbol with no matching SynthDef, a scale or degree that resolves outside the range, or a clock that is not running. A Pbind is a stream of events; if the events name a synth that was never added, they are silently dropped."}], "family": "PR", "prompt_tokens": 29, "answer_tokens": 92, "source_id": "pr:006:r1"}
{"conversations": [{"role": "user", "content": "What does adding a SynthDef to the server actually do?"}, {"role": "assistant", "content": "It compiles the UGen graph into a server-side definition, once, and stores it under a name. Instances are then cheap: a Synth is a node that points at that definition and supplies control values. That is why the definition has to be sent before anything can play it."}], "family": "PR", "prompt_tokens": 35, "answer_tokens": 83, "source_id": "pr:007:r1"}
{"conversations": [{"role": "user", "content": "What is a UGen graph?"}, {"role": "assistant", "content": "A directed graph of unit generators: sources, filters and controls, wired by their inputs, ending at an output. The server evaluates it in a fixed order every block, which is why a graph cannot have feedback without an explicit delay, and why the order of your code does not matter inside a SynthDef."}], "family": "PR", "prompt_tokens": 26, "answer_tokens": 95, "source_id": "pr:008:r1"}
{"conversations": [{"role": "user", "content": "Explain what an envelope does, in one or two sentences."}, {"role": "assistant", "content": "An envelope is a shaped control signal: it moves from one value to another over time, usually from zero up and back to zero. Multiplying a sound by an envelope is what makes it start and stop instead of beginning and ending abruptly."}], "family": "PR", "prompt_tokens": 34, "answer_tokens": 73, "source_id": "pr:009:r1"}
{"conversations": [{"role": "user", "content": "How is a running Synth different from the definition it came from?"}, {"role": "assistant", "content": "The definition is the graph, compiled once and stored by name; the running Synth is one instance of it with its own control values and node id. You can have a hundred instances of one definition, and freeing one leaves the definition in place."}], "family": "PR", "prompt_tokens": 36, "answer_tokens": 71, "source_id": "pr:010:r1"}
{"conversations": [{"role": "user", "content": "What does waiting for the server to boot protect you from?"}, {"role": "assistant", "content": "From sending a definition, a buffer or a synth to a server that is not listening yet. Boot is asynchronous; if you allocate a buffer before the server answers, the allocation is lost and the patch fails later, in a place that looks unrelated."}], "family": "PR", "prompt_tokens": 34, "answer_tokens": 84, "source_id": "pr:011:r1"}
{"conversations": [{"role": "user", "content": "What is a node, and why does the order of nodes matter?"}, {"role": "assistant", "content": "A node is anything the server runs: a Synth, a group, a buffer player. They execute in tree order, so a node that reads a bus must run after the node that writes it, and a group is how you move a whole set of nodes around at once."}], "family": "PR", "prompt_tokens": 36, "answer_tokens": 75, "source_id": "pr:012:r1"}
{"conversations": [{"role": "user", "content": "Why does a granular synth need a buffer?"}, {"role": "assistant", "content": "Because granular synthesis is playback of many short windows of an existing signal. The buffer is the sound being granulated - read from disk into memory - and the grain UGen only decides where in it to start, how long to read and how to pan each window."}], "family": "PR", "prompt_tokens": 33, "answer_tokens": 79, "source_id": "pr:013:r1"}
{"conversations": [{"role": "user", "content": "What is multichannel expansion?"}, {"role": "assistant", "content": "When an argument that expects one value receives an array, SuperCollider builds one copy of the UGen per element. It is not a special stereo object: it is the same rule applied recursively, which is why an array of frequencies produces an array of oscillators, and why the output is spread across channels."}], "family": "PR", "prompt_tokens": 27, "answer_tokens": 94, "source_id": "pr:014:r1"}
{"conversations": [{"role": "user", "content": "What does an Ndef give you that a SynthDef does not?"}, {"role": "assistant", "content": "Live replacement. An Ndef is a named proxy whose graph you can swap while it plays, keeping its routing and its place in the node tree. A SynthDef is compiled once and instantiated; changing it means adding a new definition and starting new synths."}], "family": "PR", "prompt_tokens": 34, "answer_tokens": 82, "source_id": "pr:015:r1"}
{"conversations": [{"role": "user", "content": "How does a reverb work in SuperCollider, conceptually?"}, {"role": "assistant", "content": "It is a network of delays with feedback and filtering: early reflections, then a dense tail whose decay time is set by how much signal each pass feeds back. FreeVerb and GVerb are built from comb and allpass delays, which is why their arguments are room size, damping and spread rather than anything musical."}], "family": "PR", "prompt_tokens": 35, "answer_tokens": 96, "source_id": "pr:016:r1"}
{"conversations": [{"role": "user", "content": "What is a Pattern, and what is it not?"}, {"role": "assistant", "content": "A Pattern is a recipe for a stream of values: it describes events over time rather than playing them. It is not a synth and it holds no audio; it is read by a clock, and the clock is what turns its output into notes on the server."}], "family": "PR", "prompt_tokens": 30, "answer_tokens": 74, "source_id": "pr:017:r1"}
{"conversations": [{"role": "user", "content": "What is the difference between a sequence that repeats and one that shuffles?"}, {"role": "assistant", "content": "A repeating sequence plays the same values in the same order every time; a shuffled one draws from the same set without immediate repetition. In SuperCollider those are different Patterns over the same list, and the difference is audible the moment the loop comes round."}], "family": "PR", "prompt_tokens": 36, "answer_tokens": 76, "source_id": "pr:018:r1"}
{"conversations": [{"role": "user", "content": "Why does a synth free itself immediately?"}, {"role": "assistant", "content": "Because something in it finished and asked to be freed: an envelope with doneAction set to free the node reached its end, or the graph's output was never connected and the server culled it. A patch that sounds for a moment and stops is usually an envelope measured in milliseconds."}], "family": "PR", "prompt_tokens": 31, "answer_tokens": 93, "source_id": "pr:019:r1"}
{"conversations": [{"role": "user", "content": "What is doneAction for?"}, {"role": "assistant", "content": "It tells the server what to do when the UGen that carries it finishes - usually free the node, which stops its CPU cost and releases its bus and buffer references. Without it a one-shot envelope leaves a silent synth running forever."}], "family": "PR", "prompt_tokens": 25, "answer_tokens": 76, "source_id": "pr:020:r1"}
{"conversations": [{"role": "user", "content": "Should I reach for an Ndef or a SynthDef?"}, {"role": "assistant", "content": "A SynthDef when the instrument is finished and you want many cheap instances of it; an Ndef while you are still changing the graph, or when you want one evolving voice you can edit without stopping. Most live-coding setups use both, and the Ndef usually plays the SynthDefs."}], "family": "PR", "prompt_tokens": 35, "answer_tokens": 88, "source_id": "pr:021:r1"}
{"conversations": [{"role": "user", "content": "Why is the language/server split worth knowing about?"}, {"role": "assistant", "content": "Because it explains most of the confusing failures: code that runs without error but does nothing is usually a message that reached a server with no node to receive it, and a sound that keeps playing after an error is a server that never heard about the error."}], "family": "PR", "prompt_tokens": 33, "answer_tokens": 76, "source_id": "pr:022:r1"}
{"conversations": [{"role": "user", "content": "What makes a patch sound like a musical instrument rather than a test tone?"}, {"role": "assistant", "content": "An envelope with a shape, a small amount of movement in the parameters, and a filter that responds to level. A bare oscillator is a test tone because nothing about it changes over the life of the note; the ear reads change as intention."}], "family": "PR", "prompt_tokens": 40, "answer_tokens": 69, "source_id": "pr:023:r1"}
{"conversations": [{"role": "user", "content": "In a paragraph, what is the job of the SuperCollider server?"}, {"role": "assistant", "content": "The server, scsynth, is the process that actually makes sound. It owns the audio device, the node tree, buses and buffers, and it runs the compiled UGen graphs in real time at control and audio rate. Everything that is timing, notation or code lives on the language side; the server only knows nodes and their controls."}], "family": "PR", "prompt_tokens": 37, "answer_tokens": 103, "source_id": "pr:000:r2"}
{"conversations": [{"role": "user", "content": "What part of SuperCollider is hardest for a small language model, in your view?"}, {"role": "assistant", "content": "Keeping a patch coherent past the first two lines. The syntax is learnable from the corpus; knowing that a name must be declared before it is read, that a fenced block has to close, and that an envelope needs a doneAction to free its synth is what breaks - and none of it is visible to a compiler when the name is an environment variable."}], "family": "PR", "prompt_tokens": 42, "answer_tokens": 105, "source_id": "pr:001:r2"}
{"conversations": [{"role": "user", "content": "Explain the split between sclang and scsynth without writing any code."}, {"role": "assistant", "content": "sclang is the client: it parses your code, runs the clock and the Patterns, and sends messages. scsynth is the server: it receives those messages and does the DSP. They talk over OSC, so a language-side crash does not necessarily stop a sound that is already running."}], "family": "PR", "prompt_tokens": 38, "answer_tokens": 88, "source_id": "pr:002:r2"}
{"conversations": [{"role": "user", "content": "Why can a SuperCollider patch compile, run, and still make no sound?"}, {"role": "assistant", "content": "Because the compiler checks syntax, not signal. An envelope with a zero level, an amplitude multiplied twice, a UGen graph that is never written to an output, or a synth freed on the same frame it starts all parse cleanly and are silent."}], "family": "PR", "prompt_tokens": 40, "answer_tokens": 81, "source_id": "pr:003:r2"}
{"conversations": [{"role": "user", "content": "What is a bus, in plain words?"}, {"role": "assistant", "content": "A bus is a numbered channel that audio or control values travel on. Audio buses carry signals between nodes; control buses carry single values that many synths can read and one can write. The hardware output is just the first few audio buses."}], "family": "PR", "prompt_tokens": 27, "answer_tokens": 72, "source_id": "pr:004:r2"}
{"conversations": [{"role": "user", "content": "What is the difference between audio rate and control rate?"}, {"role": "assistant", "content": "Audio rate is sampled once per sample - 44,100 times a second by default - and is what you need for sound. Control rate is one value per block, 64 samples, and is enough for parameters that change slowly: cutoffs, amplitudes, LFO shapes that are read rather than heard."}], "family": "PR", "prompt_tokens": 31, "answer_tokens": 92, "source_id": "pr:005:r2"}
{"conversations": [{"role": "user", "content": "Why would a Pbind produce no notes?"}, {"role": "assistant", "content": "Usually because nothing it names exists: an instrument symbol with no matching SynthDef, a scale or degree that resolves outside the range, or a clock that is not running. A Pbind is a stream of events; if the events name a synth that was never added, they are silently dropped."}], "family": "PR", "prompt_tokens": 29, "answer_tokens": 92, "source_id": "pr:006:r2"}
{"conversations": [{"role": "user", "content": "What does adding a SynthDef to the server actually do?"}, {"role": "assistant", "content": "It compiles the UGen graph into a server-side definition, once, and stores it under a name. Instances are then cheap: a Synth is a node that points at that definition and supplies control values. That is why the definition has to be sent before anything can play it."}], "family": "PR", "prompt_tokens": 35, "answer_tokens": 83, "source_id": "pr:007:r2"}
{"conversations": [{"role": "user", "content": "What is a UGen graph?"}, {"role": "assistant", "content": "A directed graph of unit generators: sources, filters and controls, wired by their inputs, ending at an output. The server evaluates it in a fixed order every block, which is why a graph cannot have feedback without an explicit delay, and why the order of your code does not matter inside a SynthDef."}], "family": "PR", "prompt_tokens": 26, "answer_tokens": 95, "source_id": "pr:008:r2"}
{"conversations": [{"role": "user", "content": "Explain what an envelope does, in one or two sentences."}, {"role": "assistant", "content": "An envelope is a shaped control signal: it moves from one value to another over time, usually from zero up and back to zero. Multiplying a sound by an envelope is what makes it start and stop instead of beginning and ending abruptly."}], "family": "PR", "prompt_tokens": 34, "answer_tokens": 73, "source_id": "pr:009:r2"}
{"conversations": [{"role": "user", "content": "How is a running Synth different from the definition it came from?"}, {"role": "assistant", "content": "The definition is the graph, compiled once and stored by name; the running Synth is one instance of it with its own control values and node id. You can have a hundred instances of one definition, and freeing one leaves the definition in place."}], "family": "PR", "prompt_tokens": 36, "answer_tokens": 71, "source_id": "pr:010:r2"}
{"conversations": [{"role": "user", "content": "What does waiting for the server to boot protect you from?"}, {"role": "assistant", "content": "From sending a definition, a buffer or a synth to a server that is not listening yet. Boot is asynchronous; if you allocate a buffer before the server answers, the allocation is lost and the patch fails later, in a place that looks unrelated."}], "family": "PR", "prompt_tokens": 34, "answer_tokens": 84, "source_id": "pr:011:r2"}
{"conversations": [{"role": "user", "content": "What is a node, and why does the order of nodes matter?"}, {"role": "assistant", "content": "A node is anything the server runs: a Synth, a group, a buffer player. They execute in tree order, so a node that reads a bus must run after the node that writes it, and a group is how you move a whole set of nodes around at once."}], "family": "PR", "prompt_tokens": 36, "answer_tokens": 75, "source_id": "pr:012:r2"}
{"conversations": [{"role": "user", "content": "Why does a granular synth need a buffer?"}, {"role": "assistant", "content": "Because granular synthesis is playback of many short windows of an existing signal. The buffer is the sound being granulated - read from disk into memory - and the grain UGen only decides where in it to start, how long to read and how to pan each window."}], "family": "PR", "prompt_tokens": 33, "answer_tokens": 79, "source_id": "pr:013:r2"}
{"conversations": [{"role": "user", "content": "What is multichannel expansion?"}, {"role": "assistant", "content": "When an argument that expects one value receives an array, SuperCollider builds one copy of the UGen per element. It is not a special stereo object: it is the same rule applied recursively, which is why an array of frequencies produces an array of oscillators, and why the output is spread across channels."}], "family": "PR", "prompt_tokens": 27, "answer_tokens": 94, "source_id": "pr:014:r2"}
{"conversations": [{"role": "user", "content": "What does an Ndef give you that a SynthDef does not?"}, {"role": "assistant", "content": "Live replacement. An Ndef is a named proxy whose graph you can swap while it plays, keeping its routing and its place in the node tree. A SynthDef is compiled once and instantiated; changing it means adding a new definition and starting new synths."}], "family": "PR", "prompt_tokens": 34, "answer_tokens": 82, "source_id": "pr:015:r2"}
{"conversations": [{"role": "user", "content": "How does a reverb work in SuperCollider, conceptually?"}, {"role": "assistant", "content": "It is a network of delays with feedback and filtering: early reflections, then a dense tail whose decay time is set by how much signal each pass feeds back. FreeVerb and GVerb are built from comb and allpass delays, which is why their arguments are room size, damping and spread rather than anything musical."}], "family": "PR", "prompt_tokens": 35, "answer_tokens": 96, "source_id": "pr:016:r2"}
{"conversations": [{"role": "user", "content": "What is a Pattern, and what is it not?"}, {"role": "assistant", "content": "A Pattern is a recipe for a stream of values: it describes events over time rather than playing them. It is not a synth and it holds no audio; it is read by a clock, and the clock is what turns its output into notes on the server."}], "family": "PR", "prompt_tokens": 30, "answer_tokens": 74, "source_id": "pr:017:r2"}
{"conversations": [{"role": "user", "content": "What is the difference between a sequence that repeats and one that shuffles?"}, {"role": "assistant", "content": "A repeating sequence plays the same values in the same order every time; a shuffled one draws from the same set without immediate repetition. In SuperCollider those are different Patterns over the same list, and the difference is audible the moment the loop comes round."}], "family": "PR", "prompt_tokens": 36, "answer_tokens": 76, "source_id": "pr:018:r2"}
{"conversations": [{"role": "user", "content": "Why does a synth free itself immediately?"}, {"role": "assistant", "content": "Because something in it finished and asked to be freed: an envelope with doneAction set to free the node reached its end, or the graph's output was never connected and the server culled it. A patch that sounds for a moment and stops is usually an envelope measured in milliseconds."}], "family": "PR", "prompt_tokens": 31, "answer_tokens": 93, "source_id": "pr:019:r2"}
{"conversations": [{"role": "user", "content": "What is doneAction for?"}, {"role": "assistant", "content": "It tells the server what to do when the UGen that carries it finishes - usually free the node, which stops its CPU cost and releases its bus and buffer references. Without it a one-shot envelope leaves a silent synth running forever."}], "family": "PR", "prompt_tokens": 25, "answer_tokens": 76, "source_id": "pr:020:r2"}
{"conversations": [{"role": "user", "content": "Should I reach for an Ndef or a SynthDef?"}, {"role": "assistant", "content": "A SynthDef when the instrument is finished and you want many cheap instances of it; an Ndef while you are still changing the graph, or when you want one evolving voice you can edit without stopping. Most live-coding setups use both, and the Ndef usually plays the SynthDefs."}], "family": "PR", "prompt_tokens": 35, "answer_tokens": 88, "source_id": "pr:021:r2"}
{"conversations": [{"role": "user", "content": "Why is the language/server split worth knowing about?"}, {"role": "assistant", "content": "Because it explains most of the confusing failures: code that runs without error but does nothing is usually a message that reached a server with no node to receive it, and a sound that keeps playing after an error is a server that never heard about the error."}], "family": "PR", "prompt_tokens": 33, "answer_tokens": 76, "source_id": "pr:022:r2"}
{"conversations": [{"role": "user", "content": "What makes a patch sound like a musical instrument rather than a test tone?"}, {"role": "assistant", "content": "An envelope with a shape, a small amount of movement in the parameters, and a filter that responds to level. A bare oscillator is a test tone because nothing about it changes over the life of the note; the ear reads change as intention."}], "family": "PR", "prompt_tokens": 40, "answer_tokens": 69, "source_id": "pr:023:r2"}