conversations
listlengths
2
6
[ { "role": "user", "content": "What does `EZText.enabled` do? What arguments does it take?" }, { "role": "assistant", "content": "Sets/gets whether the textfield is Arguments: bool — An instance of Boolean. Default is `true`.." } ]
[ { "role": "user", "content": "Write a plucked string in SuperCollider." }, { "role": "assistant", "content": "Pluck is a Karplus-Strong string: a noise burst into a tuned delay with feedback. The delay time is\nthe reciprocal of the frequency.\n\n```supercollider\n(\nSynthDef(\\pluck, { |out = 0...
[ { "role": "user", "content": "Write a SuperCollider patch that uses `SharedOut` and actually plays. Assume nothing about the session." }, { "role": "assistant", "content": "```supercollider\n(\n// only works with the internal server\ns = Server.internal;\ns.boot;\n);\n\n(\nSynthDef(\"help-Shared...
[ { "role": "user", "content": "Write an Ndef with a blip source and a 3200 Hz low-pass." }, { "role": "assistant", "content": "Use `Ndef` when the patch has to change without stopping:\n\n```supercollider\n// Ndef drone: blip source through a 3200 Hz low-pass\n(\nNdef(\\nd_blip_220_3200, { |freq ...
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```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.set(\\freq, 880, \\out, 1); // two pairs\nx.set(0, 660...
[ { "role": "user", "content": "I get 'server not running' or nothing happens at all." }, { "role": "assistant", "content": "The server is not booted. In the IDE press Ctrl+B, or evaluate `s.boot`. If code depends on a SynthDef being there, put it inside `s.waitForBoot { ... }`. When a script runs...
[ { "role": "user", "content": "What does `Method.thisMethod` do?" }, { "role": "assistant", "content": "The global pseudo-variable `thisMethod` always evaluates to the enclosing Method in a class definition, much like `thisFunction`. When executed outside that context, it returns Interpreter#-fun...
[ { "role": "user", "content": "Write an Ndef with a tri source and a 1400 Hz low-pass. (ugens tri, cutoff 1400, 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 t...
[ { "role": "user", "content": "Explain `DrawGrid` in SuperCollider briefly." }, { "role": "assistant", "content": "DrawGrid — Draws grid lines on a UserView for plotting `DrawGrid` is used to draw GridLines and its labels on a UserView. It is notably used by Plotter to draw the grid lines on a pl...
[ { "role": "user", "content": "Write a minimal SuperCollider example that uses `Integrator`." }, { "role": "assistant", "content": "```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)...
[ { "role": "user", "content": "Explain `LPF` in SuperCollider briefly." }, { "role": "assistant", "content": "LPF — 2nd order Butterworth lowpass filter A second order low pass filter. Category: UGens > Filters > Linear." } ]
[ { "role": "user", "content": "What does this SuperCollider code do?\n```supercollider\n(\n// Three nodes in this data. First is always the root.\n// So the first is applied to decide whether to branch down to the second or third.\n// Then those nodes decide whether to classify the datum as 1/2/3/4.\n~treeda...
[ { "role": "user", "content": "How do I play a random majorPentatonic scale at octave 5? (scale majorPentatonic, seq Pseq, dur 0.2, octave 5, instr pluck, root 0)" }, { "role": "assistant", "content": "`Pbind` sequences an Event per beat, and `\\degree` + `\\scale` does the pitch:\n\n```supercoll...
[ { "role": "user", "content": "What is `BRF` in SuperCollider?" }, { "role": "assistant", "content": "BRF — 2nd order Butterworth band reject filter. A second order band reject filter. Category: UGens > Filters > Linear." } ]
[ { "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": "Write a minimal SuperCollider example that uses `GbmanL`." }, { "role": "assistant", "content": "```supercollider\n// default initial params\n{ GbmanL.ar(MouseX.kr(20, SampleRate.ir)) * 0.1 }.play(s);\n\n// different initial params\n{ GbmanL.ar(MouseX.kr(20, SampleR...
[ { "role": "user", "content": "Explain `CompositeInstr` in SuperCollider briefly." }, { "role": "assistant", "content": "CompositeInstr — two Instr combined together with function composition Two Instr chained one into the next. Category: Libraries > crucial > Instr." } ]
[ { "role": "user", "content": "Write a minimal SuperCollider example that uses `TwoZero`." }, { "role": "assistant", "content": "```supercollider\n{ TwoZero.ar(WhiteNoise.ar(0.125), XLine.kr(20, 20000, 8), 1) }.play\n```" } ]
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ Gbman2DL.ar(MouseX.kr(20, SampleRate.ir*0.25), MouseX.kr(80, SampleRate.ir), 0.1) }.play(s);\n\n{ Gbman2DL.ar(11025, 22050, -0.7, -2.7, 0.1) }.play(s);\n\n{ Gbman2DL.ar(2200, 8...
[ { "role": "user", "content": "What does `RedFrik.ar` do? What arguments does it take?" }, { "role": "assistant", "content": "noise socks! Arguments: year — Initialize value.." } ]
[ { "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": "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 QuadC.ar(SampleRate.ir/4, r.neg, r, 0, 0.1) * 0.4;\n}.play(s);\n``...
[ { "role": "user", "content": "What does `ServerErrorGui.writeName` do?" }, { "role": "assistant", "content": "Listen to a server for /fail messages and display them in a small view." } ]
[ { "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": "What does this SuperCollider code do?\n```supercollider\n// create a DMX object, default to a single universe of 512 channels\nd = SimpleDMX();\n\n// get a fixture and set its color\nf = SimpleDMXFixture(0, 5, universeId: 0, desc: (\\channelTypes: #[dim, r, g, b, white]));\nf.s...
[ { "role": "user", "content": "Show another SuperCollider example using `List`." }, { "role": "assistant", "content": "```supercollider\n(\n// Create a new empty List with size: 3\nx = List.new(3);\n\nx.postln; // -> List[ ]\n\n// Add numbers 0 to 4 to the List\n5.do({ |i| x.add(i) });\n\n// The ...
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ PinkNoise.ar(EnvGen.kr(Env.perc, doneAction: Done.freeSelf) }.play\n```" }, { "role": "assistant", "content": "A closing bracket is missing: the parenthesis opened ...
[ { "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": "What does `SimpleNumber.exprand` do?" }, { "role": "assistant", "content": "Returns a Float in the range [this, aNumber), i.e. between this and aNumber (including this, not including aNumber), drawn from a log-uniform distribution. Receiver (i.e., `this`) must not b...
[ { "role": "user", "content": "What does this SuperCollider patch do?\n```supercollider\n(\nb = Bus.audio(s, 2);\na = { |inbus = 0|\n var sig = In.ar(inbus, 2);\n // x axis is side, oriented toward right;\n // y axis is mid\n [sig[1] - sig[0], sig.sum]\n}.play(s.defaultGroup, outbus: b, addAction: \\addA...
[ { "role": "user", "content": "What does `KeyCodeResponder.guiClass` do?" }, { "role": "assistant", "content": "register responder functions for keycode and modifier combinations" } ]
[ { "role": "user", "content": "What is the node tree and what is a Group for?" }, { "role": "assistant", "content": "Everything running on the server is a node: Synths and Groups, arranged in a tree under the root group. Order matters, because audio flows through buses from earlier to later nodes...
[ { "role": "user", "content": "What does `KeyCodeResponder.register` do? What arguments does it take?" }, { "role": "assistant", "content": "for shift, caps,opt,cntl true indicates a required modifier false indicates an excluded modifier nil expresses that you really don't care one way or the Arg...
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ Standard2DL.ar(220, 11025, mul:0.3) }.play(s);\n\n// mouse-controlled param\n{ Standard2DL.ar(11025, 44100, MouseX.kr(0.9,4), mul:0.3) }.play(s);\n\n// as a frequency control\n...
[ { "role": "user", "content": "What does `InspButton.captioned` do? What arguments does it take?" }, { "role": "assistant", "content": "creates a pair of views: Caption: Arguments: caption — string caption; target — the object to be inspected; layout — the parent view, FlowView or window; minWidt...
[ { "role": "user", "content": "What is `Editor` in SuperCollider?" }, { "role": "assistant", "content": "Editor — holds a value that can be edited with a GUI, saves as the value This is the parent class for all Editors and also has a repository of handlers that are used to find the appropriate ed...
[ { "role": "user", "content": "Give me a granular patch with noise grain position and interp 2. (rate 20, dur 0.2, interp 2, mode noise, rev 1)" }, { "role": "assistant", "content": "Granulation is `GrainBuf` plus a trigger rate; the position can move:\n\n```supercollider\n// granular synth with ...
[ { "role": "user", "content": "What does this SuperCollider patch do?\n```supercollider\ns.boot;\n\n(\nSynthDef(\"lazerdrone\", {\n var in, freq, hasFreq;\n\n \n in = SinOsc.ar(440 * LFSaw.kr(100, 1000));\n\n # freq, hasFreq = Pitch.kr(\n in,\n ampThreshold: 0.09,\n median: 1);...
[ { "role": "user", "content": "Give me a pluck with damping 0.2 on the reverb." }, { "role": "assistant", "content": "A send-style patch: dry signal plus the reverb on the tail:\n\n```supercollider\n// reverb: freeverb2 on a pluck\n(\nSynthDef(\\reverb_synth, { |out = 0, freq = 330, amp = 0.2|\n ...
[ { "role": "user", "content": "What is `DoubleWell2` in SuperCollider?" }, { "role": "assistant", "content": "DoubleWell2 — Forced DoubleWell Oscillator Improved Euler ODE solver implementation of the chaotic Forced Double Well Oscillator (see Strogatz, Steven H. (1994) Nonlinear Dynamics and Cha...
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\na = { |x| #[440, 720, 801, 1020.2].at(x) }; b = a.cpsmidi; [a.value(3), b.value(3)];\na = Pseries(220, 220, inf).cpsmidi; a.asStream.nextN(12); // overtone series as midinotes\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": "Give me an Ndef with an LFO at 0.1 Hz. (ugens blip, cutoff 200, lfo 0.1, freq 110, amp 0.12)" }, { "role": "assistant", "content": "`Ndef` is a named proxy you can redefine while it is playing:\n\n```supercollider\n// Ndef drone: blip source through a 200 Hz low-pas...
[ { "role": "user", "content": "What does `ServerLogGui.guiDefArgs` do? What arguments does it take?" }, { "role": "assistant", "content": "the interface for display and searching the ServerLog Arguments: def; args; r. Returns: (returnvalue)" } ]
[ { "role": "user", "content": "What is `EaseOutQuart` in SuperCollider?" }, { "role": "assistant", "content": "EaseOutQuart — Quartic ease-out Easing equation for a quartic (t^4) ease-out, decelerating to zero velocity. Category: Ease." } ]
[ { "role": "user", "content": "How do I build a live drone with Ndef at 55 Hz? (ugens blip, cutoff 400, lfo 0.3, freq 55, 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: blip source through a...
[ { "role": "user", "content": "What are you good at?" }, { "role": "assistant", "content": "SuperCollider. I can explain its classes and UGens, write SynthDefs and patches, read a patch back to you, and tell you why one does not compile. I am 198M parameters; I am not a general assistant." } ]
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// randomly modulate all params\n(\n{ LatoocarfianL.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, 0.5, 1.5),\n LFNoise2.kr(...
[ { "role": "user", "content": "I get 'syntax error, unexpected NAME' on a block that looks fine." }, { "role": "assistant", "content": "Almost always a missing semicolon between two statements — SuperCollider does not insert them.\n\n```supercollider\n// broken: two statements, no separator\n{ va...
[ { "role": "user", "content": "What does this SuperCollider patch do?\n```supercollider\n(\nc=13;a=Array.fib(64,0,1);b=Array.fill(size:c,function:{arg i;a[i]%12});\np=1/(21-c);Pdef(\\x,Pbind(\\dur,p,\\degree,Pseq(b,1,0)));\nr=Array.fill(c,{arg i;Pbindf(Pdef(\\x),\\mtranspose,1-b[i]);});\nPseq(r,(1/p)).play;\...
[ { "role": "user", "content": "Give me a bell with damping 0.5 on the reverb. (verb freeverb2, room 0.5, damp 0.5, mix 0.45, source bell)" }, { "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": "What does `AbstractFunction.distort` do?" }, { "role": "assistant", "content": "An object which responds to a set of messages that represent mathematical functions" } ]
[ { "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, 0, 1, MouseButton.kr(lag:0.001))[0]), 0, 0.1}.play\n```" }, { "role": "assistant", "content": "A closing ...
[ { "role": "user", "content": "What does this SuperCollider code do?\n```supercollider\n// example; this buffer is mono, so the number of samples matches the number of frames\nb = Buffer.read(s, ExampleFiles.child);\n\n// indexing with a phasor\n{ BufRd.ar(1, b, Phasor.ar(0, BufRateScale.kr(b), 0, BufSamples...
[ { "role": "user", "content": "How do I make a kick that starts at 180 Hz and falls to 40 Hz? (osc fm, sweep 0.06, decay 0.25, 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...
[ { "role": "user", "content": "Show another SuperCollider example using `LatoocarfianC`." }, { "role": "assistant", "content": "```supercollider\n// randomly modulate all params\n(\n{ LatoocarfianC.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": "How do I build a live drone with Ndef at 165 Hz? (ugens sine, cutoff 1400, lfo 0.1, freq 165, 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: sine source throug...
[ { "role": "user", "content": "How do I put a kick in a reverb at mix 0.3? (verb freeverb2, room 0.5, damp 0.2, mix 0.3, source kick)" }, { "role": "assistant", "content": "A send-style patch: dry signal plus the reverb on the tail:\n\n```supercollider\n// reverb: freeverb2 on a kick\n(\nSynthDef...
[ { "role": "user", "content": "What does this SuperCollider code do?\n```supercollider\n{ BlitB3Tri.ar(XLine.kr(1000, 20, 10)) }.play;\n\n//unfortunately, aliasing returns at higher frequencies (over 5000Hz or so) with a vengence\n{ BlitB3Tri.ar(MouseX.kr(20,8000,'exponential').poll,0.99,MouseY.kr(0.001,0.99...
[ { "role": "user", "content": "Write a complete SuperCollider patch built around `BufWr` that runs as it is." }, { "role": "assistant", "content": "```supercollider\n(\n// allocate a buffer for writinig into\ns = Server.local;\ns.sendMsg(\"/b_alloc\", 0, 44100 * 2);\n);\n\n\n// write into the buf...
[ { "role": "user", "content": "What is `Routine`?" }, { "role": "assistant", "content": "Routine — Functions that can return in the middle and then resume where they left off" }, { "role": "user", "content": "What does `Routine.new` do?" }, { "role": "assistant", "content"...
[ { "role": "user", "content": "What does `Patch.synthDefArgs` do?" }, { "role": "assistant", "content": "Pairs an Instr with inputs that that will be passed to the Instr" } ]
[ { "role": "user", "content": "Show me a self-contained SuperCollider patch using `Resonz`: bind everything it needs first." }, { "role": "assistant", "content": "```supercollider\n(\nSynthDef(\"noiseToPitch\", { arg out = 0, mul = 1;\n Out.ar(\n out,\n Resonz.ar(\n WhiteNoise.ar(mul)...
[ { "role": "user", "content": "What is `Collection`?" }, { "role": "assistant", "content": "Collection — Abstract superclass of all collections" }, { "role": "user", "content": "What does `Collection.newFrom` do?" }, { "role": "assistant", "content": "Creates a new Collect...
[ { "role": "user", "content": "What does this SuperCollider patch do?\n```supercollider\n(\n{ var nse, env, kic;\n kic = tanh(Ringz.ar(LPF.ar(Trig.ar(Impulse.ar(1.0),SampleDur.ir),1000),30,0.25,7).sin*2);\n env = Env.perc(0.05, 1, 1, -4);\n nse = BrownNoise.ar(2) + PinkNoise.ar(0.5) * EnvGen.kr(env,Impul...
[ { "role": "user", "content": "Write a minimal SuperCollider example that uses `OneZero`." }, { "role": "assistant", "content": "```supercollider\n{ OneZero.ar(WhiteNoise.ar(0.5), 0.5) }.play\n\n{ OneZero.ar(WhiteNoise.ar(0.5), -0.5) }.play\n\n{ OneZero.ar(WhiteNoise.ar(0.5), Line.kr(-0.5, 0.5, 1...
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\nSynthDef(\"help-GrayNoise\", { |out = 0|\n Out.ar(out,\n GrayNoise.ar(-20.dbamp)\n )\n}).play;\n```" }, { "role": "assistant", "content": "A closing bracket i...
[ { "role": "user", "content": "What does this SuperCollider patch do?\n```supercollider\np = ProxySpace.push(s.boot);\n~a.play.quant_(4); ~b.play.quant_(4);\n~c = { LFNoise1.kr(8).range(0,15).round };\n~a = Pbind(\\degree, Pstutter(4, Pseq([0,2,3,4], inf)), \\octave, [3,4], \\dur, 0.25, \\amp, 0.3);\n~b = Pb...
[ { "role": "user", "content": "Give me a fm kick with a 0.06 s pitch sweep. (osc fm, sweep 0.06, decay 0.35, f0 180, f1 48, amp 0.6, 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 oscillat...
[ { "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": "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": "What is `SendPeakRMS`?" }, { "role": "assistant", "content": "SendPeakRMS — Track peak and power of a signal for GUI applications." }, { "role": "user", "content": "What does `SendPeakRMS.ar` do?" }, { "role": "assistant", "content": "Unlike ...
[ { "role": "user", "content": "Show another SuperCollider example using `NodeProxy`." }, { "role": "assistant", "content": "```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 = { H...
[ { "role": "user", "content": "Write a granular texture, dry. (rate 10, dur 0.1, 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 {\n var buf = ...
[ { "role": "user", "content": "What does `ArrayedCollection.wrapAt` do?" }, { "role": "assistant", "content": "Similar to #-at, but guarantees that any value for index is valid by wrapping values outside the collection's bounds. If the index exceeds `size - 1`, it wraps back around to `0`. Simila...
[ { "role": "user", "content": "Write a SuperCollider patch for Just experimenting with patterns that runs as it is, with nothing assumed about the session." }, { "role": "assistant", "content": "```supercollider\n/* Some Funky Klangs - Totally botched the math on what I was trying to do but it so...
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// an envelope in a synth\n(\n{\n var env = Env([0, 1, 0.5, 1, 0], [0.01, 0.5, 0.02, 0.5]);\n SinOsc.ar(470) * EnvGen.kr(env, doneAction: Done.freeSelf)\n}.play\n);\n// an enve...
[ { "role": "user", "content": "Write an Ndef at 220 Hz I can retune while it plays. (ugens blip, cutoff 400, lfo 0.3, 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: blip source thr...
[ { "role": "user", "content": "Write a Pbind in majorPentatonic using Pshuf for the degrees. (scale majorPentatonic, seq Pshuf, dur 0.25, 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``...
[ { "role": "user", "content": "Who are you?" }, { "role": "assistant", "content": "I am sc-mind, a 198M MiniMind-3-MoE trained from scratch on the SuperCollider source and help corpus. I write and explain SuperCollider: SynthDefs, UGens, Patterns, Ndef, the language/server split, and how to make ...
[ { "role": "user", "content": "How do I play a random majorPentatonic scale at octave 4? (scale majorPentatonic, 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```supercol...
[ { "role": "user", "content": "Show another SuperCollider example using `Compander`." }, { "role": "assistant", "content": "```supercollider\n(\n{\n var z;\n\n // signal (clean)\n z = Decay2.ar(\n Impulse.ar(8, 0, LFSaw.kr(0.3, 1, -0.3, 0.3)),\n 0.001,\n 0.3\n )\n * Mix.ar(Pulse.ar(...
[ { "role": "user", "content": "What does `PlayerSocket.envdSource` do?" }, { "role": "assistant", "content": "a player that can play other players using a cross-faded and fuse-protected socket" } ]
[ { "role": "user", "content": "What does `Array.permute` do?" }, { "role": "assistant", "content": "Returns a new Array whose elements are the nthPermutation of the elements of the receiver. The receiver is unchanged. `x = [1, 2," } ]
[ { "role": "user", "content": "Write a SuperCollider patch that uses `Ringz` and actually plays. Assume nothing about the session." }, { "role": "assistant", "content": "```supercollider\n(\n{\n var in, chain;\n in = Ringz.ar(Impulse.ar([2, 3]), [700, 800], 0.1) * 5; // stereo input\n chain = ...
[ { "role": "user", "content": "Write a minimal SuperCollider example that uses `HPZ1`." }, { "role": "assistant", "content": "```supercollider\n// Compare:\n\n{ WhiteNoise.ar(0.25) }.play;\n\n{ HPZ1.ar(WhiteNoise.ar(0.25)) }.play;\n\n// HPZ1 is useful to detect changes in a signal:\n// see also H...
[ { "role": "user", "content": "Show me a self-contained SuperCollider patch using `DiskIn`: bind everything it needs first." }, { "role": "assistant", "content": "```supercollider\ns.boot;\n\n\n\n// create with cueSoundFile class method\nb = Buffer.cueSoundFile(s, ExampleFiles.apollo11, 0, 1);\nx...
[ { "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": "Write a minimal SuperCollider example that uses `Lag`." }, { "role": "assistant", "content": "```supercollider\n(\n// used to lag pitch\n{\n SinOsc.ar( // sine wave\n Lag.kr( // lag the modulator\n ...
[ { "role": "user", "content": "What does `LPZ2.ar` do? What arguments does it take?" }, { "role": "assistant", "content": "Two zero fixed lowpass Arguments: in — The input signal.; mul — Output will be multiplied by this value.; add — This value will be added to the output.." } ]
[ { "role": "user", "content": "What does Splay.ar do?" }, { "role": "assistant", "content": "`Splay.ar(inArray, spread, level, center, levelComp)` takes an array of mono signals and distributes them across the stereo field, so `Splay.ar(SinOsc.ar([220, 330, 440]) * 0.1)` is a three-source stereo ...
[ { "role": "user", "content": "Write a SuperCollider patch that uses `QuadN` and actually plays. Assume nothing about the session." }, { "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\...
[ { "role": "user", "content": "Write a minimal SuperCollider example that uses `Diwhite`." }, { "role": "assistant", "content": "```supercollider\n(\n{\n var a, freq, trig;\n a = Diwhite(0, 15, inf);\n trig = Impulse.kr(MouseX.kr(1, 40, 1));\n freq = Demand.kr(trig, 0, a) * 30 + 340;\n SinOs...
[ { "role": "user", "content": "What does this SuperCollider patch do?\n```supercollider\n(\n{\nvar trigger, fund, flashInst;\nflashInst = Array.fill(7,\n{\ntrigger = Dust.kr(2)*PinkNoise.ar(1);\nfund = rrand(100, 137);\nPan2.ar(\nMix.ar(\nArray.fill(7,\n{arg counter;\nvar partial;\npartial = counter + 3;\n//...
[ { "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": "What does `LinCongC.ar` do? What arguments does it take?" }, { "role": "assistant", "content": "Linear congruential chaotic generator Arguments: freq — Iteration frequency in Hertz; a — Multiplier amount; c — Increment amount; m — Modulus amount; xi — Initial value ...
[ { "role": "user", "content": "Give me a Pbind with pluck voices and a 0.2 rhythm." }, { "role": "assistant", "content": "The pattern is the composition here; `\\strum` spreads the chord:\n\n```supercollider\n(\nSynthDef(\\pluck, { |out = 0, freq = 440, amp = 0.2|\n var env = EnvGen.kr(Env.per...
[ { "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": "Explain `PV_MagMinus` in SuperCollider briefly." }, { "role": "assistant", "content": "PV_MagMinus — subtract spectral energy Subtracts buffer B's magnitudes from buffer A. Category: UGens > FFT." } ]
[ { "role": "user", "content": "Explain this code:\n```supercollider\nRoutine({ loop { Synth(\\kick); 0.5.wait } }).play;\n```" }, { "role": "assistant", "content": "It starts a kick every half second, forever.\n\nA Routine is a language-side coroutine: `.play` runs it on the clock, and `wait` sus...