conversations listlengths 2 6 |
|---|
[
{
"role": "user",
"content": "What is `RedMstGUI` in SuperCollider?"
},
{
"role": "assistant",
"content": "RedMstGUI — gui window for RedMst Use this class for lowest CPU usage. RedMstGUI2 and RedMstGUI3 adds metronome and transport view but takes a little bit more to update. Category: Red > red... |
[
{
"role": "user",
"content": "What does `InstrGateSpawner.makeTask` do?"
},
{
"role": "assistant",
"content": "a Pbind-like spawner that plays an Instr with streams supplied to its inputs"
}
] |
[
{
"role": "user",
"content": "Give me a complete SuperCollider patch for seeking an Array!: bind everything it needs before it is used."
},
{
"role": "assistant",
"content": "```supercollider\n(// * //watch the postWindow\na=[\"m\",\"x\",\"f\",\"k\",\"d\",\"p\"];\nx=Array;\ny=x.newClear(6);\n~mx... |
[
{
"role": "user",
"content": "Write a GrainBuf synth at 10 grains per second. (rate 10, dur 0.07, interp 2, mode noise1, rev 0)"
},
{
"role": "assistant",
"content": "`GrainBuf` needs a buffer, a trigger and a grain duration:\n\n```supercollider\n// granular synth with GrainBuf\n(\ns.waitForBoot... |
[
{
"role": "user",
"content": "Write a self-contained SuperCollider patch that uses `Resonz`. Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\"pitchFromNoise\", { arg out = 0;\n Out.ar(\n out,\n Resonz.ar(\n WhiteNoise.ar(15),\n L... |
[
{
"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 we... |
[
{
"role": "user",
"content": "What is `IFFT`?"
},
{
"role": "assistant",
"content": "IFFT — Inverse Fast Fourier Transform"
},
{
"role": "user",
"content": "What does `IFFT.new` do?"
},
{
"role": "assistant",
"content": "returns a time domain signal from converting the FF... |
[
{
"role": "user",
"content": "What is `BinaryOpFunction`?"
},
{
"role": "assistant",
"content": "BinaryOpFunction — represent a binary operation on a function"
},
{
"role": "user",
"content": "What does `BinaryOpFunction.value` do?"
},
{
"role": "assistant",
"content": "E... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `BLowPass`."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\n(\nz = {\n BLowPass.ar(\n SoundIn.ar([0, 1]),\n MouseX.kr(10, 20000, \\exponential), // cutoff freq.\n MouseY.kr(0.0, 1.0, \\linea... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ RHPF.ar(Saw.ar(200, 0.1), FSinOsc.kr(XLine.kr(0.7, 300, 20), 0, 3600, 4000), 0.2) }.play;\n\n(\n{ var ctl = RHPF.kr(LFSaw.kr(2), SinOsc.kr(XLine.kr(0.07, 30, 20), 0, 35, 40),... |
[
{
"role": "user",
"content": "What does `PdefGui.openDoc` do?"
},
{
"role": "assistant",
"content": "open a document with some strings at some location"
}
] |
[
{
"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": "Write a minimal SuperCollider example that uses `Crackle`."
},
{
"role": "assistant",
"content": "```supercollider\n{ Crackle.ar(1.95, 0.5) }.play;\n\n// modulate chaos parameter\n{ Crackle.ar(Line.kr(1.0, 2.0, 3), 0.5, 0.5) }.play;\n```"
}
] |
[
{
"role": "user",
"content": "Write a SuperCollider patch that uses `SpecFlatness` and actually plays. Assume nothing about the session."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\n\n(\n{ // Example - vary mixture of white noise and pure tone with the mouse\n var in, chain... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// default initial params\n{ FBSineL.ar(SampleRate.ir/4) * 0.2 }.play(s;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis ope... |
[
{
"role": "user",
"content": "What does `InstrBrowser.rate` do?"
},
{
"role": "assistant",
"content": "Browse your instrument library, with customizable actions"
}
] |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\ns.boot;\n\n(\nvar winenv;\n// a custom envelope\nwinenv = Env([0, 1, 0], [0.5, 0.5], [8, -8]);\nz = Buffer.sendCollection(s, winenv.discretize, 1);\n\nSynthDef(\\sin_grain_test, { |out, gate = 1, amp = 1, envbuf|\n var p... |
[
{
"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.a... |
[
{
"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... |
[
{
"role": "user",
"content": "How do I build a live drone with Ndef at 220 Hz? (ugens saw, cutoff 800, lfo 0.8, freq 220, amp 0.12)"
},
{
"role": "assistant",
"content": "`Ndef` is a named proxy you can redefine while it is playing:\n\n```supercollider\n// Ndef drone: saw source through a 800 Hz... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `FBSineL`."
},
{
"role": "assistant",
"content": "```supercollider\n// increase feedback\n{ FBSineL.ar(SampleRate.ir, 1, Line.kr(0.01, 4, 10), 1, 0.1) * 0.2 }.play(s);\n```"
}
] |
[
{
"role": "user",
"content": "What is `Symbol`?"
},
{
"role": "assistant",
"content": "Symbol — a unique name for something"
},
{
"role": "user",
"content": "What does `Symbol.isClassName` do?"
},
{
"role": "assistant",
"content": "Answer whether the symbol can be a class... |
[
{
"role": "user",
"content": "What is `Sum4` in SuperCollider?"
},
{
"role": "assistant",
"content": "Sum4 — Sum four signals Sum four signals. Internal ugen to efficiently mix four signals. Should be used via Mix. Category: UGens > Algebraic."
}
] |
[
{
"role": "user",
"content": "How do I play a random minorPentatonic scale at octave 6? (scale minorPentatonic, seq Pshuf, dur 0.4, octave 6, instr fm, root 0)"
},
{
"role": "assistant",
"content": "`Pbind` sequences an Event per beat, and `\\degree` + `\\scale` does the pitch:\n\n```supercollid... |
[
{
"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, { Blip.ar(Ndef.kr(\\maus) * 70) }).play;\nNdef(\\haus).reshaping = \\elastic;\nNdef(\\maus).reshaping = \\elastic;\nNdef(\\maus, { LFNo... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n// derived from an answer by Sergio Luque to a mail to the sc-users SuperCollider mailing list on 2013/03/22\n\n(\nvar registerSize = 16;\nvar min =\"C2\".namemidi.asInteger;\nvar max = \"C6\".namemidi.asInteger;\nvar wa... |
[
{
"role": "user",
"content": "Write a self-contained SuperCollider patch that uses `PV_Mul`. Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\n\n(\nSynthDef(\"help-mul\", { |out = 0|\n var inA, chainA, inB, chainB, chain ;\n inA = SinOsc.ar(500, 0, 0... |
[
{
"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": "Write an Ndef with a sine source and a 200 Hz low-pass. (ugens sine, cutoff 200, lfo 0.8, freq 55, 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 ... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// as a frequency control\n{ SinOsc.ar(StandardL.ar(40, MouseX.kr(0.9, 4))*800+900)*0.4 }.play(s;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is mis... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\na = {LFTri.ar(50+(1000*Maths2.ar(10, 10, 0.5, 1)[0]), 0, 0.1)}.play //notice how I am taking the [0]th channel of the Maths and ignoring the [1st channel.\n```"
},
{
"rol... |
[
{
"role": "user",
"content": "Explain `Phprand` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "Phprand — random values that tend toward hi Category: Streams-Patterns-Events > Patterns > Random."
}
] |
[
{
"role": "user",
"content": "Show another SuperCollider example using `Monitor`."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\ns.scope(16);\n\n{ Out.ar(87, SinOsc.ar(MouseX.kr(40, 10000, 1) * [1, 2, 3], 0, 0.2)) }.play;\nx = Monitor.new;\nx.play(87, 3, 1, 2);\nx.out = 0;\nx.... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\n{\n var trig = Dust.kr(10);\n SinOsc.ar(\n TRand.kr(300, 3000, trig)\n ) * 0.1\n}.play;\n);\n\n(\n{\n var trig = Dust.ar(MouseX.kr(1, 8000, 1));\n SinOsc.ar(\n ... |
[
{
"role": "user",
"content": "What does `ProxyMixer.setNameLeftBorder` do?"
},
{
"role": "assistant",
"content": "sets current left border of nameView, trading size with volume"
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `QuadN`."
},
{
"role": "assistant",
"content": "```supercollider\n// default params\n{ QuadN.ar(SampleRate.ir/4) * 0.2 }.play(s);\n```"
}
] |
[
{
"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": "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 i... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ Integrator.ar(LFPulse.ar(300, 0.2, 0.1), MouseX.kr(0.001, 0.999, 1)) }.play\n\n// used as an envelope\n{ Integrator.ar(LFPulse.ar(3, 0.2, 0.0004), 0.999, FSinOsc.ar(700), 0) }.... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `IRand`."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\"help-IRand\", {\n Out.ar(\n IRand(0, 1), // play on random channel between 0 and 1\n FSinOsc.ar(500,\n 0, Line.kr(0.2, 0, 0.1,... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ XFade2.ar(Saw.ar, SinOsc.ar, LFTri.kr(0.1) }.play\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis opened earlier is never ... |
[
{
"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 LinCongC.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 `FunctionDef.prototypeFrame` do?"
},
{
"role": "assistant",
"content": "Get the array of default values for argument and temporary variables. `{ |a = 9, b = 10, c| a + b"
}
] |
[
{
"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": "How do I play a random majorPentatonic scale at octave 6? (scale majorPentatonic, seq Pseq, dur 0.3, octave 6, instr fm, root 0)"
},
{
"role": "assistant",
"content": "The pattern is the composition here; `\\strum` spreads the chord:\n\n```supercollider\n(\nSynthDef... |
[
{
"role": "user",
"content": "Explain `LeastChange` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "LeastChange — Output least changed Given two inputs `a` and `b`, let `da[t] = abs(a[t] - a[t - 1])` and `db[t] = abs(b[t] - b[t - 1])`. Output `a[t]` if `da[t]` is smaller, and ou... |
[
{
"role": "user",
"content": "Give me a Pbind with sine voices and a 0.25 rhythm. (scale majorPentatonic, seq Pwalk, dur 0.25, octave 4, instr sine, 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 kick drum with a 0.5 s decay. (osc fm, sweep 0.06, decay 0.5, f0 150, f1 48, amp 0.8, rev 0)"
},
{
"role": "assistant",
"content": "Start with a swept sine, then shorten the decay to taste:\n\n```supercollider\n// kick drum: fm oscillator, 0.06 s pitch sweep... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ Standard2DN.ar(220, 11025, mul:0.3) }.play(s);\n\n// mouse-controlled param\n{ Standard2DN.ar(SampleRate.ir/2, SampleRate.ir, MouseX.kr(0.9,4), mul:0.3) }.play(s);\n\n// as a f... |
[
{
"role": "user",
"content": "What does `Signal.thresh` do?"
},
{
"role": "assistant",
"content": "Thresholding replaces every value < threshold with"
}
] |
[
{
"role": "user",
"content": "How do I make a kick that starts at 150 Hz and falls to 48 Hz? (osc fm, sweep 0.06, decay 0.12, f0 150, f1 48, 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: fm osci... |
[
{
"role": "user",
"content": "What is `HoaFocus` in SuperCollider?"
},
{
"role": "assistant",
"content": "HoaFocus — Higher Order Ambisonic (HOA) focus transformer Apply focus to a Higher Order Ambisonic signal (HOA) along an arbitrary axis & radius. Category: Libraries > Ambisonic Toolkit > UGe... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `RunningSum`."
},
{
"role": "assistant",
"content": "```supercollider\n// distorts of course - would need scaling\n{ RunningSum.ar(SoundIn.ar) }.play\n\n// Running Average over x samples\n(\n{\n var x = 100;\n Ru... |
[
{
"role": "user",
"content": "What does `Rect.moveBy` do?"
},
{
"role": "assistant",
"content": "Returns a new Rect which is offset by x and"
}
] |
[
{
"role": "user",
"content": "What does `NetAddr.langPort` do?"
},
{
"role": "assistant",
"content": "Get the port sclang is currently listening on (may change after a"
}
] |
[
{
"role": "user",
"content": "What does `Patch.respawn` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Pairs an Instr with inputs that that will be passed to the Instr Arguments: atTime — see atTime."
}
] |
[
{
"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: `Grain... |
[
{
"role": "user",
"content": "Give me a complete SuperCollider patch for little experiment with periodicity: bind everything it needs before it is used."
},
{
"role": "assistant",
"content": "```supercollider\n/* An little experiment with periodicity. \n Maybe there can be some sync artifac... |
[
{
"role": "user",
"content": "Write a SuperCollider patch for sound of an alien weapon firing. Start by defining the values the patch depends on."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\"raygun\", {arg amp = 0.5, sinfreq = 1000, glissf = 0.001, att = 0.01, rel = 0.9... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `NodeControl`."
},
{
"role": "assistant",
"content": "```supercollider\nd = SynthDef(\"help-NodeControl\", { |out = 0, freq = 400|\n Out.ar(out,\n SinOsc.ar(freq, 0, 0.5)\n )\n});\ny = d.play; // the synth\n\nc =... |
[
{
"role": "user",
"content": "Write a complete SuperCollider patch built around `Ringz` that runs as it is."
},
{
"role": "assistant",
"content": "```supercollider\na = NodeProxy(s);\na[0] = { |freq = 440, dt=0.1, rate=2| Ringz.ar(Impulse.ar(rate * [1, 1.2]), freq, dt)*0.1 };\na.play;\n(\na[1] =... |
[
{
"role": "user",
"content": "Write a SuperCollider patch for sound of an alien weapon firing. Start by defining the values the patch depends on."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\"raygun\", {arg amp = 0.5, sinfreq = 1000, glissf = 0.001, att = 0.01, rel = 0.9... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `ReplaceOut`."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\"ReplaceOutHelp\", { |out = 0, freq = 440|\n var source;\n source = SinOsc.ar(freq, 0, 0.1);\n\n // write to the bus, replacing... |
[
{
"role": "user",
"content": "How do I put a pluck in a reverb at mix 0.45? (verb freeverb2, room 0.5, damp 0.5, mix 0.45, source pluck)"
},
{
"role": "assistant",
"content": "`FreeVerb` is in the core library; the room and damp arguments do the work:\n\n```supercollider\n// reverb: freeverb2 on... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ ClipNoise.ar(0.2 }.play;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis opened earlier is never closed, so the expression... |
[
{
"role": "user",
"content": "Write a kick drum with a 0.12 s decay. (osc saw, sweep 0.06, decay 0.12, f0 150, f1 48, amp 0.8, rev 0)"
},
{
"role": "assistant",
"content": "The pitch envelope is what makes it read as a drum, not the oscillator:\n\n```supercollider\n// kick drum: saw oscillator, ... |
[
{
"role": "user",
"content": "What does `Resonz.ar` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Resonant filter. Arguments: in — The input signal.; freq — Resonant frequency in Hertz. WARNING: due to the nature of its implementation frequency values close to 0 may cau... |
[
{
"role": "user",
"content": "Write a Pbind in minorPentatonic using Prand for the degrees. (scale minorPentatonic, seq Prand, dur 0.3, octave 4, instr pluck, root 0)"
},
{
"role": "assistant",
"content": "`Pbind` sequences an Event per beat, and `\\degree` + `\\scale` does the pitch:\n\n```supe... |
[
{
"role": "user",
"content": "Write a complete SuperCollider patch built around `MultiplexAnalogIn` that runs as it is."
},
{
"role": "assistant",
"content": "```supercollider\n// modulate frequency of a sine oscillator\n\n(\nSynthDef(\"help-MultiplexAnalogIn\", { |out = 0|\n Out.ar(out,\n S... |
[
{
"role": "user",
"content": "Give me a saw kick with a 0.06 s pitch sweep. (osc saw, sweep 0.06, decay 0.12, f0 180, f1 55, amp 0.8, rev 0)"
},
{
"role": "assistant",
"content": "The pitch envelope is what makes it read as a drum, not the oscillator:\n\n```supercollider\n// kick drum: saw oscil... |
[
{
"role": "user",
"content": "Explain this SuperCollider code.\n```supercollider\n// Read a sound file from disk into a buffer\ns.boot;\n// ExampleFiles helps locate audio files used in examples\np = ExampleFiles.child;\n// peek at the path to see location and the format of a path\np.postln;\n// read the fi... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n// you have to write the sample path in the firts line\n\n~bufferdue = Buffer.read(s,\" WRITE YOUR SAMPLE PATH HERE \", bufnum:2);\n\n(\nSynthDef.new(\\bufbeat, {\n arg amp = 1, out = 0, buf, start, end, freq = 1;\n va... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\nSynthDef(\\pluck, {|freq = 440, dur = 1|\nvar klang,note;\ndur = dur * 2;\nnote = freq.cpsmidi;\nnote = note + (LFNoise2.ar(20).range(-1,1) * (1/8));\nklang = SinOsc.ar((note * [1,1.002]).midicps, phase: VarSaw.ar(note.m... |
[
{
"role": "user",
"content": "Give me a Pbind with fm voices and a 0.3 rhythm. (scale majorPentatonic, seq Prand, dur 0.3, octave 4, 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```supercollider\n(... |
[
{
"role": "user",
"content": "What is `OSCFunc` in SuperCollider?"
},
{
"role": "assistant",
"content": "OSCFunc — Fast Responder for incoming Open Sound Control Messages OSCFunc (and its subclass OSCdef) registers one or more functions to respond to an incoming OSC message which matches a speci... |
[
{
"role": "user",
"content": "Write a self-contained SuperCollider patch that uses `Node`. Define every value it uses."
},
{
"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);... |
[
{
"role": "user",
"content": "What is `Interpreter`?"
},
{
"role": "assistant",
"content": "Interpreter — The interpreter defines a context in which interactive commands are compiled and executed."
},
{
"role": "user",
"content": "What does `Interpreter.clearAll` do?"
},
{
"r... |
[
{
"role": "user",
"content": "What is `EaseOutBounce` in SuperCollider?"
},
{
"role": "assistant",
"content": "EaseOutBounce — Bounce ease-out Easing equation for a bounce (exponentially decaying parabolic bounce) ease-out, decelerating from zero velocity. The a parameter controls overshoot, the... |
[
{
"role": "user",
"content": "Write a GrainBuf synth at 16 grains per second. (rate 16, dur 0.15, interp 2, mode noise1, rev 1)"
},
{
"role": "assistant",
"content": "Granulation is `GrainBuf` plus a trigger rate; the position can move:\n\n```supercollider\n// granular synth with GrainBuf\n(\ns.... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ LFPulse.ar(50 * 0.1 }.play;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis opened earlier is never closed, so the express... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `TIRand`."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\"help-TIRand\", {\n var trig, outBus;\n trig = Dust.kr(10);\n outBus = TIRand.kr(0, 1, trig); // play on random channel between 0 and 1... |
[
{
"role": "user",
"content": "What is `Main`?"
},
{
"role": "assistant",
"content": "Main — The concrete instance of Process"
},
{
"role": "user",
"content": "What does `Main.thisProcess` do?"
},
{
"role": "assistant",
"content": "The singleton instance of Main is availab... |
[
{
"role": "user",
"content": "What does `RedWindow.play` do?"
},
{
"role": "assistant",
"content": "Starts an internal thread on the AppClock updating at rate"
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\na = NodeProxy(s);\na.reshaping = \\elastic;\na.play(0, 2); // play stereo\na.source = { BPF.ar(Dust.ar(8 ! 8), (0..5).nthPrime * 300, 0.01 * 20 };\na.numChannels; // 8\n```"
},... |
[
{
"role": "user",
"content": "Write an Ndef at 55 Hz I can retune while it plays. (ugens tri, cutoff 1400, lfo 0.8, freq 55, amp 0.12)"
},
{
"role": "assistant",
"content": "`Ndef` is a named proxy you can redefine while it is playing:\n\n```supercollider\n// Ndef drone: tri source through a 140... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `Duty`."
},
{
"role": "assistant",
"content": "```supercollider\n(\n {\n var freq;\n freq = Duty.kr(\n Dseq([0.2, 0.3, 0.4, Dseq([1, 1, 1, 2, 1, 2], inf)]) / 2,\n Dust.kr(1), // control rate reset\n ... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Dust`."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\"help-Dust\", { |out = 0|\n Out.ar(out,\n Dust.ar(200, 0.5)\n )\n}).play;\n);\n\n(\nSynthDef(\"help-Dust\", { |out = 0|\n Out.ar(out,\... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `BinaryOpUGen`."
},
{
"role": "assistant",
"content": "```supercollider\n// trigger an envelope\n(\n{\n var trig;\n trig = SinOsc.ar(1) > 0.1;\n EnvGen.kr(Env.perc, trig, doneAction: Done.none) * SinOsc.ar(440, 0, 0.... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `PeakFollower`."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\n\n// no decay\n(\n{\n SinOsc.ar(\n PeakFollower.ar(Dust.ar(20, Line.kr(0, 1, 4)), 1.0) * 1500 + 200,\n 0, 0.2\n )\n\n}.play;... |
[
{
"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;\... |
[
{
"role": "user",
"content": "What does `SequenceableCollection.isSeries` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Returns true if the collection is an arithmetic Arguments: step — Step size to look for. If none is given, any step size will match. `[0, 1, 2, 3, 4, ... |
[
{
"role": "user",
"content": "Write a SuperCollider patch that uses `Dseries` and actually plays. Assume nothing about the session."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var a, freq, trig;\n a = Dseries(0, 1, 15);\n trig = Impulse.kr(MouseX.kr(1, 40, 1));\n freq = D... |
[
{
"role": "user",
"content": "What is `List`?"
},
{
"role": "assistant",
"content": "List — list of items of variable size"
},
{
"role": "user",
"content": "What does `List.new` do?"
},
{
"role": "assistant",
"content": "Creates a List with the initial capacity given by s... |
[
{
"role": "user",
"content": "What is `ToggleFF` in SuperCollider?"
},
{
"role": "assistant",
"content": "ToggleFF — Toggle flip flop. Toggles between 0 and 1 upon receiving a trigger. Category: UGens > Triggers."
}
] |
[
{
"role": "user",
"content": "Give me a Pbind with sine voices and a 0.25 rhythm. (scale minorPentatonic, seq Prand, dur 0.25, octave 6, instr sine, 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 kick drum with a 0.18 s decay. (osc sine, sweep 0.06, decay 0.18, f0 220, f1 40, amp 0.8, rev 0)"
},
{
"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... |
[
{
"role": "user",
"content": "How do I set the tempo?"
},
{
"role": "assistant",
"content": "TempoClock.default.tempo = 120/60; the argument is beats per second, so 120 BPM is 2.0. Patterns scheduled on the default clock then follow it."
}
] |
[
{
"role": "user",
"content": "What does `UnicodeResponder.control` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "register responder functions for unicode and modifier combinations Arguments: ... assns."
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\n{\n SinOsc.ar(\n RunningMax.ar(Dust.ar(20), Impulse.ar(0.4)) * 500 + 200,\n 0, 0.2\n )\n\n}.play;\n);\n\n// follow a sine lfo, reset rate controlled by mouse x\n(\... |
[
{
"role": "user",
"content": "Write a self-contained SuperCollider patch that uses `PV_Mul`. Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\n\n(\nSynthDef(\"help-mul\", { |out = 0|\n var inA, chainA, inB, chainB, chain ;\n inA = SinOsc.ar(500, 0, 0... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.