conversations
listlengths
2
6
[ { "role": "user", "content": "What does `Image.url` do?" }, { "role": "assistant", "content": "returns or set the url of the receiver. Returning only if any where supplied at creation, otherwise returns nil. Setting may be used for different purpose but try to supply a valid one since it is used...
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\nb = NodeProxy.audio(s, 2);\nb.play; // listen to b\nb.source = { SinOsc.ar([400, 500], 0, 0.1) }; // play something\n\nr = b.record(\"recproxy101.aiff\"); // start recorder (paus...
[ { "role": "user", "content": "Explain `DoubleWell` in SuperCollider briefly." }, { "role": "assistant", "content": "DoubleWell — Forced DoubleWell Oscillator Runge-Kutta ODE solver implementation of the chaotic Forced Double Well Oscillator (see Strogatz, Steven H. (1994) Nonlinear Dynamics and ...
[ { "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 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": "Write a Pbind in minorPentatonic using Pshuf for the degrees. (scale minorPentatonic, seq Pshuf, dur 0.25, octave 4, instr sine, root 0)" }, { "role": "assistant", "content": "Put the scale and the degree pattern in the `Pbind` and it will pick notes for you:\n\n```...
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\n{\n var a, freq, trig;\n a = Dxrand([1, 3, 2, 7, 8], inf);\n trig = Impulse.kr(MouseX.kr(1, 400, 1));\n freq = Demand.kr(trig, 0, a) * 30 + 340;\n SinOsc.ar(freq) * 0.1\n...
[ { "role": "user", "content": "Give me a granular patch with noise1 grain position and interp 4. (rate 16, dur 0.2, interp 4, mode noise1, rev 1)" }, { "role": "assistant", "content": "Granulation is `GrainBuf` plus a trigger rate; the position can move:\n\n```supercollider\n// granular synth wit...
[ { "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(\n{\n var a;\n a = [\n Saw.ar(LFSaw.kr(3 * [1, 1.01], 0, 100, 230)),\n SinOsc.ar,\n Pulse.ar(LFPulse.kr(3 * [1, 1.02], 0, 0.4, 100, 230)),\n SinOsc.ar(SinO...
[ { "role": "user", "content": "Explain this SuperCollider patch.\n```supercollider\n/// Installing sc3-plugins quarks\n\n// If you installed the sc3-plugins to a user location:\n~sc3plugs = Quarks(\nreposPath: \"https://sc3-plugins.svn.sourceforge.net/svnroot/sc3-plugins/build\",\nlocalPath: Platform.userApp...
[ { "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// indexing with a phasor\n{ BufRd.ar(1, b, Phasor.ar(0, BufRateScale.kr(b), 0, BufFrames.kr(b))) }.play;\n\n// indexing by hand\n{ Buf...
[ { "role": "user", "content": "What does `ServerOptions.numInputBusChannels` do?" }, { "role": "assistant", "content": "The number of audio input bus channels. This need not correspond to the number of hardware inputs. The default is" } ]
[ { "role": "user", "content": "Show another SuperCollider example using `Recorder`." }, { "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 does `EaseOutInElastic.value` do? What arguments does it take?" }, { "role": "assistant", "content": "Elastic ease-out/in Arguments: t — a Float between 0.0 and 1.0.; a — amplitude. The default is 1.; p — period. The default is 1.." } ]
[ { "role": "user", "content": "Write a minimal SuperCollider example that uses `Pwrap`." }, { "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, 0.2), doneAction: Do...
[ { "role": "user", "content": "What is `PV_Mul` in SuperCollider?" }, { "role": "assistant", "content": "PV_Mul — Complex multiply. Complex Multiplication: Category: UGens > FFT." } ]
[ { "role": "user", "content": "Write a minimal SuperCollider example that uses `GbmanN`." }, { "role": "assistant", "content": "```supercollider\n// default initial params\n{ GbmanN.ar(MouseX.kr(20, SampleRate.ir)) * 0.1 }.play(s);\n\n// change initial params\n{ GbmanN.ar(MouseX.kr(20, SampleRate...
[ { "role": "user", "content": "What does this SuperCollider code do?\n```supercollider\n(\nvar carrier, modulator, depth, scale;\n\ncarrier = 440;\nmodulator = 650;\ndepth = 355.2;\n\n// generate a 5 step scale, picking the 5 most consonant steps from the dissonance curve\nscale = DissonanceCurve.fm(carrier,...
[ { "role": "user", "content": "What does `CampCutProc.chooseblock` do?" }, { "role": "assistant", "content": "this uses the setoffset method of BBCutSynth to specify offset jumps relative to the current phrase size. In normal use phrasesize will be the same as the beat length of the source you wi...
[ { "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 `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": "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": "Write a minimal SuperCollider example that uses `CoinGate`." }, { "role": "assistant", "content": "```supercollider\n(\na = SynthDef(\"help-TCoin\", { |out = 0, prob = 0.5|\n var trig;\n trig = CoinGate.kr(prob, Impulse.kr(10));\n Out.ar(out,\n SinOsc.ar(\n ...
[ { "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": "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": "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": "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.ar(\"minimoog.two\", SinOsc.kr(1.0).range(300,500) )\n )\n}).send(s;\n```" }, { "role": "assistant", "content": "A closi...
[ { "role": "user", "content": "What does this SuperCollider code do?\n```supercollider\n(\n// Dust randomly triggers Decay to create an exponential\n// decay envelope for the WhiteNoise input source\n{\nz = Decay.ar(Dust.ar(1, 0.5), 0.3, WhiteNoise.ar);\nDelayC.ar(z, 0.2, 0.2, 1, z); // input is mixed with d...
[ { "role": "user", "content": "What does doneAction do?" }, { "role": "assistant", "content": "It tells the server what to do to the enclosing Synth when the UGen finishes. The one that matters most is `doneAction: 2`, which frees the Synth: that is how a percussive sound cleans itself up instead...
[ { "role": "user", "content": "What does this SuperCollider code do?\n```supercollider\n(\nq = Patch({ Saw.ar(40.midicps) * 0.05 });\nr = Patch({ Saw.ar(52.midicps) * 0.05 });\np = PlayerSocket.new(\\audio,1);\np.play;\n);\n// then get the socked to alternately spawn q and r\np.prepareAndQSpawn(q,0.1);\np.pr...
[ { "role": "user", "content": "Write a kick at amp 0.6 with no click. (osc saw, sweep 0.06, decay 0.12, f0 150, f1 48, 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 pitch s...
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```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": "assis...
[ { "role": "user", "content": "What does `InstrBrowser.gui` do? What arguments does it take?" }, { "role": "assistant", "content": "Browse your instrument library, with customizable actions Arguments: layout; bounds." } ]
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ Out.ar(87, SinOsc.ar(MouseX.kr(340, 1000, 1) * [1, 2, 3], 0, 0.2)) }.play;\nx = Monitor.new.play(87, 3, 0, fadeTime: 3;\nx.vol = 0.3;\nx.stop;\n```" }, { "role": "assis...
[ { "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{ LatoocarfianN.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": "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": "Write a minimal SuperCollider example that uses `Out`." }, { "role": "assistant", "content": "```supercollider\n(\nSynthDef(\"help-out\", { |out = 0, freq = 440|\n var source;\n source = SinOsc.ar(freq, 0, 0.1);\n\n // write to the bus, adding to previous con...
[ { "role": "user", "content": "Write a kick drum with a 0.35 s decay. (osc saw, sweep 0.06, decay 0.35, f0 150, f1 40, 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 pitch s...
[ { "role": "user", "content": "Explain this SuperCollider code.\n```supercollider\n// alternating major and minor chords as a test\n(\n{\n var in, fft, resample;\n var key, transientdetection;\n\n in = Mix(SinOsc.ar((60 + [0, MouseX.kr(3, 4).round(1), 7]).midicps, 0, 0.1));\n\n // major dom 7 and minor 7...
[ { "role": "user", "content": "What does this SuperCollider patch do?\n```supercollider\n// you have to write the sample path in the firts line\n\n~bufferdue = Buffer.read(s,\" WRITE YOUR SAMPLE PATH HERE \", bufnum:2);\n\n(\nSynthDef.new(\\bufbeat, {\n arg amp = 1, out = 0, buf, start, end, freq = 1;\n va...
[ { "role": "user", "content": "What does this SuperCollider code do?\n```supercollider\n// We'll hear the sawtooth wave when the two sine oscillators are both in the region x = 0.0 to 0.5, y = 0.5 to 1.0\n(\n{\n InRect.ar(\n SinOsc.ar(1), SinOsc.ar(1.3), Rect(0, 0.5, 0.5, 0.5)\n ) * LFSaw.ar(44, 0, 0.1)...
[ { "role": "user", "content": "What does this SuperCollider code do?\n```supercollider\nIdentitySet[1, 2, 3].add(4);\nIdentitySet[1, 2, 3].add(3);\n// the two strings are equal but not identical\nIdentitySet[\"abc\", \"def\", \"ghi\"].add(\"def\");\n// symbols are guaranteed to be identical if they are equal...
[ { "role": "user", "content": "Write a pluck whose tail uses freeverb. (verb freeverb, room 0.7, damp 0.5, mix 0.3, source pluck)" }, { "role": "assistant", "content": "Put the reverb inside the `SynthDef` so it is part of the voice:\n\n```supercollider\n// reverb: freeverb on a pluck\n(\nSynthDe...
[ { "role": "user", "content": "Write a complete SuperCollider patch built around `DigitalIO` that runs as it is." }, { "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 =...
[ { "role": "user", "content": "What does this SuperCollider code do?\n```supercollider\n(\ns = Server.local;\nServer.default = s;\ns.boot;\n);\n \n \n// definition for future reference in arbitrary Environments\n\np = PLmeanrand(\\lo, \\hi);\n\n\n// prepare current Environment\n// PLseq repeats...
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\n{\n EnvGen.kr(\n Env.new([0.001, 1, 0.5, 0], [0.01, 0.3, 1], -4, 2, nil),\n Impulse.kr(10)\n ) * SinOsc.ar(440, 0, 0.1)\n}.play;\n);\n\n(\n{\n EnvGen.kr...
[ { "role": "user", "content": "Write a minimal SuperCollider example that uses `BufSampleRate`." }, { "role": "assistant", "content": "```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 samp...
[ { "role": "user", "content": "Write a complete SuperCollider patch built around `MultiplexAnalogIn` that runs as it is." }, { "role": "assistant", "content": "```supercollider\n// modulate frequency of a sine oscillator\n\n(\nSynthDef(\"help-MultiplexAnalogIn\", { |out = 0|\n Out.ar(out,\n S...
[ { "role": "user", "content": "Give me a bell with damping 0.5 on the reverb. (verb freeverb, room 0.7, damp 0.5, mix 0.3, source bell)" }, { "role": "assistant", "content": "A send-style patch: dry signal plus the reverb on the tail:\n\n```supercollider\n// reverb: freeverb on a bell\n(\nSynthDe...
[ { "role": "user", "content": "What is `BLowPass`?" }, { "role": "assistant", "content": "BLowPass — 12db/oct rolloff - 2nd order resonant Low Pass Filter" }, { "role": "user", "content": "What does `BLowPass.sc` do?" }, { "role": "assistant", "content": "calculate filter ...
[ { "role": "user", "content": "What does this SuperCollider code do?\n```supercollider\n// Since the allpass delay has no audible effect as a resonator on\n// steady state sound ...\n\n{ AllpassN.ar(WhiteNoise.ar(0.1), 0.01, XLine.kr(0.0001, 0.01, 20), 0.2) }.play;\n\n// ...these examples add the input to th...
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ LFPulse.ar(50 * 0.1 }.play;\n```" }, { "role": "assistant", "content": "A closing bracket is missing: the parenthesis opened earlier is never closed, so the express...
[ { "role": "user", "content": "Give me a complete SuperCollider patch for (thor magnusson) (2006) An instrumentalist inside a synthdef: bind everything it needs before it is used." }, { "role": "assistant", "content": "```supercollider\n// (thor magnusson) (2006)\n\n// An instrumentalist inside a...
[ { "role": "user", "content": "What does this SuperCollider code do?\n```supercollider\n// world's most expensive patchcord (use headphones to avoid feedback)\n{ SoundIn.ar(0) }.play;\n\n// stereo version\n{ SoundIn.ar([0, 1]) }.play;\n\n// scope input; silent output\n{ Amplitude.kr(SoundIn.ar(0)) }.scope;\n...
[ { "role": "user", "content": "What is `PClipNoise` in SuperCollider?" }, { "role": "assistant", "content": "PClipNoise — UGenPatterns quark library Based on ClipNoise Category: Streams-Patterns-Events > UGenPatterns > Generators." } ]
[ { "role": "user", "content": "Write a self-contained SuperCollider patch for Seekers are something you should avoid. Define every value it uses." }, { "role": "assistant", "content": "```supercollider\n(\n{\n var time = 0.23;\n var freq = (55).midicps;\n var a = VarSaw.ar(freq/2, width: XLine...
[ { "role": "user", "content": "Write a kick at amp 0.6 with no click. (osc fm, sweep 0.06, decay 0.5, f0 220, f1 48, 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: fm oscillator, 0.0...
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ LFPulse.kr(XLine.kr(1, 200, 10), 0, 0.2) * SinOsc.ar(440 * 0.1 }.play;\n```" }, { "role": "assistant", "content": "A closing bracket is missing: the parenthesis ope...
[ { "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// indexing with a phasor\n{ BufRd.ar(1, b, Phasor.ar(0, BufRateScale.kr(b), 0, BufFrames.kr(b))) }.play;\n\n// indexing by hand\n{ Buf...
[ { "role": "user", "content": "What is `SortedList`?" }, { "role": "assistant", "content": "SortedList — a Collection whose items are kept in a sorted order." }, { "role": "user", "content": "What does `SortedList.new` do?" }, { "role": "assistant", "content": "Creates a S...
[ { "role": "user", "content": "Give me a bell with damping 0.2 on the reverb." }, { "role": "assistant", "content": "Put the reverb inside the `SynthDef` so it is part of the voice:\n\n```supercollider\n// reverb: freeverb on a bell\n(\nSynthDef(\\reverb_synth, { |out = 0, freq = 330, amp = 0.2|\...
[ { "role": "user", "content": "Write a minimal SuperCollider example that uses `ClipNoise`." }, { "role": "assistant", "content": "```supercollider\n{ ClipNoise.ar(0.2) }.play;\n```" } ]
[ { "role": "user", "content": "What does `RedToolsMenu.list` do?" }, { "role": "assistant", "content": "A List containing two symbols (category and tool name) and a" } ]
[ { "role": "user", "content": "What is `ExponentialGridLines` in SuperCollider?" }, { "role": "assistant", "content": "ExponentialGridLines — Calculates the numerical values suitable for exponentially-spaced grid lines to be used for plotting or other UI elements. `ExponentialGridLines` is a stra...
[ { "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\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": "Write an Ndef with a tri source and a 200 Hz low-pass." }, { "role": "assistant", "content": "`Ndef` holds the synth and the environment, so you can edit it live:\n\n```supercollider\n// Ndef drone: tri source through a 200 Hz low-pass\n(\nNdef(\\nd_tri_55_200, { |f...
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\ns.boot;\ns.scope;\na = { HilbertFIR.ar(SinOsc.ar(100) * -20.dbamp, LocalBuf(2048) }.play;\na.release;\n```" }, { "role": "assistant", "content": "A closing bracket is...
[ { "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": "What does `SplineOsc.ar` do? What arguments does it take?" }, { "role": "assistant", "content": "(describe method Arguments: freq — (describe argument here); phase — (describe argument here); divisions — (describe argument here); rate — (describe argument here). Ret...
[ { "role": "user", "content": "What is `Plotter`?" }, { "role": "assistant", "content": "Plotter — Plot numerical data on a window or view" }, { "role": "user", "content": "What does `Plotter.plotGraph` do?" }, { "role": "assistant", "content": "`{ |x| sin(x) }.plotGraph(3...
[ { "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 is `Rest`?" }, { "role": "assistant", "content": "Rest — Represents a rest in event patterns" }, { "role": "user", "content": "What does `Rest.new` do?" }, { "role": "assistant", "content": "Create an instance of Rest, with a value to be...
[ { "role": "user", "content": "Write a kick at amp 0.8 with a click. (osc fm, sweep 0.06, decay 0.18, f0 220, f1 48, 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 drum: fm oscillator, 0.0...
[ { "role": "user", "content": "What does `Tdef.count` do?" }, { "role": "assistant", "content": "Create and update condition that simply counts up to n and switches the pattern" } ]
[ { "role": "user", "content": "Write a granular texture, through a reverb. (rate 10, dur 0.07, interp 4, 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 {\n...
[ { "role": "user", "content": "Write a self-contained SuperCollider patch that uses `Node`. Define every value it uses." }, { "role": "assistant", "content": "```supercollider\ns.boot;\n(\nx = SynthDef(\"help-node-set\", { |freq = 440, out = 0|\n Out.ar(out, SinOsc.ar(freq, 0, 0.1))\n}).play\n);...
[ { "role": "user", "content": "Write an Ndef with a tri source and a 2400 Hz low-pass. (ugens tri, cutoff 2400, lfo 0.3, 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: tri source through a 2...
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\nt = SortedList.new(8, {|a,b| a.first < b.first });\nt.add([10, \"last\"]);\nt.add([1, \"first\"];\nt.postln;\n```" }, { "role": "assistant", "content": "A closing bra...
[ { "role": "user", "content": "Write a self-contained SuperCollider patch that uses `Dgeom`. Define every value it uses." }, { "role": "assistant", "content": "```supercollider\n// example\n\n(\n{\n var a, freq, trig;\n a = Dgeom(1, 1.2, 15);\n trig = Impulse.kr(MouseX.kr(1, 40, 1));\n freq =...
[ { "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": "Explain `IBVAfft` in SuperCollider briefly." }, { "role": "assistant", "content": "IBVAfft — collect data and perform fft collects data from IBVA device and calculate fft. Category: External Control." } ]
[ { "role": "user", "content": "Write a SuperCollider patch that uses `GrayNoise` and actually plays. Assume nothing about the session." }, { "role": "assistant", "content": "```supercollider\n(\nSynthDef(\"help-GrayNoise\", { |out = 0|\n Out.ar(out,\n GrayNoise.ar(-20.dbamp)\n )\n}).play;\n)...
[ { "role": "user", "content": "What does `TaskProxy.clock` do?" }, { "role": "assistant", "content": "get or set the instance's default clock, used by #-play if no other clock is specified. Defaults to" } ]
[ { "role": "user", "content": "Write a Pbind whose degrees repeat every Prand cycle. (scale minorPentatonic, seq Prand, dur 0.2, octave 5, instr sine, root 0)" }, { "role": "assistant", "content": "`Pbind` sequences an Event per beat, and `\\degree` + `\\scale` does the pitch:\n\n```supercollider...
[ { "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": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\n// use input amplitude to control SinOsc frequency - use headphones to prevent feedback.\n{\n SinOsc.ar(\n Amplitude.kr(\n SoundIn.ar(0),\...
[ { "role": "user", "content": "Show another SuperCollider example using `LinCongC`." }, { "role": "assistant", "content": "```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...
[ { "role": "user", "content": "Write a minimal SuperCollider example that uses `EnvGen`." }, { "role": "assistant", "content": "```supercollider\n{ PinkNoise.ar(EnvGen.kr(Env.perc, doneAction: Done.freeSelf)) }.play\n```" } ]
[ { "role": "user", "content": "What does this SuperCollider code do?\n```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 = NdefGui(nil, 3).moveTo(10, 480);\n\nSpec.add(\\dens, [0.1, 300, \\ex...
[ { "role": "user", "content": "What does this SuperCollider code do?\n```supercollider\n{ Hasher.ar(Line.ar(0, 1, 1), 0.2) }.play;\n\n// Even adding a small amount to the input can result in a very different output. Compare these two examples:\n(\n{\n SinOsc.ar(\n Hasher.kr(MouseX.kr(0, 10).round(1), 300...
[ { "role": "user", "content": "Write a self-contained SuperCollider patch that uses `Dser`. Define every value it uses." }, { "role": "assistant", "content": "```supercollider\n(\n{\n var a, freq, trig;\n a = Dser([1, 3, 2, 7, 8], 8);\n trig = Impulse.kr(MouseX.kr(1, 40, 1));\n freq = Demand....
[ { "role": "user", "content": "Write a SuperCollider patch that uses `Pgtpar` and actually plays. Assume nothing about the session." }, { "role": "assistant", "content": "```supercollider\n// synthdef\n(\nSynthDef(\\help_sinegrain,\n { |out = 0, freq = 440, sustain = 0.05|\n var env;\n ...
[ { "role": "user", "content": "Explain `BAllPass` in SuperCollider briefly." }, { "role": "assistant", "content": "BAllPass — All Pass Filter The B equalization suite is based on the Second Order Section (SOS) biquad UGen. Category: UGens > Filters > BEQSuite." } ]
[ { "role": "user", "content": "Write a minimal SuperCollider example that uses `HPF`." }, { "role": "assistant", "content": "```supercollider\n{ HPF.ar(Saw.ar(200, 0.1), FSinOsc.kr(XLine.kr(0.7, 300, 20), 0, 3600, 4000), 5) }.play;\n\n(\n{ var ctl = HPF.kr(LFSaw.kr(5), SinOsc.kr(XLine.kr(0.07, ...
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ Latoocarfian2DL.ar(MouseX.kr(20, SampleRate.ir * 0.5), MouseX.kr(40, SampleRate.ir), mul:0.2) }.play(s);\n\n\n(\n{ Latoocarfian2DL.ar(\n SampleRate.ir/4,\n SampleRate.ir,\n ...
[ { "role": "user", "content": "What does `Collection.removeAllSuchThat` do?" }, { "role": "assistant", "content": "Remove all items in the receiver for which function answers True. The function is passed two arguments, the item and an integer index. Answers the objects which have been removed." ...
[ { "role": "user", "content": "What does this SuperCollider code do?\n```supercollider\n// create a def with some variants\n(\nSynthDef(\\vartest, { |out, freq = 440, amp = 0.2, a = 0.01, r = 1|\n // the EnvGen with doneAction: Done.freeSelf frees the synth automatically when done\n Out.ar(out, SinOsc.ar(f...
[ { "role": "user", "content": "What is `Decay` in SuperCollider?" }, { "role": "assistant", "content": "Decay — Exponential decay An integrating filter which, if given an impulse, will produce an exponentially decaying envelope. `Decay` is essentially the same as Integrator, but instead of specif...