conversations
listlengths
2
6
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\nr = Recorder(s);\n{ GVerb.ar(Dust.ar(4)) }.play; // play on bus 64\nr.record(numChannels: 2;\nr.stopRecording;\n```" }, { "role": "assistant", "content": "A closing b...
[ { "role": "user", "content": "Write a minimal SuperCollider example that uses `Convolution`." }, { "role": "assistant", "content": "```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 /...
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// needs Buffer c prepared above\n\n(\ny = {\n var add = LFDNoise3.ar(0.3) * [0.05, 0.0505];\n GFIS.ar(\n { |x| BufRd.ar(1, c, c.numFrames * (x + add)) }, \n 0.5, 7\n ) ...
[ { "role": "user", "content": "Show me a self-contained SuperCollider patch using `Harmonics`: bind everything it needs first." }, { "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, ra...
[ { "role": "user", "content": "What is `DigitalIO`?" }, { "role": "assistant", "content": "DigitalIO — Read or write data to a digital pin" }, { "role": "user", "content": "What does `DigitalIO.ar` do?" }, { "role": "assistant", "content": "The output of this UGen is alway...
[ { "role": "user", "content": "Show another SuperCollider example using `Amplitude`." }, { "role": "assistant", "content": "```supercollider\n// use input amplitude to control Pulse amplitude - use headphones to prevent feedback.\n{ Pulse.ar(90, 0.3, Amplitude.kr(SoundIn.ar(0))) }.play;\n```" }...
[ { "role": "user", "content": "Explain `AudioInPlayer` in SuperCollider briefly." }, { "role": "assistant", "content": "AudioInPlayer — plays the computers audio in — microphone or record busses Plays the first two channels of your Audio input. Category: Libraries > crucial > Players." } ]
[ { "role": "user", "content": "What does this SuperCollider code do?\n```supercollider\n(\n// p = ProxySpace.push(s.boot);\n\nl = NodeProxyEditor(nil, 3); l.w.bounds_(l.w.bounds.moveBy(0, 120));\nm = NodeProxyEditor(nil, 3); m.w.bounds_(m.w.bounds.moveBy(0, 240));\nn = NodeProxyEditor(nil, 3); n.w.bounds_(n....
[ { "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": "Explain `FFTSubbandPower` in SuperCollider briefly." }, { "role": "assistant", "content": "FFTSubbandPower — Spectral power, divided into subbands Calculates the spectral power measure, in the same manner as FFTPower, but divides the spectrum into (adjacent, non-ove...
[ { "role": "user", "content": "Write a minimal SuperCollider example that uses `Ball`." }, { "role": "assistant", "content": "```supercollider\n(\n{\n var f, sf;\n sf = K2A.ar(MouseX.kr > 0.5) > 0;\n f = Ball.ar(sf, MouseY.kr(0.01, 20, 1), 0.01);\n f = f * 10 + 500;\n SinOsc.ar(f, 0, 0.2)\n}...
[ { "role": "user", "content": "What is `Ppatlace` in SuperCollider?" }, { "role": "assistant", "content": "Ppatlace — interlace streams Similar to Place, but the list is an array of streams or patterns. The results of each stream will be output in turn. Category: Streams-Patterns-Events > Pattern...
[ { "role": "user", "content": "Write a Pbind whose degrees repeat every Pshuf cycle. (scale minorPentatonic, seq Pshuf, dur 0.2, octave 4, instr fm, root 0)" }, { "role": "assistant", "content": "`Pbind` sequences an Event per beat, and `\\degree` + `\\scale` does the pitch:\n\n```supercollider\n...
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\nSynthDef(\"mini\",{\n Out.ar( 0,\n Instr(\"minimoog.two\").ar( SinOsc.kr(1.0).range(300,500) )\n )\n}).send(s;\n```" }, { "role": "assistant", "content": "A clos...
[ { "role": "user", "content": "How do I play a random majorPentatonic scale at octave 5?" }, { "role": "assistant", "content": "Put the scale and the degree pattern in the `Pbind` and it will pick notes for you:\n\n```supercollider\n(\nSynthDef(\\fm_voice, { |out = 0, freq = 440, amp = 0.2|\n ...
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\nNdef(\\maus, { MouseX.kr });\nNdef(\\haus, { Blip.ar(Ndef.kr(\\maus) * 70) }).play;\nNdef(\\haus).reshaping = \\elastic;\nNdef(\\maus).reshaping = \\elastic;\nNdef(\\maus, { LFNo...
[ { "role": "user", "content": "Explain `PV_ExtractRepeat` in SuperCollider briefly." }, { "role": "assistant", "content": "PV_ExtractRepeat — extract a repeating loop out from audio If you have a signal that consists of some fixed looping audio (e.g. a beat) plus some varying content (e.g. singin...
[ { "role": "user", "content": "How should I check an answer you give me?" }, { "role": "assistant", "content": "Three quick checks, cheapest first. Does it evaluate without a syntax error — the post window points at the exact character. Does the node appear in `s.plotTree` — if yes, the problem i...
[ { "role": "user", "content": "Write a minimal SuperCollider example that uses `SinOscFB`." }, { "role": "assistant", "content": "```supercollider\n{ SinOscFB.ar(440, MouseX.kr(0, 4))*0.1 }.play\n\n\n{ SinOscFB.ar(MouseY.kr(10, 1000, 'exponential'), MouseX.kr(0.5pi, pi))*0.1 }.play\n\n\n{ SinOscF...
[ { "role": "user", "content": "Write a minimal SuperCollider example that uses `DigitalOut`." }, { "role": "assistant", "content": "```supercollider\n// write a sine oscillator's output to a pin\n\n(\nSynthDef(\"help-DigitalOut\", { |out = 0|\n DigitalOut.ar(0, SinOsc.ar(10));\n}).play;\n)\n``...
[ { "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": "What is `Tdef`?" }, { "role": "assistant", "content": "Tdef — task reference definition" }, { "role": "user", "content": "What does `Tdef.all` do?" }, { "role": "assistant", "content": "A global IdentityDictionary with all proxies." }, { ...
[ { "role": "user", "content": "Write a minimal SuperCollider example that uses `Dseries`." }, { "role": "assistant", "content": "```supercollider\n(\n{\n var a, freq, trig;\n a = Dseries(0, 1, 15);\n trig = Impulse.kr(MouseX.kr(1, 40, 1));\n freq = Demand.kr(trig, 0, a) * 30 + 340;\n SinOsc....
[ { "role": "user", "content": "Explain `POneZero` in SuperCollider briefly." }, { "role": "assistant", "content": "POneZero — UGenPatterns quark library Based on OneZero Category: Streams-Patterns-Events > UGenPatterns > Modifiers." } ]
[ { "role": "user", "content": "What does `PostWindow.addToFork` do? What arguments does it take?" }, { "role": "assistant", "content": "A call window Arguments: thisObject — Object to be posted in window.; changeTime — Change time of routine that writes string into post window.; changeDev — Chang...
[ { "role": "user", "content": "Write a granular texture, through a reverb. (rate 6, dur 0.04, 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": "Show another SuperCollider example using `FBSineN`." }, { "role": "assistant", "content": "```supercollider\n// increase feedback\n{ FBSineN.ar(SampleRate.ir, 1, Line.kr(0.01, 4, 10), 1, 0.1) * 0.2 }.play(s);\n```" } ]
[ { "role": "user", "content": "What does `NamedIntegersSpec.defaultControl` do? What arguments does it take?" }, { "role": "assistant", "content": "datatype specifying an option list with names and an integer output type Arguments: val." } ]
[ { "role": "user", "content": "Show me a self-contained SuperCollider patch using `Harmonics`: bind everything it needs first." }, { "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, ra...
[ { "role": "user", "content": "How do I play a random majorPentatonic scale at octave 6? (scale majorPentatonic, seq Pshuf, 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": "Show me a self-contained SuperCollider patch using `PulseCount`: bind everything it needs first." }, { "role": "assistant", "content": "```supercollider\nSynthDef(\"help-PulseCount\", { |out = 0|\n Out.ar(out,\n SinOsc.ar(\n PulseCount.ar(Impulse.ar(10), Im...
[ { "role": "user", "content": "Explain this SuperCollider code.\n```supercollider\n// larger pitch range and lookBack in upper voice, \n// as with most patterns, no automatic array expansion of pattern arguments\n\n(\np = Pbind(\n \\dur, 1/7,\n \\src, Pseg(Pseq([65, 85], inf), 5, \\sin).round,\n \\midinot...
[ { "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": "Write a minimal SuperCollider example that uses `Amplitude`." }, { "role": "assistant", "content": "```supercollider\n(\n{\n // LFSaw begins at 0, illustrates attack time better\n var sig = LFSaw.ar(440);\n var amps = Amplitude.ar(\n sig,\n attackTime: [0.0...
[ { "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": "What does this SuperCollider code do?\n```supercollider\n// For most cases the symmetric symplectic procedures with prefix 'sym' should be used (default 'sym2').\n// They deliver best results with regard to long-term stability, see links at top.\n// In case you suspect instabil...
[ { "role": "user", "content": "Write a minimal SuperCollider example that uses `Dbrown`." }, { "role": "assistant", "content": "```supercollider\n(\n{\n var a, freq, trig;\n a = Dbrown(0, 15, 1, inf);\n trig = Impulse.kr(MouseX.kr(1, 40, 1));\n freq = Demand.kr(trig, 0, a) * 30 + 340;\n SinO...
[ { "role": "user", "content": "How do I put a bell in a reverb at mix 0.3?" }, { "role": "assistant", "content": "`FreeVerb` is in the core library; the room and damp arguments do the work:\n\n```supercollider\n// reverb: combn on a bell\n(\nSynthDef(\\reverb_synth, { |out = 0, freq = 330, amp = ...
[ { "role": "user", "content": "Write a kick drum with a 0.35 s decay. (osc sine, sweep 0.06, decay 0.35, f0 180, f1 48, amp 0.8, rev 0)" }, { "role": "assistant", "content": "The pitch envelope is what makes it read as a drum, not the oscillator:\n\n```supercollider\n// kick drum: sine oscillator...
[ { "role": "user", "content": "Write a minimal SuperCollider example that uses `Dreset`." }, { "role": "assistant", "content": "```supercollider\n(\n{\n var a, freq;\n a = Dreset(Dseries(0, 2, inf), Drand([0, 0, 0, 1], inf));\n freq = Duty.kr(1/MouseX.kr(1, 40, 1), 0, a) * 30 + 340;\n SinOsc....
[ { "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 `ClassGui` in SuperCollider?" }, { "role": "assistant", "content": "ClassGui — a Class inspector showing superclasses, methods and internals The default gui for a Class is a ClassGui Category: Debugging, Language." } ]
[ { "role": "user", "content": "Give me a granular patch with sweep grain position and interp 2. (rate 28, dur 0.1, interp 2, 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 w...
[ { "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": "Write a minimal SuperCollider example that uses `Condition`." }, { "role": "assistant", "content": "```supercollider\n(\nc = Condition.new(false);\n\nRoutine {\n 1.wait;\n \"waited for 1 second\".postln;\n 1.wait;\n \"waited for another second, now waiting for y...
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\na = NodeProxy(s);\na.source = { |freq = 444| Blip.ar(freq * [1, 1.03], 200) * 0.1 };\na.play;\na.set(\\freq, 555);\nb = a.copy;\nb.play;\nb.set(\\freq, 222;\n```" }, { "r...
[ { "role": "user", "content": "What is `PV_PhaseShift270` in SuperCollider?" }, { "role": "assistant", "content": "PV_PhaseShift270 — Shift phase by 270 degrees. Shift phase of all bins by 270 degrees. Category: UGens > FFT." } ]
[ { "role": "user", "content": "What is the difference between ~foo and a local variable?" }, { "role": "assistant", "content": "`var foo` is a local: it exists only inside the function or file block that declares it. `~foo` is an environment variable: it lives in the current Environment, survives...
[ { "role": "user", "content": "Give me an Ndef with an LFO at 0.8 Hz. (ugens sine, cutoff 3200, lfo 0.8, freq 82.5, amp 0.12)" }, { "role": "assistant", "content": "`Ndef` is a named proxy you can redefine while it is playing:\n\n```supercollider\n// Ndef drone: sine source through a 3200 Hz low-...
[ { "role": "user", "content": "What does `RedMatrixMixer.new` do? What arguments does it take?" }, { "role": "assistant", "content": "mix any number of input and output channels Arguments: nIn — Number of input busses.; nOut — Number of output busses.; in — Offset of first input bus.; out — Offse...
[ { "role": "user", "content": "Write a minimal SuperCollider example that uses `DetectSilence`." }, { "role": "assistant", "content": "```supercollider\n// this frees after the Decay has become quiet enough for a long enough time\n{ var signal = Decay.ar(Impulse.ar(0), 2, PinkNoise.ar(0.2)); Dete...
[ { "role": "user", "content": "Show another SuperCollider example using `AbstractFunction`." }, { "role": "assistant", "content": "```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); // o...
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ RLPFD.ar(Mix(LFSaw.ar([120, 180], 0, 0.33)), LinExp.kr(LFCub.kr(0.1, 0.5*pi), -1, 1, 280, 1500), 0.6, 0.5, mul:3.dup }.play\n```" }, { "role": "assistant", "content...
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// won't work (the output is 0.5*0.0), which is why we need the DC UGen!\n{ 0.5 }.play\n\n// constantly zero\n{ DC.ar(0.0) }.play;\n\n\n// DC offset; will click on start and fini...
[ { "role": "user", "content": "What model are you?" }, { "role": "assistant", "content": "I am sc-mind, a 198M-parameter MiniMind-3-MoE with 64M active per token: 768 wide, 8 layers, four experts with top-1 routing, a 6,400-token vocabulary, trained from scratch on SuperCollider." } ]
[ { "role": "user", "content": "Write a complete SuperCollider patch built around `SyncSaw` that runs as it is." }, { "role": "assistant", "content": "```supercollider\ns.boot;\n(\n// send a synth def to server\nSynthDef(\"tpulse\", { arg out=0,freq=700,sawFreq=440.0;\n Out.ar(out, SyncSaw.ar(fre...
[ { "role": "user", "content": "How do I granulate a sample with 0.15 s grains? (rate 20, dur 0.15, interp 2, mode noise1, 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....
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\nx = { SinOsc.ar(440, 0, 0.3) }.asDefName; // this must complete first\ny = Synth(x;\n```" }, { "role": "assistant", "content": "A closing bracket is missing: the pare...
[ { "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(\n{\n var f, sf, g;\n sf = LFNoise0.ar(MouseX.kr(1, 100, 1));\n g = MouseY.kr(0.1, 10, 1);\n f = Ball.ar(sf, g, 0.01, 0.01);\n f = f * 140 + 500;\n SinOsc.ar(f, 0, 0.2)\n}...
[ { "role": "user", "content": "Write a Pbind in majorPentatonic using Pseq for the degrees. (scale majorPentatonic, seq Pseq, 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(\nSy...
[ { "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": "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": "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": "Explain this SuperCollider code.\n```supercollider\n// Read a sound file from disk into a buffer\ns.boot;\n// ExampleFiles helps locate audio files used in examples\np = ExampleFiles.child;\n// peek at the path to see location and the format of a path\np.postln;\n// read the fi...
[ { "role": "user", "content": "Write a minimal SuperCollider example that uses `GrayNoise`." }, { "role": "assistant", "content": "```supercollider\n(\nSynthDef(\"help-GrayNoise\", { |out = 0|\n Out.ar(out,\n GrayNoise.ar(-20.dbamp)\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\n// linlin\n(\n{\n var mod = LFNoise2.ar(80);\n SinOsc.ar(mod.linlin(-1, 1, MouseX.kr(200, 8000, 1), MouseY.kr(200, 8000, 1))) * 0.1\n}.play;\n);\n\n// range\n(\n{\n var mod = ...
[ { "role": "user", "content": "Explain this SuperCollider code.\n```supercollider\n// larger pitch range and lookBack in upper voice \n// as with most patterns, no automatic array expansion of pattern arguments\n\n(\n~src = Pseg(Pseq([65, 85], inf), 5, \\sin).round;\n\np = Pbind(\n \\dur, 1/7,\n \\midinote...
[ { "role": "user", "content": "Write a minimal SuperCollider example that uses `DigitalIO`." }, { "role": "assistant", "content": "```supercollider\n// write a sine oscillator's output to a pin, and read the pin value at other times\n\n(\nSynthDef(\"help-DigitalIO\", { |out = 0|\n DigitalIO.ar...
[ { "role": "user", "content": "What does `UChain.fadeTimes` do?" }, { "role": "assistant", "content": "a group of U units Returns: Array of type [fadeIn,fadeOut]" } ]
[ { "role": "user", "content": "Write a granular texture, through a reverb. (rate 20, dur 0.04, interp 4, 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": "Write a minimal SuperCollider example that uses `Pluck`." }, { "role": "assistant", "content": "```supercollider\ns.boot;\n\n// excitation signal is WhiteNoise, triggered twice a second with varying OnePole coef\n(\n { Pluck.ar(WhiteNoise.ar(0.1), Impulse.kr(2), 44...
[ { "role": "user", "content": "Write a GrainBuf synth at 14 grains per second. (rate 14, dur 0.1, interp 2, mode noise1, 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": "How do I use a metronome or check my timing?" }, { "role": "assistant", "content": "A click on the clock you are using, plus a counter to see where you are in the bar:\n\n```supercollider\n(\nTdef(\\click, {\n var count = 0;\n loop {\n (Synth(\\hat, [\\...
[ { "role": "user", "content": "Write a self-contained SuperCollider patch for Beam me up scotty. Define every value it uses." }, { "role": "assistant", "content": "```supercollider\n{\nvar time = 8;\nvar freq = (40-12).midicps;\nvar a = VarSaw.ar(freq/2, width: XLine.ar(0.5,1,time)).range(0,XLine...
[ { "role": "user", "content": "Write a Pbind in minorPentatonic using Prand for the degrees. (scale minorPentatonic, seq Prand, dur 0.4, octave 5, instr fm, root 0)" }, { "role": "assistant", "content": "The pattern is the composition here; `\\strum` spreads the chord:\n\n```supercollider\n(\nSyn...
[ { "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": "Write an Ndef with a tri source and a 3200 Hz low-pass. (ugens tri, cutoff 3200, lfo 0.8, freq 82.5, 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 ...
[ { "role": "user", "content": "What does `RedEffectModuleGUI.views` do?" }, { "role": "assistant", "content": "Return a List of all relevant view items (not" } ]
[ { "role": "user", "content": "What is `MIDIClockOut` in SuperCollider?" }, { "role": "assistant", "content": "MIDIClockOut — a Player that sends MIDI Clock Out As a player this produces no audio, but emits MIDI Clock. It can be simply played and it will start sending. It can be added to a Player...
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ MoogLadder.ar(Mix(LFSaw.ar([120, 180], 0, 0.33)), LinExp.kr(LFCub.kr(0.1, 0.5*pi), -1, 1, 180, 8500), 0.75.dup }.play\n```" }, { "role": "assistant", "content": "A ...
[ { "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(\nSynthDef(\"help-PinkNoise\", { |out = 0|\n Out.ar(out,\n PinkNoise.ar(0.4)\n )\n}).play;\n```" }, { "role": "assistant", "content": "A closing bracket is miss...
[ { "role": "user", "content": "Explain `PdefAllGui` in SuperCollider briefly." }, { "role": "assistant", "content": "PdefAllGui — see all Pdefs and their state PdefAllGui uses PdefGui views to display all Pdefs, or a selection. Overview: JITLib Category: JITLib > GUI, Live Coding." } ]
[ { "role": "user", "content": "Write a SuperCollider patch that uses `ExpRand` and actually plays. Assume nothing about the session." }, { "role": "assistant", "content": "```supercollider\n(\nSynthDef(\"help-ExpRand\", { |out = 0|\n Out.ar(out,\n FSinOsc.ar(\n ExpRand(100.0, 8000.0),\n ...
[ { "role": "user", "content": "Write a minimal SuperCollider example that uses `NdefGui`." }, { "role": "assistant", "content": "```supercollider\n(\np = ProxySpace.push(s.boot);\n\nl = NdefGui(nil, 3).moveTo(10, 120);\nm = NdefGui(nil, 3).moveTo(10, 240);\nn = NdefGui(nil, 3).moveTo(10, 360);\no...
[ { "role": "user", "content": "How do I put a kick in a reverb at mix 0.3? (verb gverb, room 0.5, damp 0.2, mix 0.3, source kick)" }, { "role": "assistant", "content": "`FreeVerb` is in the core library; the room and damp arguments do the work:\n\n```supercollider\n// reverb: gverb on a kick\n(\n...
[ { "role": "user", "content": "What does `SimpleController.put` do? What arguments does it take?" }, { "role": "assistant", "content": "Controller according to the model-view-controller (M-V-C) paradigm Arguments: what — Register an action, which is called when the model invokes changed(what, mor...
[ { "role": "user", "content": "I get 'index out of range' when playing a buffer." }, { "role": "assistant", "content": "A read position is past the end of the buffer. `PlayBuf` with a `startPos` in frames beyond `~buf.numFrames`, or a `BufRd`/`GrainBuf` whose phase goes above 1, produces this. Fo...
[ { "role": "user", "content": "What does `MxOutletApp.to` do?" }, { "role": "assistant", "content": "an array of inlets this outlet is connected Returns: an array of MxInletApp" } ]
[ { "role": "user", "content": "Write a SuperCollider patch that uses `Routine` and actually plays. Assume nothing about the session." }, { "role": "assistant", "content": "```supercollider\n// SynthDefs on the fly\ns.boot;\n(\nt = TempoClock.new;\nr = Routine.new({\n 10.do({\n // could be don...
[ { "role": "user", "content": "What does this SuperCollider code do?\n```supercollider\n(\n// trig with MouseY crossing center of screen\n{\n var in, chain;\n in = Mix.ar(SinOsc.ar(200 * (1..10), 0, Array.fill(10, { rrand(0.1, 0.2) })));\n chain = FFT(LocalBuf(2048), in);\n chain = PV_Diffuser(chain, Mou...
[ { "role": "user", "content": "Write a minimal SuperCollider example that uses `PV_MagNoise`." }, { "role": "assistant", "content": "```supercollider\ns.boot;\n\nb = Buffer.read(s, ExampleFiles.child);\n\n(\nSynthDef(\"help-magNoise\", { |out = 0|\n var in, chain;\n in = SinOsc.ar(SinOsc.kr(Sin...
[ { "role": "user", "content": "Write a minimal SuperCollider example that uses `TWChoose`." }, { "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(MouseX.kr(1, 1000, 1)), a, [0.99, 0.05, 0.05]...
[ { "role": "user", "content": "What does this SuperCollider code do?\n```supercollider\n// compare PL and PLn, start with polling two items from each Stream\n// Note that Pseq defaults to repeats = 1 and PL/PLn default to repeats = inf\n\n(\n~a = Pseq([1, 2, 3]);\nx = PLn(\\a).asStream;\ny = PL(\\a).asStream...
[ { "role": "user", "content": "Write a kick at amp 0.6 with a click. (osc sine, 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: sine oscillator, ...
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\nb = BusPlug.new;\n{ Blip.ar(b + 5) }.play;\nb.bus.set(12;\n```" }, { "role": "assistant", "content": "A closing bracket is missing: the parenthesis opened earlier is ...
[ { "role": "user", "content": "What does `MultiSplineFr.deletePoint` do?" }, { "role": "assistant", "content": "Multi dimensional spline frame rate device" } ]
[ { "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 LinCongL.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": "Write a self-contained SuperCollider patch for it goes beyond vibrato too. Define every value it uses." }, { "role": "assistant", "content": "```supercollider\n(\nSynthDef(\"vibrato\", {arg freq=440, release=0.1;\n var x, sig,out, mod1, depth, mfreq,maxfreq, maxdep...