conversations listlengths 2 6 |
|---|
[
{
"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": "Show me a self-contained SuperCollider patch using `LFClipNoise`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\"help-LFClipNoise\", { |out = 0|\n Out.ar(out,\n LFClipNoise.ar(1000, 0.25)\n )\n}).play;\n);... |
[
{
"role": "user",
"content": "Explain `Standard2DN` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "Standard2DN — standard map 2D chaotic generator `x(n+1) = (x(n) + y(n+1)) % 2pi` Category: UGens > Generators > Stochastic."
}
] |
[
{
"role": "user",
"content": "What does `TraerParticleSystem.removeSpring` do?"
},
{
"role": "assistant",
"content": "takes care of gravity, drag, making particles, applying forces and advancing the simulation"
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Pause`."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\n\nSynthDef(\\a, { Out.ar(0, SinOsc.ar(800, 0, 0.2)) }).add;\n\nSynthDef(\\b, { |gate = 1| Out.ar(1, PinkNoise.ar(0.3)); Pause.kr(gate, 1001) })... |
[
{
"role": "user",
"content": "Explain `RedMstGUI2` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "RedMstGUI2 — gui window for RedMst - with metro Same as its superclass but adds a visual metronome. This class takes a little bit more CPU to update. Category: Red > redMst."
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `RunningMin`."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n SinOsc.ar(\n RunningMin.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... |
[
{
"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": "Write a minimal SuperCollider example that uses `Synth`."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\n// create a Synth at the head of the default Server's default group\n// based on the SynthDef \"default\"\nx = Synth.new(\"default\");\ns.query... |
[
{
"role": "user",
"content": "Give me a granular patch with sweep grain position and interp 2. (rate 28, dur 0.04, interp 2, mode sweep, 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": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\nb = NodeProxy.new.play;\nb.source = { PinkNoise.ar(0.2.dup) };\n// now I want to filter b through a new proxy.\na = NodeProxy.new;\na <-- b; a.source = { HPF.ar(b.ar, 7000) };\na... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `SinOsc`."
},
{
"role": "assistant",
"content": "```supercollider\n// create an audio-rate sine wave at 200 Hz,\n// starting with phase 0 and an amplitude of 0.5\n{ SinOsc.ar(200, 0, 0.5) }.play;\n\n// modulate the fre... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `ProxySynthDef`."
},
{
"role": "assistant",
"content": "```supercollider\na = ProxySynthDef(\"xtest\", { SinOsc.ar(400) * 0.1 });\n\na.add;\n\nx = Synth(\"xtest\");\nx.release;\n\n\n/*\n\n if the resulting number of c... |
[
{
"role": "user",
"content": "Explain this SuperCollider code.\n```supercollider\n// play SinOscs silently and wait for granulation envelopes\n\n(\na = Bus.audio(s, 10);\nx = { Splay.ar(In.ar(a, 10) * SinOsc.ar((3..12) * 100, 0, 0.05)) }.play\n);\n\n// send envelope to buses in parallel\n\n(\nz = {\n DXE... |
[
{
"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": "Write a minimal SuperCollider example that uses `LinRand`."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\"help-LinRand\", { |out = 0, minmax = 1|\n Out.ar(out,\n FSinOsc.ar(\n LinRand(200.0, 10000.0, minmax),\n 0, Line.kr(0.2, 0... |
[
{
"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": "Give me a granular patch with noise grain position and interp 2. (rate 20, dur 0.07, interp 2, mode noise, rev 0)"
},
{
"role": "assistant",
"content": "Granulation is `GrainBuf` plus a trigger rate; the position can move:\n\n```supercollider\n// granular synth with... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `SinOsc`."
},
{
"role": "assistant",
"content": "```supercollider\n// create an audio-rate sine wave at 200 Hz,\n// starting with phase 0 and an amplitude of 0.5\n{ SinOsc.ar(200, 0, 0.5) }.play;\n\n// modulate the fre... |
[
{
"role": "user",
"content": "Explain this SuperCollider code.\n```supercollider\n(\nSynthDef(\"fm\", {| out = 0, amp = 0.2, midinote=1, octave = 5, carrier, modulator, depth,\n dur = 1, detune = 0|\n\n var carrierOsc, modulation, env, degree, ratio;\n\n\n // adjust the octave. This assumes the fregencie... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n// crossfading a mono source between two outs\n\n(\nx = {\n DXFan.ar(\n Dseq([0, 1], inf),\n PinkNoise.ar(0.05),\n fadeTime: 1\n )\n}.play\n);\n\nx.release\n\n\n// Crossfading a stereo source between two outs,\... |
[
{
"role": "user",
"content": "Write a GrainBuf synth at 10 grains per second. (rate 10, dur 0.04, interp 2, mode sweep, 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 ... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// write a sine oscillator's output to a pin\n\n(\nSynthDef(\"help-AnalogOut\", { |out = 0|\n AnalogOut.ar(0, SinOsc.ar(10));\n}).play;\n```"
},
{
"role": "assistant",... |
[
{
"role": "user",
"content": "Show me a self-contained SuperCollider patch using `LFSaw`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\n(\nfork {\n ~group = Group();\n\n 2.wait;\n\n SynthDef(\\buzz, {\n |out = 0, freq = 300, amp = 0.1, filter = 1.... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// distorts of course - would need scaling\n{ RunningSum.ar(SoundIn.ar) }.play\n\n// Running Average over x samples\n(\n{\n var x = 100;\n RunningSum.ar(LFSaw.ar, x) * (x.r... |
[
{
"role": "user",
"content": "Write a Pbind whose degrees repeat every Prand cycle. (scale majorPentatonic, seq Prand, dur 0.3, octave 5, 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```supercollid... |
[
{
"role": "user",
"content": "What does `Array.shift` do?"
},
{
"role": "assistant",
"content": "Shift the values of the array n steps to the right (n positive) or to the left(n negative), dropping the excess and filling empty space with zero. `[1, 2, 3, 4, 5,"
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `BiPanB2`."
},
{
"role": "assistant",
"content": "```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(... |
[
{
"role": "user",
"content": "How do I build a live drone with Ndef at 110 Hz? (ugens sine, cutoff 2400, lfo 0.8, 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: sine source through a 240... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n(// * //watch the postWindow\na=[\"m\",\"x\",\"f\",\"k\",\"d\",\"p\"];\nx=Array;\ny=x.newClear(6);\n~mxfkdp=Task({\n inf.do({y.put(x.series(6,0,1).choose,a.scramble).postln;\n 0.03.wait;})}).play;\nm=fork({inf.do({\n ... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `LPZ2`."
},
{
"role": "assistant",
"content": "```supercollider\n// Compare:\n\n{ WhiteNoise.ar(0.25) }.play;\n\n{ LPZ2.ar(WhiteNoise.ar(0.25)) }.play;\n```"
}
] |
[
{
"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": "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 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": "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": "Explain `Qitch` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "Qitch — constant Q transform pitch follower This alternative pitch follower works in the frequency domain rather than Pitch's time domain correlation. Tradeoffs are made between latency... |
[
{
"role": "user",
"content": "What does `RedObject.world` do?"
},
{
"role": "assistant",
"content": "A world ( RedWorld of any dimension) that currently holds this object. The object will add"
}
] |
[
{
"role": "user",
"content": "Show another SuperCollider example using `LinCongL`."
},
{
"role": "assistant",
"content": "```supercollider\n// randomly modulate params\n(\n{ LinCongL.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": "What does this SuperCollider patch do?\n```supercollider\n(\n{\n var time = 30;\n var line = Line.kr(3000, 290, time);\n var line2 = Line.kr(280, 290, time);\n var line3 = Line.kr(0.01, 10, time);\n var sin = Mix.ar(SinOsc.ar([line, line2]) * SinOsc.ar(line3));\n var comb... |
[
{
"role": "user",
"content": "What does `Semaphore.clear` do?"
},
{
"role": "assistant",
"content": "Remove any reference to threads, but do not reschedule any pending"
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// record a buffer\nb = { Blip.ar(XLine.kr(10000, 4, 3) * [1, 1.2], 20) * 0.1 }.asBuffer(3, fadeTime: 0.1)\nb.plot; // after 3 seconds, you can see it.\n// play the soundfile bac... |
[
{
"role": "user",
"content": "What does `Tdef.embed` do?"
},
{
"role": "assistant",
"content": "Pass a value (typically an Event) into the task function, and embed the Tdef in the"
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `PV_MagSquared`."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\n\n(\nb = Buffer.alloc(s, 2048, 1);\nc = Buffer.read(s, ExampleFiles.child);\n);\n\n(\nSynthDef(\"help-magSquared\", { |out = 0, bufnum ... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `BufDur`."
},
{
"role": "assistant",
"content": "```supercollider\nb = Buffer.read(s, ExampleFiles.child);\n\n{ BufRd.ar(1, b, Sweep.ar(Impulse.ar(BufDur.kr(b).reciprocal), BufSampleRate.kr(b))) }.play;\n\nb.free\n```"... |
[
{
"role": "user",
"content": "Write a self-contained SuperCollider patch that uses `MouseX`. Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\n(\nb = Bus.control(s, 9); // nine channel control rate\nb.setn([244, 737, 20, 271, 382, 172, 4, 2399, 251]);\n{\n var... |
[
{
"role": "user",
"content": "List of exit codes?"
},
{
"role": "assistant",
"content": "SuperCollider forum — List of exit codes?\n\n7068696c:\n\n```supercollider\no = s.options;\no.inDevice = nil;\no.outDevice = \"ASIO : ASIO4ALL\";\n```\n\nHmmmm... In earlier SC versions, it wouldn’t have wor... |
[
{
"role": "user",
"content": "Give me a granular patch with sweep grain position and interp 2. (rate 28, dur 0.07, interp 2, mode sweep, 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": "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 Pbind whose degrees repeat every Pshuf cycle. (scale majorPentatonic, seq Pshuf, dur 0.3, octave 5, instr fm, root 0)"
},
{
"role": "assistant",
"content": "The pattern is the composition here; `\\strum` spreads the chord:\n\n```supercollider\n(\nSynthDef(\\... |
[
{
"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// intervals grow together with base tone\n\n(\nq = PLexprand(\\lo, \\hi);\n\np = Pbind(\n... |
[
{
"role": "user",
"content": "Write a SuperCollider patch for phasemodulation feedback and allpass network. Start by defining the values the patch depends on."
},
{
"role": "assistant",
"content": "```supercollider\nn=LFNoise1;Ndef(\\x,{a=SinOsc.ar(65,Ndef(\\x).ar*n.ar(0.1,3),n.ar(3,6)).tanh;9.d... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n(\n{\n NLFiltN.ar(\n LFSaw.ar([120, 180], 0, mul:0.1),\n 0.5,\n -0.04,\n 0.8,\n 0.2,\n LFCub.kr(0.2, [0, 0.5 * pi], 63, 103)\n )\n}.play\n);\n\n(\n{\n NLFiltN.ar(\n LFSaw.ar(XLine.kr([60, 90], [360... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\ns.boot;\n(\nz = {\n BHiPass.ar(\n SoundIn.ar([0, 1]),\n MouseX.kr(10, 20000, \\exponential), // cutoff freq.\n MouseY.kr(0.0, 1.0, \\linear), // rq\n 0.5); // mul\n}... |
[
{
"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": "Explain `Symbol` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "Symbol — a unique name for something A symbol, like a String, is a sequence of characters. Unlike strings, two symbols with exactly the same characters will be the exact same object. S... |
[
{
"role": "user",
"content": "What does `LID.isOpen` do?"
},
{
"role": "assistant",
"content": "Returns true if the device is open, false if the device was"
}
] |
[
{
"role": "user",
"content": "Explain this SuperCollider code.\n```supercollider\n// same as above, but we set the address to nil so we can receive from anywhere\n// no need for a NetAddr since we are just listening (and not sending)\n\no = OSCresponderNode(nil, '/test', { |t, r, msg| msg.postln }).add;\no.... |
[
{
"role": "user",
"content": "What is `MxIOletsApp` in SuperCollider?"
},
{
"role": "assistant",
"content": "MxIOletsApp — accesses a units inlets or outlets These object holds the inlets or outlets as returned by a unit: Category: Mx."
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Env`."
},
{
"role": "assistant",
"content": "```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)... |
[
{
"role": "user",
"content": "What does `PV_MagMul.new` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Multiply magnitudes. Arguments: bufferA — FFT buffer A.; bufferB — FFT buffer B.."
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// default initial params\n{ FBSineL.ar(SampleRate.ir/4) * 0.2 }.play(s;\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\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.1)\n}.play\n // > outputs ... |
[
{
"role": "user",
"content": "Write a self-contained SuperCollider patch for reverbio (a SuperCollider snippet). Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\"reverb\", {arg freq=440, release=0.1;\n var in, s1,out, mod1, depth, mfreq;\n s1 =... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ SinOsc.ar(MouseY.kr(40, 10000, 1), 0, 0.1 }.play;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis opened earlier is never ... |
[
{
"role": "user",
"content": "Explain this SuperCollider patch.\n```supercollider\n// for the members of the cult of q\n// who don't want to ~tilde\n\n\n//-- INIT\nq = q ? ();\n\nq.local = currentEnvironment;\n\nq.local.pattern = Pbind(\\note, Pbrown(0, { 17.rand + 1 } ! 12), \\dur, 0.05, \\amp, 0.01);\n\n\... |
[
{
"role": "user",
"content": "Explain `FoaSFVL` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "FoaSFVL — First Order Ambisonic (FOA) Soundfield Velocity Level Return the Soundfield Velocity Level, SFVL, of a first order ambisonic (B-format) signal, in dB. Category: Libraries > ... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n(\nPdef(\\zed, \n Pbind(\n \\osc, Pseq([SinOsc, LFSaw],inf),\n \\instrument, Prout({ arg ev;\n SynthDef(\\zed, { arg out=0, gate=1, amp=0.1, pan=0, freq=200;\n var sig;\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": "Write a minimal SuperCollider example that uses `LFDClipNoise`."
},
{
"role": "assistant",
"content": "```supercollider\n// try wiggling the mouse quickly;\n// LFNoise frequently seems stuck, LFDNoise changes smoothly.\n\n{ LFClipNoise.ar(MouseX.kr(0.1, 1000, 1), 0.... |
[
{
"role": "user",
"content": "What is `OSCArgsMatcher` in SuperCollider?"
},
{
"role": "assistant",
"content": "OSCArgsMatcher — Test for specific OSC arguments before evaluating a Function OSCArgMatcher matches an argument template to a Function or similar object. When its value method is calle... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `Duty`."
},
{
"role": "assistant",
"content": "```supercollider\n(\n {\n var freq;\n freq = Duty.kr(\n Dseq([0.2, 0.3, 0.4, Dseq([1, 1, 1, 2, 1, 2], inf)]) / 2,\n Dust.kr(1), // control rate reset\n ... |
[
{
"role": "user",
"content": "What is `PV_ChainUGen`?"
},
{
"role": "assistant",
"content": "PV_ChainUGen — Base class for UGens that operate on FFT chains"
},
{
"role": "user",
"content": "What does `PV_ChainUGen.fftSize` do?"
},
{
"role": "assistant",
"content": "Return... |
[
{
"role": "user",
"content": "Explain `BinaryOpUGen` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "BinaryOpUGen — Apply a binary operation to the values of an input UGen BinaryOpUGens are created as the result of a binary operator applied to a UGen. `(SinOsc.ar(200) * ClipNois... |
[
{
"role": "user",
"content": "What is `CondVar`?"
},
{
"role": "assistant",
"content": "CondVar — Condition variable: block one or more threads until some condition is true"
},
{
"role": "user",
"content": "What does `CondVar.wait` do?"
},
{
"role": "assistant",
"content"... |
[
{
"role": "user",
"content": "What is `VectorSplineGui` in SuperCollider?"
},
{
"role": "assistant",
"content": "VectorSplineGui — Editor for viewing splines that consist of vectorized data at positions along the x domain Vectorizing data is a common machine learning technique where many paramet... |
[
{
"role": "user",
"content": "What is `ProxySynthDef`?"
},
{
"role": "assistant",
"content": "ProxySynthDef — synth def that wraps ugen graph"
},
{
"role": "user",
"content": "What does `ProxySynthDef.sampleAccurate` do?"
},
{
"role": "assistant",
"content": "always use O... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `Warp1`."
},
{
"role": "assistant",
"content": "```supercollider\n(\nb.free;\nb = Buffer.read(s, ExampleFiles.apollo11);\n{\n var pointer = Phasor.ar(0, SampleDur.ir / BufDur.ir(b) * XLine.kr(1, 0.25, 20));\n var sound = Wa... |
[
{
"role": "user",
"content": "Explain `DbufTag` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "DbufTag — demand rate tag system on a buffer Emil Post's tag system as a demand rate ugen - Buffer version. Category: UGens > Demand."
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `RandID`."
},
{
"role": "assistant",
"content": "```supercollider\n// start a noise patch and set the id of the generator\n(\nSynthDef(\"help-RandID\", { |out = 0, id = 1|\n RandID.ir(id);\n Out.ar(out,\n WhiteNoi... |
[
{
"role": "user",
"content": "What is `MxMixerGui` in SuperCollider?"
},
{
"role": "assistant",
"content": "MxMixerGui — Mixing console with faders, mutes, solos and scope The Mixer provides a standard mixing console with faders, mutes and solos. Category: Mx."
}
] |
[
{
"role": "user",
"content": "Write a SuperCollider patch that uses `UnaryOpUGen` and actually plays. Assume nothing about the session."
},
{
"role": "assistant",
"content": "```supercollider\na = WhiteNoise.ar; // a WhiteNoise\nb = a.squared; // a UnaryOpUGen.\nb.operator; // squared\n\n// soun... |
[
{
"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 Peak.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(\n{\n ... |
[
{
"role": "user",
"content": "What is `EaseInOutAtan` in SuperCollider?"
},
{
"role": "assistant",
"content": "EaseInOutAtan — Atan ease-in/out Easing equation for an atan ease-in/out, accelerating until halfway, then decelerating. The a parameter is curvature. Category: Ease."
}
] |
[
{
"role": "user",
"content": "Write a Pbind whose degrees repeat every Pwalk cycle. (scale majorPentatonic, seq Pwalk, dur 0.2, octave 6, instr sine, root 0)"
},
{
"role": "assistant",
"content": "The pattern is the composition here; `\\strum` spreads the chord:\n\n```supercollider\n(\nSynthDef(... |
[
{
"role": "user",
"content": "What does `Integer.odd` do?"
},
{
"role": "assistant",
"content": "32-bit Integer number Returns: true if not dividable by 2 with no rest"
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `InFeedback`."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\"help-InFeedback\", { |out = 0, in = 0|\n var input, sound;\n input = InFeedback.ar(in, 1);\n sound = SinOsc.ar(input * 1300 + ... |
[
{
"role": "user",
"content": "What is the difference between an audio bus and a control bus?"
},
{
"role": "assistant",
"content": "Both are numbered channels on the server used to move signal between nodes. An audio bus carries audio-rate signal and holds one or more audio channels; a control b... |
[
{
"role": "user",
"content": "What is `PauseSelf` in SuperCollider?"
},
{
"role": "assistant",
"content": "PauseSelf — When triggered, pause enclosing synth. Pause enclosing synth when input signal crosses from non-positive to positive. Category: UGens > Synth control."
}
] |
[
{
"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(Lag.ar(LorenzL.ar(MouseX.kr(1, 200)), 3e-3)*800+900)*0.4 }.play(s;\n```"
},
{
"role": "assistant",
"content": "A closing bracke... |
[
{
"role": "user",
"content": "Write a SuperCollider patch for outer beat. Start by defining the values the patch depends on."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var saw, bpf;\n saw = Saw.ar(\n freq: [1700,2000],\n mul: LFPulse.kr(\n freq: [2,7],\n wi... |
[
{
"role": "user",
"content": "How do I make a kick that starts at 180 Hz and falls to 48 Hz?"
},
{
"role": "assistant",
"content": "Start with a swept sine, then shorten the decay to taste:\n\n```supercollider\n// kick drum: sine oscillator, 0.06 s pitch sweep\n(\nSynthDef(\\kick_synth, { |out =... |
[
{
"role": "user",
"content": "Write a SuperCollider patch that uses `Ball` and actually plays. Assume nothing about the session."
},
{
"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... |
[
{
"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": "Write a minimal SuperCollider example that uses `Harmonics`."
},
{
"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, ramp down for amps\nb.sine2(a.ramp(1.... |
[
{
"role": "user",
"content": "Give me a granular patch with sweep grain position and interp 4. (rate 20, dur 0.04, 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... |
[
{
"role": "user",
"content": "Write a pluck whose tail uses freeverb."
},
{
"role": "assistant",
"content": "A send-style patch: dry signal plus the reverb on the tail:\n\n```supercollider\n// reverb: freeverb on a pluck\n(\nSynthDef(\\reverb_synth, { |out = 0, freq = 330, amp = 0.2|\n var en... |
[
{
"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, SinOsc.ar(0.2, 0).range(0,1), 1-MouseButton.kr(lag:0.001))[0]), 0, 0.1}.play\n```"
},
{
"role": "assistant",
"... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// record a buffer\nb = { Blip.ar(XLine.kr(10000, 4, 3) * [1, 1.2], 20) * 0.1 }.asBuffer(3, fadeTime: 0.1)\nb.plot; // after 3 seconds, you can see it.\n// play the soundfile bac... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `PV_MagFreeze`."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\nb = Buffer.read(s, ExampleFiles.child);\n\n\n(\nSynthDef(\"help-magFreeze\", { |out = 0|\n var in, chain;\n in = SinOsc.ar(LFNoise1.kr... |
[
{
"role": "user",
"content": "How do I build a live drone with Ndef at 220 Hz? (ugens saw, cutoff 400, 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 400 Hz low... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.