conversations
listlengths
2
6
[ { "role": "user", "content": "What does this SuperCollider code do?\n```supercollider\n// When we provide the 'root' argument an array, we should hear a chord.\n// the synth def is defined above\n(\nPbind(\n \\instrument, \\acid, \\dur, Pseq([0.25, 0.5, 0.25], inf),\n \\root, [-24, -17], // expand root\n ...
[ { "role": "user", "content": "Write a minimal SuperCollider example that uses `FreqScope`." }, { "role": "assistant", "content": "```supercollider\ns.boot;\n\n// create a new analyzer\nFreqScope.new(400, 200, 0, server: s);\n\n// basic sine\n{ SinOsc.ar(2000, 0, 0.25) }.play(s);\n\n// random saw...
[ { "role": "user", "content": "Write a minimal SuperCollider example that uses `Dreset`." }, { "role": "assistant", "content": "```supercollider\n(\n{\n var a, freq;\n a = Dreset(Dseries(0, 2, inf), Drand([0, 0, 0, 1], inf));\n freq = Duty.kr(1/MouseX.kr(1, 40, 1), 0, a) * 30 + 340;\n SinOsc....
[ { "role": "user", "content": "Show another SuperCollider example using `Latch`." }, { "role": "assistant", "content": "```supercollider\n{ Blip.ar(LFNoise0.kr(9, 400, 500), 4, 0.2) }.play;\n```" } ]
[ { "role": "user", "content": "Write a minimal SuperCollider example that uses `FoldIndex`." }, { "role": "assistant", "content": "```supercollider\n// indexing into a table\n(\n{\n var buf = LocalBuf.newFrom([200, 300, 400, 500, 600, 800]);\n var freq = FoldIndex.kr(buf, MouseX.kr(0, BufFrames...
[ { "role": "user", "content": "Write a Pbind in minorPentatonic using Pshuf for the degrees. (scale minorPentatonic, seq Pshuf, dur 0.4, octave 5, instr fm, root 0)" }, { "role": "assistant", "content": "Put the scale and the degree pattern in the `Pbind` and it will pick notes for you:\n\n```sup...
[ { "role": "user", "content": "Give me an Ndef with an LFO at 0.1 Hz. (ugens sine, cutoff 3200, lfo 0.1, freq 165, amp 0.12)" }, { "role": "assistant", "content": "`Ndef` is a named proxy you can redefine while it is playing:\n\n```supercollider\n// Ndef drone: sine source through a 3200 Hz low-p...
[ { "role": "user", "content": "Explain this SuperCollider code.\n```supercollider\n// Pn advances Pgate each time its subpattern is repeated\n(\nPbind(\n \\degree, Pn(Pseq((0..7)), inf, \\step),\n \\mtranspose, Pgate(Pwhite(0, 5), inf, \\step),\n \\dur, 0.2\n).play\n);\n\n\n// Two different Pgates advance...
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\nNdef(\\maus, { MouseX.kr });\nNdef(\\haus, { Pan2.ar(Blip.ar(Ndef.kr(\\maus, 1) * 70), SinOsc.kr(Ndef.ar(\\maus, 1) * 5)) }.play;\n```" }, { "role": "assistant", "con...
[ { "role": "user", "content": "Show me a self-contained SuperCollider patch using `Pulse`: bind everything it needs first." }, { "role": "assistant", "content": "```supercollider\nSynthDef(\\harpsi, { |outbus = 0, freq = 440, amp = 0.1, gate = 1|\n var out;\n out = EnvGen.ar(Env.adsr, gate, don...
[ { "role": "user", "content": "Write a kick drum with a 0.35 s decay. (osc saw, sweep 0.06, decay 0.35, f0 150, f1 48, amp 0.8, rev 1)" }, { "role": "assistant", "content": "A kick is a sine with a fast pitch drop and a short amplitude envelope:\n\n```supercollider\n// kick drum: saw oscillator, ...
[ { "role": "user", "content": "What does this SuperCollider code do?\n```supercollider\n// Create a new empty collections with size 3:\nx = Array.new(3);\ny = Array.new(3);\nz = List.new(3);\n\n// Try to add 7 items to the array and list.\n// If the array exceeds maxSize, it will only\n// grow to an internal...
[ { "role": "user", "content": "Write a minimal SuperCollider example that uses `MouseButton`." }, { "role": "assistant", "content": "```supercollider\n{ SinOsc.ar(MouseButton.kr(400, 440, 0.1), 0, 0.1) }.play;\n{ SinOsc.ar(MouseButton.kr(400, 740, 2), 0, 0.1) }.play;\n\n(\nSynthDef(\\mousexyb, { ...
[ { "role": "user", "content": "Write a Pbind in majorPentatonic using Pseq for the degrees. (scale majorPentatonic, seq Pseq, dur 0.4, octave 5, instr sine, root 0)" }, { "role": "assistant", "content": "`Pbind` sequences an Event per beat, and `\\degree` + `\\scale` does the pitch:\n\n```superco...
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\nVowel(); // defaults to A bass\nVowel(\\a, \\bass); \nVowel(\\e, \\tenor); \nVowel(\\i, \\counterTenor); \nVowel(\\o, \\alto); \nVowel(\\u, \\soprano); \n\n{Formants.ar(100, Vowe...
[ { "role": "user", "content": "Write a minimal SuperCollider example that uses `Monitor`." }, { "role": "assistant", "content": "```supercollider\n{ Out.ar(87, SinOsc.ar(MouseX.kr(240, 1000, 1) * [1, 2, 3], 0, 0.2)) }.play; // play three sine tone on channels 87, 88, and 89\nx = Monitor.new; // c...
[ { "role": "user", "content": "Give me a Pbind with pluck voices and a 0.4 rhythm. (scale majorPentatonic, seq Pwalk, dur 0.4, octave 4, instr pluck, root 0)" }, { "role": "assistant", "content": "The pattern is the composition here; `\\strum` spreads the chord:\n\n```supercollider\n(\nSynthDef(\...
[ { "role": "user", "content": "Write a minimal SuperCollider example that uses `WrapIndex`." }, { "role": "assistant", "content": "```supercollider\n// indexing into a table\n(\n{\n var buf = LocalBuf.newFrom([200, 300, 400, 500, 600, 800]);\n var freq = WrapIndex.kr(buf, MouseX.kr(0, BufFrames...
[ { "role": "user", "content": "Write a granular texture, through a reverb. (rate 10, dur 0.07, interp 4, mode noise1, rev 1)" }, { "role": "assistant", "content": "`GrainBuf` needs a buffer, a trigger and a grain duration:\n\n```supercollider\n// granular synth with GrainBuf\n(\ns.waitForBoot {\n...
[ { "role": "user", "content": "Write a kick at amp 0.6 with a click. (osc sine, sweep 0.06, decay 0.18, f0 150, f1 48, amp 0.6, rev 1)" }, { "role": "assistant", "content": "A kick is a sine with a fast pitch drop and a short amplitude envelope:\n\n```supercollider\n// kick drum: sine oscillator,...
[ { "role": "user", "content": "Explain this SuperCollider code.\n```supercollider\n// First we create something to control\nx = { |freq = 440, amp = 0.6| MoogFF.ar(PinkNoise.ar(amp), freq).dup }.play;\n\n// In the following pattern, the first two keys are the ones that create the monophonic behaviour:\n(\np ...
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\nSynthDef(\"help-LFNoise2\", { arg out=0;\n Out.ar(out,\n LFBrownNoise2.ar(1000, 1, MouseX.kr(0, 5), 0.25)\n )\n}).play;\n);\n\n//use as frequency control\n(\nSynthDef(\"h...
[ { "role": "user", "content": "What does `StreamKrDur.poll` do?" }, { "role": "assistant", "content": "a 'control' rate player that combines a stream of values with a stream of durations and plays them" } ]
[ { "role": "user", "content": "Show me a self-contained SuperCollider patch using `NRand`: bind everything it needs first." }, { "role": "assistant", "content": "```supercollider\n(\nSynthDef(\"help-NRand\", { |out = 0, n = 0|\n Out.ar(out,\n FSinOsc.ar(\n NRand(1200.0, 4000.0, n),\n ...
[ { "role": "user", "content": "Write a kick at amp 0.8 with no click." }, { "role": "assistant", "content": "Start with a swept sine, then shorten the decay to taste:\n\n```supercollider\n// kick drum: sine oscillator, 0.06 s pitch sweep\n(\nSynthDef(\\kick_synth, { |out = 0, amp = 0.8|\n var ...
[ { "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...
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// as frequency control...\n(\n{\nSinOsc.ar(\n LinCongN.ar(\n 40,\n LFNoise2.kr(0.1, 0.1, 1),\n LFNoise2.kr(0.1, 0.1, 0.1),\n LFNoise2.kr(0.1),\n 0, 500, 600\n )...
[ { "role": "user", "content": "What does `SynthConsole.format` do?" }, { "role": "assistant", "content": "a widget with controls: play/stop/record/scope etc." } ]
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\n{\n var w, x, y, p, q, a, b, c, d;\n\n p = LFSaw.ar(200);\n q = LFSaw.ar(301);\n\n // B-format encode\n #w, x, y = BiPanB2.ar(p, q, MouseX.kr(-1, 1), 0.1);\n\n // B-form...
[ { "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,...
[ { "role": "user", "content": "Write a minimal SuperCollider example that uses `Pulse`." }, { "role": "assistant", "content": "```supercollider\n// modulate frequency\n{ Pulse.ar(XLine.kr(40, 4000, 6), 0.1, 0.2) }.play;\n\n// modulate pulse width\n{ Pulse.ar(200, SinOsc.kr(0.2).range(0.01, 0.99),...
[ { "role": "user", "content": "Explain `RedTest` in SuperCollider briefly." }, { "role": "assistant", "content": "RedTest — generate test signals Category: Red > redTest." } ]
[ { "role": "user", "content": "Write a complete SuperCollider patch built around `LastValue` that runs as it is." }, { "role": "assistant", "content": "```supercollider\nd = { |freq = 440| SinOsc.ar(LastValue.ar(freq, 20), 0, 0.2) }.play;\n\nd.set(\\freq, 400);\nd.set(\\freq, 200);\nd.set(\\freq,...
[ { "role": "user", "content": "Show another SuperCollider example using `LatoocarfianN`." }, { "role": "assistant", "content": "```supercollider\n// randomly modulate all params\n(\n{ LatoocarfianN.ar(\n SampleRate.ir/4,\n LFNoise2.kr(2, 1.5, 1.5),\n LFNoise2.kr(2, 1.5, 1.5),\n LFNoise2.kr(2,...
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// constant source (72), max deviation +/- 3\n// no repetition within 5 pitches\n\n(\nx = {\n var trig = Impulse.ar(5);\n var midi = Demand.ar(trig, 0, DIdev(72, 2, -1, 2));\n ...
[ { "role": "user", "content": "How do I make a kick that starts at 180 Hz and falls to 55 Hz? (osc saw, sweep 0.06, decay 0.5, f0 180, f1 55, amp 0.8, rev 1)" }, { "role": "assistant", "content": "A kick is a sine with a fast pitch drop and a short amplitude envelope:\n\n```supercollider\n// kick...
[ { "role": "user", "content": "Write an Ndef at 110 Hz I can retune while it plays. (ugens tri, cutoff 1400, lfo 0.8, freq 110, amp 0.12)" }, { "role": "assistant", "content": "Use `Ndef` when the patch has to change without stopping:\n\n```supercollider\n// Ndef drone: tri source through a 1400 ...
[ { "role": "user", "content": "What does `Gradient.at` do? What arguments does it take?" }, { "role": "assistant", "content": "Retrieve the colour at position `pos`, typically a value between zero and one. `at(0)` is `color1`, and `at(1)` is Arguments: pos." } ]
[ { "role": "user", "content": "Write a granular texture, dry. (rate 14, dur 0.1, interp 2, mode noise1, rev 0)" }, { "role": "assistant", "content": "A working granular patch, with the buffer loaded before the synth starts:\n\n```supercollider\n// granular synth with GrainBuf\n(\ns.waitForBoot {\...
[ { "role": "user", "content": "What does `Document.mouseDownAction` do? What arguments does it take?" }, { "role": "assistant", "content": "Get/set the action to be performed on Arguments: action — An instance of Function or FunctionList. The arguments passed to the function are: `document`, `x`,...
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\nSynthDef(\"help-PulseCount\", { |out = 0|\n Out.ar(out,\n SinOsc.ar(\n PulseCount.ar(Impulse.ar(10), Impulse.ar(0.4)) * 200,\n 0, 0.05\n )\n )\n}.play;\n```" ...
[ { "role": "user", "content": "What is `PV_MagMul` in SuperCollider?" }, { "role": "assistant", "content": "PV_MagMul — Multiply magnitudes. Multiplies magnitudes of two inputs and keeps the phases of the first input. Category: UGens > FFT." } ]
[ { "role": "user", "content": "Explain `PV_MagSmooth` in SuperCollider briefly." }, { "role": "assistant", "content": "PV_MagSmooth — Smooth spectral magnitudes over time Smooths out the magnitude of FFT bins over time using recursive averaging. Category: UGens > FFT, UGens > Analysis." } ]
[ { "role": "user", "content": "Write a SuperCollider patch for We all could use a little more that runs as it is, with nothing assumed about the session." }, { "role": "assistant", "content": "```supercollider\n(\nSynthDef(\\cowbell, {\n | out=0, amp=0.3, gate=1, fund_freq=540, pan=0.0 |\n ...
[ { "role": "user", "content": "Write a self-contained SuperCollider patch that uses `DigitalIn`. Define every value it uses." }, { "role": "assistant", "content": "```supercollider\n// turn on and off a sine oscillator\n\n(\nSynthDef(\"help-DigitalIn\", { |out = 0|\n Out.ar(out,\n SinOsc.ar(5...
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\nb.free;\nb = Buffer.read(s, ExampleFiles.apollo11);\n{\n var pointer = Phasor.ar(0, SampleDur.ir / BufDur.ir(b) * XLine.kr(1, 0.25, 20));\n var sound = Warp1.ar(1, b, pointe...
[ { "role": "user", "content": "What does `Editor.activeValue` do? What arguments does it take?" }, { "role": "assistant", "content": "holds a value that can be edited with a GUI, saves as the value Arguments: val." } ]
[ { "role": "user", "content": "What does this SuperCollider code do?\n```supercollider\ns.boot;\n\n(\nb = Buffer.read(s, ExampleFiles.apollo11);\nx = { |envbuf = -1|\n var pointer, pitch;\n // pointer - move from beginning to end of soundfile over 15 seconds\n pointer = LFSaw.ar(1/15).range(0, 1);\n // c...
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ SinOsc.ar(SinOsc.ar(0.3).range(440, 660), 0, 0.5 * 0.1 }.play;\n```" }, { "role": "assistant", "content": "A closing bracket is missing: the parenthesis opened earl...
[ { "role": "user", "content": "Write a minimal SuperCollider example that uses `Limiter`." }, { "role": "assistant", "content": "```supercollider\n(\n// example signal to process\n{\n var z;\n z = Decay2.ar(\n Impulse.ar(8, LFSaw.kr(0.25, -0.6, 0.7)),\n 0.001, 0.3, FSinOsc.ar(500));\n z ...
[ { "role": "user", "content": "What is `Button` in SuperCollider?" }, { "role": "assistant", "content": "Button — A multi-state button A multi-state button. Category: GUI > Views." } ]
[ { "role": "user", "content": "Give me a complete SuperCollider patch for Will nobody switch the damn thing off?: bind everything it needs before it is used." }, { "role": "assistant", "content": "```supercollider\n(\n\n{\nvar dseq, trig;\n\ndseq = Dseq([SinOsc.ar(45).range(-5, 12), SinOsc.ar(Sin...
[ { "role": "user", "content": "What is `BHiShelf` in SuperCollider?" }, { "role": "assistant", "content": "BHiShelf — Hi Shelf The B equalization suite is based on the Second Order Section (SOS) biquad UGen. Category: UGens > Filters > BEQSuite." } ]
[ { "role": "user", "content": "How do I granulate a sample with 0.15 s grains?" }, { "role": "assistant", "content": "A working granular patch, with the buffer loaded before the synth starts:\n\n```supercollider\n// granular synth with GrainBuf\n(\ns.waitForBoot {\n var buf = Buffer.read(s, Pl...
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\n// given a simple instrument\nInstr(\\Pulse,{ arg freq=440.0,width=0.5,mul=0.1;\n Pulse.ar( freq, width, mul )\n});\n\n// a patch specifies inputs (arguments) to that instrum...
[ { "role": "user", "content": "Write a GrainBuf synth at 14 grains per second. (rate 14, dur 0.1, interp 2, mode sweep, rev 0)" }, { "role": "assistant", "content": "A working granular patch, with the buffer loaded before the synth starts:\n\n```supercollider\n// granular synth with GrainBuf\n(\n...
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\nx = { |gate = 1| BrownNoise.ar(0.5) * EnvGen.kr(Env.cutoff(1), gate, doneAction: Done.freeSelf) }.play;\nx.release(5; // override the Env's specified 1 second release time\n```" ...
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// Add two UGens\n{ SinOsc.ar(440, 0, 0.2) + PinkNoise.ar(0.1; }.play\n```" }, { "role": "assistant", "content": "A closing bracket is missing: the parenthesis opened...
[ { "role": "user", "content": "What does `NdefGui.new` do? What arguments does it take?" }, { "role": "assistant", "content": "a gui for a NodeProxy or Ndef Arguments: object — the nodeproxy to be shown and edited, or nil.; numItems — How many sliders or textviews for parameters to provide. Defau...
[ { "role": "user", "content": "What does this SuperCollider code do?\n```supercollider\n// It might also be desirable to start with a fade from silence.\n// This can be done with a negative initOutOffset:\n\n(\nx = {\n var lfo = XLine.ar(1, 0.5, 60);\n DXMix.ar(\n Dseq([0, 4, 1, 5, 2, 6, 3, 7], inf),\n ...
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\na = {LFTri.ar(100+(1000*Maths.ar(MouseX.kr, MouseY.kr, 0.2, 1-MouseButton.kr(lag:0.001))[0]), 0, 0.1)}.play //notice how I am taking the [0th channel of the Maths and ignoring th...
[ { "role": "user", "content": "What does `ApplicationStart.add` do?" }, { "role": "assistant", "content": "Registers an object or function. Objects will be receive a doOnApplcationStart message on application start. Functions will be" } ]
[ { "role": "user", "content": "What is `Constraint` in SuperCollider?" }, { "role": "assistant", "content": "Constraint — evaluates the condition using a function Constraint takes a function that it evaluates whenever the constraint itself is evaluated. Its main benefit then over a simple functio...
[ { "role": "user", "content": "What does this SuperCollider code do?\n```supercollider\ns=Server.default;\n\na= CutProcStream(BBCutProc11.new);\n\n//no offsets set (usually this would be decided by cut synthesisers\n10.do {a.next(Event.default).postln};\n\na= CutProcStream(RecursiveCutProc1.new);\n\n//offset...
[ { "role": "user", "content": "Write a minimal SuperCollider example that uses `LinCongN`." }, { "role": "assistant", "content": "```supercollider\n// default initial params\n{ LinCongN.ar(MouseX.kr(20, SampleRate.ir)) * 0.2 }.play(s);\n```" } ]
[ { "role": "user", "content": "How do I put a bell in a reverb at mix 0.3? (verb gverb, room 0.5, damp 0.5, mix 0.3, source bell)" }, { "role": "assistant", "content": "Put the reverb inside the `SynthDef` so it is part of the voice:\n\n```supercollider\n// reverb: gverb on a bell\n(\nSynthDef(\\...
[ { "role": "user", "content": "What does `Sieve.union_oi` do? What arguments does it take?" }, { "role": "assistant", "content": "Creates a new Sieve object in mode 'intervals' with offsets, generated by the union of sets of Arguments: ... data — Alternating generators and integer offsets plus an...
[ { "role": "user", "content": "What does `CountLimit.value` do?" }, { "role": "assistant", "content": "Counts how many items have been presented to it. returns true until limit false thereafter" } ]
[ { "role": "user", "content": "Write a minimal SuperCollider example that uses `PV_MagFreeze`." }, { "role": "assistant", "content": "```supercollider\ns.boot;\nb = Buffer.read(s, ExampleFiles.child);\n\n\n(\nSynthDef(\"help-magFreeze\", { |out = 0|\n var in, chain;\n in = SinOsc.ar(LFNoise1.kr...
[ { "role": "user", "content": "Give me a complete SuperCollider patch for Will nobody switch the damn thing off?: bind everything it needs before it is used." }, { "role": "assistant", "content": "```supercollider\n(\n\n{\nvar dseq, trig;\n\ndseq = Dseq([SinOsc.ar(45).range(-5, 12), SinOsc.ar(Sin...
[ { "role": "user", "content": "What is the difference between the language and the server?" }, { "role": "assistant", "content": "sclang runs your code, the clock and Patterns, and builds UGen graphs. scsynth performs the DSP in real time. They communicate over OSC, which is why a language-side m...
[ { "role": "user", "content": "What is `RedVector4D` in SuperCollider?" }, { "role": "assistant", "content": "RedVector4D — a vector with four dimensions This is an optimised version of RedVector. Category: Red > redUniverse." } ]
[ { "role": "user", "content": "Write a self-contained SuperCollider patch that uses `Ringz`. Define every value it uses." }, { "role": "assistant", "content": "```supercollider\nx = { arg freq=1000; Ringz.ar(Crackle.ar(1.95, 0.1), freq, 0.05) }.play(s);\nx.set(\\freq, 1500);\nx.free;\n```" } ]
[ { "role": "user", "content": "Give me a saw kick with a 0.06 s pitch sweep. (osc saw, sweep 0.06, decay 0.25, f0 220, f1 40, amp 0.6, rev 1)" }, { "role": "assistant", "content": "Start with a swept sine, then shorten the decay to taste:\n\n```supercollider\n// kick drum: saw oscillator, 0.06 s ...
[ { "role": "user", "content": "Write a minimal SuperCollider example that uses `SampleRate`." }, { "role": "assistant", "content": "```supercollider\n// compares a 441 Hz sine tone derived from sample rate (44100 * 0.01, left)\n// with a 440 Hz tone (right), resulting in a 1 Hz beating\n(\n{\n v...
[ { "role": "user", "content": "Write a self-contained SuperCollider patch that uses `LeastChange`. Define every value it uses." }, { "role": "assistant", "content": "```supercollider\n(\nd = { |amp = 1.0|\n var in1, in2;\n in1 = LFNoise0.ar(800, amp);\n in2 = SinOsc.ar(800);\n LeastChange.ar(...
[ { "role": "user", "content": "Give me an Ndef with an LFO at 0.8 Hz." }, { "role": "assistant", "content": "`Ndef` is a named proxy you can redefine while it is playing:\n\n```supercollider\n// Ndef drone: sine source through a 2400 Hz low-pass\n(\nNdef(\\nd_sine_220_2400, { |freq = 220, amp = 0...
[ { "role": "user", "content": "What does `MxUnitApp.moveBy` do? What arguments does it take?" }, { "role": "assistant", "content": "Move the unit by a channel@slot offset. Overwrites anything that might be Arguments: vector — Point representing the offset. eg. 1@0 will move it to the next channel...
[ { "role": "user", "content": "Write a complete SuperCollider patch built around `QuadC` that runs as it is." }, { "role": "assistant", "content": "```supercollider\n// logistic map\n// equation: x1 = -r*x0^2 + r*x0\n(\n{ var r;\n r = MouseX.kr(3.5441, 4); // stable range\n QuadC.ar(SampleRate...
[ { "role": "user", "content": "What does `Symbol.isBinaryOp` do?" }, { "role": "assistant", "content": "Return true if the symbol is a valid binary operator. A valid binary operator contains only the symbols `!@%&*-+=|<>?/`, does not start with '`//`' or '`/*`', and is not the string" } ]
[ { "role": "user", "content": "Write a complete SuperCollider patch built around `LastValue` that runs as it is." }, { "role": "assistant", "content": "```supercollider\nd = { |freq = 440| SinOsc.ar(LastValue.ar(freq, 20), 0, 0.2) }.play;\n\nd.set(\\freq, 400);\nd.set(\\freq, 200);\nd.set(\\freq,...
[ { "role": "user", "content": "List of exit codes?" }, { "role": "assistant", "content": "SuperCollider forum — List of exit codes?\n\n7068696c:\n\n```supercollider\no = s.options;\no.inDevice = nil;\no.outDevice = \"ASIO : ASIO4ALL\";\n```\n\nHmmmm... In earlier SC versions, it wouldn’t have wor...
[ { "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`...
[ { "role": "user", "content": "Give me a complete SuperCollider patch for Wake up call: bind everything it needs before it is used." }, { "role": "assistant", "content": "```supercollider\nNdef(\\a, { |freq=2000, rate=1, width=0.6|\n LFPulse.kr(rate, 0, 4/6) *\n LFPulse.kr(rate * 6, 0, width) *...
[ { "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...
[ { "role": "user", "content": "Explain `PlayerUnop` in SuperCollider briefly." }, { "role": "assistant", "content": "PlayerUnop — the result of performing a unary op on a Player `(` Category: Libraries > crucial > Players." } ]
[ { "role": "user", "content": "Write an Ndef at 220 Hz I can retune while it plays. (ugens saw, cutoff 200, lfo 0.3, freq 220, amp 0.12)" }, { "role": "assistant", "content": "Use `Ndef` when the patch has to change without stopping:\n\n```supercollider\n// Ndef drone: saw source through a 200 Hz...
[ { "role": "user", "content": "Explain `MIDIFuncSrcMessageMatcherNV` in SuperCollider briefly." }, { "role": "assistant", "content": "MIDIFuncSrcMessageMatcherNV — Matches incoming MIDI messages to responder funcs based on message source This is used by MIDIMessageDispatcherNV to match incoming M...
[ { "role": "user", "content": "Show another SuperCollider example using `Symbol`." }, { "role": "assistant", "content": "```supercollider\na = { Ringz.ar(T2A.ar(\\trig.tr), \\freq.kr(500, 1), 0.8) }.play;\na.set(\\freq, 330, \\trig, 1);\na.set(\\freq, 830, \\trig, 1);\na.release;\n```" } ]
[ { "role": "user", "content": "Explain `Linen` in SuperCollider briefly." }, { "role": "assistant", "content": "Linen — Simple linear envelope generator. Category: UGens > Envelopes." } ]
[ { "role": "user", "content": "What does this SuperCollider code do?\n```supercollider\n(\nvar carrier, modulator, depth, scale;\n\ncarrier = 440;\nmodulator = 650;\ndepth = 355.2;\n\n// generate a 5 step scale, picking the 5 most consonant steps from the dissonance curve\nscale = DissonanceCurve.fm(carrier,...
[ { "role": "user", "content": "Show another SuperCollider example using `Node`." }, { "role": "assistant", "content": "```supercollider\ns.boot;\n(\nx = SynthDef(\"help-node-set\", { |freq = 440, out = 0|\n Out.ar(out, SinOsc.ar(freq, 0, 0.1))\n}).play\n);\nx.run(false);\nx.run; // default is tr...
[ { "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.a...
[ { "role": "user", "content": "How do I build a live drone with Ndef at 165 Hz? (ugens saw, cutoff 2400, lfo 0.8, freq 165, amp 0.12)" }, { "role": "assistant", "content": "Use `Ndef` when the patch has to change without stopping:\n\n```supercollider\n// Ndef drone: saw source through a 2400 Hz l...
[ { "role": "user", "content": "How do I put a kick in a reverb at mix 0.3?" }, { "role": "assistant", "content": "Put the reverb inside the `SynthDef` so it is part of the voice:\n\n```supercollider\n// reverb: gverb on a kick\n(\nSynthDef(\\reverb_synth, { |out = 0, freq = 330, amp = 0.2|\n v...
[ { "role": "user", "content": "What does `EnvelopeView.setEnv` do? What arguments does it take?" }, { "role": "assistant", "content": "Sets an Env to be displayed by the view. The view will extract data from the Env object to display (times, values and curve types). Any nodes existent prior to ca...
[ { "role": "user", "content": "Are you ChatGPT?" }, { "role": "assistant", "content": "No. I am sc-mind, a 198M SuperCollider model trained from scratch on the language's own source and documentation. I am not a general assistant and I do not have a general model behind me." } ]
[ { "role": "user", "content": "What does `Plotter.axisLabelY` do?" }, { "role": "assistant", "content": "Get/set the label for the y-axes. Can be a String or an Array" } ]
[ { "role": "user", "content": "Write a SuperCollider patch for running water (simple). Start by defining the values the patch depends on." }, { "role": "assistant", "content": "```supercollider\n(\nNdef(\\simpleRunningWater).fadeTime = 4;\n\n\nNdef(\\simpleRunningWater, {\n var mod, freq, ampMod...
[ { "role": "user", "content": "What does `APF.ar` do? What arguments does it take?" }, { "role": "assistant", "content": "FIXME: APF purpose. Arguments: in — FIXME: explain parameter in.; freq — FIXME: explain parameter freq.; radius — FIXME: explain parameter radius.; mul — Output will be multip...