conversations listlengths 2 6 |
|---|
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```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\nd.set(\\amp, 0.1);\nd.set(\\amp,... |
[
{
"role": "user",
"content": "What does `Scheduler.sched` do?"
},
{
"role": "assistant",
"content": "Schedule the task at `delta` seconds relative to the current time, as defined by the `drift` argument of the #*new#constructor. Regardless of what time a task is scheduled, it will only be awaken... |
[
{
"role": "user",
"content": "Explain this SuperCollider patch.\n```supercollider\n// UnitTestScript(\"Collapse\", thisProcess.nowExecutingPath).runScript;\n\n{\n |test|\n var collapseValues = List();\n var collapse;\n\n collapse = Collapse({ |v| collapseValues.add(v) }, 0.1);\n\n collapseValues.clear;... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// RMS Power\n(\n{\n var input, numsamp;\n\n input = LFSaw.ar;\n numsamp = 30;\n\n (RunningSum.ar(input.squared, numsamp) / numsamp).sqrt\n}.play\n```"
},
{
"... |
[
{
"role": "user",
"content": "Write a GrainBuf synth at 28 grains per second. (rate 28, dur 0.04, interp 4, mode noise, 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": "Give me a granular patch with noise1 grain position and interp 2."
},
{
"role": "assistant",
"content": "Granulation is `GrainBuf` plus a trigger rate; the position can move:\n\n```supercollider\n// granular synth with GrainBuf\n(\ns.waitForBoot {\n var buf = Buf... |
[
{
"role": "user",
"content": "How do I build a live drone with Ndef at 220 Hz? (ugens saw, cutoff 800, lfo 0.1, freq 220, amp 0.12)"
},
{
"role": "assistant",
"content": "`Ndef` is a named proxy you can redefine while it is playing:\n\n```supercollider\n// Ndef drone: saw source through a 800 Hz... |
[
{
"role": "user",
"content": "How do I play a random majorPentatonic scale at octave 4? (scale majorPentatonic, seq Prand, dur 0.4, octave 4, instr sine, root 0)"
},
{
"role": "assistant",
"content": "The pattern is the composition here; `\\strum` spreads the chord:\n\n```supercollider\n(\nSynth... |
[
{
"role": "user",
"content": "Write a self-contained SuperCollider patch that uses `DecodeB2`. Define every value it uses."
},
{
"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(... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n(\n\n ~needed_interval = 20;\n\n ~funk = {\n\n // if last time isn't defined, create it with 1000 seconds ago time\n if( ~last_time.isNil ) {\n ~last_time = Date.getDate.bootSeconds;\n ~last_time = ~last_time -... |
[
{
"role": "user",
"content": "What is `Resonz` in SuperCollider?"
},
{
"role": "assistant",
"content": "Resonz — Resonant filter. This is the same as Ringz, except that it has a constant gain at 0 dB instead of being constant skirt. Category: UGens > Filters > Linear."
}
] |
[
{
"role": "user",
"content": "In what order should I learn SuperCollider?"
},
{
"role": "assistant",
"content": "The order that pays off fastest:\n\n1. **One UGen and Out** — `{ SinOsc.ar(440) * 0.2 }.play`. Learn that a graph must reach Out.\n2. **Envelopes and doneAction** — the difference bet... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `SelectX`."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var a;\n a = [\n SinOsc.ar,\n Saw.ar(300),\n Pulse.ar(230)\n ];\n\n SelectX.ar(MouseX.kr(0, 1) * a.size, a) * 0.2\n}.play;... |
[
{
"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": "Write a minimal SuperCollider example that uses `RunningMax`."
},
{
"role": "assistant",
"content": "```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... |
[
{
"role": "user",
"content": "What is `AbstractSInstrument` in SuperCollider?"
},
{
"role": "assistant",
"content": "AbstractSInstrument — an abstract class for all sInstruments Helper class for instruments. Category: SInstruments."
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `DetectSilence`."
},
{
"role": "assistant",
"content": "```supercollider\n// this frees after the Decay has become quiet enough for a long enough time\n{ var signal = Decay.ar(Impulse.ar(0), 2, PinkNoise.ar(0.2)); Dete... |
[
{
"role": "user",
"content": "What is `Stream`?"
},
{
"role": "assistant",
"content": "Stream — Stream is the base class for classes that define streams"
},
{
"role": "user",
"content": "What does `Stream.play` do?"
},
{
"role": "assistant",
"content": "Streams that retur... |
[
{
"role": "user",
"content": "Explain `TDelay` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "TDelay — Trigger delay. Delays a trigger by a given time. Any triggers which arrive in the time between an input trigger and its delayed output, are ignored. Category: UGens > Triggers... |
[
{
"role": "user",
"content": "What does `Layout.margins` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "The amount of empty pixels left between the edges of the parent view and the managed Arguments: margins — An array of four integers defining margins in the following o... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ PinkNoise.ar(EnvGen.kr(Env.perc, doneAction: Done.freeSelf) }.play\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis opened ... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\nd = { |gate = 1| { BrownNoise.ar }.dup * EnvGen.kr(Env.asr, gate, doneAction: Done.freeSelf) }.play;\nd.release(3;\n```"
},
{
"role": "assistant",
"content": "A closi... |
[
{
"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": "Explain `Plprand` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "Plprand — random values that tend toward lo Category: Streams-Patterns-Events > Patterns > Random."
}
] |
[
{
"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 `DetectIndex` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "DetectIndex — Search a buffer for a value Linearly searches a buffer for a value (i.e., loops over the frames in the buffer from the beginning, checking for float equality), and r... |
[
{
"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": "Write a kick drum with a 0.12 s decay."
},
{
"role": "assistant",
"content": "A kick is a sine with a fast pitch drop and a short amplitude envelope:\n\n```supercollider\n// kick drum: sine oscillator, 0.06 s pitch sweep\n(\nSynthDef(\\kick_synth, { |out = 0, amp = ... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{Formants.ar(100, Vowel([\\e, \\o], [\\bass])) * 0.1 }.play\n{Formants.ar(100, Vowel(\\e, [\\bass,\\alto])) * 0.1 }.play\n{Formants.ar(100, Vowel([\\e, \\o], [\\bass,\\alto]) * 0... |
[
{
"role": "user",
"content": "Explain `BufDelayC` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "BufDelayC — Buffer based simple delay line with cubic interpolation. Simple delay line with cubic interpolation which uses a buffer for its internal memory. See also BufDelayN which... |
[
{
"role": "user",
"content": "Give me a granular patch with sweep grain position and interp 2. (rate 20, dur 0.07, interp 2, 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 ... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `SharedIn`."
},
{
"role": "assistant",
"content": "```supercollider\n(\n// only works with the internal server\ns = Server.internal;\ns.boot;\n);\n\n(\nSynthDef(\"help-SharedIn1\", {\n Out.ar(0, SinOsc.ar(Lag.kr(Share... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `LinCongN`."
},
{
"role": "assistant",
"content": "```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... |
[
{
"role": "user",
"content": "Write a Pbind in majorPentatonic using Pseq for the degrees. (scale majorPentatonic, seq Pseq, dur 0.2, octave 4, instr fm, root 0)"
},
{
"role": "assistant",
"content": "The pattern is the composition here; `\\strum` spreads the chord:\n\n```supercollider\n(\nSynth... |
[
{
"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": "Explain `MxInletApp` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "MxInletApp — scripting object for a units inlet Category: Mx."
}
] |
[
{
"role": "user",
"content": "Explain `Lag3` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "Lag3 — Exponential lag Lag3 is equivalent to `Lag.kr(Lag.kr(Lag.kr(in, time), time), time)`, thus resulting in a smoother transition. This saves on CPU as you only have to calculate the ... |
[
{
"role": "user",
"content": "How do I make a kick that starts at 150 Hz and falls to 40 Hz?"
},
{
"role": "assistant",
"content": "The pitch envelope is what makes it read as a drum, not the oscillator:\n\n```supercollider\n// kick drum: sine oscillator, 0.06 s pitch sweep\n(\nSynthDef(\\kick_s... |
[
{
"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": "Give me a fm kick with a 0.06 s pitch sweep."
},
{
"role": "assistant",
"content": "Start with a swept sine, then shorten the decay to taste:\n\n```supercollider\n// kick drum: fm oscillator, 0.06 s pitch sweep\n(\nSynthDef(\\kick_synth, { |out = 0, amp = 0.6|\n ... |
[
{
"role": "user",
"content": "Write a kick at amp 0.8 with no click. (osc fm, sweep 0.06, decay 0.35, f0 220, f1 40, amp 0.8, rev 0)"
},
{
"role": "assistant",
"content": "The pitch envelope is what makes it read as a drum, not the oscillator:\n\n```supercollider\n// kick drum: fm oscillator, 0.... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `Monitor`."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\ns.scope(16);\n\n{ Out.ar(87, SinOsc.ar(MouseX.kr(40, 10000, 1) * [1, 2, 3], 0, 0.2)) }.play;\nx = Monitor.new;\nx.play(87, 3, 1, 2);\nx.out = 0;\nx.... |
[
{
"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 `ObjectTable.add` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Put an object in the main ObjectTable and generate an Integer Arguments: obj — the object to put in the table.."
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `MultiplexAnalogIn`."
},
{
"role": "assistant",
"content": "```supercollider\n// modulate frequency of a sine oscillator\n\n(\nSynthDef(\"help-MultiplexAnalogIn\", { |out = 0|\n Out.ar(out,\n SinOsc.ar(MultiplexAna... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ Crackle.ar(1.95, 0.5) }.play;\n\n// modulate chaos parameter\n{ Crackle.ar(Line.kr(1.0, 2.0, 3), 0.5, 0.5 }.play;\n```"
},
{
"role": "assistant",
"content": "A clos... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// Add two UGens\n{ SinOsc.ar(440, 0, 0.2) + PinkNoise.ar(0.1; }.play\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis opened... |
[
{
"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": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// example:\n(\nvar f, g, product;\nf = { SinOsc.ar(400) };\ng = { LFPulse.kr(8) };\nproduct = f * g * 0.1;\n{ Pan2.ar(product, SinOsc.kr(0.3)) }.play;\n```"
},
{
"role":... |
[
{
"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": "Give me a saw kick with a 0.06 s pitch sweep. (osc saw, sweep 0.06, decay 0.18, f0 220, f1 40, 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: saw oscil... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\nt = TempoClock(120/60).permanent_(true);\n\n(\n~change_clock_tempo = {|clock, tempo, beats=1|\n beats.do {|beat|\n var stepTempo = beat.linexp(0, beats-1, clock.tempo, tempo);\n clock.schedAbs(clock.next... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `LinCongN`."
},
{
"role": "assistant",
"content": "```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... |
[
{
"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": "What does `Mx.endBeat` do?"
},
{
"role": "assistant",
"content": "Relavant to the timeline, this is the total length of the timeline in Returns: float"
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// modulate frequency and index multiplier\n{ FBSineN.ar(LFNoise2.kr(1, 1e4, 1e4), LFNoise2.kr(1, 16, 17), 1, 1.005, 0.7) * 0.2 }.play(s;\n```"
},
{
"role": "assistant",
... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `LorenzL`."
},
{
"role": "assistant",
"content": "```supercollider\n// vary frequency\n{ LorenzL.ar(MouseX.kr(20, SampleRate.ir)) * 0.3 }.play(s);\n```"
}
] |
[
{
"role": "user",
"content": "Give me a Pbind with pluck voices and a 0.2 rhythm. (scale minorPentatonic, seq Pwalk, dur 0.2, octave 6, instr pluck, root 0)"
},
{
"role": "assistant",
"content": "The pattern is the composition here; `\\strum` spreads the chord:\n\n```supercollider\n(\nSynthDef(\... |
[
{
"role": "user",
"content": "Explain this SuperCollider code.\n```supercollider\n(\n// Pbind with default synth\n// ~freq can be a collection, then pitch or chord are shifted by ~freqFac,\n// ascending (~step > 0) or descending (~step < 0) groups of 4 items\n\np = Pbind(\n \\dur, 0.4,\n \\amp, PL(\\a... |
[
{
"role": "user",
"content": "What is `Thread` in SuperCollider?"
},
{
"role": "assistant",
"content": "Thread — The context of code evaluation Category: Core > Kernel."
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Pseq`."
},
{
"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: Don... |
[
{
"role": "user",
"content": "Write a kick drum with a 0.12 s decay. (osc fm, sweep 0.06, decay 0.12, f0 180, f1 55, amp 0.8, rev 0)"
},
{
"role": "assistant",
"content": "A kick is a sine with a fast pitch drop and a short amplitude envelope:\n\n```supercollider\n// kick drum: fm oscillator, 0.... |
[
{
"role": "user",
"content": "Write a SuperCollider patch that uses `RunningSum` and actually plays. Assume nothing about the session."
},
{
"role": "assistant",
"content": "```supercollider\n// RMS Power\n(\n{\n var input, numsamp;\n\n input = LFSaw.ar;\n numsamp = 30;\n\n (RunningS... |
[
{
"role": "user",
"content": "Write a SuperCollider patch that uses `NodeProxy` and actually plays. Assume nothing about the session."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\n\na = NodeProxy.new.play; // play to hardware output.\na.fadeTime = 2; // fadeTime specifies cro... |
[
{
"role": "user",
"content": "Write a Pbind whose degrees repeat every Pseq cycle. (scale majorPentatonic, seq Pseq, dur 0.3, octave 6, instr pluck, root 0)"
},
{
"role": "assistant",
"content": "Put the scale and the degree pattern in the `Pbind` and it will pick notes for you:\n\n```supercolli... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Fdef`."
},
{
"role": "assistant",
"content": "```supercollider\n// sound example\n(\ns.boot;\nSynthDef(\"gpdef\",\n { |out = 0, freq = 440, sustain = 0.05, amp = 0.1|\n var env;\n env = EnvGen.kr(Env.perc(0.01,... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `BinaryOpUGen`."
},
{
"role": "assistant",
"content": "```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.... |
[
{
"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 a minimal SuperCollider example that uses `Impulse`."
},
{
"role": "assistant",
"content": "```supercollider\n{ Impulse.ar(800, 0.0, 0.5, 0) }.play\n\n{ Impulse.ar(XLine.kr(800, 100, 5), 0.0, 0.5, 0) }.play\n```"
}
] |
[
{
"role": "user",
"content": "What is `IrNumberEditor` in SuperCollider?"
},
{
"role": "assistant",
"content": "IrNumberEditor — a number box and slider for editing a float value [\\ir rate] When used with Patch or InstrSpawner this will result in an .ir rate control. This means you can only cha... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n// Very artificial example - just filtering some noise.\ns.boot;\nb = Buffer.alloc(s,2048,1);\n(\nx = {\nvar in, chain, freq, rq, val;\n//freq = LFPar.kr(0.3).exprange(100, 1000);\nfreq = MouseY.kr(1000, 100, 1);\nrq = Mo... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `MultiplexAnalogIn`."
},
{
"role": "assistant",
"content": "```supercollider\n// modulate frequency of a sine oscillator\n\n(\nSynthDef(\"help-MultiplexAnalogIn\", { |out = 0|\n Out.ar(out,\n SinOsc.ar(MultiplexAna... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\n{\n# x,y,z = RosslerL.ar(MouseX.kr(1, 200));\nPan2.ar(Pulse.ar(x.range(100,1000), y.range(0,1), 0.3), z)\n}.play(s)\n```"
},
{
"role": "assistant",
"content": "A c... |
[
{
"role": "user",
"content": "Give me an Ndef with an LFO at 0.3 Hz. (ugens saw, cutoff 3200, lfo 0.3, freq 110, 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 3200 Hz low-pass\n(... |
[
{
"role": "user",
"content": "Explain `UniqueID` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "UniqueID — source for unique numbers Category: Core."
}
] |
[
{
"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": "Write a Pbind whose degrees repeat every Pshuf cycle. (scale minorPentatonic, seq Pshuf, dur 0.2, octave 5, 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": "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": "Explain `EaseInOutCubic` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "EaseInOutCubic — Cubic ease-in/out Easing equation for a cubic (t^3) ease-in/out, accelerating until halfway, then decelerating. Category: Ease."
}
] |
[
{
"role": "user",
"content": "Write a SuperCollider patch that uses `LFClipNoise` and actually plays. Assume nothing about the session."
},
{
"role": "assistant",
"content": "```supercollider\n(\nx = { var inA, chainA, chainB;\n inA = LFClipNoise.ar(100);\n chainA = FFT(LocalBuf(2048, 1), inA)... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// RMS Power\n(\n{\n var input, numsamp;\n\n input = LFSaw.ar;\n numsamp = 30;\n\n (RunningSum.ar(input.squared, numsamp) / numsamp).sqrt\n}.play\n```"
},
{
"... |
[
{
"role": "user",
"content": "Write a kick drum with a 0.18 s decay. (osc sine, sweep 0.06, decay 0.18, f0 150, f1 48, amp 0.8, rev 0)"
},
{
"role": "assistant",
"content": "The pitch envelope is what makes it read as a drum, not the oscillator:\n\n```supercollider\n// kick drum: sine oscillator... |
[
{
"role": "user",
"content": "What is `NotNil` in SuperCollider?"
},
{
"role": "assistant",
"content": "NotNil — validates that the tested object is not nil Category: Libraries > crucial > Constraints."
}
] |
[
{
"role": "user",
"content": "What does `Pattern.record` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Opens a disk file for recording and plays the pattern into Arguments: path — Disk location for the recorded file. If not given, a filename is generated for you and pla... |
[
{
"role": "user",
"content": "Write a Pbind in majorPentatonic using Pseq for the degrees. (scale majorPentatonic, seq Pseq, dur 0.4, octave 5, instr fm, root 0)"
},
{
"role": "assistant",
"content": "The pattern is the composition here; `\\strum` spreads the chord:\n\n```supercollider\n(\nSynth... |
[
{
"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 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\ns.boot;\nx = { SinOsc.ar((Line.kr(0, 10, 10).snap(1, 0.3, 1) + 60).poll.midicps, 0, -24.dbamp }.play\n```"
},
{
"role": "assistant",
"content": "A closing bracket is ... |
[
{
"role": "user",
"content": "Give me a fm kick with a 0.06 s pitch sweep. (osc fm, sweep 0.06, decay 0.35, f0 220, f1 55, 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: fm oscillator, 0.06 s pit... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\n Patch.new(\n [ 'help', 'Sample' ], [ Sample.new(\"a11wlk01.wav\", 1.6347258775994),\n 0.46511627906977, 0.17441860465116 ]\n ).play\n```"
},
{
"role": "assi... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n// same as above, but we use a NetAddr with a port of nil, so we can receive from a specific host, but from any port\n\nn = NetAddr(\"127.0.0.1\", nil); // the url should be the one of computer of app 2\no = OSCresponderN... |
[
{
"role": "user",
"content": "Write a complete SuperCollider patch built around `BufWr` that runs as it is."
},
{
"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 buf... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n// The following files are test materials on my machine; you will subsitute your own filenames here\n// A major\nd = Buffer.read(s, \"/Volumes/data/stevebeattrack/samples/100.wav\");\n// F major; hard to track!\nd = Buffe... |
[
{
"role": "user",
"content": "Explain `CombL` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "CombL — Comb delay line with linear interpolation. Comb delay line with linear interpolation. See also CombN which uses no interpolation, and CombC which uses cubic interpolation. Cubic... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ Lorenz2DL.ar(11025, 44100) }.play(s);\n\n// randomly modulate params\n(\n{ Lorenz2DL.ar(\n 11025, 44100,\n LFNoise0.kr(1, 2, 10),\n 20,\n LFNoise0.kr(1, 1.5, 2),\n 0.02\n)... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n// Handy code for quick class demonstrations.\n// Comparing a few intervals - Just Intonation versus 12-tone Equal Tempered\n\n// Major third (just)\nNdef(\\a, { Saw.ar(freq: [60.midicps, 60.midicps * 5/4], mul: 0.1) }).... |
[
{
"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 `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": "What does `LocalOut.ar` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Write to buses local to a synth. Arguments: channelsArray — An Array of channels or single output to write out. You cannot change the size of this once a SynthDef has bee... |
[
{
"role": "user",
"content": "Give me a complete SuperCollider patch for electric hum: bind everything it needs before it is used."
},
{
"role": "assistant",
"content": "```supercollider\n(\nNdef(\\eHum).addSpec(\\fFreq, ControlSpec(25, 1000, \\lin, step: 25));\nNdef(\\eHum).addSpec(\\fRq, [0.01... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.