conversations listlengths 2 6 |
|---|
[
{
"role": "user",
"content": "Write a SuperCollider patch that uses `AnalogOut` and actually plays. Assume nothing about the session."
},
{
"role": "assistant",
"content": "```supercollider\n// write a sine oscillator's output to a pin\n\n(\nSynthDef(\"help-AnalogOut\", { |out = 0|\n AnalogOu... |
[
{
"role": "user",
"content": "Write a granular texture, dry. (rate 10, dur 0.07, interp 4, mode noise1, rev 0)"
},
{
"role": "assistant",
"content": "A working granular patch, with the buffer loaded before the synth starts:\n\n```supercollider\n// granular synth with GrainBuf\n(\ns.waitForBoot {... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ SinOsc.ar(SinOsc.ar(0.3).range(440, 660), 0, 0.5 * 0.1 }.play;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis opened earl... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n(\n// Simple amplitude tracker sending values to sclang\nSynthDef(\\ampTracker, { |in|\n var freq = 30; // num of values per second\n SendReply.kr(Impulse.kr(freq), '/amp', Amplitude.kr(SoundIn.ar(in)));\n}).add;\n);\n... |
[
{
"role": "user",
"content": "What does `Lorenz2DC.ar` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "lorenz 2D chaotic generator Arguments: minfreq — minimum frequency in Hertz; maxfreq — maximum frequency in Hertz; s, r, b — equation variables; h — integration time ste... |
[
{
"role": "user",
"content": "Explain this SuperCollider patch.\n```supercollider\n// python preprocessor, given that you have python installed\n// thanks to tasos tsesmetzis\n\n(\nthis.preProcessor = PreProcessor.new.startDelimiter_(\"{-\").endDelimiter_(\"-}\");\n\n// a simple python call\ne = (\n lang:... |
[
{
"role": "user",
"content": "Explain `AbstractSFPGui` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "AbstractSFPGui — gui class Category: Libraries > crucial > GuiClasses."
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ Lorenz2DN.ar(11025, 44100) }.play(s);\n\n// randomly modulate params\n(\n{ Lorenz2DN.ar(\n 11025, 44100,\n LFNoise0.kr(1, 2, 10),\n 20,\n LFNoise0.kr(1, 1.5, 2),\n 0.02\n)... |
[
{
"role": "user",
"content": "Explain `Dshuf` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "Dshuf — Demand rate random sequence generator Category: UGens > Demand, UGens > Random."
}
] |
[
{
"role": "user",
"content": "How big are you?"
},
{
"role": "assistant",
"content": "198.42M parameters in total, 63.94M active per token. Eight layers, 768 wide, four experts with top-1 routing, and a 6,400-token vocabulary."
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Pan2`."
},
{
"role": "assistant",
"content": "```supercollider\n// hear the difference, LinPan having a slight drop in the middle...\n{ LinPan2.ar(SinOsc.ar(440), Line.kr(-1, 1, 5)) }.play\n\n// ... whereas Pan2 is mo... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{Disintegrator.ar(SinOsc.ar([400, 404], 0, 0.2), MouseX.kr(0, 1), MouseY.kr(0, 1))}.play\n\n{Disintegrator.ar(SoundIn.ar, MouseX.kr(0, 44100), MouseY.kr(0, 1)}.play\n```"
},
... |
[
{
"role": "user",
"content": "Explain `NLFiltL` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "NLFiltL — Non-linear Filter Implements the filter `Y{n} =a Y{n-1} + b Y{n-2} + d Y^2{n-l} + X{n} - c` described in Dobson and sigmoid clipping. This filter is inherently unstable, so ... |
[
{
"role": "user",
"content": "Write a granular texture, dry. (rate 14, dur 0.07, interp 2, mode sweep, rev 0)"
},
{
"role": "assistant",
"content": "Granulation is `GrainBuf` plus a trigger rate; the position can move:\n\n```supercollider\n// granular synth with GrainBuf\n(\ns.waitForBoot {\n ... |
[
{
"role": "user",
"content": "Explain `BufferProxySpec` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "BufferProxySpec — datatype specifying an input of BufferProxy This Spec will create a BufferProxy as its defaultControl, and Patch created with an Instr with this type will be... |
[
{
"role": "user",
"content": "Explain `SynthConsole` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "SynthConsole — a widget with controls: play/stop/record/scope etc. Category: Libraries > crucial > GUI."
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ SinOsc.ar(LFNoise0.ar(2).range(420, 460).poll(label: \\LFNoise), 0, 0.2) }.play;\n\n// multichannel polling:\n(\n{\n var freqs = SinOsc.ar([0.2, 0.3]).range(420, 460);\n ... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `T2K`."
},
{
"role": "assistant",
"content": "```supercollider\n// this does not work:\n(\n{\n var trig = Dust.ar(4);\n Trig.kr(trig, 0.1) * SinOsc.ar(800) * 0.1\n}.play;\n);\n\n// this works:\n(\n{\n var trig = T2K... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `PV_BrickWall`."
},
{
"role": "assistant",
"content": "```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));... |
[
{
"role": "user",
"content": "Write a self-contained SuperCollider patch for nothing much ). Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{|atk=0.05,dur=10,freq=50,amp=0.8|\n PMOsc.ar(\n Line.kr(1,2,dur,freq),\n LFNoise2.kr([1,2]).range(1,2)*freq... |
[
{
"role": "user",
"content": "Explain `TextField` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "TextField — A view displaying editable text A view displaying editable text. Category: GUI > Views."
}
] |
[
{
"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": "Write a GrainBuf synth at 6 grains per second. (rate 6, dur 0.07, interp 4, mode sweep, 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 {\... |
[
{
"role": "user",
"content": "What is `ChooseCutProc` in SuperCollider?"
},
{
"role": "assistant",
"content": "ChooseCutProc — Automatic breakbeat cutting algorithm This cut procedure allows the user to specify a set of allowable cuts and repeats. It allows a roll at the end of a phrase. It is t... |
[
{
"role": "user",
"content": "Explain this SuperCollider code.\n```supercollider\n// put can be used with the array indexing syntax:\na = NodeProxy.new.play;\na[0] = { SinOsc.ar(Rand(200, 899)) * 0.1.dup };\na[2] = { SinOsc.ar(Rand(200, 899)) * 0.1.dup };\na.sources.do(_.postcs);\n// using multiple index ex... |
[
{
"role": "user",
"content": "Can you run this code and tell me if it works?"
},
{
"role": "assistant",
"content": "No — I cannot execute SuperCollider. What I can tell you is what would break and why: bracket balance, arguments that must exist for the class, a SynthDef that never reaches Out, a... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Pulse`."
},
{
"role": "assistant",
"content": "```supercollider\n// modulate frequency\n{ Pulse.ar(XLine.kr(40, 4000, 6), 0.1, 0.2) }.play;\n\n// modulate pulse width\n{ Pulse.ar(200, SinOsc.kr(0.2).range(0.01, 0.99),... |
[
{
"role": "user",
"content": "Write a complete SuperCollider patch built around `Pseq` 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": "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": "Show me a self-contained SuperCollider patch using `Recorder`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\nr = Recorder(s);\n{ GVerb.ar(Dust.ar(4)) }.play; // play on bus 64\nr.record(numChannels: 2);\nr.stopRecording;\n`... |
[
{
"role": "user",
"content": "What is `UGen`?"
},
{
"role": "assistant",
"content": "UGen — Abstract superclass of all unit generators"
},
{
"role": "user",
"content": "What does `UGen.multiNew` do?"
},
{
"role": "assistant",
"content": "These methods are responsible for ... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// modulating the frequency\n\n{ Saw.ar(XLine.kr(40, 4000, 6), 0.2) }.play;\n\n// two band limited sawtooth waves through a resonant low pass filter\n\n{ RLPF.ar(Saw.ar([100, 250... |
[
{
"role": "user",
"content": "Give me a fm kick with a 0.06 s pitch sweep. (osc fm, sweep 0.06, decay 0.5, 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: fm oscillato... |
[
{
"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": "Write a self-contained SuperCollider patch that uses `Padd`. Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\n// sound example\n(\nSynthDef(\\sinegrain,\n { |out = 0, freq = 440, gate = 1|\n var env;\n env = EnvGen.kr(Env.a... |
[
{
"role": "user",
"content": "Write a SuperCollider patch that uses `TWChoose` and actually plays. Assume nothing about the session."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var a;\n a = [\n SinOsc.ar,\n Saw.ar,\n Pulse.ar\n ];\n TWChoose.ar(Dust.ar(Mo... |
[
{
"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\n(\nSynthDef(\"help-WhiteNoise\", { |out = 0|\n Out.ar(out,\n WhiteNoise.ar(0.25)\n )\n}).play;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is m... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `EnvGate`."
},
{
"role": "assistant",
"content": "```supercollider\na = { LPF.ar(Saw.ar(200), 600) * EnvGate.new }.play;\na.set(\\fadeTime, 2);\na.release;\n\n// the same as:\na.set(\\gate, 0);\n\n// several env gates ... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `Impulse`."
},
{
"role": "assistant",
"content": "```supercollider\n{ Impulse.ar(4, [0, MouseX.kr(0, 1)], 0.2) }.play;\n```"
}
] |
[
{
"role": "user",
"content": "Write a self-contained SuperCollider patch that uses `PV_RectComb`. Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var sig, chain;\n sig = WhiteNoise.ar(0.2);\n chain = FFT(LocalBuf(2048), sig);\n chain = PV_RectComb(... |
[
{
"role": "user",
"content": "I made a synth and I hear nothing. Where do I start?"
},
{
"role": "assistant",
"content": "Start with the node tree, not the code: evaluate `s.plotTree`. If your Synth is not there, it never started or it already freed itself; if it is there, the problem is in the ... |
[
{
"role": "user",
"content": "Write a self-contained SuperCollider patch that uses `Saw`. Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\n(\n SynthDef(\\controlList, { |out = 0, freq = 440, amp = 0.1, detune = #[0.999, 1.001], gate = 1|\n var sig = M... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// logistic map as frequency control\n(\n{ var r;\n r = MouseX.kr(3.5441, 4); // stable range\n SinOsc.ar(QuadN.ar(40, r.neg, r, 0, 0.1, 800, 900)) * 0.4;\n}.play(s);\n```"
... |
[
{
"role": "user",
"content": "Write a granular texture, through a reverb. (rate 10, dur 0.04, interp 4, 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 GrainBuf\n(\ns.waitF... |
[
{
"role": "user",
"content": "Can you listen to the sound you generate?"
},
{
"role": "assistant",
"content": "No. I am 198M parameters trained on SuperCollider's documentation and class library; I have no audio input and no way to hear a result. What I can do is reason about the code: whether i... |
[
{
"role": "user",
"content": "What does `DataBuffer.accelFull` do?"
},
{
"role": "assistant",
"content": "a Boolean flag indicating if the accel buffer filled up to its"
}
] |
[
{
"role": "user",
"content": "What does `SoundFile.collect` do?"
},
{
"role": "assistant",
"content": "Returns an Array of SoundFile objects whose paths match the pattern. (The associated files are closed. These objects can be used to cue playback buffers) `SoundFile.collect(\"sounds/*\").do { |... |
[
{
"role": "user",
"content": "How do I make a delay line?"
},
{
"role": "assistant",
"content": "`CombN.ar(in, maxdelaytime, delaytime, decaytime)` is a feedback delay: maxdelaytime is the buffer size, delaytime the actual delay (and it can modulate), decaytime how long the repeats take to die. ... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n~mdef =\n{\n |key, func, msgNum, permanent = true|\n\n MIDIdef(key, func ?? { MIDIdef(key).func }, msgNum ? MIDIdef(key).msgNum, MIDIdef(key).chan, MIDIdef(key).msgType, MIDIdef(key).srcID).permanent_(permanent)\n}\n``... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Balance2`."
},
{
"role": "assistant",
"content": "```supercollider\n// a stereo signal, both channels at 0dB\n{ [SinOsc.ar(440), SinOsc.ar(440)] }.play\n\n// using Balance on a stereo signal with the position paramete... |
[
{
"role": "user",
"content": "What is `SClusterFrequencies` in SuperCollider?"
},
{
"role": "assistant",
"content": "SClusterFrequencies — control SCluster frequencies Frequency control for LINKClasses/SCluster. Category: SInstruments."
}
] |
[
{
"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 SuperCollider patch for Breathing Ocean (a SuperCollider snippet). Start by defining the values the patch depends on."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var lew, bpf;\n lew = WhiteNoise.ar(\n mul: 0.5,\n add: 0.1); \n b... |
[
{
"role": "user",
"content": "Explain `Rational` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "Rational — Rational number A rational number. Alternative syntax: `x %/ y` Category: Math."
}
] |
[
{
"role": "user",
"content": "Show another SuperCollider example using `QuadN`."
},
{
"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 QuadN.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{Decimator.ar(SinOsc.ar([400, 404], 0, 0.2), MouseX.kr(0, 44100), MouseY.kr(0, 31))}.play\n\n{Decimator.ar(SoundIn.ar, MouseX.kr(0, 44100), MouseY.kr(0, 31)}.play\n```"
},
{
... |
[
{
"role": "user",
"content": "Give me a sine kick with a 0.06 s pitch sweep. (osc sine, sweep 0.06, decay 0.5, f0 180, 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: sine oscillator, 0.06 ... |
[
{
"role": "user",
"content": "Write a complete SuperCollider patch built around `Dwrand` that runs as it is."
},
{
"role": "assistant",
"content": "```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)... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ BPF.ar(BrownNoise.ar(0.1.dup), MouseX.kr(40, 17000, 1), 0.2 }.play;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis opened... |
[
{
"role": "user",
"content": "What does `PFold.new` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "UGenPatterns quark library Arguments: pattern; lo; hi."
}
] |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n// Resonator, must subtract blockSize for correct tuning\n(\nSynthDef(\"testRes\", {\n \nvar freq = 300, localIn, input, limitLevel = 0.2, output;\nvar feedbackAmt = 0.999;\n\nfreq = MouseY.kr(20, 678, \\exponential).po... |
[
{
"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": "What does this SuperCollider code do?\n```supercollider\n// Periphonic (3D) encoder, a 1/2 dome of 13 loudspeakers\n// [[0, 0], [45, 0], [90, 0], [135, 0], [-180, 0], [-135, 0], [-90, 0], [-45, 0],\n// [45, 35.3], [135, 35.3], [-135, 35.3], [-45, 35.3], [0, 90]]\n\n~directions... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n(\n//var board= CytonSerial(\"/dev/tty.usbserial-DM00DRM0\", initAction: {|b| b.start});\nvar board= SyntheticData(initAction: {|b| b.start});\n~board= board;\n);\n\n~board.accelAction= {|xyz| xyz.postln}; //start postin... |
[
{
"role": "user",
"content": "Show me a self-contained SuperCollider patch using `Dshuf`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var a, freq, trig;\n a = Dseq([Dshuf([1, 3, 2, 7, 8.5], 3)], inf);\n trig = Impulse.kr(MouseX.kr(1, 40, 1))... |
[
{
"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": "What does `BPF.ar` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "2nd order Butterworth bandpass filter. Arguments: in — The input signal.; freq — Centre frequency in Hertz. WARNING: due to the nature of its implementation frequency values c... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n// Let's extract the DC component - i.e. the magnitude at binindex zero.\n(\n{\n var sig, chain, stream, windowStarts, demand;\n var fftsize = 1024;\n\n sig = SinOsc.ar(LFDNoise3.kr(LFNoise0.kr(1) * 40 + 60) * 700 + 80... |
[
{
"role": "user",
"content": "Write a Pbind whose degrees repeat every Pwalk cycle. (scale majorPentatonic, seq Pwalk, dur 0.2, octave 6, instr pluck, root 0)"
},
{
"role": "assistant",
"content": "The pattern is the composition here; `\\strum` spreads the chord:\n\n```supercollider\n(\nSynthDef... |
[
{
"role": "user",
"content": "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": "What is `RedSequencer` in SuperCollider?"
},
{
"role": "assistant",
"content": "RedSequencer — simple sequencer Just a wrapper for a Demand ugen. Use Demand for more advanced sequencing. Category: Red > redUGens."
}
] |
[
{
"role": "user",
"content": "What is `UGen`?"
},
{
"role": "assistant",
"content": "UGen — Abstract superclass of all unit generators"
},
{
"role": "user",
"content": "What does `UGen.multiNew` do?"
},
{
"role": "assistant",
"content": "These methods are responsible for ... |
[
{
"role": "user",
"content": "Write a SuperCollider patch that uses `In` and actually plays. Assume nothing about the session."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\n\n(\nSynthDef(\"help-PinkNoise\", { |out = 0|\n Out.ar(out, PinkNoise.ar(0.1))\n}).add;\n\nSynthDef(\"... |
[
{
"role": "user",
"content": "Write a pluck whose tail uses gverb. (verb gverb, room 0.7, damp 0.5, mix 0.45, source pluck)"
},
{
"role": "assistant",
"content": "A send-style patch: dry signal plus the reverb on the tail:\n\n```supercollider\n// reverb: gverb on a pluck\n(\nSynthDef(\\reverb_sy... |
[
{
"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": "Who made you?"
},
{
"role": "assistant",
"content": "I am sc-mind, trained by this repository from a six-source SuperCollider corpus and a supervised set whose code answers were compiled with sclang before they were written."
}
] |
[
{
"role": "user",
"content": "Give me an Ndef with an LFO at 0.8 Hz. (ugens saw, cutoff 3200, lfo 0.8, freq 220, amp 0.12)"
},
{
"role": "assistant",
"content": "Use `Ndef` when the patch has to change without stopping:\n\n```supercollider\n// Ndef drone: saw source through a 3200 Hz low-pass\n(... |
[
{
"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\na = {LFTri.ar(50+(1000*Maths.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```"
},
{
"role... |
[
{
"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 minimal SuperCollider example that uses `PV_BrickWall`."
},
{
"role": "assistant",
"content": "```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));... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `StandardL`."
},
{
"role": "assistant",
"content": "```supercollider\n// vary frequency\n{ StandardL.ar(MouseX.kr(20, SampleRate.ir)) * 0.3 }.play(s);\n```"
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `PanB2`."
},
{
"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(p, MouseX.kr(-1, 1), 0.1);\n\n // B... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{\nvar a, b, t = Impulse.kr(2);\na = { Dseq([1, 2, 3, 4, 5], inf) } * 100;\nb = a + 1;\nDemand.kr(t, 0, [a, b]).poll(t\n}.play\n```"
},
{
"role": "assistant",
"conten... |
[
{
"role": "user",
"content": "Give me a saw kick with a 0.06 s pitch sweep. (osc saw, sweep 0.06, decay 0.35, f0 150, f1 55, amp 0.6, rev 0)"
},
{
"role": "assistant",
"content": "Start with a swept sine, then shorten the decay to taste:\n\n```supercollider\n// kick drum: saw oscillator, 0.06 s ... |
[
{
"role": "user",
"content": "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 is `RedArduino` in SuperCollider?"
},
{
"role": "assistant",
"content": "RedArduino — for uploading sketches to arduino This class can be used for uploading sketches to an Arduino from SuperCollider via the soundcard. No FTDI chip needed! It's a very cheap way ... |
[
{
"role": "user",
"content": "Explain this SuperCollider code.\n```supercollider\n// a Function passed to loopFunc is applied to all items of the looping\n\n(\n~lookBack = 0;\n\np = Pbind(\n \\dur, Pn(Pshuf([1, 1, 2]/6)),\n \\midinote, PSloop(\n Prand((60..80), inf),\n bufSize: 10,\n lookBack: { ... |
[
{
"role": "user",
"content": "Write a self-contained SuperCollider patch that uses `Ringz`. Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\nx = { arg freq=1000; Ringz.ar(Crackle.ar(1.95, 0.1), freq, 0.05) }.play(s);\nx.set(\\freq, 1500);\nx.free;\n```"
}
] |
[
{
"role": "user",
"content": "What does `Pwhite.new` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "random values with uniform distribution Arguments: lo — lower boundary of values.; hi — upper boundary of values.; length — number of values produced.."
}
] |
[
{
"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 Lag3.kr( // lag the modulator\n LFPulse.kr(4, 0, 0.5, 50, 400), // frequency modulator\n Line.kr(0, ... |
[
{
"role": "user",
"content": "What is `WAmp` in SuperCollider?"
},
{
"role": "assistant",
"content": "WAmp — windowed amplitude follower Averages and outputs the absolute value of incoming signals received between now and (now - winSize) seconds. Category: UGens > Analysis > Amplitude."
}
] |
[
{
"role": "user",
"content": "What does `Recorder.isRecording` do?"
},
{
"role": "assistant",
"content": "returns true if we are in the process of"
}
] |
[
{
"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": "How do I make a delay line?"
},
{
"role": "assistant",
"content": "`CombN.ar(in, maxdelaytime, delaytime, decaytime)` is a feedback delay: maxdelaytime is the buffer size, delaytime the actual delay (and it can modulate), decaytime how long the repeats take to die. ... |
[
{
"role": "user",
"content": "What is `MouseX` in SuperCollider?"
},
{
"role": "assistant",
"content": "MouseX — Cursor tracking UGen. Category: UGens > User interaction."
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ SinOsc.ar(ControlRate.ir * 0.1 }.play;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis opened earlier is never closed, so ... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// result of BufRd is used as index for the next BufRd\n// needs Buffer c prepared above\n\n(\ny = {\n GFIS.ar(\n { |x| BufRd.ar(1, c, c.numFrames * x) },\n (LFDNoise3.ar(... |
[
{
"role": "user",
"content": "Write a Pbind in majorPentatonic using Pseq for the degrees. (scale majorPentatonic, seq Pseq, dur 0.25, octave 6, 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```supe... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.