conversations listlengths 2 6 |
|---|
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `AnalogIn`."
},
{
"role": "assistant",
"content": "```supercollider\n// modulate frequency of a sine oscillator\n\n(\nSynthDef(\"help-AnalogIn\", { |out = 0|\n Out.ar(out,\n SinOsc.ar(AnalogIn.ar(0).exprange(200, 5... |
[
{
"role": "user",
"content": "Show me a self-contained SuperCollider patch using `Dxrand`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var a, freq, trig;\n a = Dxrand([1, 3, 2, 7, 8], inf);\n trig = Impulse.kr(MouseX.kr(1, 400, 1));\n freq ... |
[
{
"role": "user",
"content": "Explain `SClusterDistortions` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "SClusterDistortions — control SCluster distortions Distortions control for LINKClasses/SCluster. Category: SInstruments."
}
] |
[
{
"role": "user",
"content": "What is `DefNameLabel` in SuperCollider?"
},
{
"role": "assistant",
"content": "DefNameLabel — color coded button displaying a SynthDef name This is used in ServerTreeGui, ServerLog and when inspecting Synth, SynthDef and related classes. The color for a def name wi... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ SinOsc.ar(500 + LFPulse.ar(4).bipolar(40), 0, 0.5 * 0.1 }.play;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis opened ear... |
[
{
"role": "user",
"content": "My Synth runs but I hear nothing. How do I debug it?"
},
{
"role": "assistant",
"content": "Check in this order, because each step eliminates a whole class of causes:\n\n1. **Is anything coming out of the bus you write to?** `Out.ar(0, sig)` for the master. A typo l... |
[
{
"role": "user",
"content": "What does `AbstractPlayer.onPlay` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "the base class for all Players : a playable object Arguments: func; timeout; listener; oneShot; throwErrorOnTimeout."
}
] |
[
{
"role": "user",
"content": "Explain this SuperCollider code.\n```supercollider\ns.boot;\n(\n{\n SinOsc.ar([225, 450, 900], 0, 0.2)\n + LPF.ar(\n LFPulse.ar(226 * [1, 2, 5], [0, 0.1, 0.1], 0.2, 0.2),\n MouseX.kr(20, 10000, 1)\n )\n}.scope;\n);\n\n// server.scope only changes the ... |
[
{
"role": "user",
"content": "What is `PV_MagGate` in SuperCollider?"
},
{
"role": "assistant",
"content": "PV_MagGate — reduces magnitudes above or below thresh For positive values of thresh, acts something like a noise reduction. For negative values, highlights smaller sounds. Category: UGens ... |
[
{
"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": "Write a SuperCollider patch for Feedback resonator. Start by defining the values the patch depends on."
},
{
"role": "assistant",
"content": "```supercollider\n// Resonator, must subtract blockSize for correct tuning\n(\nSynthDef(\"testRes\", {\n \nvar freq = 300, ... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\np = Patch({ arg audio=0,ffreq=300;\n RHPF.ar(audio,ffreq,0.1)\n});\nq = Patch({\n Saw.ar(mul: 0.3)\n});\n\np.play;\nq.play;\n\n// adds a connection\n// but q is still out of ma... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n(SynthDef(\\x, {|midi = 60, amp = 0.8| Out.ar(0, Pan2.ar(SinOsc.ar(midi.midicps, mul: EnvGen.kr(Env.perc(0, 0.5), timeScale: 0.5, levelScale: 0.3)), Rand(-1, 1)) * EnvGen.kr(Env.perc(0, 0.5), timeScale: 1.3*0.5, levelSca... |
[
{
"role": "user",
"content": "Give me a Pbind with sine voices and a 0.25 rhythm. (scale majorPentatonic, seq Pshuf, 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 granular texture, through a reverb. (rate 20, dur 0.15, interp 2, mode noise, 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": "Can I run SuperCollider without the IDE?"
},
{
"role": "assistant",
"content": "Yes. `sclang` runs the language and `scsynth` the server, and they are separate processes by design\n— the IDE is only a client. A headless script is a `.scd` run with `sclang my-piece.s... |
[
{
"role": "user",
"content": "Give me a granular patch with noise1 grain position and interp 4. (rate 10, dur 0.04, interp 4, mode noise1, rev 0)"
},
{
"role": "assistant",
"content": "Granulation is `GrainBuf` plus a trigger rate; the position can move:\n\n```supercollider\n// granular synth wi... |
[
{
"role": "user",
"content": "What does `ScrollView.visibleOrigin` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Gets the position on the canvas corresponding to its upper-left-most visible point, or moves the canvas so as to leave the given point on it at the top-left ... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `EnvGen`."
},
{
"role": "assistant",
"content": "```supercollider\n{ PinkNoise.ar(EnvGen.kr(Env.perc, doneAction: Done.freeSelf)) }.play\n```"
}
] |
[
{
"role": "user",
"content": "Write a kick drum with a 0.35 s decay. (osc fm, sweep 0.06, decay 0.35, f0 150, f1 48, amp 0.6, rev 1)"
},
{
"role": "assistant",
"content": "The pitch envelope is what makes it read as a drum, not the oscillator:\n\n```supercollider\n// kick drum: fm oscillator, 0.... |
[
{
"role": "user",
"content": "What does `BFormatSpec.new` do?"
},
{
"role": "assistant",
"content": "datatype specifying an output or input of 'audio' rate in Ambisonic BFormat"
}
] |
[
{
"role": "user",
"content": "What does `QuadC.ar` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "General quadratic map chaotic generator Arguments: freq — Iteration frequency in Hertz; a — Equation variable; b — Equation variable; c — Equation variable; xi — Initial val... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Harmonics`."
},
{
"role": "assistant",
"content": "```supercollider\na.ramp(1.0, 1.0); // returns a harmonic series\n\nb = Buffer.alloc(s, 512, 1);\n// harmonic series for freqs, ramp down for amps\nb.sine2(a.ramp(1.... |
[
{
"role": "user",
"content": "Write an Ndef with a sine source and a 200 Hz low-pass."
},
{
"role": "assistant",
"content": "`Ndef` holds the synth and the environment, so you can edit it live:\n\n```supercollider\n// Ndef drone: sine source through a 200 Hz low-pass\n(\nNdef(\\nd_sine_165_200, ... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\ns.boot;\n(\nz = {\n BHiPass.ar(\n SoundIn.ar([0, 1]),\n MouseX.kr(10, 20000, \\exponential), // cutoff freq.\n MouseY.kr(0.0, 1.0, \\linear), // rq\n 0.5); // mul\n}... |
[
{
"role": "user",
"content": "What does `SGUIelement.value` do?"
},
{
"role": "assistant",
"content": "get or set the current value. nothing special. normalised. action is only called if value has"
}
] |
[
{
"role": "user",
"content": "What does `KeyDownResponderGroup.new` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "for concatenating differing classes of key/unicode responders Arguments: ... responders."
}
] |
[
{
"role": "user",
"content": "Explain `ServerTreeGui` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "ServerTreeGui — displays the groups and synths currently on the Server This shows the current state of the Server using the same integrated color coding and linking system as Se... |
[
{
"role": "user",
"content": "Write an Ndef with a tri source and a 400 Hz low-pass. (ugens tri, cutoff 400, lfo 0.3, 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: tri source through a ... |
[
{
"role": "user",
"content": "Write a self-contained SuperCollider patch that uses `ControlName`. Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\n(\nd = SynthDef(\\tone, { |out = 0, freq = 200|\n var sig;\n\n freq.spec = ControlSpec(20, 20000);\n sig = Sin... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ SinOsc.ar(300, 0, 0.5) * SinOsc.kr(2.unipolar * 0.1 }.play;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis opened earlier... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\na = WhiteNoise.ar; // a WhiteNoise\nb = a.squared; // a UnaryOpUGen.\nb.operator; // squared\n\n// sound example\n\n{ var a = LFSaw.ar(300).range(0, 2pi); a.sin * 0.1 }.play;\n\n... |
[
{
"role": "user",
"content": "Explain `FreqScopeView` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "FreqScopeView — Frequency analysis view FreqScopeView shows the frequency spectrum of a specified audio bus. Category: GUI > Views."
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `UnaryOpUGen`."
},
{
"role": "assistant",
"content": "```supercollider\na = WhiteNoise.ar; // a WhiteNoise\nb = a.squared; // a UnaryOpUGen.\nb.operator; // squared\n\n// sound example\n\n{ var a = LFSaw.ar(300).range(... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\ns.boot;\n\n(\nSynthDef(\"help-PinkNoise\", { |out = 0|\n Out.ar(out, PinkNoise.ar(0.1))\n}).add;\n\nSynthDef(\"help-In\", { |out = 0, in = 0|\n var input;\n input = In.ar(in, 1);\n Out.ar(out, input);\n\n}).add;\n... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n(\n// Dust randomly triggers Decay to create an exponential\n// decay envelope for the WhiteNoise input source\n{\nz = Decay.ar(Dust.ar(1, 0.5), 0.3, WhiteNoise.ar);\nDelayN.ar(z, 0.2, 0.2, 1, z); // input is mixed with d... |
[
{
"role": "user",
"content": "How do I see what a signal is doing?"
},
{
"role": "assistant",
"content": "`.poll` prints values to the post window — `SinOsc.kr(1).poll` prints once per control block, and `.poll(10)` limits it to every 10th. `s.scope` opens an oscilloscope on the main output, and... |
[
{
"role": "user",
"content": "What does `Pen.lineDash` do?"
},
{
"role": "assistant",
"content": "Set the line dash pattern. pattern should be a FloatArray of values that specify the lengths of the painted segments and not painted"
}
] |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n(\ns = Server.local;\nServer.default = s;\ns.boot;\n);\n \n \n// definition for future reference in arbitrary Environments,\n// Gauss distribution is not bounded, so do clip !\n\n(\np = Pbind(\n \\midinote, PLgau... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n{h={|f|1-LFTri.ar(f)};l={|s,e|Line.ar(s,e,1200,1,0,2)};FreeVerb.ar(h.(l.(147,5147))*h.(l.(1117,17))*h.(100)*h.([55,55.1])*0.05,0.7,1)}.play\n\n//Explanation of this piece - http://schemawound.com/post/40100438722/11-13-... |
[
{
"role": "user",
"content": "How do I add a reverb send to a whole group?"
},
{
"role": "assistant",
"content": "Same shape as the delay: a private stereo bus, one effect reading it, instruments writing both dry\nand wet.\n\n```supercollider\n(\n~verbBus = Bus.audio(s, 2);\nSynthDef(\\verb, { |... |
[
{
"role": "user",
"content": "Explain `Peak` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "Peak — Track peak signal amplitude. Outputs the peak amplitude of the signal received at the input. When a trigger occurs at the `reset` input, the maximum output value is reset to the c... |
[
{
"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(StandardN.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\n(\nSynthDef(\"help-ExpRand\", { |out = 0|\n Out.ar(out,\n FSinOsc.ar(\n ExpRand(100.0, 8000.0),\n 0, Line.kr(0.2, 0, 0.01, doneAction: Done.freeSelf))\n )\n}).add;... |
[
{
"role": "user",
"content": "Write a complete SuperCollider patch built around `SelectX` that runs as it is."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var a;\n a = [\n SinOsc.ar,\n Saw.ar(300),\n Pulse.ar(230)\n ];\n\n SelectX.ar(MouseX.kr(0, 1) * a.si... |
[
{
"role": "user",
"content": "Show me a self-contained SuperCollider patch using `SampleRate`: bind everything it needs first."
},
{
"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), res... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `ControlSpec`."
},
{
"role": "assistant",
"content": "```supercollider\n// ControlSpec-map can also be used to map ugens\n(\nvar spec;\nspec = [100, 18000, \\exp].asSpec;\n{\n var freq, osc;\n osc = SinOsc.kr(0.1).ra... |
[
{
"role": "user",
"content": "What is `DataFile` in SuperCollider?"
},
{
"role": "assistant",
"content": "DataFile — Write specs into File A tool for reading and writing data files. Category: Libraries > Radicles."
}
] |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n(\n{\n var mod = SinOsc.ar([0.1,0.15,0.2]).range(0,1);\n var saw = LFSaw.ar([10,12,15]);\n var out = (saw - ((saw>0)*mod)+(mod*0.5));\n Splay.ar(out)*0.4;\n}.play;\n\n{\n var mod = SinOsc.ar([0.1,0.15,0.2]).range(0,... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `ProxySpace`."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\n\np = ProxySpace.new;\np.fadeTime = 2; // fadeTime specifies crossfade\np[\\out].play; // monitor an empty placeholder through hardware ou... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\na = { |x, root = 60| x + root }; b = a.midicps; [a.value(9), b.value(9)];\na = Pseries(60, 1, inf).midicps; a.asStream.nextN(12);\n{ a = LFNoise1.ar(1) * 5 + 60; Pulse.ar(a.round... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\n{\n var a, freq, trig;\n a = Dwrand([0, 1, 2, 7], [0.4, 0.4, 0.1, 0.1], inf).dpoll;\n trig = Impulse.kr(MouseX.kr(1, 400, 1));\n freq = Demand.kr(trig, 0, a) * 30 + 340;\n... |
[
{
"role": "user",
"content": "Write an Ndef with a saw source and a 800 Hz low-pass."
},
{
"role": "assistant",
"content": "Use `Ndef` when the patch has to change without stopping:\n\n```supercollider\n// Ndef drone: saw source through a 800 Hz low-pass\n(\nNdef(\\nd_saw_110_800, { |freq = 110,... |
[
{
"role": "user",
"content": "How do I play a random minorPentatonic scale at octave 4? (scale minorPentatonic, 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```superco... |
[
{
"role": "user",
"content": "What is `Pdef`?"
},
{
"role": "assistant",
"content": "Pdef — stream reference definition"
},
{
"role": "user",
"content": "What does `Pdef.all` do?"
},
{
"role": "assistant",
"content": "A global IdentityDictionary with all proxies."
},
... |
[
{
"role": "user",
"content": "How do I put reverb on everything?"
},
{
"role": "assistant",
"content": "Send it: one private bus, one FreeVerb instance reading it, and every instrument writing dry to the master and wet to the bus.\n\n```supercollider\n~verb = Bus.audio(s, 2);\nSynthDef(\\verb, {... |
[
{
"role": "user",
"content": "What does `Interface.new` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Sets up an environment in which you can build a player, a GUI and responders for midi and keyboard control Arguments: interfaceDef; args."
}
] |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\nIdentitySet[1, 2, 3].add(4);\nIdentitySet[1, 2, 3].add(3);\n// the two strings are equal but not identical\nIdentitySet[\"abc\", \"def\", \"ghi\"].add(\"def\");\n// symbols are guaranteed to be identical if they are equal... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Lag2`."
},
{
"role": "assistant",
"content": "```supercollider\n(\n// used to lag pitch\n{\n SinOsc.ar( // sine wave\n Lag2.kr( // lag the modulator\n LFPulse.kr(4, 0, 0.5, 50, 400), // frequency mod... |
[
{
"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 does `Vowel.compose` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "compose your own vowel based on the ones defined in formTable. Wraps when argument lengths differ (as in channel Arguments: vowelNames — an array describing the vowels'... |
[
{
"role": "user",
"content": "Give me a Pbind with sine voices and a 0.4 rhythm. (scale minorPentatonic, seq Pseq, dur 0.4, octave 4, instr sine, 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... |
[
{
"role": "user",
"content": "Synth Iteration Help?"
},
{
"role": "assistant",
"content": "SuperCollider forum — Synth Iteration Help\n\n```supercollider\n(\nSynthDef (\\sine_tone) {\narg freq = 440, amp = 1, len = 1, bus = 0;\nvar sig, env;\nenv = Env.step ([ amp ], [ len ]);\nenv = EnvGen.kr (... |
[
{
"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": "What does this SuperCollider code do?\n```supercollider\n// Since the allpass delay has no audible effect as a resonator on\n// steady-state sound ...\n\n{ AllpassC.ar(WhiteNoise.ar(0.1), 0.01, XLine.kr(0.0001, 0.01, 20), 0.2) }.play;\n\n// ...these examples add the input to th... |
[
{
"role": "user",
"content": "Give me a fm kick with a 0.06 s pitch sweep. (osc fm, sweep 0.06, decay 0.5, f0 150, f1 48, amp 0.6, rev 1)"
},
{
"role": "assistant",
"content": "The pitch envelope is what makes it read as a drum, not the oscillator:\n\n```supercollider\n// kick drum: fm oscillato... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ Impulse.ar(800, 0.0, 0.5, 0) }.play\n\n{ Impulse.ar(XLine.kr(800, 100, 5), 0.0, 0.5, 0 }.play\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missi... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\n// used to lag pitch\n{\n SinOsc.ar( // sine wave\n Lag2.kr( // lag the modulator\n LFPulse.kr(4, 0, 0.5, 50, 400), // frequency modulator\n Line.kr(0, ... |
[
{
"role": "user",
"content": "Show me a self-contained SuperCollider patch using `KeyTrack`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\n// alternating major and minor chords as a test\n(\n{\n var in, fft, resample;\n var key, transientdetection;\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 trig;\n trig = Dust.kr(10);\n Pan2.ar(SinOsc.ar(\n TGaussRand.kr(300, 3000, trig)\n ),\n TGaussRand.kr(-1, 1, trig),\n 0.1\n )\n}.play;\n```"
},
... |
[
{
"role": "user",
"content": "What does doneAction do?"
},
{
"role": "assistant",
"content": "It tells the server what to do to the enclosing Synth when the UGen finishes. The one that matters most is `doneAction: 2`, which frees the Synth: that is how a percussive sound cleans itself up instead... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// randomly modulate params\n(\n{ LinCongL.ar(\n LFNoise2.kr(1, 1e4, 1e4),\n LFNoise2.kr(0.1, 0.5, 1.4),\n LFNoise2.kr(0.1, 0.1, 0.1),\n LFNoise2.kr(0.1)\n) * 0.2 }.play(s);\... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\ns.boot;\n(\nz = {\nBBandPass.ar(\n SoundIn.ar([0, 1]),\n MouseX.kr(20, 20000, \\exponential),\n MouseY.kr(0.0, 10.0, \\linear), // bw\n 0.5); // mul\n}.play)\nz.release;\n\n(... |
[
{
"role": "user",
"content": "What does `EnvironmentRedirect.dispatch` do?"
},
{
"role": "assistant",
"content": "A function or object that is called when the environment is modified. The key and the changed object are passed as arguments. When an object is removed from the environment, dispatch... |
[
{
"role": "user",
"content": "Write a complete SuperCollider patch built around `MultiTap` that runs as it is."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\nb = Buffer.alloc(s, s.sampleRate);\n(\n{\n MultiTap.ar(`[0.1, 0.2, 0.3, 0.4], `[0.1, 0.2, 0.4, 0.8],\n Decay.ar(Dus... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```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 QuadL.ar(SampleRate.ir/4, r.neg, r, 0, 0.1) * 0.4;\n}.play(s);\n``... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n// A beautiful sc140 tweet by Batuhan Bozkurt, parametrized for real-time changes\n(\n// Start sound here\na = { | rateL = 5, rateR = 6, blipMul = 100, blipAdd = 50, fMul = 50, kMul = 1 |\n f = LocalIn.ar(2).tanh;\n k ... |
[
{
"role": "user",
"content": "Write a complete SuperCollider patch built around `LFPulse` that runs as it is."
},
{
"role": "assistant",
"content": "```supercollider\n4.insp;\n[1,2,3].insp;\nPageLayout.insp;\nSynthDef(\"yawn\",{ arg freq=100;\n Out.ar(0,Saw.ar * LFPulse.kr(3))\n}).insp;\n```"... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// randomly modulate params\n(\n{ LinCongN.ar(\n LFNoise2.kr(1, 1e4, 1e4),\n LFNoise2.kr(0.1, 0.5, 1.4),\n LFNoise2.kr(0.1, 0.1, 0.1),\n LFNoise2.kr(0.1)\n) * 0.2 }.play(s);\... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\ns.boot;\n\n(\n{\n var in, chain;\n in = WhiteNoise.ar(0.2);\n chain = FFT(LocalBuf(2048), in);\n chain = PV_BrickWall(chain, SinOsc.kr(0.1));\n IFFT(chain);\n}.play\n```"
... |
[
{
"role": "user",
"content": "What does `SaveConsole.open` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "widget with Save/SaveAs/Open controls Arguments: onOpenF."
}
] |
[
{
"role": "user",
"content": "Give me a Pbind with fm voices and a 0.3 rhythm. (scale minorPentatonic, seq Pshuf, dur 0.3, octave 4, instr fm, root 0)"
},
{
"role": "assistant",
"content": "The pattern is the composition here; `\\strum` spreads the chord:\n\n```supercollider\n(\nSynthDef(\\fm_vo... |
[
{
"role": "user",
"content": "What is `PbindProxy`?"
},
{
"role": "assistant",
"content": "PbindProxy — incremental event pattern reference"
},
{
"role": "user",
"content": "What does `PbindProxy.new` do?"
},
{
"role": "assistant",
"content": "Return a new instance of Pbi... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n(..-9).mod(-3);\n// returns [0, -1, -2, 0, -1, -2, 0, -1, -2, 0]\n(..-9).modSeaside(-3);\n// returns [0, 2, 1, 0, -4, -5, 0, -4, -5, 0]\n\n// plot\n(-25..25).modSeaside(-5).plot.plotMode_(\\steps);\n\n// modSeaside\nPbind... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\nSynthDef(\"help-PulseDivider\", { |out = 0|\n var p, a, b;\n p = Impulse.ar(8);\n a = SinOsc.ar(1200, 0, Decay2.ar(p, 0.005, 0.1));\n b = SinOsc.ar(600, 0, Decay2.ar(PulseDiv... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `LeastChange`."
},
{
"role": "assistant",
"content": "```supercollider\n(\nd = { |freq = 440|\n var internalFreq;\n internalFreq = LFNoise0.ar(0.3, 300, 800);\n SinOsc.ar(\n LeastChange.kr(freq, internalFreq) // two sou... |
[
{
"role": "user",
"content": "What is `PLgeom` in SuperCollider?"
},
{
"role": "assistant",
"content": "PLgeom — dynamic scope Pgeom variant Takes Symbol args for later reference by the Streams, which will read from variables in the Environments of their instantiation. See PLx_suite. Category: L... |
[
{
"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": "Write a self-contained SuperCollider patch for Seekers are something you should avoid. Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var time = 0.23;\n var freq = (55).midicps;\n var a = VarSaw.ar(freq/2, width: XLine... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n// allocate buffer\nb = Buffer.alloc(s, 44100, 1);\n\n(\n// Dust randomly triggers Decay to create an exponential\n// decay envelope for the WhiteNoise input source\n{\nz = Decay.ar(Dust.ar(1, 0.5), 0.3, WhiteNoise.ar);\n... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\nx = {\n // A collection of different tones:\n var son = SinOsc.ar((100, 100.3 .. 110));\n var val = ArrayMin.ar(son).at(0);\n val = LeakDC.ar(val); // the operation tends ... |
[
{
"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": "What does `Instr.storeArgs` do?"
},
{
"role": "assistant",
"content": "An enhanced version of SynthDef with a library"
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// stepper cycles between 0 and 1, average hovers around 0.5\na = { AverageOutput.kr(Stepper.kr(Impulse.kr(1), min: 0, max: 1).poll }.play;\n\na.free;\n```"
},
{
"role": ... |
[
{
"role": "user",
"content": "Write a self-contained SuperCollider patch for radio static with tuning noise (a SuperCollider snippet). Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\"radiostatic\", {arg out=0;\n var hum, sineSweep, tuning, dust... |
[
{
"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*Maths2.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 t... |
[
{
"role": "user",
"content": "Explain `BBCutQuantise1` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "BBCutQuantise1 — Adds a swing rhythm in BBCut2 BBCutQuantise1 is experimental. Category: Libraries > BBCut > Cut procedures."
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\nVowel().brightenExp(1).dBs.postln; \nVowel().brightenExp(0.1).dBs.postln;\nVowel().brightenExp(1.5).dBs.postln;\n\n{Formants.ar(100, Vowel(\\a, \\bass).brightenExp(MouseX.kr(0,5)... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\n Instr(\\helpTempoPlayer,{\n Impulse.ar( Tempo.kr )\n });\n\n Patch(\\helpTempoPlayer).play(atTime:1)\n;\nTempo.bpm = 100;\n\nTempo.bpm = 180;\n```"
},
{
"role":... |
[
{
"role": "user",
"content": "Give me an Ndef with an LFO at 0.1 Hz. (ugens tri, cutoff 200, lfo 0.1, freq 220, amp 0.12)"
},
{
"role": "assistant",
"content": "`Ndef` holds the synth and the environment, so you can edit it live:\n\n```supercollider\n// Ndef drone: tri source through a 200 Hz lo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.