conversations listlengths 2 6 |
|---|
[
{
"role": "user",
"content": "Write an Ndef with a saw source and a 3200 Hz low-pass. (ugens saw, cutoff 3200, 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 ... |
[
{
"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": "Give me a sine kick with a 0.06 s pitch sweep. (osc sine, sweep 0.06, decay 0.12, f0 220, f1 40, amp 0.6, rev 0)"
},
{
"role": "assistant",
"content": "Start with a swept sine, then shorten the decay to taste:\n\n```supercollider\n// kick drum: sine oscillator, 0.06... |
[
{
"role": "user",
"content": "What does `Bag.new` do?"
},
{
"role": "assistant",
"content": "Creates a Bag with an initial capacity for n"
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// mouse-controlled param\n{ StandardL.ar(SampleRate.ir/2, MouseX.kr(0.9, 4)) * 0.3 }.play(s;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing... |
[
{
"role": "user",
"content": "What is `RingBuffer` in SuperCollider?"
},
{
"role": "assistant",
"content": "RingBuffer — Fixed size ringbuffer A circular buffer that holds a fixed-size collection. Can be used as a queue. Category: Collections > Ordered."
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\nd = { |freq = 440|\n var internalFreq;\n internalFreq = LFNoise0.ar(0.3, 300, 800);\n SinOsc.ar(\n LeastChange.kr(freq, internalFreq) // two sources of change: one exter... |
[
{
"role": "user",
"content": "Show me a self-contained SuperCollider patch using `DiskIn`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\n\n\n\n// create with cueSoundFile class method\nb = Buffer.cueSoundFile(s, ExampleFiles.apollo11, 0, 1);\nx... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n(\n// Function to check an array for repetitions within a maximum test span\n\n~repetitionCheck = { |array, maxTestSpan|\n maxTestSpan.do { |i|\n var result = (array.drop(i+1) - array).drop((i+1).neg).includes(0).not;... |
[
{
"role": "user",
"content": "What does `Dseries.new` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Demand rate arithmetic series UGen. Arguments: start — Start value. Can be a number or any other UGen.; step — Step value. Can be a number or any other UGen.; length — Nu... |
[
{
"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": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// modulate frequency of a sine oscillator\n\n(\nSynthDef(\"help-AnalogIn\", { |out = 0|\n Out.ar(out,\n SinOsc.ar(AnalogIn.ar(0).exprange(200, 5000), 0, 0.1)\n )\n}).play;\... |
[
{
"role": "user",
"content": "What is `ObjectInsp` in SuperCollider?"
},
{
"role": "assistant",
"content": "ObjectInsp — displays all the variables and internals of an object for debugging purposes This is the (somewhat private) implementation class that displays an object's innards when it is i... |
[
{
"role": "user",
"content": "How do I build a live drone with Ndef at 55 Hz? (ugens blip, cutoff 3200, 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: blip source through ... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\na = WhiteNoise.ar; // a WhiteNoise\nb = a + 2; // a BinaryOpUGen.\nb.operator; // +\n\n// sound example\n(\n{\n var a = LFSaw.ar(300);\n var b = LFSaw.ar(329.1);\n a % b * 0.1... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\na = Env.adsr;\na.levels;\na.range(42, 45).levels;\na.exprange(42, 45).levels;\na.curverange(42, 45, -4).levels;\n\n(\n// Mapping an Env to an exponential frequency range:\n{\n S... |
[
{
"role": "user",
"content": "What does `DataFilterBandpass.constants` do?"
},
{
"role": "assistant",
"content": "a dictionary of dictionaries containing filter constants for different sampling rates. `//filter constants for 1-15 Hz, 250 samples per"
}
] |
[
{
"role": "user",
"content": "What does `Ptuple.new` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "combine a list of streams to a stream of lists Arguments: list — an Array of patterns.; repeats — an Integer or inf.."
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```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": "assistant",
"content": "A closing bracket is missi... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```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.1) }.play\n\n{ LFDClipNoise.ar(MouseX.kr(0.1, 1000, 1), 0.1) }.play\n\n// si... |
[
{
"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": "What does `MKtl.postElements` do?"
},
{
"role": "assistant",
"content": "A pretty printed hierarchical list of the names and indices of all elements"
}
] |
[
{
"role": "user",
"content": "Explain `Fomus` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "Fomus — SuperCollider bindings to Fomus Music Notation Category: MusicNotation."
}
] |
[
{
"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": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// example; this buffer is mono, so the number of samples matches the number of frames\nb = Buffer.read(s, ExampleFiles.child);\n\n// indexing with a phasor\n{ BufRd.ar(1, b, Pha... |
[
{
"role": "user",
"content": "How do I make a delay line?"
},
{
"role": "assistant",
"content": "`CombN.ar(in, maxdelaytime, delaytime, decaytime)` is a feedback delay: maxdelaytime is the buffer size, delaytime the actual delay (and it can modulate), decaytime how long the repeats take to die. ... |
[
{
"role": "user",
"content": "Write a complete SuperCollider patch built around `QuadL` that runs as it is."
},
{
"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... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Formant`."
},
{
"role": "assistant",
"content": "```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 f... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\nSynthDef(\"help-GrayNoise\", { |out = 0|\n Out.ar(out,\n GrayNoise.ar(-20.dbamp)\n )\n}).play;\n```"
},
{
"role": "assistant",
"content": "A closing bracket i... |
[
{
"role": "user",
"content": "Explain this SuperCollider code.\n```supercollider\n// for Nil: return the argument unmodified (an event).\nnil.transformEvent((x: 8));\n// for Dictionary (and thus for Event): add to the argument.\n(y: 100, z: 1).transformEvent((x: 8));\n// for Association: add the association... |
[
{
"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": "Write a minimal SuperCollider example that uses `UGen`."
},
{
"role": "assistant",
"content": "```supercollider\n{ Blip.ar(Blip.kr(4, 5, 500, 60), 59, 0.1) }.play;\n```"
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ PinkNoise.ar(1) * Line.kr(1, 0, 2, doneAction: Done.freeSelf }.play.onFree { \"done\".postln };\n```"
},
{
"role": "assistant",
"content": "A closing bracket is mis... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\nd = SynthDef(\\tone, { |out = 0, freq = 200|\n var sig;\n\n freq.spec = ControlSpec(20, 20000);\n sig = SinOsc.ar(freq);\n\n Out.ar(out, sig);\n}).add;\n;\n\nd.specs.freq.... |
[
{
"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 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": "Write a minimal SuperCollider example that uses `NamedControl`."
},
{
"role": "assistant",
"content": "```supercollider\n// use NamedControl to create a number of multichannel controls:\n\na = { SinOsc.ar(NamedControl.kr(\\freq, [300, 330, 370], [1, 0.3, 0.02])).sum... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Vibrato`."
},
{
"role": "assistant",
"content": "```supercollider\n// vibrato at 1 Hz, note the use of DC.ar UGen; a constant of 400.0 doesn't work\n{ SinOsc.ar(Vibrato.ar(DC.ar(400.0), 1, 0.02)) }.play\n\n// compare:... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// one last example\n(\nb = Buffer.alloc(s, 512, 1);\nb.sine1(1.0/[1, 2, 3, 4, 5, 6], true, true, true);\n);\n\n(\n{\n var input = SoundIn.ar(0);\n var framesize = 512;\n Conv... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `StandardN`."
},
{
"role": "assistant",
"content": "```supercollider\n// mouse-controlled param\n{ StandardN.ar(SampleRate.ir/2, MouseX.kr(0.9, 4)) * 0.3 }.play(s);\n```"
}
] |
[
{
"role": "user",
"content": "Can you run this code and tell me if it works?"
},
{
"role": "assistant",
"content": "No — I cannot execute SuperCollider. What I can tell you is what would break and why: bracket balance, arguments that must exist for the class, a SynthDef that never reaches Out, a... |
[
{
"role": "user",
"content": "Give me a Pbind with fm voices and a 0.4 rhythm. (scale majorPentatonic, seq Pshuf, dur 0.4, octave 5, instr fm, root 0)"
},
{
"role": "assistant",
"content": "`Pbind` sequences an Event per beat, and `\\degree` + `\\scale` does the pitch:\n\n```supercollider\n(\nSy... |
[
{
"role": "user",
"content": "Write a kick at amp 0.6 with no click. (osc fm, sweep 0.06, decay 0.18, f0 150, f1 55, amp 0.6, rev 0)"
},
{
"role": "assistant",
"content": "The pitch envelope is what makes it read as a drum, not the oscillator:\n\n```supercollider\n// kick drum: fm oscillator, 0.... |
[
{
"role": "user",
"content": "What is `VarGui`?"
},
{
"role": "assistant",
"content": "VarGui — slider / player gui to set envir variables and synth controllers and play synths, event patterns and tasks"
},
{
"role": "user",
"content": "What does `VarGui.new` do?"
},
{
"role"... |
[
{
"role": "user",
"content": "What does `PostWindow.window` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Create a new Window with the Arguments: A String for the name of the Window.; A Rect for the Window; A Font.; A QPalette.."
}
] |
[
{
"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": "Give me a Pbind with fm voices and a 0.4 rhythm. (scale minorPentatonic, seq Prand, dur 0.4, octave 6, 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```supercollider\n(... |
[
{
"role": "user",
"content": "Write a SuperCollider patch that uses `Dust` and actually plays. Assume nothing about the session."
},
{
"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... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\nSynthDef(\"help-PulseCount\", { |out = 0|\n Out.ar(out,\n SinOsc.ar(\n PulseCount.ar(Impulse.ar(10), Impulse.ar(0.4)) * 200,\n 0, 0.05\n )\n )\n}.play;\n```"
... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n// poor man's panning\n{\n var f, hornbostelwertheimerkonstante;\n f = MouseY.kr(1, 100, 1);\n hornbostelwertheimerkonstante = 0.00063;\n Impulse.ar(f, hornbostelwertheimerkonstante * f * [1, MouseX.kr(0, 2)], 0.1) \... |
[
{
"role": "user",
"content": "Write a SuperCollider patch that uses `Pgtpar` and actually plays. Assume nothing about the session."
},
{
"role": "assistant",
"content": "```supercollider\n// synthdef\n(\nSynthDef(\\help_sinegrain,\n { |out = 0, freq = 440, sustain = 0.05|\n var env;\n ... |
[
{
"role": "user",
"content": "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 SinOsc.ar,\n Saw.ar,\n Pulse.ar\n ];\n TWChoose.ar(Dust.ar(MouseX.kr(1, 1000, 1)), a, [0.99, 0.05, 0.05].normalizeSum) * 0.2\n\n}.pla... |
[
{
"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": "Explain `SymbolArray` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "SymbolArray — an array whose indexed slots are all of the same type These classes implement arrays whose indexed slots are all of the same type. Category: Collections > Ordered."
... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ Standard2DC.ar(220, 11025, mul:0.3) }.play(s);\n\n// mouse-controlled param\n{ Standard2DC.ar(8000, 20000, MouseX.kr(0.9,4), mul:0.3) }.play(s);\n\n// as a frequency control\n{... |
[
{
"role": "user",
"content": "Explain `Method` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "Method — Code that implements an operation upon instances of a Class. A Method is code that is a part of the set of operations upon instances of a Class. Category: Core > Kernel."
}
... |
[
{
"role": "user",
"content": "Show me a self-contained SuperCollider patch using `Dswitch`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\n(\n {\n var d, trig;\n d = Dswitch([\n Dwhite(3, 4, 2),\n Dwhite(0, 1, 2),\n Dseq([1, 1, 1, 0... |
[
{
"role": "user",
"content": "Give me a Pbind with sine voices and a 0.2 rhythm. (scale majorPentatonic, seq Pseq, 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(\\si... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ Klank.ar(`[[800, 1071, 1153, 1723], nil, [1, 1, 1, 1]], Impulse.ar(2, 0, 0.1) }.play;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the ... |
[
{
"role": "user",
"content": "What does `View.keyTyped` do?"
},
{
"role": "assistant",
"content": "An instance variable containing the key just typed (after it is"
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Archive`."
},
{
"role": "assistant",
"content": "```supercollider\n// make a storage place for various objects:\nq = (); // Event\n\nq[\\a_long_array] = Array.rand(128, 0.0, 1.0);\nq[\\pi_squared] = pi * pi;\nq[\\favo... |
[
{
"role": "user",
"content": "Write a self-contained SuperCollider patch for now with snooze (press mouse button). Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\nNdef(\\a, { |freq=2000, rate=1, width=0.6, now = 10|\n LFPulse.kr(rate, 0, 4/6) *\n LFPulse.kr... |
[
{
"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": "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": "Write a complete SuperCollider patch built around `RandID` that runs as it is."
},
{
"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.... |
[
{
"role": "user",
"content": "How do I granulate a sample with 0.2 s grains?"
},
{
"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 = Buffer.read(s, Platfor... |
[
{
"role": "user",
"content": "Write a SuperCollider patch that uses `SoundIn` and actually plays. Assume nothing about the session."
},
{
"role": "assistant",
"content": "```supercollider\nu = Server(\\scau, NetAddr(\"127.0.0.1\", 9989)); // Change the port from 9989 to the right one for you\nu.... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `DelayC`."
},
{
"role": "assistant",
"content": "```supercollider\n(\n// Dust randomly triggers Decay to create an exponential\n// decay envelope for the WhiteNoise input source\n{\nz = Decay.ar(Dust.ar(1, 0.5), 0.3, W... |
[
{
"role": "user",
"content": "What does `String.>` do?"
},
{
"role": "assistant",
"content": "Returns a Boolean whether the receiver should be sorted after the argument. `\"same\" >"
}
] |
[
{
"role": "user",
"content": "Write an Ndef at 220 Hz I can retune while it plays. (ugens tri, cutoff 3200, lfo 0.3, 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: tri source through a 3... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ Blip.ar(Blip.kr(4, 5, 500, 60), 59, 0.1 }.play;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis opened earlier is never cl... |
[
{
"role": "user",
"content": "Give me a saw kick with a 0.06 s pitch sweep. (osc saw, sweep 0.06, decay 0.12, f0 220, f1 55, amp 0.6, 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: saw oscil... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `GrayNoise`."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\"help-GrayNoise\", { |out = 0|\n Out.ar(out,\n GrayNoise.ar(-20.dbamp)\n )\n}).play;\n)\n```"
}
] |
[
{
"role": "user",
"content": "Write an FM bell in SuperCollider."
},
{
"role": "assistant",
"content": "PMOsc is phase modulation: a non-integer modulator ratio gives the inharmonic clang.\n\n```supercollider\n(\nSynthDef(\\fmBell, { |out = 0, freq = 440, amp = 0.2, dur = 4|\n var index = Env... |
[
{
"role": "user",
"content": "Write a Pbind whose degrees repeat every Pwalk cycle. (scale minorPentatonic, seq Pwalk, dur 0.2, octave 6, 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": "Explain `RedSpring` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "RedSpring — helper class for RedObject:spring A simple class that keeps track of connections and spring parameters. Category: Red > redUniverse."
}
] |
[
{
"role": "user",
"content": "Write a self-contained SuperCollider patch that uses `FoldIndex`. Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\n// indexing into a table\n(\n{\n var buf = LocalBuf.newFrom([200, 300, 400, 500, 600, 800]);\n var freq = FoldInd... |
[
{
"role": "user",
"content": "Explain this SuperCollider code.\n```supercollider\n// check blockSize before (or reset blockSize in examples)\n\n(\nif (s.options.blockSize != 64) {\n s.options.blockSize = 64;\n s.quit.reboot;\n}\n);\n\n\n// exponentiation can also be interesting\n// here an area of instabi... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Klank`."
},
{
"role": "assistant",
"content": "```supercollider\n{ Klank.ar(`[[800, 1071, 1153, 1723], nil, [1, 1, 1, 1]], Impulse.ar(2, 0, 0.1)) }.play;\n\n{ Klank.ar(`[[800, 1071, 1353, 1723], nil, [1, 1, 1, 1]], Du... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n// modulating the frequency\n\n{ Saw.ar(XLine.kr(40, 4000, 6), 0.2) }.play;\n\n// two band limited sawtooth waves through a resonant low pass filter\n\n{ RLPF.ar(Saw.ar([100, 250], 0.1), XLine.kr(8000, 400, 5), 0.05) }.pl... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `TwoPole`."
},
{
"role": "assistant",
"content": "```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(White... |
[
{
"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 this SuperCollider code.\n```supercollider\n// First we create something to control\nx = { |freq = 440, amp = 0.6| MoogFF.ar(PinkNoise.ar(amp), freq).dup }.play;\n\n// In the following pattern, the first two keys are the ones that create the monophonic behaviour:\n(\np ... |
[
{
"role": "user",
"content": "What does `VarGui.update` do?"
},
{
"role": "assistant",
"content": "Update variables and controllers to current slider values. Like update button action. Unless the VarGui window was generated with option updateNow set to false, variables and controllers are immedi... |
[
{
"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 = Diwhite(0, 15, 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}.play;\... |
[
{
"role": "user",
"content": "What is the difference between a Synth and a SynthDef?"
},
{
"role": "assistant",
"content": "A SynthDef is a definition: a compiled UGen graph with named controls, registered on the server once. A Synth is one running instance of that definition. You create the def... |
[
{
"role": "user",
"content": "Write a granular texture, dry. (rate 14, dur 0.07, interp 4, 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 {\n var buf = ... |
[
{
"role": "user",
"content": "Add freeverb to a kick patch at room 0.7."
},
{
"role": "assistant",
"content": "Put the reverb inside the `SynthDef` so it is part of the voice:\n\n```supercollider\n// reverb: freeverb on a kick\n(\nSynthDef(\\reverb_synth, { |out = 0, freq = 330, amp = 0.2|\n ... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n(\n~inPlaceSub = { |array, find, replace|\n array.do({ |item, i|\n if(item == find) { array[i] = replace };\n });\n};\n\n~trySub = { |array, find, replace|\n try {\n ~inPlaceSub.(array, find, replace)\n } { |err... |
[
{
"role": "user",
"content": "What can you do?"
},
{
"role": "assistant",
"content": "Write and explain SuperCollider: SynthDefs, UGens, Patterns, Ndef, buses and envelopes, and tell you why a patch is silent or will not compile. I am 198M parameters, so I am narrow on purpose."
}
] |
[
{
"role": "user",
"content": "What is `ActionButton` in SuperCollider?"
},
{
"role": "assistant",
"content": "ActionButton — a simple button with a name and an action Sizes itself to fit the name. Nice, simple constructor saves fiddling around with a raw Button. Category: Libraries > crucial > G... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Dust2`."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\"help-Dust2\", { |out = 0|\n Out.ar(out,\n Dust2.ar(200, 0.5)\n )\n}).play;\n);\n\n(\nSynthDef(\"help-Dust2\", { |out = 0|\n Out.ar(o... |
[
{
"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": "Explain `SyntheticData` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "SyntheticData — for generating synthetic test data coming from a board this class acts like a drop-in replacement for CytonSerial and CytonWifi. Category: External Control."
}... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\ns.boot;\ns.scope;\na = { HilbertFIR.ar(SinOsc.ar(100) * -20.dbamp, LocalBuf(2048) }.play;\na.release;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `ControlSpec`."
},
{
"role": "assistant",
"content": "```supercollider\n// ControlSpec-map can also be used to map ugens\n(\nvar spec;\nspec = [100, 18000, \\exp].asSpec;\n{\n var freq, osc;\n osc = SinOsc.kr(0.1).ra... |
[
{
"role": "user",
"content": "Show me a self-contained SuperCollider patch using `Dswitch1`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var a, freq, trig;\n a = Dswitch1([1, 3, MouseY.kr(1, 15), 2, Dwhite(0, 3, 2)], MouseX.kr(0, 4));\n trig... |
[
{
"role": "user",
"content": "Explain `NdefMixer` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "NdefMixer — mix control for an Ndef proxyspace NdefMixer is nearly identical to ProxyMixer, except that it looks at the proxyspaces for each server that `Ndef.all` contains. Categor... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Dseries`."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var a, freq, trig;\n a = Dseries(0, 1, 15);\n trig = Impulse.kr(MouseX.kr(1, 40, 1));\n freq = Demand.kr(trig, 0, a) * 30 + 340;\n SinOsc.... |
[
{
"role": "user",
"content": "What does `SimpleTrigger.guiClass` do?"
},
{
"role": "assistant",
"content": "a player that emits a trigger on button push or .trig"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.