conversations listlengths 2 6 |
|---|
[
{
"role": "user",
"content": "What is `CutTrig1` in SuperCollider?"
},
{
"role": "assistant",
"content": "CutTrig1 — Playing samples in BBCut2 This cut synth will trigger a particular sample at each block. There is a user defined probability of whether to play the sample on every cut as a roll, ... |
[
{
"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": "Give me an Ndef with an LFO at 0.3 Hz."
},
{
"role": "assistant",
"content": "`Ndef` holds the synth and the environment, so you can edit it live:\n\n```supercollider\n// Ndef drone: saw source through a 2400 Hz low-pass\n(\nNdef(\\nd_saw_82_2400, { |freq = 82.5, am... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Monitor`."
},
{
"role": "assistant",
"content": "```supercollider\n{ Out.ar(87, SinOsc.ar(MouseX.kr(240, 1000, 1) * [1, 2, 3], 0, 0.2)) }.play; // play three sine tone on channels 87, 88, and 89\nx = Monitor.new; // c... |
[
{
"role": "user",
"content": "What is `BelaScope`?"
},
{
"role": "assistant",
"content": "BelaScope — Bela's Oscilloscope interface"
},
{
"role": "user",
"content": "What does `BelaScope.scope` do?"
},
{
"role": "assistant",
"content": "Send an array of UGen data to Bela'... |
[
{
"role": "user",
"content": "How do I play a random minorPentatonic scale at octave 5? (scale minorPentatonic, seq Pseq, dur 0.3, octave 5, instr fm, root 0)"
},
{
"role": "assistant",
"content": "Put the scale and the degree pattern in the `Pbind` and it will pick notes for you:\n\n```supercol... |
[
{
"role": "user",
"content": "How do I build a live drone with Ndef at 165 Hz? (ugens tri, cutoff 800, lfo 0.1, freq 165, 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 800 Hz low... |
[
{
"role": "user",
"content": "Explain `BeatClockPlayerGui` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "BeatClockPlayerGui — gui class Category: Libraries > crucial > GuiClasses."
}
] |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n(\nf = ();\nf.beatAndBar = {\n var t = currentEnvironment.clock; // t= TempoClock.new;\n var text = \"xB: \";\n\n var nBeatsPerBar = { arg n, beats, clock;\n var nBpb = clock.beatsPerBar * n;\n \"\" ++ n ++ te... |
[
{
"role": "user",
"content": "Show me a self-contained SuperCollider patch using `Function`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\nx = { |freq = 440| SinOsc.ar(freq, 0, 0.3) }.play; // this returns a Synth object;\nx.set(\\freq, 880); // note yo... |
[
{
"role": "user",
"content": "Explain this SuperCollider code.\n```supercollider\ns.boot; // start the server\n\n// something to record\n(\nSynthDef(\"bubbles\", { |out|\n var f, sound;\n f = LFSaw.kr(0.4, 0, 24, LFSaw.kr([8, 7.23], 0, 3, 80)).midicps; // glissando function\n sound = CombN.ar(SinOsc.ar(f... |
[
{
"role": "user",
"content": "What does `WebView.onRecentlyAudibleChanged` do?"
},
{
"role": "assistant",
"content": "Sets the object to be evaluated when the page has started or stopped playing"
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\n{\n var env = Env([0.0, 0.5, 0.0, 1.0, 0.9, 0.0], [0.05, 0.1, 0.01, 1.0, 1.5], -4);\n var envgen = EnvGen.ar(env, doneAction: Done.freeSelf);\n env.plot;\n SinOsc.ar(\n ... |
[
{
"role": "user",
"content": "Write a SuperCollider patch that uses `GrayNoise` and actually plays. Assume nothing about the session."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\"help-GrayNoise\", { |out = 0|\n Out.ar(out,\n GrayNoise.ar(-20.dbamp)\n )\n}).play;\n)... |
[
{
"role": "user",
"content": "Explain `MxChannelApp` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "MxChannelApp — scripting object for an MxChannel, one channel in an Mx Add, remove, insert units. Mute, solo and change levels on the fader. Category: Mx."
}
] |
[
{
"role": "user",
"content": "What is `PbindProxy`?"
},
{
"role": "assistant",
"content": "PbindProxy — incremental event pattern reference"
},
{
"role": "user",
"content": "What does `PbindProxy.new` do?"
},
{
"role": "assistant",
"content": "Return a new instance of Pbi... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// Compare:\n\n{ WhiteNoise.ar(0.25) }.play;\n\n{ LPZ2.ar(WhiteNoise.ar(0.25) }.play;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the pa... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n// allocate buffer\nb = Buffer.alloc(s, 44100, 1);\n\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, WhiteNoise.ar);\n... |
[
{
"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": "Give me a complete SuperCollider patch for Wake up call: bind everything it needs before it is used."
},
{
"role": "assistant",
"content": "```supercollider\nNdef(\\a, { |freq=2000, rate=1, width=0.6|\n LFPulse.kr(rate, 0, 4/6) *\n LFPulse.kr(rate * 6, 0, width) *... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n// This question comes up sometimes.\n// one way to do it is to define an event type:\n\n\n(\nEvent.addEventType(\\dnote, { |server|\n \n var instrument = ~instrument.asDefName;\n var synthLib = ~synthLib ?? { SynthDe... |
[
{
"role": "user",
"content": "Explain this SuperCollider patch.\n```supercollider\n//This is almost exactly the same as kick3.scd, they've been morphed into kik3.scd!\n\n\nSynthDef(\"kik\", { |basefreq = 50, ratio = 7, sweeptime = 0.05, preamp = 1, amp = 1, decay1 = 0.3, decay1L = 0.8, decay2 = 0.15, out|\n... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ SinOsc.ar(500 + LFPulse.ar(4).bipolar(40), 0, 0.5 * 0.1 }.play;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis opened ear... |
[
{
"role": "user",
"content": "Write a Pbind whose degrees repeat every Pseq cycle. (scale majorPentatonic, seq Pseq, 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```supercollider\... |
[
{
"role": "user",
"content": "Write a self-contained SuperCollider patch that uses `Duty`. Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\n// this is useful when two UGens need to be called, but only one of their outputs is needed\n(\n{\n var a, b, c;\n a =... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ Blip.ar(LFNoise0.kr(9, 400, 500), 4, 0.2 }.play;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis opened earlier is never c... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Dwhite`."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var a, freq, trig;\n a = Dwhite(0, 15, inf);\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 this SuperCollider patch do?\n```supercollider\n//Version 1\n//P(eace)Bind\n//If error messages could experience Nirvanna, it would sound like this.\n(\n{\nSaw.ar(\n freq: SinOsc.kr([60, 63, 67, 70]).range(440,880),\n mul:LFNoise0.kr(freq: [0.25,1]).range(0,1),\... |
[
{
"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": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ Integrator.ar(LFPulse.ar(300, 0.2, 0.1), MouseX.kr(0.001, 0.999, 1)) }.play\n\n// used as an envelope\n{ Integrator.ar(LFPulse.ar(3, 0.2, 0.0004), 0.999, FSinOsc.ar(700), 0) }.... |
[
{
"role": "user",
"content": "Write an Ndef with a blip source and a 800 Hz low-pass. (ugens blip, cutoff 800, lfo 0.8, freq 55, 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 80... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{Decimator.ar(SinOsc.ar([400, 404], 0, 0.2), MouseX.kr(0, 44100), MouseY.kr(0, 31))}.play\n\n{Decimator.ar(SoundIn.ar, MouseX.kr(0, 44100), MouseY.kr(0, 31)}.play\n```"
},
{
... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n/*\n( // PlayerBinop not yet implemented\n\nPatch(\\monosynth,[\n BeatClockPlayer.new(16) * MIDIGatePlayer.new,\n MIDIFreqPlayer.new,\n CCPlayer(50,[100,3000,\\exp,0.0,1500.0]... |
[
{
"role": "user",
"content": "What is `Pbindf` in SuperCollider?"
},
{
"role": "assistant",
"content": "Pbindf — bind several value patterns to one existing event stream by binding keys to values Pbindf adds several value streams into one existing event stream. Each value stream is assigned to o... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n{ Pan2.ar(Klank.ar(`[[1, 2.2, 3.5, 4.9], nil, Array.series(4, 1, -0.2)], PinkNoise.ar(EnvGen.ar(Env.perc(0.001,0.01), Impulse.ar(4))), 0), 0); }.play;\n```"
},
{
"role": "assistant",
"content": "I accidentall... |
[
{
"role": "user",
"content": "What does `AbstractDispatcher.update` do?"
},
{
"role": "assistant",
"content": "Subclasses should override this to do any necessary updating when a dispatchers responder funcs indicate they have changed via the standard dependancy mechanism. The default implementat... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Dibrown`."
},
{
"role": "assistant",
"content": "```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 Si... |
[
{
"role": "user",
"content": "Give me a granular patch with sweep grain position and interp 4. (rate 6, dur 0.04, interp 4, mode sweep, rev 0)"
},
{
"role": "assistant",
"content": "Granulation is `GrainBuf` plus a trigger rate; the position can move:\n\n```supercollider\n// granular synth with ... |
[
{
"role": "user",
"content": "How do I distort a signal?"
},
{
"role": "assistant",
"content": "Drive it into a nonlinearity, then tame the level: `tanh` is soft clipping, `.distort` is harder,\nand a low-pass after the drive keeps it from getting fizzy.\n\n```supercollider\n(\n{\n var sig = ... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n// crossfading a mono source between two outs\n\n(\nx = {\n DXFan.ar(\n Dseq([0, 1], inf),\n PinkNoise.ar(0.05),\n fadeTime: 1\n )\n}.play\n);\n\nx.release\n\n\n// Crossfading a stereo source between two outs,\... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `WrapIndex`."
},
{
"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 = WrapIndex.kr(buf, MouseX.kr(0, BufFrames... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `LFDNoise1`."
},
{
"role": "assistant",
"content": "```supercollider\n// try wiggling mouse quickly;\n// LFNoise frequently seems stuck, LFDNoise changes smoothly.\n\n{ SinOsc.ar(LFNoise1.ar(MouseX.kr(0.1, 1000, 1), 2... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\nx = {\n // A collection of different tones:\n var son = SinOsc.ar((100, 100.3 .. 110));\n var val = ArrayMax.ar(son).at(0);\n val = LeakDC.ar(val); // the operation tends ... |
[
{
"role": "user",
"content": "What does `Fhn2DL.ar` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "FitzHughNagumo Neuron Firing Oscillator Arguments: minfreq, maxfreq — freq iteration; rateu — update rate for u; ratew — update rate for w; b0 — equation constant; b1 — equ... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n(\nNdef(\\nodeTest, {\n // the input\n var input = Impulse.ar([1, 3, 5].reciprocal, phase: [0, 0.133, 0.5]).sum;\n\n // the nodes, each takes its predecessor as input and estimates the duration between two events. \n... |
[
{
"role": "user",
"content": "Show me a self-contained SuperCollider patch using `Function`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\nx = { |freq = 440| SinOsc.ar(freq, 0, 0.3) }.play; // this returns a Synth object;\nx.set(\\freq, 880); // note yo... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n(\n//var board= CytonSerial(\"/dev/tty.usbserial-DM00DRM0\", initAction: {|b| b.start});\nvar board= PlaybackData(\"~/Desktop/OpenBCI-RAW-2019-04-10_19-04-26.txt\", initAction: {|b| b.start});\n~board= board;\n);\n\n~boar... |
[
{
"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": "Write a kick at amp 0.8 with a click. (osc saw, sweep 0.06, decay 0.35, f0 180, f1 48, 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 sw... |
[
{
"role": "user",
"content": "Write a self-contained SuperCollider patch that uses `SharedIn`. Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\n(\n// only works with the internal server\ns = Server.internal;\ns.boot;\n);\n\n(\nSynthDef(\"help-SharedIn1\", {\n ... |
[
{
"role": "user",
"content": "What does `FreqShift.ar` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Frequency Shifter. Arguments: in — The input signal.; freq — Amount of shift in cycles per second.; phase — Phase of the frequency shift (0..2pi).; mul; add."
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ Latoocarfian2DN.ar(MouseX.kr(20, SampleRate.ir * 0.5), MouseX.kr(40, SampleRate.ir), mul:0.2) }.play(s);\n\n\n(\n{ Latoocarfian2DN.ar(\n SampleRate.ir/4,\n SampleRate.ir,\n ... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n(//*********PREPARE**********\np.pop;\n//Any code that needs to access your own environment goes here\np = ProxySpace.push(s);\n~fxLoop.play.fadeTime_(5);\n);\n\n(//*********FXLoop**********\n~fxLoop = {\n var in = Soun... |
[
{
"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 = Dwhite(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;\n... |
[
{
"role": "user",
"content": "Show me a self-contained SuperCollider patch using `PV_PhaseShift`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\n\n(\nSynthDef(\"help-phaseShift\", { |out = 0|\n var in, chain;\n in = SinOsc.ar(500);... |
[
{
"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": "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 = Dser([1, 3, 2, 7, 8], 8);\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}.p... |
[
{
"role": "user",
"content": "Write an Ndef at 82.5 Hz I can retune while it plays. (ugens blip, cutoff 800, lfo 0.8, freq 82.5, 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 80... |
[
{
"role": "user",
"content": "What does `DataBuffer.readAccel` do?"
},
{
"role": "assistant",
"content": "read the accelerometer buffer and clear it. This should be called at regular intervals. Faster than the buffer is filling up (depends on sample Returns: a List of arrays with xyz values."
... |
[
{
"role": "user",
"content": "Show me a self-contained SuperCollider patch using `PV_PhaseShift`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\n\n(\nSynthDef(\"help-phaseShift\", { |out = 0|\n var in, chain;\n in = SinOsc.ar(500);... |
[
{
"role": "user",
"content": "Give me a fm kick with a 0.06 s pitch sweep. (osc fm, sweep 0.06, decay 0.25, f0 220, f1 55, amp 0.6, 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: fm oscillat... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\ns.boot;\n// Simple polling of median values - you could do this without a UGen!\nx = {|val=1, t_trig=0| MedianTriggered.kr(val, t_trig, 3).poll(t_trig, \"Median of recent 3 values\"); }.play;\nx.set(\\val, 10.rand.postln,... |
[
{
"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": "Write a SuperCollider patch that uses `Pan2` and actually plays. Assume nothing about the session."
},
{
"role": "assistant",
"content": "```supercollider\ng = Group.new;\n\n// make 4 synths in g\n// 1.0.rand2 returns a random number from -1 to 1.\n4.do({ { arg amp ... |
[
{
"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": "Explain `IRand` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "IRand — Single integer random number generator. Generates a single random integer value in uniform distribution from `lo` to `hi` . It generates this when the SynthDef first starts play... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `LinCongC`."
},
{
"role": "assistant",
"content": "```supercollider\n// default initial params\n{ LinCongC.ar(MouseX.kr(20, SampleRate.ir)) * 0.2 }.play(s);\n```"
}
] |
[
{
"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": "Show another SuperCollider example using `Compander`."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var z;\n\n // signal (clean)\n z = Decay2.ar(\n Impulse.ar(8, 0, LFSaw.kr(0.3, 1, -0.3, 0.3)),\n 0.001,\n 0.3\n )\n * Mix.ar(Pulse.ar(... |
[
{
"role": "user",
"content": "What does `AnnotatedDebugNodeWatcher.n_on` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Watches server replies for node ended/started events using AbstractPlayer's Node annotation system Arguments: nodeID; groupID; prevID; nextID."
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Env`."
},
{
"role": "assistant",
"content": "```supercollider\n// an envelope in a synth\n(\n{\n var env = Env([0, 1, 0.5, 1, 0], [0.01, 0.5, 0.02, 0.5]);\n SinOsc.ar(470) * EnvGen.kr(env, doneAction: Done.freeSelf)... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `LinCongC`."
},
{
"role": "assistant",
"content": "```supercollider\n// randomly modulate params\n(\n{ LinCongC.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 `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": "How do I granulate a sample with 0.2 s grains? (rate 14, dur 0.2, interp 2, mode noise1, rev 1)"
},
{
"role": "assistant",
"content": "Granulation is `GrainBuf` plus a trigger rate; the position can move:\n\n```supercollider\n// granular synth with GrainBuf\n(\ns.wa... |
[
{
"role": "user",
"content": "Write a granular texture, dry. (rate 6, dur 0.04, 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.waitForBoot {\n ... |
[
{
"role": "user",
"content": "How do I build a live drone with Ndef at 165 Hz? (ugens sine, cutoff 200, lfo 0.3, freq 165, amp 0.12)"
},
{
"role": "assistant",
"content": "Use `Ndef` when the patch has to change without stopping:\n\n```supercollider\n// Ndef drone: sine source through a 200 Hz l... |
[
{
"role": "user",
"content": "Explain `RedSequencer2` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "RedSequencer2 — simple sequencer Just a wrapper for a Duty ugen. Use Duty for more advanced sequencing. Category: Red > redUGens."
}
] |
[
{
"role": "user",
"content": "What is `Brusselator` in SuperCollider?"
},
{
"role": "assistant",
"content": "Brusselator — Prigogine oscillator Euler ODE solver implementation of the Brusselator equations (http://en.wikipedia.org/wiki/Brusselator). Category: UGens > Generators > Chaotic."
}
] |
[
{
"role": "user",
"content": "Give me a sine kick with a 0.06 s pitch sweep. (osc sine, sweep 0.06, decay 0.18, f0 220, 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: sine oscillator, 0.06... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Recorder`."
},
{
"role": "assistant",
"content": "```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(durati... |
[
{
"role": "user",
"content": "How do I granulate a sample with 0.15 s grains? (rate 10, dur 0.15, interp 2, mode noise, rev 1)"
},
{
"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": "What does `TempoBus.prepareToBundle` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "maintains a control Bus on the server with the current Tempo Arguments: group; bundle."
}
] |
[
{
"role": "user",
"content": "Give me a pluck with damping 0.5 on the reverb. (verb freeverb2, room 0.5, damp 0.5, mix 0.3, source pluck)"
},
{
"role": "assistant",
"content": "`FreeVerb` is in the core library; the room and damp arguments do the work:\n\n```supercollider\n// reverb: freeverb2 o... |
[
{
"role": "user",
"content": "Write a self-contained SuperCollider patch that uses `Ndef`. Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\nNdef(\\sound, { |freq = 56, numHarm = 10| Blip.ar(freq, numHarm, 30) * 0.2 }).play;\nNdef(\\sound).set(\\freq, 15);\nNde... |
[
{
"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": "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": "Show me a self-contained SuperCollider patch using `Fdef`: bind everything it needs first."
},
{
"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;\... |
[
{
"role": "user",
"content": "What is `GUI` in SuperCollider?"
},
{
"role": "assistant",
"content": "GUI — Factory abstraction for all GUI related core classes SuperCollider currently supports three operating system platforms: macOS, UNIX (Linux and FreeBSD) and Windows (with some limitations). ... |
[
{
"role": "user",
"content": "What is `ServerLogSentEvent` in SuperCollider?"
},
{
"role": "assistant",
"content": "ServerLogSentEvent — internal usage Category: Debugging."
}
] |
[
{
"role": "user",
"content": "What is `IdentityBag`?"
},
{
"role": "assistant",
"content": "IdentityBag — A Bag according to identity"
},
{
"role": "user",
"content": "What does `IdentityBag.add` do?"
},
{
"role": "assistant",
"content": "Add anObject to the Bag. A Bag ma... |
[
{
"role": "user",
"content": "Explain this SuperCollider code.\n```supercollider\ns.boot; // start the server\n\n// something to record\n(\nSynthDef(\"bubbles\", { |out|\n var f, sound;\n f = LFSaw.kr(0.4, 0, 24, LFSaw.kr([8, 7.23], 0, 3, 80)).midicps; // glissando function\n sound = CombN.ar(SinOsc.ar(f... |
[
{
"role": "user",
"content": "Explain `PlaneTree` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "PlaneTree — Tree classifier using (hyper)planes – UGen or language-side // Server-side (for use in synths): Category: UGens."
}
] |
[
{
"role": "user",
"content": "What does `PathName.nextName` do?"
},
{
"role": "assistant",
"content": "generates a sensible next name for a file by incrementing a number at the end of PathName, or by adding one if there is none. This is useful for recording files with consecutive names, and e.g.... |
[
{
"role": "user",
"content": "How do I granulate a sample with 0.2 s grains? (rate 16, dur 0.2, 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 `FreqScope` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "FreqScope — Frequency spectrum visualizer FreqScope shows the frequency spectrum of the specified audio bus. The scope will remain active after a command-period. To turn it off you ... |
[
{
"role": "user",
"content": "Build a slowly evolving drone with Ndef."
},
{
"role": "assistant",
"content": "Ndef gives you a named patch you can redefine while it plays; the filter is a separate node in the\nchain so you can change it on its own.\n\n```supercollider\n(\nNdef(\\drone, { |freq =... |
[
{
"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 = Dxrand([1, 3, 2, 7, 8], inf);\n trig = Impulse.kr(MouseX.kr(1, 400, 1));\n freq = Demand.kr(trig, 0, a) * 30 + 340;\n SinOsc.ar(freq) * 0.1\n... |
[
{
"role": "user",
"content": "Write a granular texture, through a reverb. (rate 14, dur 0.04, interp 4, mode sweep, rev 1)"
},
{
"role": "assistant",
"content": "`GrainBuf` needs a buffer, a trigger and a grain duration:\n\n```supercollider\n// granular synth with GrainBuf\n(\ns.waitForBoot {\n ... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `BLowPass`."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\n(\nz = {\n BLowPass.ar(\n SoundIn.ar([0, 1]),\n MouseX.kr(10, 20000, \\exponential), // cutoff freq.\n MouseY.kr(0.0, 1.0, \\linea... |
[
{
"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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.