conversations
listlengths
2
6
[ { "role": "user", "content": "Give me a Pbind with sine voices and a 0.4 rhythm." }, { "role": "assistant", "content": "The pattern is the composition here; `\\strum` spreads the chord:\n\n```supercollider\n(\nSynthDef(\\sine_pad, { |out = 0, freq = 440, amp = 0.2|\n var env = EnvGen.kr(Env.p...
[ { "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).exprange(440, 6600), 0, 0.5 * 0.1 }.play;\n```" }, { "role": "assistant", "content": "A closing bracket is missing: the parenthesis opened ...
[ { "role": "user", "content": "What is `EaseOutExpo` in SuperCollider?" }, { "role": "assistant", "content": "EaseOutExpo — Exponential ease-out Easing equation for an exponential (2^t) ease-out, decelerating from zero velocity. Category: Ease." } ]
[ { "role": "user", "content": "Write a minimal SuperCollider example that uses `DecodeB2`." }, { "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 /...
[ { "role": "user", "content": "What does `HilbertPDN.arSSB` do? What arguments does it take?" }, { "role": "assistant", "content": "Single-Sideband Modulate footAka, frequency-shifting. (SSB) the Arguments: in — The input signal.; freq — Frequency to shift by. May be positive or negative.; mul — ...
[ { "role": "user", "content": "What does `GUI.setSkin` do? What arguments does it take?" }, { "role": "assistant", "content": "Factory abstraction for all GUI related core classes Arguments: skinName." } ]
[ { "role": "user", "content": "How do I make a kick that starts at 150 Hz and falls to 48 Hz?" }, { "role": "assistant", "content": "A kick is a sine with a fast pitch drop and a short amplitude envelope:\n\n```supercollider\n// kick drum: saw oscillator, 0.06 s pitch sweep\n(\nSynthDef(\\kick_sy...
[ { "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": "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 = Dbrown2(0, 15, 1, [1, 4], inf);\n trig = Dust.kr(MouseX.kr(1, 40, 1));\n freq = Demand.kr(trig, 0, a) * 30 + 340;\n SinOsc.ar(freq) * 0.1\n\n...
[ { "role": "user", "content": "What does `ArrayedCollection.maxSize` do?" }, { "role": "assistant", "content": "Return the maximum number of elements the ArrayedCollection can hold. For example, Arrays may initialise themselves with a larger capacity than the number of elements added. `[4, 5, 6]....
[ { "role": "user", "content": "What does this SuperCollider patch do?\n```supercollider\na = Synth(\\MoaningDialogue)\n\n//COOL TWEAKS\n//AngryTweak\na.set(\\feedback, 29,\\freq, 6)\n//CalmTweak\na.set(\\feedback, 60, \\freq, 0.8)\n//WeirdTweak\na.set(\\feedback, 2.8, \\freq, 2)\n\n(\nSynthDef(\\MoaningDialo...
[ { "role": "user", "content": "Write a minimal SuperCollider example that uses `LFDNoise0`." }, { "role": "assistant", "content": "```supercollider\n// try wiggling mouse quickly;\n// LFNoise frequently seems stuck, LFDNoise changes smoothly.\n\n{ LFNoise0.ar(MouseX.kr(0.1, 1000, 1), 0.1) }.play\...
[ { "role": "user", "content": "Explain this SuperCollider patch.\n```supercollider\n// Evaluate this to start your project\n// The Cactus instnce is stored in c by convention\n\nc = CactusGUI(Document.current.dir).cactus; // with GUI\nc = Cactus(Document.current.dir); // without GUI\n\n/*\n\nAny folder with ...
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n//try passing a signal through the hair cell\nx = { Meddis.ar(SinOsc.ar(440)) }.play;\nx.free;\n\n//recursive hair cell compression\n{ Meddis.ar(Meddis.ar(SoundIn.ar) }.play;\n``...
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\ns.quit;\nf = { Group.new(s.defaultGroup); \"Other code can be evaluated too\".postln };\nServerTree.add(f);\ns.boot;\ns.queryAllNodes; // note the group within the default group\...
[ { "role": "user", "content": "How does multi-channel expansion work?" }, { "role": "assistant", "content": "If any argument of a UGen is an Array, the UGen is built once per element and the results are returned as an Array. So `SinOsc.ar([220, 330, 440])` is three oscillators, and `SinOsc.ar(220...
[ { "role": "user", "content": "Write an Ndef with a tri source and a 2400 Hz low-pass. (ugens tri, cutoff 2400, lfo 0.8, freq 55, amp 0.12)" }, { "role": "assistant", "content": "`Ndef` holds the synth and the environment, so you can edit it live:\n\n```supercollider\n// Ndef drone: tri source th...
[ { "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": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\ns.boot;\n(\nx = {\nvar son = SinOsc.ar(mul: SinOsc.ar(0.3).range(0,1) * Line.ar(0, 1, 20, doneAction: 2));\nTextVU.ar(2, son, \"Sin\");\n}.play;\n```" }, { "role": "assis...
[ { "role": "user", "content": "What is `FoaZoomX` in SuperCollider?" }, { "role": "assistant", "content": "FoaZoomX — First Order Ambisonic (FOA) zoom transformer Apply zoom to a First Order Ambisonic signal (B-format) along the x-axis. Category: Libraries > Ambisonic Toolkit > UGens > FOA > Tran...
[ { "role": "user", "content": "What is `EventPatternProxy` in SuperCollider?" }, { "role": "assistant", "content": "EventPatternProxy — event stream reference Keeps a reference to a stream that can be replaced while in use. Category: JITLib > Patterns, Live Coding." } ]
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\n{ SinOsc.ar(\n SinOsc.ar(\n XLine.kr(1, 100, 5)).exprange(*XLine.kr([20, 800], [7000, 200], 10)\n )\n ) * 0.1\n\n}.play;\ns.record(duration: 10);\n```" }, { "...
[ { "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{ LinCongL.ar(MouseX.kr(20, SampleRate.ir)) * 0.2 }.play(s;\n```" }, { "role": "assistant", "content": "A closing bracket is missing: the p...
[ { "role": "user", "content": "Write a minimal SuperCollider example that uses `StandardN`." }, { "role": "assistant", "content": "```supercollider\n// vary frequency\n{ StandardN.ar(MouseX.kr(20, SampleRate.ir)) * 0.3 }.play(s);\n```" } ]
[ { "role": "user", "content": "Write a minimal SuperCollider example that uses `ReplaceOut`." }, { "role": "assistant", "content": "```supercollider\n(\nSynthDef(\"ReplaceOutHelp\", { |out = 0, freq = 440|\n var source;\n source = SinOsc.ar(freq, 0, 0.1);\n\n // write to the bus, replacing...
[ { "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": "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": "What does `InstrBrowser.inputSpec` do?" }, { "role": "assistant", "content": "Browse your instrument library, with customizable actions" } ]
[ { "role": "user", "content": "What does `LFGauss.ar` do? What arguments does it take?" }, { "role": "assistant", "content": "Gaussian function oscillator Arguments: duration — Duration of one cycle, in seconds. (Hint: duration `= 1/frequency`). Default: `1`; width — The width of the bell curve (...
[ { "role": "user", "content": "What does `JITGui.winName` do?" }, { "role": "assistant", "content": "a method for generating a name for the JITGui's" } ]
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\nSynthDef(\"help-GaussTrig\", { arg out=0;\n Out.ar(out,\n Ringz.ar(\n WhiteNoise.ar(\n Decay.kr(\n GaussTrig.kr(10.dup, MouseX.kr(0, 0.9), 0.5),\n ...
[ { "role": "user", "content": "What does `SimpleNumber.gauss` do? What arguments does it take?" }, { "role": "assistant", "content": "Returns a Float sampled from a Gaussian distribution with mean `this` and standard deviation `standardDeviation`. The range of the gaussian distribution is unbound...
[ { "role": "user", "content": "Explain `MultiSplineFr` in SuperCollider briefly." }, { "role": "assistant", "content": "MultiSplineFr — Multi dimensional spline frame rate device Mx supports Frame Rate Devices which are called at frame rate (24/beat by default). This object translates a multi dim...
[ { "role": "user", "content": "What does this SuperCollider code do?\n```supercollider\ns.boot;\n\nb = Buffer.alloc(s, 100);\nb.zero;\nb.set(33, 1.034);\n// This should detect the 33rd value as the highest...\nx = {BufMax.kr(b).poll}.play;\n\n// ...until we set a new winner...\nb.set(74, 1.038);\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": "Write a self-contained SuperCollider patch for Nuclear Fallout (a SuperCollider snippet). Define every value it uses." }, { "role": "assistant", "content": "```supercollider\n(\n{\n var saw, bpf;\n saw = Saw.ar(\n freq: [60,150],\n mul: LFPulse.kr(\n fr...
[ { "role": "user", "content": "Write a kick drum with a 0.5 s decay. (osc saw, sweep 0.06, decay 0.5, f0 150, f1 55, 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: saw oscillator, 0....
[ { "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": "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": "What does this SuperCollider patch do?\n```supercollider\n(\n{\n var time = 0.23;\n var freq = (55).midicps;\n var a = VarSaw.ar(freq/2, width: XLine.ar(0.5,1,time)).range(0,XLine.ar(0.666,1/666,time));\n var tone = SinOsc.ar(freq).fold(-0.23*a,a) * EnvGen.ar(Env([1,0],[tim...
[ { "role": "user", "content": "Write a complete SuperCollider patch built around `Pwrap` 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(\ns.boot;\n\nInstr(\"saw\",{ arg freq=400; Saw.ar(freq) * EnvGen.kr(Env.perc,doneAction:2)});\n\np = Patch(\"saw\",[KrNumberEditor(300,\\freq)]);\n\nSheet({ arg f;\n p.gui(f);\...
[ { "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, { Pan2.ar(Blip.ar(Ndef.kr(\\maus, 1) * 70), SinOsc.kr(Ndef.ar(\\maus, 1) * 5)) }.play;\n```" }, { "role": "assistant", "con...
[ { "role": "user", "content": "Write a minimal SuperCollider example that uses `Ddup`." }, { "role": "assistant", "content": "```supercollider\n(\n{\n var freq, trig;\n var in = Dseq([1, 2, 3], inf);\n var rep = Ddup(Diwhite(2, 8, inf), in);\n trig = Impulse.kr(MouseX.kr(1, 40, 1));\n freq =...
[ { "role": "user", "content": "Write a minimal SuperCollider example that uses `PinkNoise`." }, { "role": "assistant", "content": "```supercollider\n(\nSynthDef(\"help-PinkNoise\", { |out = 0|\n Out.ar(out,\n PinkNoise.ar(0.4)\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(\n {\n var a, n = 5, m = 64;\n a = {\n var x;\n x = { 0.2.rand2 } ! m;\n x = x ++ ({ Drand({ 0.2.rand2 } ! n) } ! m.rand);\n Dseq(x.scramble, inf)\n ...
[ { "role": "user", "content": "What does this SuperCollider code do?\n```supercollider\n{ BlitB3Square.ar(XLine.kr(1000, 20, 10)) }.play;\n\n{ BlitB3Square.ar(MouseX.kr(20,1000,'exponential'),MouseY.kr(0.001,0.999)) }.play;\n\n//comparison\n//blit version is cheaper, but aliases once pushed over 4000 or so a...
[ { "role": "user", "content": "Write an Ndef at 55 Hz I can retune while it plays. (ugens tri, cutoff 1400, lfo 0.3, freq 55, 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 1400 Hz...
[ { "role": "user", "content": "Write a minimal SuperCollider example that uses `HPZ1`." }, { "role": "assistant", "content": "```supercollider\n// Compare:\n\n{ WhiteNoise.ar(0.25) }.play;\n\n{ HPZ1.ar(WhiteNoise.ar(0.25)) }.play;\n\n// HPZ1 is useful to detect changes in a signal:\n// see also H...
[ { "role": "user", "content": "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": "How do I make a kick that starts at 180 Hz and falls to 55 Hz? (osc saw, sweep 0.06, decay 0.5, f0 180, f1 55, 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...
[ { "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{ LatoocarfianN.ar(MouseX.kr(20, SampleRate.ir)) * 0.2 }.play(s;\n```" }, { "role": "assistant", "content": "A closing bracket is missing: ...
[ { "role": "user", "content": "Write a self-contained SuperCollider patch for simple smooth arp. Define every value it uses." }, { "role": "assistant", "content": "```supercollider\n(\ns.boot;\n);\n\n(\nSynthDef(\\smooth, { |freq = 440, sustain = 1, amp = 0.5|\n var sig;\n sig = SinOsc.ar(f...
[ { "role": "user", "content": "My pattern keeps playing after I press Ctrl+." }, { "role": "assistant", "content": "Ctrl+. (CmdPeriod) stops everything scheduled on the clocks, including Patterns. If yours survives, it is not scheduled on a clock — most often it is a `Synth` created directly, or ...
[ { "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": "What is `PackFFT` in SuperCollider?" }, { "role": "assistant", "content": "PackFFT — Pack separate demand-rate FFT bin streams into an FFT chain buffer Takes an array of magnitudes and phases, and packs them into an FFT buffer ready for transforming back into time-d...
[ { "role": "user", "content": "What is the difference between .ar, .kr and .ir?" }, { "role": "assistant", "content": "The rate method decides how often a UGen is evaluated. `.ar` runs at the audio rate, once per sample, and produces an audio signal. `.kr` runs at the control rate, once per block...
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// increase phase multiplier\n{ FBSineC.ar(SampleRate.ir, 1, 0, XLine.kr(1, 2, 10), 0.1) * 0.2 }.play(s;\n```" }, { "role": "assistant", "content": "A closing bracket...
[ { "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": "Explain `DelayL` in SuperCollider briefly." }, { "role": "assistant", "content": "DelayL — Simple delay line with linear interpolation. Simple delay line with linear interpolation. See also Category: UGens > Delays." } ]
[ { "role": "user", "content": "What does `Mx.prRemoveChannel` do? What arguments does it take?" }, { "role": "assistant", "content": "A mixer and dynamic patching Arguments: index." } ]
[ { "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": "What does `List.clear` do?" }, { "role": "assistant", "content": "Replace the List's Array with a new empty" } ]
[ { "role": "user", "content": "What does `LFNoise1.ar` do? What arguments does it take?" }, { "role": "assistant", "content": "Ramp noise Arguments: freq — Approximate rate at which to generate random values.; mul — Output will be multiplied by this value.; add — This value will be added to the o...
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// turn on and off a sine oscillator\n\n(\nSynthDef(\"help-DigitalIn\", { |out = 0|\n Out.ar(out,\n SinOsc.ar(500, 0, 0.1 * DigitalIn.ar(0))\n )\n}).play;\n```" }, { ...
[ { "role": "user", "content": "Explain `MxChannel` in SuperCollider briefly." }, { "role": "assistant", "content": "MxChannel — a group of MxUnits A channel strip which holds multiple MxUnits; groups and mixes them together. Category: Mx." } ]
[ { "role": "user", "content": "How do I granulate a sample with 0.07 s grains? (rate 10, dur 0.07, interp 2, mode noise, 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": "Explain `FoaZoomZ` in SuperCollider briefly." }, { "role": "assistant", "content": "FoaZoomZ — First Order Ambisonic (FOA) zoom transformer Apply zoom to a First Order Ambisonic signal (B-format) along the z-axis. Category: Libraries > Ambisonic Toolkit > UGens > FO...
[ { "role": "user", "content": "Explain `ArrayMax` in SuperCollider briefly." }, { "role": "assistant", "content": "ArrayMax — detect the largest value (and its position) in an array of UGens Finds the maximum value in an Array of UGens, and outputs the value and the index. Category: UGens > Multi...
[ { "role": "user", "content": "Give me a complete SuperCollider patch for Nested ifs in a SynthDef: bind everything it needs before it is used." }, { "role": "assistant", "content": "```supercollider\n(\n{\nvar noise, out;\nnoise = LFNoise0.kr(8);\n\nout = if( noise > 0.0,\n if(noise > 0.5, \n ...
[ { "role": "user", "content": "What does `AudioInPlayer.storeArgs` do?" }, { "role": "assistant", "content": "plays the computers audio in — microphone or record busses" } ]
[ { "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": "Show me a self-contained SuperCollider patch using `Ddup`: bind everything it needs first." }, { "role": "assistant", "content": "```supercollider\n(\n{\n var freq, trig;\n var in = Dseq([1, 2, 3], inf);\n var rep = Ddup(Diwhite(2, 8, inf), in);\n trig = Impulse...
[ { "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": "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": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// the following two lines produce equivalent results\n{ SinOsc.ar(440, 0, 0.3) }.play(fadeTime: 0.0);\nSynthDef(\\help_FuncPlay, { Out.ar(0, SinOsc.ar(440, 0, 0.3)) }.play;\n```...
[ { "role": "user", "content": "What is `ArrayedCollection`?" }, { "role": "assistant", "content": "ArrayedCollection — Abstract superclass of Collections of fixed maximum size" }, { "role": "user", "content": "What does `ArrayedCollection.newClear` do?" }, { "role": "assistant...
[ { "role": "user", "content": "What does `Fb1_HopfAFDC.kr` do? What arguments does it take?" }, { "role": "assistant", "content": "Creates a new Fb1_HopfAFDC kr Arguments: f — Defaults to 0.; mu — Defaults to 1.; eta — Defaults to 1.; tau — Defaults to 1.; kappa — Defaults to 1.; tMul — Time mult...
[ { "role": "user", "content": "Write a granular texture, dry. (rate 28, dur 0.2, 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": "What does `EaseNone.value` do? What arguments does it take?" }, { "role": "assistant", "content": "no easing Arguments: t — a Float between 0.0 and 1.0.." } ]
[ { "role": "user", "content": "Show another SuperCollider example using `QuadL`." }, { "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 QuadL.ar(SampleRate.ir/4, r.neg, r, 0, 0.1) * 0...
[ { "role": "user", "content": "What does this SuperCollider patch do?\n```supercollider\n// connect will connect to all midi in devices\n// if you need to specify one,\n// check the sources at: MIDIClient.sources\n// and connect using MIDIIn.connect( source_index )\nMIDIIn.connect;\n\n// show incoming contr...
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ TwoPole.ar(WhiteNoise.ar(0.005), 2000, 0.95) }.play\n\n{ TwoPole.ar(WhiteNoise.ar(0.005), XLine.kr(800, 8000, 8), 0.95) }.play\n\n{ TwoPole.ar(WhiteNoise.ar(0.005), MouseX.kr(8...
[ { "role": "user", "content": "Explain `Warp1` in SuperCollider briefly." }, { "role": "assistant", "content": "Warp1 — Warp a buffer with a time pointer Inspired by Chad Kirby's SuperCollider2 Warp1 class, which was inspired by Richard Karpen's sndwarp for CSound. A granular time stretcher and p...
[ { "role": "user", "content": "How do I put a bell in a reverb at mix 0.3? (verb gverb, room 0.5, damp 0.5, mix 0.3, source bell)" }, { "role": "assistant", "content": "Put the reverb inside the `SynthDef` so it is part of the voice:\n\n```supercollider\n// reverb: gverb on a bell\n(\nSynthDef(\\...
[ { "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": "Explain this SuperCollider code.\n```supercollider\n// no, it doesn't take a ugen in ...\n(\n{\n EnvGen.kr(\n Env.asr(0.1, 1.0, 0.5, \\welch),\n 1.0,\n FSinOsc.ar(1.0).range(0.0, 1.0),\n timeScale: 0.1\n ) * SinOsc.ar(440, 0, 0.3)\n}.play;\n);\...
[ { "role": "user", "content": "What is `PpolyPar` in SuperCollider?" }, { "role": "assistant", "content": "PpolyPar — polyphonic event pattern for an arbitrary number of timed setting streams This is similar to PmonoPar and allows an arbitrary number of monophonic streams as well as an arbitrary ...
[ { "role": "user", "content": "Explain `RedDirection` in SuperCollider briefly." }, { "role": "assistant", "content": "RedDirection — detects inc/dec of a signal Outputs 1 if previous sample was less than current, outputs -1 if previous sample was more than current, else outputs 0 - i.e. when no ...
[ { "role": "user", "content": "Show another SuperCollider example using `Control`." }, { "role": "assistant", "content": "```supercollider\na = { SinOsc.ar(\\freq.kr(440, 1.2)) }.play;\na.set(\\freq, 330);\na.release;\na = { SinOsc.ar(\\freq.kr([440, 460], 1.2)) }.play;\na.setn(\\freq, [330, 367]...
[ { "role": "user", "content": "What does `RedLZ77.length` do?" }, { "role": "assistant", "content": "Maximum length for matching pattern. The default is" } ]
[ { "role": "user", "content": "How do I get a Euclidean-style rhythm in SuperCollider?" }, { "role": "assistant", "content": "Describe the pattern as a list of hits and rests; `Rest` gives the gap without starting a Synth.\n\n```supercollider\n(\nPbind(\n \\instrument, \\hat,\n \\dur, 0.125...
[ { "role": "user", "content": "What does `Qitch.kr` do? What arguments does it take?" }, { "role": "assistant", "content": "constant Q transform pitch follower Arguments: in — the audio rate input signal; databufnum — you must provide the initialisation data required by Qitch. This in the form of...
[ { "role": "user", "content": "Write a SuperCollider patch for batuhan's buzzer parametrized that runs as it is, with nothing assumed about the session." }, { "role": "assistant", "content": "```supercollider\n// A beautiful sc140 tweet by Batuhan Bozkurt, parametrized for real-time changes\n(\n/...
[ { "role": "user", "content": "What does `LPCAnalyzer.ar` do? What arguments does it take?" }, { "role": "assistant", "content": "Live Linear Predictive Coding Analysis and Resynthesis Arguments: input — Original signal to analyse with the LPC model; source — Excitation to run through LPC derived...
[ { "role": "user", "content": "What does `SerialPort.listDevices` do?" }, { "role": "assistant", "content": "Prints the list of available devices, one per line. Shorthand for `SerialPort.devices.do(_.postln)`." } ]
[ { "role": "user", "content": "What does `MxQuery.copyBy` do? What arguments does it take?" }, { "role": "assistant", "content": "Copies rather than moves. See Arguments: vector." } ]
[ { "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": "Give me a Pbind with pluck voices and a 0.3 rhythm. (scale minorPentatonic, seq Pwalk, dur 0.3, 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 an Ndef with a blip source and a 1400 Hz low-pass. (ugens blip, cutoff 1400, 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: blip source through a...