conversations listlengths 2 6 |
|---|
[
{
"role": "user",
"content": "Explain this code:\n```supercollider\n{ var sig = SinOsc.ar(440) * 0.2; Out.ar(0, sig) }.play;\n```"
},
{
"role": "assistant",
"content": "The minimal SynthDef idiom: a source multiplied by an amplitude, written to the master bus.\n\n`var sig = SinOsc.ar(440) * 0.2`... |
[
{
"role": "user",
"content": "Explain `Stethoscope` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "Stethoscope — An oscilloscope Stethoscope provides a complete oscilloscope GUI. It displays a window containing a bus-plotting ScopeView and an interface to configure the plotting... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ SinOsc.ar(ControlRate.ir * 0.1 }.play;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis opened earlier is never closed, so ... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Blip`."
},
{
"role": "assistant",
"content": "```supercollider\n// modulate frequency\n{ Blip.ar(XLine.kr(20000, 200, 6), 100, 0.2) }.play;\n\n// modulate numharmonics\n{ Blip.ar(200, Line.kr(1, 100, 20), 0.2) }.play;... |
[
{
"role": "user",
"content": "Give me a Pbind with pluck voices and a 0.4 rhythm."
},
{
"role": "assistant",
"content": "`Pbind` sequences an Event per beat, and `\\degree` + `\\scale` does the pitch:\n\n```supercollider\n(\nSynthDef(\\pluck, { |out = 0, freq = 440, amp = 0.2|\n var env = Env... |
[
{
"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": "Add freeverb to a pluck patch at room 0.85. (verb freeverb, room 0.85, damp 0.2, mix 0.45, source pluck)"
},
{
"role": "assistant",
"content": "`FreeVerb` is in the core library; the room and damp arguments do the work:\n\n```supercollider\n// reverb: freeverb on a ... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\nSynthDef(\"help-ExpRand\", { |out = 0|\n Out.ar(out,\n FSinOsc.ar(\n ExpRand(100.0, 8000.0),\n 0, Line.kr(0.2, 0, 0.01, doneAction: Done.freeSelf))\n )\n}).add;... |
[
{
"role": "user",
"content": "What does `ArgName.new` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "a label for displaying an argument name in debugging interfaces Arguments: name; layout — the parent view, FlowView or window; minWidth — Label will automatically size it... |
[
{
"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 = Dibrown(0, 15, 1, inf);\n trig = Impulse.kr(MouseX.kr(1, 40, 1));\n freq = Demand.kr(trig, 0, a) * 30 + 340;\n SinOsc.ar(freq) * 0.1\n\n}.pla... |
[
{
"role": "user",
"content": "Explain `NL` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "NL — Non Linear Filter Equation Represents the arbitrary non-linear filter difference equation in the time domain: Category: UGens > Filters //SLUGens released under the GNU GPL as extensi... |
[
{
"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": "Add combn to a bell patch at room 0.5."
},
{
"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 = 0.2|\... |
[
{
"role": "user",
"content": "What does `TimeStretch.stretch2PlusChannels` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Stretches a stereo+ audio file into single channel audio files in the same folder as the source file. Will open two instances of sclang in the termin... |
[
{
"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": "What does `Slider.increment` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Increments the value by #-step multiplied by Arguments: factor — Any number.."
}
] |
[
{
"role": "user",
"content": "Show another SuperCollider example using `Array`."
},
{
"role": "assistant",
"content": "```supercollider\n(\nx = {\n SinOsc.ar([0.1, 0.2], 0).poll * 0.1\n}.play;\n);\nx.trace; // By tracing the Synth you can see the two Poll units we created\nx.free\n```"
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\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 ne... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `LeastChange`."
},
{
"role": "assistant",
"content": "```supercollider\n(\nd = { |amp = 1.0|\n var in1, in2;\n in1 = LFNoise0.ar(800, amp);\n in2 = SinOsc.ar(800);\n LeastChange.ar(in1, in2) * 0.1;\n}.play;\n);\n\n... |
[
{
"role": "user",
"content": "Explain `Pfuncn` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "Pfuncn — Function pattern of given length Returns a stream that returns values from the `func`. Category: Streams-Patterns-Events > Patterns > Function."
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// logistic map\n// equation: x1 = -r*x0^2 + r*x0\n(\n{ var r;\n r = MouseX.kr(3.5441, 4); // stable range\n QuadN.ar(SampleRate.ir/4, r.neg, r, 0, 0.1) * 0.4;\n}.play(s);\n``... |
[
{
"role": "user",
"content": "Explain `EaseOutInCubic` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "EaseOutInCubic — Cubic ease-out/in Easing equation for a cubic (t^3) ease-out/in, decelerating until halfway, then accelerating. Category: Ease."
}
] |
[
{
"role": "user",
"content": "What does `POneZero.new` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "UGenPatterns quark library Arguments: pattern; coef; mul; add."
}
] |
[
{
"role": "user",
"content": "What does `MassEditUChain.printOn` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "(describe method Arguments: stream — (describe argument here). Returns: (returnvalue)"
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `List`."
},
{
"role": "assistant",
"content": "```supercollider\n// Create a new empty collections with size 3:\nx = Array.new(3);\ny = Array.new(3);\nz = List.new(3);\n\n// Try to add 7 items to the array and list.\n/... |
[
{
"role": "user",
"content": "What does `Patch.argsForSynth` do?"
},
{
"role": "assistant",
"content": "Pairs an Instr with inputs that that will be passed to the Instr"
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ ClipNoise.ar(0.2 }.play;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis opened earlier is never closed, so the expression... |
[
{
"role": "user",
"content": "Write an Ndef at 220 Hz I can retune while it plays. (ugens saw, cutoff 200, lfo 0.1, 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 200 Hz... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n(\nc=13;a=Array.fib(64,0,1);b=Array.fill(size:c,function:{arg i;a[i]%12});\np=1/(21-c);Pdef(\\x,Pbind(\\dur,p,\\degree,Pseq(b,1,0)));\nr=Array.fill(c,{arg i;Pbindf(Pdef(\\x),\\mtranspose,1-b[i]);});\nPseq(r,(1/p)).play;\... |
[
{
"role": "user",
"content": "Write a Pbind in minorPentatonic using Pshuf for the degrees. (scale minorPentatonic, seq Pshuf, dur 0.25, octave 4, 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``... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `Scale`."
},
{
"role": "assistant",
"content": "```supercollider\n(\nr = {\n var scale = Scale.choose.postln;\n SinOsc.ar(\n (\n DegreeToKey.kr(\n scale.as(LocalBuf),\n MouseX.kr(0, 15), // mouse index... |
[
{
"role": "user",
"content": "Show me a self-contained SuperCollider patch using `InTrig`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\ns = Server.local;\nb = Bus.control(s, 1);\n\nSynthDef(\"help-InTrig\", { |out = 0, busnum = 0|\n var inTrig;\n inT... |
[
{
"role": "user",
"content": "Write a complete SuperCollider patch built around `ReplaceOut` that runs as it is."
},
{
"role": "assistant",
"content": "```supercollider\n(\n// define a control\nSynthDef(\"line\", { arg i_bus=10, i_start=1000, i_end=500, i_time=1;\n ReplaceOut.kr(i_bus, Line.kr(... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n(\n Ndef(\\x, {\n var output;\n var delayTime;\n var delayMax = 0.2;\n var delayAdd = 0.1;\n var pulseFreq = 0.5;\n var proxyMul = 2;\n var pulseMin = 40;\n var pulseMax = 130;\n var numOfEch... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `Stethoscope`."
},
{
"role": "assistant",
"content": "```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... |
[
{
"role": "user",
"content": "Write a kick drum with a 0.25 s decay. (osc saw, sweep 0.06, decay 0.25, f0 150, f1 55, amp 0.8, rev 1)"
},
{
"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// 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 (LFDNoise3.a... |
[
{
"role": "user",
"content": "Write a complete SuperCollider patch built around `NamedControl` that runs as it is."
},
{
"role": "assistant",
"content": "```supercollider\n// compare this:\n(\na = {\n var x, y;\n x = NamedControl.kr(\\freq, 440).lag(3.5);\n y = NamedControl.kr(\\freq, 4... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// randomly modulate params\n(\n{ FBSineL.ar(\n LFNoise2.kr(1, 1e4, 1e4),\n LFNoise2.kr(1, 32, 33),\n LFNoise2.kr(1, 0.5),\n LFNoise2.kr(1, 0.05, 1.05),\n LFNoise2.kr(1, 0.3... |
[
{
"role": "user",
"content": "What does `Sieve.checkSymmetricPeriods` do?"
},
{
"role": "assistant",
"content": "Checks the list of a Sieve for symmetric periods and returns an array [periods, symmetries, completions], where periods is the clumped list of periods, symmetries a corresponding arra... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n(\nSynthDef(\"help-Infreq\", { |bus|\n Out.ar(0, FSinOsc.ar(In.kr(bus), 0, 0.5));\n}).add;\n\nSynthDef(\"help-Outfreq\", { |freq = 400, bus|\n Out.kr(bus, SinOsc.kr(1, 0, freq/40, freq));\n}).add;\n\nb = Bus.control(s, ... |
[
{
"role": "user",
"content": "Write a SuperCollider patch that uses `WhiteNoise` and actually plays. Assume nothing about the session."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var in, chain;\n in = WhiteNoise.ar(0.8);\n chain = FFT(LocalBuf(2048), in); // encode to freq... |
[
{
"role": "user",
"content": "What does `Editor.poll` do?"
},
{
"role": "assistant",
"content": "holds a value that can be edited with a GUI, saves as the value"
}
] |
[
{
"role": "user",
"content": "What does `PS.new` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Creates a new PS Arguments: srcPat — Source pattern, might also be event pattern.; length — Number of output items, may be pattern or stream, defaults to inf.; bufSize — Size ... |
[
{
"role": "user",
"content": "Explain `PSVop_i` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "PSVop_i — Sieve pattern for arbitrary set operations of integer generators with interval output Pattern for arbitrary set operations of integer generators with interval output. For an... |
[
{
"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 minimal SuperCollider example that uses `BufWr`."
},
{
"role": "assistant",
"content": "```supercollider\n(\n// allocate a buffer for writinig into\ns = Server.local;\ns.sendMsg(\"/b_alloc\", 0, 44100 * 2);\n);\n\n\n// write into the buffer with a BufWr\n(\n... |
[
{
"role": "user",
"content": "How do I granulate a sample with 0.07 s grains? (rate 16, dur 0.07, interp 4, 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": "What does `NetAddr.matchLangIP` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Test an IP address to see if it matches any local IP address. See also Arguments: ipstring — A String to test containing an IP number in dot decimal notation (e.g... |
[
{
"role": "user",
"content": "Write an Ndef at 110 Hz I can retune while it plays. (ugens blip, cutoff 1400, lfo 0.3, freq 110, 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 th... |
[
{
"role": "user",
"content": "How do I make a kick that starts at 150 Hz and falls to 48 Hz? (osc saw, sweep 0.06, decay 0.12, f0 150, f1 48, amp 0.6, rev 1)"
},
{
"role": "assistant",
"content": "Start with a swept sine, then shorten the decay to taste:\n\n```supercollider\n// kick drum: saw os... |
[
{
"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": "Write a minimal SuperCollider example that uses `Pulse`."
},
{
"role": "assistant",
"content": "```supercollider\n// modulate frequency\n{ Pulse.ar(XLine.kr(40, 4000, 6), 0.1, 0.2) }.play;\n\n// modulate pulse width\n{ Pulse.ar(200, SinOsc.kr(0.2).range(0.01, 0.99),... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `NRand`."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\"help-NRand\", { |out = 0, n = 0|\n Out.ar(out,\n FSinOsc.ar(\n NRand(1200.0, 4000.0, n),\n 0, Line.kr(0.2, 0, 0.01, doneActi... |
[
{
"role": "user",
"content": "Show me a self-contained SuperCollider patch using `IdentityDictionary`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\\help_sinegrain, { |out = 0, freq = 440, sustain = 0.05|\n var env;\n env = EnvGen.kr(Env... |
[
{
"role": "user",
"content": "What is `ScalarSpec` in SuperCollider?"
},
{
"role": "assistant",
"content": "ScalarSpec — datatype specifiying a \\scalar \"rate\" input or output Category: Spec, Libraries > crucial > Spec."
}
] |
[
{
"role": "user",
"content": "Show me a self-contained SuperCollider patch using `Pulse`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\nSynthDef(\\harpsi, { |outbus = 0, freq = 440, amp = 0.1, gate = 1|\n var out;\n out = EnvGen.ar(Env.adsr, gate, don... |
[
{
"role": "user",
"content": "What does `FoaXformerMatrix.newPushY` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Apply push along the Arguments: angle — The distortion angle, in radians. -pi/2 to pi/2."
}
] |
[
{
"role": "user",
"content": "Explain this code:\n```supercollider\n{ var sig = SinOsc.ar(440) * 0.2; Out.ar(0, sig) }.play;\n```"
},
{
"role": "assistant",
"content": "The minimal SynthDef idiom: a source multiplied by an amplitude, written to the master bus.\n\n`var sig = SinOsc.ar(440) * 0.2`... |
[
{
"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": "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": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// modulate fundamental frequency, formant freq stays constant\n{ Formant.ar(XLine.kr(400, 1000, 8), 2000, 800, 0.125) }.play\n\n// modulate formant frequency, fundamental freq s... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// Ndef\nNdef(\\a, { Saw.ar(12) }).asCode;\n\n// in a pushed proxy space\np = ProxySpace.push(s.boot);\n~x = { Saw.ar(123, 0.1 };\n~x.play;\n~x.asCode;\n\np.end.pop;\n\n// anonym... |
[
{
"role": "user",
"content": "Write a Pbind whose degrees repeat every Pseq cycle. (scale minorPentatonic, seq Pseq, dur 0.3, octave 5, instr pluck, 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 `InTrig`."
},
{
"role": "assistant",
"content": "```supercollider\ns = Server.local;\nb = Bus.control(s, 1);\n\nSynthDef(\"help-InTrig\", { |out = 0, busnum = 0|\n var inTrig;\n inTrig = InTrig.kr(busnum);\n Out.ar(... |
[
{
"role": "user",
"content": "Explain `PSrecur` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "PSrecur — Pattern to generate new values with a recursive Function Category: Libraries > miSCellaneous > PSx stream patterns, Streams-Patterns-Events > PSx stream patterns."
}
] |
[
{
"role": "user",
"content": "Show me a self-contained SuperCollider patch using `PV_BrickWall`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\n\n(\n{\n var in, chain;\n in = WhiteNoise.ar(0.2);\n chain = FFT(LocalBuf(2048), in);\n chain = P... |
[
{
"role": "user",
"content": "What is `ParGroup`?"
},
{
"role": "assistant",
"content": "ParGroup — Client-side representation of a parallel group node on the server"
},
{
"role": "user",
"content": "What does `ParGroup.basicNew` do?"
},
{
"role": "assistant",
"content": ... |
[
{
"role": "user",
"content": "How do I granulate a sample with 0.07 s grains?"
},
{
"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 {\n var buf = Buffer.read(s, Pl... |
[
{
"role": "user",
"content": "What does `FlowLayout.nextLine` do?"
},
{
"role": "assistant",
"content": "Forces the decorator to start a new line:"
}
] |
[
{
"role": "user",
"content": "How do I granulate a sample with 0.07 s grains? (rate 20, dur 0.07, interp 4, mode sweep, rev 1)"
},
{
"role": "assistant",
"content": "A working granular patch, with the buffer loaded before the synth starts:\n\n```supercollider\n// granular synth with GrainBuf\n(\... |
[
{
"role": "user",
"content": "Explain this SuperCollider code.\n```supercollider\n// if \\degree, \\note or \\midinote are occuring after \\dur,\n// a frequency value will be calculated according to Event's usual conversion framework\n// and used for setting the arg 'freq'.\n\n(\np = PmonoPar([\n [\n \\... |
[
{
"role": "user",
"content": "What is `Hilbert` in SuperCollider?"
},
{
"role": "assistant",
"content": "Hilbert — Applies the Hilbert transform to an input signal. Returns two channels with the original signal and a copy of that signal that has been shifted in phase by 90 degrees (0.5 pi radian... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `HilbertFIR`."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\ns.scope;\na = { HilbertFIR.ar(SinOsc.ar(100) * -20.dbamp, LocalBuf(2048)) }.play;\na.release;\n```"
}
] |
[
{
"role": "user",
"content": "How do I granulate a sample with 0.2 s grains? (rate 16, dur 0.2, interp 2, 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(\n... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n{Mix({|i|var j=Impulse,t=TChoose.kr(j.kr(1/8),[1,6,3]/8),r=Ringz.ar(j.ar(i*t+0.25),600*t*i+[0,9]);CombC.ar(r,1,0.5,4,0.1,r)}!4).tanh/4}.play\n```"
},
{
"role": "assistant",
"content": "Hi colliders, this is m... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\nx = SynthDef(\\test, {\n Out.ar(0, \n Formants.ar(420, Vowel(\\a).addControls(3)) * 0.01\n )\n}).play\n);\n\nx.inspect\n\nx.setn(*Vowel(\\i).asKeyValuePairs(3);\n```"
}... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `PeakFollower`."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\n\n// no decay\n(\n{\n SinOsc.ar(\n PeakFollower.ar(Dust.ar(20, Line.kr(0, 1, 4)), 1.0) * 1500 + 200,\n 0, 0.2\n )\n\n}.play;... |
[
{
"role": "user",
"content": "What does `PSVunion_i.new` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Creates a new PSVunion_i Arguments: genList — An array of generators. Allowed generators: Integers, Streams or Patterns producing intervals or Sieves itself. Integers ... |
[
{
"role": "user",
"content": "What is `RedWorld1` in SuperCollider?"
},
{
"role": "assistant",
"content": "RedWorld1 — world without walls (non wrapping) See also RedWorld, RedWorld2, RedWorld3. Category: Red > redUniverse."
}
] |
[
{
"role": "user",
"content": "How do I make a kick that starts at 150 Hz and falls to 55 Hz? (osc sine, sweep 0.06, decay 0.12, f0 150, f1 55, 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// ki... |
[
{
"role": "user",
"content": "Write a kick at amp 0.6 with no click. (osc saw, sweep 0.06, decay 0.18, f0 180, 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: saw oscillator, ... |
[
{
"role": "user",
"content": "Explain `PopUpMenu` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "PopUpMenu — A view displaying a text item selectable from a drop-down menu. When clicked, this view opens a menu containing several text items, then closes the menu and displays one... |
[
{
"role": "user",
"content": "What is `PDelay1` in SuperCollider?"
},
{
"role": "assistant",
"content": "PDelay1 — UGenPatterns quark library Based on Delay1 Category: Streams-Patterns-Events > UGenPatterns > Modifiers."
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// randomly modulate params\n(\n{ LinCongN.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)\n) * 0.2 }.play(s);\... |
[
{
"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 = PLlprand(\\lo, \\hi);\n\n\n// prepare current Environment\n// PLseq repeats a... |
[
{
"role": "user",
"content": "Write a Pbind in majorPentatonic using Pshuf for the degrees."
},
{
"role": "assistant",
"content": "The pattern is the composition here; `\\strum` spreads the chord:\n\n```supercollider\n(\nSynthDef(\\fm_voice, { |out = 0, freq = 440, amp = 0.2|\n var env = EnvG... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ LFNoise1.ar(1000, 0.25) }.play;\n\n// modulate frequency\n\n{ LFNoise1.ar(XLine.kr(1000, 10000, 10), 0.25) }.play;\n\n// as frequency modulator\n(\n{ SinOsc.ar(\n LFNoise1.a... |
[
{
"role": "user",
"content": "Write a self-contained SuperCollider patch that uses `Ringz`. Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\nx = { arg freq=1000; Ringz.ar(Crackle.ar(1.95, 0.1), freq, 0.05) }.play(s);\nx.set(\\freq, 1500);\nx.free;\n```"
}
] |
[
{
"role": "user",
"content": "What is `PLser` in SuperCollider?"
},
{
"role": "assistant",
"content": "PLser — dynamic scope Pser variant Takes Symbol args for later reference by the Streams, which will read from variables in the Environments of their instantiation. See PLx_suite. Category: Libr... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `T2A`."
},
{
"role": "assistant",
"content": "```supercollider\n// example\n(\n{\n var trig = Impulse.kr(MouseX.kr(1, 100, 1));\n Ringz.ar(T2A.ar(trig), 800, 0.01) * 0.4\n}.play;\n);\n\n// compare with K2A\n(\n{\n v... |
[
{
"role": "user",
"content": "What is a bus, in one sentence?"
},
{
"role": "assistant",
"content": "A numbered channel on the server that nodes write signal into and read signal out of, which is how sounds are chained without cables."
},
{
"role": "user",
"content": "Show me using o... |
[
{
"role": "user",
"content": "Write a Pbind in majorPentatonic using Prand for the degrees. (scale majorPentatonic, seq Prand, dur 0.25, octave 4, instr sine, root 0)"
},
{
"role": "assistant",
"content": "`Pbind` sequences an Event per beat, and `\\degree` + `\\scale` does the pitch:\n\n```supe... |
[
{
"role": "user",
"content": "Write a self-contained SuperCollider patch that uses `ControlName`. Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\n(\nd = SynthDef(\\tone, { |out = 0, freq = 200|\n var sig;\n\n freq.spec = ControlSpec(20, 20000);\n sig = Sin... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\n// time warped analog bubbles, time scale is mouse x position\n{\n\n Bend.time(MouseX.kr(0.02, 20, 1), {\n var f = LFSaw.kr(0.4, 0, 24, LFSaw.kr([8,7.23], 0, 3, 80)).midic... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Dust`."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\"help-Dust\", { |out = 0|\n Out.ar(out,\n Dust.ar(200, 0.5)\n )\n}).play;\n);\n\n(\nSynthDef(\"help-Dust\", { |out = 0|\n Out.ar(out,\... |
[
{
"role": "user",
"content": "How do I make an additive bell with Klank?"
},
{
"role": "assistant",
"content": "Klank is a bank of resonant filters excited by a short impulse: you describe the partials as\nfrequencies, amplitudes and decay times.\n\n```supercollider\n(\nSynthDef(\\klank, { |out ... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n{Mix({|i|var j=Impulse,t=TChoose.kr(j.kr(1/8),[1,6,3]/8),r=Ringz.ar(j.ar(i*t+0.25),600*t*i+[0,9]);CombC.ar(r,1,0.5,4,0.1,r)}!4).tanh/4}.play\n```"
},
{
"role": "assistant",
"content": "Hi colliders, this is m... |
[
{
"role": "user",
"content": "What does `OpenObject.lookup` do?"
},
{
"role": "assistant",
"content": "The default is false, but if set to true, any objects or classes that implement the message \" at \" can be accessed remotely. As name, use the scheme: name_key, e.g. Tdef_x for"
}
] |
[
{
"role": "user",
"content": "What does `Squiz.kr` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "same as Arguments: in; pitchratio; zcperchunk; memlen; mul; add."
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.