conversations listlengths 2 6 |
|---|
[
{
"role": "user",
"content": "Show me a self-contained SuperCollider patch using `LFSaw`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\n(\nfork {\n ~group = Group();\n\n 2.wait;\n\n SynthDef(\\buzz, {\n |out = 0, freq = 300, amp = 0.1, filter = 1.... |
[
{
"role": "user",
"content": "What is the difference between Line and XLine?"
},
{
"role": "assistant",
"content": "Both are ramps: `Line.kr(start, end, dur, mul, add, doneAction)` moves linearly, `XLine.kr(...)` moves exponentially in a fixed ratio per unit time. Use Line for amplitude and XLin... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ Streson.ar(LFSaw.ar([220, 180], 0, mul:EnvGen.kr(Env.asr(0.5, 1, 0.02), 1.0) * 0.2), LinExp.kr(LFCub.kr(0.1, 0.5*pi), -1, 1, 280, 377).reciprocal, 0.9, 0.3 }.play\n```"
},
... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Formant`."
},
{
"role": "assistant",
"content": "```supercollider\n// modulate fundamental frequency, formant freq stays constant\n{ Formant.ar(XLine.kr(400, 1000, 8), 2000, 800, 0.125) }.play\n\n// modulate formant f... |
[
{
"role": "user",
"content": "What is `ControlPatchOut` in SuperCollider?"
},
{
"role": "assistant",
"content": "ControlPatchOut — manages a Player's output when connecting to other Players Category: Libraries > crucial > internals."
}
] |
[
{
"role": "user",
"content": "Write a SuperCollider patch that uses `BufRd` and actually plays. Assume nothing about the session."
},
{
"role": "assistant",
"content": "```supercollider\nb = Buffer.read(s, ExampleFiles.child);\n\n{ BufRd.ar(1, b, Sweep.ar(Impulse.ar(BufDur.kr(b).reciprocal), Buf... |
[
{
"role": "user",
"content": "What is `AudioMulchClock` in SuperCollider?"
},
{
"role": "assistant",
"content": "AudioMulchClock — clock that slaves to AudioMulch over network Use this class to receive sync and have SuperCollider act as a slave. Category: Scheduling > Clocks."
}
] |
[
{
"role": "user",
"content": "Show me a self-contained SuperCollider patch using `Dswitch`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\n(\n {\n var d, trig;\n d = Dswitch([\n Dwhite(3, 4, 2),\n Dwhite(0, 1, 2),\n Dseq([1, 1, 1, 0... |
[
{
"role": "user",
"content": "How do I add reverb with FreeVerb?"
},
{
"role": "assistant",
"content": "`FreeVerb.ar(in, mix, room, damp)` — mix 0..1 is dry/wet, room 0..1 is the size (0.5 is a small room, 0.9 is a hall), damp 0..1 rolls off the high end of the tail. Put it after your sound: `Fr... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\na = { SinOsc.ar(\\freq.kr(440, 1.2)) }.play;\na.set(\\freq, 330);\na.release;\na = { SinOsc.ar(\\freq.kr([440, 460], 1.2)) }.play;\na.setn(\\freq, [330, 367];\na.release;\n```"
... |
[
{
"role": "user",
"content": "Give me a sine kick with a 0.06 s pitch sweep. (osc sine, sweep 0.06, decay 0.25, f0 220, 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: sine os... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `QuadL`."
},
{
"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 QuadL.ar(SampleRate.ir/4, r.neg, r, 0, 0.1) * 0... |
[
{
"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 = ArrayMax.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// randomly modulate params\n(\n{ LinCongC.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": "Explain this code:\n```supercollider\n~buf = Buffer.read(s, \"C:/sounds/break.wav\");\nPlayBuf.ar(1, ~buf, BufRateScale.kr(~buf), loop: 1);\n```"
},
{
"role": "assistant",
"content": "Loads a sound file into server memory, then plays it in a loop at the file's origi... |
[
{
"role": "user",
"content": "What does `Color.set` do?"
},
{
"role": "assistant",
"content": "For use with Pen. Sets the `stroke` and `fill` of Pen to"
}
] |
[
{
"role": "user",
"content": "Give me a complete SuperCollider patch for Nested ifs in a SynthDef: bind everything it needs before it is used."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\nvar noise, out;\nnoise = LFNoise0.kr(8);\n\nout = if( noise > 0.0,\n if(noise > 0.5, \n ... |
[
{
"role": "user",
"content": "What does `MassEditUChain.prepareWaitAndStart` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "(describe method Arguments: target — (describe argument here); loadDef — (describe argument here). Returns: (returnvalue)"
}
] |
[
{
"role": "user",
"content": "What is `Pbindef`?"
},
{
"role": "assistant",
"content": "Pbindef — incremental event pattern reference definition"
},
{
"role": "user",
"content": "What does `Pbindef.new` do?"
},
{
"role": "assistant",
"content": "store the pattern in the g... |
[
{
"role": "user",
"content": "Write a SuperCollider patch that uses `RunningSum` and actually plays. Assume nothing about the session."
},
{
"role": "assistant",
"content": "```supercollider\n// RMS Power\n(\n{\n var input, numsamp;\n\n input = LFSaw.ar;\n numsamp = 30;\n\n (RunningS... |
[
{
"role": "user",
"content": "Write a snare drum in SuperCollider."
},
{
"role": "assistant",
"content": "Two ingredients: a short tonal body and band-passed noise for the rattle.\n\n```supercollider\n(\nSynthDef(\\snare, { |out = 0, amp = 0.6|\n var env = EnvGen.kr(Env.perc(0.001, 0.18, 1, -... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\nNdef(\\sound).fadeTime = 3;\n(\nNdef(\\sound, { |fadeTime = 1, gate = 1|\n var e = Env.adsr(fadeTime, 0.01, 0.4, fadeTime).ar(2, gate);\n SinOsc.ar(100 + (e * 700), SinOsc.ar(2... |
[
{
"role": "user",
"content": "What does `JITGui.accepts` do?"
},
{
"role": "assistant",
"content": "test whether obj is a valid object to show in a JITGui. In JITGui itself, all objects are accepted, in the subclasses, obj can either be nil or a specific class, such as Tdef, Pdef,"
}
] |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\ns.boot;\n// create a Synth at the head of the default Server's default group\n// based on the SynthDef \"default\"\nx = Synth.new(\"default\");\ns.queryAllNodes; // note the default group (ID 1)\nx.free;\n\n// Using an ar... |
[
{
"role": "user",
"content": "Write a self-contained SuperCollider patch that uses `LFNoise1`. Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\nb = Bus.control(s, 1);\n\na = {\n var freq;\n freq = LFNoise1.kr(2, 600, 800);\n Out.kr(b, freq); // no need ... |
[
{
"role": "user",
"content": "Show me a self-contained SuperCollider patch using `Duty`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\n(\n {\n var freq;\n freq = Duty.kr(\n Drand([0.01, 0.2, 0.4], inf), // demand ugen as durations\n ... |
[
{
"role": "user",
"content": "What does `PageLayout.view` do?"
},
{
"role": "assistant",
"content": "the top most view on the Returns: a View"
}
] |
[
{
"role": "user",
"content": "Explain `HelpBrowser` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "HelpBrowser — Browse the SuperCollider help documentation HelpBrowser is a GUI help browser that lets you browse the documentation of SuperCollider. It is coupled with SCDoc to al... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `FBSineN`."
},
{
"role": "assistant",
"content": "```supercollider\n// default initial params\n{ FBSineN.ar(SampleRate.ir/4) * 0.2 }.play(s);\n```"
}
] |
[
{
"role": "user",
"content": "Explain this code:\n```supercollider\nx = { |freq = 440, amp = 0.2| SinOsc.ar(freq) * amp }.play;\nx.set(\\freq, 660);\n```"
},
{
"role": "assistant",
"content": "Starts an anonymous synth with two controls, then changes one of them while it plays.\n\nThe `|freq = 4... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `TChoose`."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var a;\n a = [\n SinOsc.ar,\n Saw.ar,\n Pulse.ar\n ];\n TChoose.ar(Dust.ar(MouseX.kr(1, 1000, 1)), a) * 0.2\n\n}.play;\n)\... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ LFNoise2.ar(1000, 0.25) }.play;\n\n// modulate frequency\n\n{ LFNoise2.ar(XLine.kr(1000, 10000, 10), 0.25) }.play;\n\n// as frequency modulator\n(\n{ SinOsc.ar(\n LFNoise2.a... |
[
{
"role": "user",
"content": "What does `Collection.size` do?"
},
{
"role": "assistant",
"content": "Answers the number of objects contained in the Collection. `List[1, 2, 3,"
}
] |
[
{
"role": "user",
"content": "Give me a granular patch with noise1 grain position and interp 4. (rate 28, dur 0.07, interp 4, 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... |
[
{
"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": "Are you a general assistant?"
},
{
"role": "assistant",
"content": "No. I am sc-mind, a 198M model trained on SuperCollider. Ask me about SynthDefs, UGens, Patterns, Ndef, sclang and scsynth; outside that I have little to offer."
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\nb = NodeProxy.new.play;\nb.source = { PinkNoise.ar(0.2.dup) };\n// now I want to filter b through a new proxy.\na = NodeProxy.new;\na <-- b; a.source = { HPF.ar(b.ar, 7000) };\na... |
[
{
"role": "user",
"content": "Write a kick drum with a 0.5 s decay. (osc sine, sweep 0.06, decay 0.5, 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: sine oscillator, ... |
[
{
"role": "user",
"content": "Give me an Ndef with an LFO at 0.8 Hz. (ugens saw, cutoff 400, 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: saw source through a 400 Hz low-pass\n... |
[
{
"role": "user",
"content": "What is Ndef used for?"
},
{
"role": "assistant",
"content": "Ndef is the JITLib node proxy: a named placeholder for a running signal chain that you can redefine while it plays. `Ndef(\\drone, { SinOsc.ar(55) * 0.1 }).play` starts it, and calling Ndef(\\drone, { ...... |
[
{
"role": "user",
"content": "How do I build a live drone with Ndef at 82.5 Hz? (ugens blip, cutoff 1400, lfo 0.8, freq 82.5, amp 0.12)"
},
{
"role": "assistant",
"content": "Use `Ndef` when the patch has to change without stopping:\n\n```supercollider\n// Ndef drone: blip source through a 1400 ... |
[
{
"role": "user",
"content": "Write a kick drum with a 0.25 s decay. (osc fm, sweep 0.06, decay 0.25, f0 150, f1 48, amp 0.8, rev 0)"
},
{
"role": "assistant",
"content": "A kick is a sine with a fast pitch drop and a short amplitude envelope:\n\n```supercollider\n// kick drum: fm oscillator, 0.... |
[
{
"role": "user",
"content": "What does `Integer.grayCode` do?"
},
{
"role": "assistant",
"content": "32-bit Integer number Returns: the gray code for the number."
}
] |
[
{
"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": "Explain `Synth` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "Synth — Client-side representation of a synth node on the server A Synth is the client-side representation of a synth node on the server. A Synth represents a single sound producing uni... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ LFPulse.ar(LFPulse.kr(3, 0, 0.3, 200, 200), 0, 0.2, 0.1 }.play;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis opened ear... |
[
{
"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": "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 is `UnaryOpFunction` in SuperCollider?"
},
{
"role": "assistant",
"content": "UnaryOpFunction — represent a unary operation on a function Operating on functions instead of numbers, what results is not a result of the calculation, but a structure that represents... |
[
{
"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": "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 `FBSineN`."
},
{
"role": "assistant",
"content": "```supercollider\n// default initial params\n{ FBSineN.ar(SampleRate.ir/4) * 0.2 }.play(s);\n```"
}
] |
[
{
"role": "user",
"content": "What is `UniqueID` in SuperCollider?"
},
{
"role": "assistant",
"content": "UniqueID — source for unique numbers Category: Core."
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ FSinOsc.ar(800) * 0.2 }.play;\n\n{ FSinOsc.ar(XLine.kr(200, 4000, 1)) * 0.2 }.play;\n\n// loses amplitude towards the end\n{ FSinOsc.ar(FSinOsc.ar(XLine.kr(4, 401, 8), 0.0, 200... |
[
{
"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{ LinCongC.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": "What does `FoaEncoderMatrix.dirOutputs` do?"
},
{
"role": "assistant",
"content": "A convenience method providing polymorphism with"
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `BusPlug`."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\nz = Bus.control(s, 16);\nz.setn({ |i| (i * 5).nthPrime } ! 16 * 5 + 100);\na = BusPlug.for(z);\n{ Splay.ar(SinOsc.ar(a.kr(3, MouseX.kr(0, 25)... |
[
{
"role": "user",
"content": "Write a granular texture, dry. (rate 16, dur 0.1, interp 4, 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(\ns.waitForBoot {\n... |
[
{
"role": "user",
"content": "What is `FoaFocusY` in SuperCollider?"
},
{
"role": "assistant",
"content": "FoaFocusY — First Order Ambisonic (FOA) focus transformer Apply focus to a First Order Ambisonic signal (B-format) along the y-axis. Category: Libraries > Ambisonic Toolkit > UGens > FOA > ... |
[
{
"role": "user",
"content": "Explain `Tartini` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "Tartini — pitch tracker This alternative pitch follower uses autocorrelation like Pitch, but with an adapted method, and calculated via FFT. There are some parameters for you to choos... |
[
{
"role": "user",
"content": "What does `SerialPort.isOpen` do?"
},
{
"role": "assistant",
"content": "Whether this object represents a valid serial port"
}
] |
[
{
"role": "user",
"content": "Show me a self-contained SuperCollider patch using `Unpack1FFT`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\n// Let's extract the DC component - i.e. the magnitude at binindex zero.\n(\n{\n var sig, chain, stream, window... |
[
{
"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 `Float.low32Bits` do?"
},
{
"role": "assistant",
"content": "64-bit Floating point number Returns: an Integer which is the bit pattern of high 32-bits of the 64-bit double precision floating point value"
}
] |
[
{
"role": "user",
"content": "What does `PCuspN.new` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "UGenPatterns quark library Arguments: freq; a; b; xi — initial value; mul; add; length — Number of values produced.."
}
] |
[
{
"role": "user",
"content": "How do I play a random minorPentatonic scale at octave 6? (scale minorPentatonic, seq Pwalk, dur 0.3, octave 6, instr pluck, root 0)"
},
{
"role": "assistant",
"content": "Put the scale and the degree pattern in the `Pbind` and it will pick notes for you:\n\n```supe... |
[
{
"role": "user",
"content": "Write a kick drum with a 0.12 s decay. (osc saw, sweep 0.06, decay 0.12, f0 180, f1 40, amp 0.6, 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": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\nSynthDef(\"help-GaussTrig\", { arg out=0;\n Out.ar(out,\n Ringz.ar(\n WhiteNoise.ar(\n Decay.kr(\n GaussTrig.kr(10.dup, MouseX.kr(0, 0.9), 0.5),\n ... |
[
{
"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{ LFNoise0.ar(1000, 0.25) }.play;\n\n// modulate frequency\n\n{ LFNoise0.ar(XLine.kr(1000, 10000, 10), 0.25) }.play;\n\n// as frequency modulator\n(\n{ SinOsc.ar(\n LFNoise0.a... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\nb = Buffer.read(s, Platform.resourceDir +/+ \"sounds/a11wlk01.wav\");\n\n(\n{\n var snd, envTime, knee, out;\n snd = PlayBuf.ar(1, b, BufRateScale.kr(b), loop: 1);\n envTime = MouseX.kr(1.0e-3, 0.1e-3);\n kne... |
[
{
"role": "user",
"content": "Show me a self-contained SuperCollider patch using `RecordBuf`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\nb = Buffer.alloc(s, s.sampleRate * 5, 1); // a 5 second 1 channel Buffer\n\n// record for four seconds\n(\nx = Sy... |
[
{
"role": "user",
"content": "Explain `LeakDC` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "LeakDC — Remove DC This is a linear filter that removes DC bias from a signal. Specifically, this is a one-pole highpass filter implementing the formula `y[n] = x[n] - x[n-1] + coef * ... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// increase feedback\n{ FBSineC.ar(SampleRate.ir, 1, Line.kr(0.01, 4, 10), 1, 0.1) * 0.2 }.play(s;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is mi... |
[
{
"role": "user",
"content": "What does `AbstractPlayer.instrArgFromControl` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "the base class for all Players : a playable object Arguments: control."
}
] |
[
{
"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 patch do?\n```supercollider\n//Version 1\n//P(eace)Bind\n//If error messages could experience Nirvanna, it would sound like this.\n(\n{\nSaw.ar(\n freq: SinOsc.kr([60, 63, 67, 70]).range(440,880),\n mul:LFNoise0.kr(freq: [0.25,1]).range(0,1),\... |
[
{
"role": "user",
"content": "Write a self-contained SuperCollider patch that uses `SharedIn`. Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\n(\n// only works with the internal server\ns = Server.internal;\ns.boot;\n);\n\n(\nSynthDef(\"help-SharedIn1\", {\n ... |
[
{
"role": "user",
"content": "What is `OSCFuncBothMessageMatcher` in SuperCollider?"
},
{
"role": "assistant",
"content": "OSCFuncBothMessageMatcher — Matches incoming messages to responder funcs based on receive port and sender address This is used by OSCMessageDispatcher and OSCMessagePatternD... |
[
{
"role": "user",
"content": "Write a self-contained SuperCollider patch that uses `Ndef`. Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\nNdef(\\sound, { |freq = 56, numHarm = 10| Blip.ar(freq, numHarm, 30) * 0.2 }).play;\nNdef(\\sound).set(\\freq, 15);\nNde... |
[
{
"role": "user",
"content": "Write a SuperCollider patch that uses `SoundIn` and actually plays. Assume nothing about the session."
},
{
"role": "assistant",
"content": "```supercollider\nu = Server(\\scau, NetAddr(\"127.0.0.1\", 9989)); // Change the port from 9989 to the right one for you\nu.... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `PinkNoise`."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\"help-PinkNoise\", { |out = 0|\n Out.ar(out,\n PinkNoise.ar(0.4)\n )\n}).play;\n)\n```"
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\nb = Buffer.read(s, ExampleFiles.child);\n\n// compares a 1102.5 Hz sine tone (11025 * 0.1, left) with a 1100 Hz tone (right)\n// the apollo sample has a sample rate of 11.025 kHz... |
[
{
"role": "user",
"content": "Explain this SuperCollider code.\n```supercollider\nPdef(\\x).play;\nPdef(\\x).quant = 0; // we don't want quant here.\nPdef(\\x, Pbind(\\degree, Pseq((0..5), inf), \\dur, 0.3)).condition_({ |val, i| i.postln % 6 == 0 });\nPdef(\\x, Pbind(\\degree, Pseq((0..7) + 5.rand, inf), \... |
[
{
"role": "user",
"content": "What does `Image.allPlotWindows` do?"
},
{
"role": "assistant",
"content": "Returns an array of all the Image plot windows currently opened."
}
] |
[
{
"role": "user",
"content": "What is `Bus`?"
},
{
"role": "assistant",
"content": "Bus — Representation of a bus on the server"
},
{
"role": "user",
"content": "What does `Bus.control` do?"
},
{
"role": "assistant",
"content": "Allocate a control bus on the server."
},... |
[
{
"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 = ArrayMax.ar(son).at(0);\n val = LeakDC.ar(val); // the operation tends ... |
[
{
"role": "user",
"content": "What does `MxUnit.use` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Container for a musical object (Instr, NDef, Spline etc); this is a single unit that has inlets and outlets which can be connected to other units Arguments: function; roll... |
[
{
"role": "user",
"content": "Write a SuperCollider patch that uses `Paddp` and actually plays. Assume nothing about the session."
},
{
"role": "assistant",
"content": "```supercollider\n// sound example\n(\nSynthDef(\\sinegrain,\n { |out = 0, freq = 440, sustain = 0.02|\n var env;\n env ... |
[
{
"role": "user",
"content": "What is `MdaPiano` in SuperCollider?"
},
{
"role": "assistant",
"content": "MdaPiano — Piano synthesiser A piano synthesiser (originally a VST plugin by Paul Kellett, ported to SC by Dan Stowell). This UGen is not polyphonic (but can be retriggered to play notes in ... |
[
{
"role": "user",
"content": "What does `MultiSliderView.thumbSize` do?"
},
{
"role": "assistant",
"content": "Sets both #-indexThumbSize and #-valueThumbSize to the"
}
] |
[
{
"role": "user",
"content": "Write a self-contained SuperCollider patch that uses `DecodeB2`. Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var w, x, y, p, a, b, c, d;\n\n p = PinkNoise.ar; // source\n\n // B-format encode\n #w, x, y = PanB2.ar(... |
[
{
"role": "user",
"content": "How do I make a kick that starts at 150 Hz and falls to 55 Hz? (osc fm, sweep 0.06, decay 0.35, f0 150, f1 55, amp 0.8, rev 1)"
},
{
"role": "assistant",
"content": "The pitch envelope is what makes it read as a drum, not the oscillator:\n\n```supercollider\n// kick... |
[
{
"role": "user",
"content": "What does `ObjectNotFound.somethingMissing` do?"
},
{
"role": "assistant",
"content": "an placeholder object for when a player was not found when loading was attempted due to it being referenced by path from within another player"
}
] |
[
{
"role": "user",
"content": "Write a complete SuperCollider patch built around `Pwrap` that runs as it is."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\\help_sinegrain,\n { |out = 0, freq = 440, sustain = 0.05|\n var env;\n env = EnvGen.kr(Env.perc(0.01, sustain,... |
[
{
"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": "What does this SuperCollider code do?\n```supercollider\n(\n\n{\n var input, kernel;\n\n input = SoundIn.ar(0);\n kernel = Mix.ar(LFSaw.ar([300, 500, 800, 1000] * MouseX.kr(1.0, 2.0), 0, 1.0));\n\n // must have power of two framesize\n Convolution.ar(input, kernel, 1024, 0... |
[
{
"role": "user",
"content": "Give me a Pbind with pluck voices and a 0.4 rhythm. (scale minorPentatonic, seq Pwalk, dur 0.4, octave 5, instr pluck, root 0)"
},
{
"role": "assistant",
"content": "Put the scale and the degree pattern in the `Pbind` and it will pick notes for you:\n\n```supercolli... |
[
{
"role": "user",
"content": "Explain `GrainBuf` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "GrainBuf — Granular synthesis with sound stored in a buffer Category: UGens > Buffer, UGens > Generators > Granular."
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `HPZ2`."
},
{
"role": "assistant",
"content": "```supercollider\n// Compare:\n\n{ WhiteNoise.ar(0.25) }.play;\n\n{ HPZ2.ar(WhiteNoise.ar(0.25)) }.play;\n\n// HPZ2 is useful to detect changes in a signal:\n// see also H... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.