conversations listlengths 2 6 |
|---|
[
{
"role": "user",
"content": "Write a kick whose tail uses freeverb2. (verb freeverb2, room 0.5, damp 0.5, mix 0.45, source kick)"
},
{
"role": "assistant",
"content": "A send-style patch: dry signal plus the reverb on the tail:\n\n```supercollider\n// reverb: freeverb2 on a kick\n(\nSynthDef(\\... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\ns.boot\n\n{Perlin3.ar(Integrator.ar(K2A.ar(MouseX.kr(0, 0.1))), Integrator.ar(K2A.ar(MouseY.kr(0, 0.1))))}.play(s)\n\n{Perlin3.ar(*{Line.ar(0, 1000, 30)}.dup(3))}.plot(1\n```"
... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n(\nb = Bus.audio(s, 2);\na = { |inbus = 0|\n var sig = In.ar(inbus, 2);\n // x axis is side, oriented toward right;\n // y axis is mid\n [sig[1] - sig[0], sig.sum]\n}.play(s.defaultGroup, outbus: b, addAction: \\addA... |
[
{
"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": "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": "What is `Nil`?"
},
{
"role": "assistant",
"content": "Nil — Represents uninitialized data"
},
{
"role": "user",
"content": "What does `Nil.isNil` do?"
},
{
"role": "assistant",
"content": "Answers true because this is nil. In class Object thi... |
[
{
"role": "user",
"content": "Write an Ndef at 165 Hz I can retune while it plays. (ugens saw, cutoff 400, 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: saw source through a 400 Hz... |
[
{
"role": "user",
"content": "Saving \"Presets\"?"
},
{
"role": "assistant",
"content": "SuperCollider forum — Saving \"Presets\"?\n\nIf you don’t care too much about it being human readable, just use writeArchive and readArchive:\n\n```supercollider\na = Array.fill(400, {rrand(0,2200)});\n\na.w... |
[
{
"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": "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\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;\n```"
},
{
"role"... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `In`."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\"help-InKr\", { |out = 0, in = 0|\n Out.ar(out,\n SinOsc.ar(In.kr(in, 1), 0, 0.1)\n )\n}).add;\nSynthDef(\"help-lfo\", { |out = 0|\n Out.kr(out... |
[
{
"role": "user",
"content": "What is `Osc` in SuperCollider?"
},
{
"role": "assistant",
"content": "Osc — Interpolating wavetable oscillator. Linear interpolating wavetable lookup oscillator with frequency and phase modulation inputs. Category: UGens > Generators > Deterministic."
}
] |
[
{
"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": "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": "Explain `BinaryOpStream` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "BinaryOpStream — two streams combined by a binary operator A BinaryOpStream is created as a result of a binary math operation on a pair of Streams. It is defined to respond to ... |
[
{
"role": "user",
"content": "What is a Buffer, and how is it different from a SoundFile?"
},
{
"role": "assistant",
"content": "A Buffer is server-side memory: an array of samples (or a wavetable) living on scsynth, addressed by an integer bufnum. A SoundFile is a language-side object for readi... |
[
{
"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": "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": "What is a SynthDef?"
},
{
"role": "assistant",
"content": "A SynthDef is a named, compiled server-side instrument: a UGen graph plus named controls. You build one with SynthDef(\\name, { |args| ... }).add, and then play instances with Synth(\\name)."
}
] |
[
{
"role": "user",
"content": "Explain `GrayNoise` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "GrayNoise — Bit-flipping Noise Generates noise which results from flipping random bits in a word.foot Generated through mathX_{0} = 1;\\;X_{n+1} = X_{n} \\oplus z, where math\\oplus... |
[
{
"role": "user",
"content": "Write a bell whose tail uses gverb. (verb gverb, room 0.7, damp 0.2, mix 0.3, source bell)"
},
{
"role": "assistant",
"content": "Put the reverb inside the `SynthDef` so it is part of the voice:\n\n```supercollider\n// reverb: gverb on a bell\n(\nSynthDef(\\reverb_s... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `ProxySpace`."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\n\np = ProxySpace.new;\np.fadeTime = 2; // fadeTime specifies crossfade\np[\\out].play; // monitor an empty placeholder through hardware ou... |
[
{
"role": "user",
"content": "Write a GrainBuf synth at 20 grains per second. (rate 20, dur 0.1, interp 2, 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 GrainBuf\n(\ns.wa... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// as frequency control...\n(\n{\nSinOsc.ar(\n LinCongL.ar(\n 40,\n LFNoise2.kr(0.1, 0.1, 1),\n LFNoise2.kr(0.1, 0.1, 0.1),\n LFNoise2.kr(0.1),\n 0, 500, 600\n )... |
[
{
"role": "user",
"content": "What does `View.moveTo` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Move the view to new position, preserving its Arguments: x — An Int: the horizontal position of the new position.; y — An Int: the vertical position of the new position..... |
[
{
"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": "Write a minimal SuperCollider example that uses `TwoZero`."
},
{
"role": "assistant",
"content": "```supercollider\n{ TwoZero.ar(WhiteNoise.ar(0.125), XLine.kr(20, 20000, 8), 1) }.play\n```"
}
] |
[
{
"role": "user",
"content": "Show another SuperCollider example using `BusPlug`."
},
{
"role": "assistant",
"content": "```supercollider\nb = BusPlug.new;\n{ Blip.ar(b + 5) }.play;\nb.bus.set(12);\n```"
}
] |
[
{
"role": "user",
"content": "What does `PatchOut.scalar` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "manages a Player's output when connecting to other Players Arguments: source; group; bus."
}
] |
[
{
"role": "user",
"content": "What does `MemoRoutine.new` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Creates a MemoRoutine instance with the given Arguments: func — Function to instantiate the Routine with.; stackSize — Call stack depth, defaults to 512.; bufSize — N... |
[
{
"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": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ OnePole.ar(WhiteNoise.ar(0.5), 0.95) }.play\n\n{ OnePole.ar(WhiteNoise.ar(0.5), -0.95) }.play\n\n{ OnePole.ar(WhiteNoise.ar(0.5), Line.kr(-0.99, 0.99, 10) }.play\n```"
},
{... |
[
{
"role": "user",
"content": "How do I make a kick that starts at 180 Hz and falls to 40 Hz? (osc saw, sweep 0.06, decay 0.18, f0 180, f1 40, 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// kic... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ BPF.ar(BrownNoise.ar(0.1.dup), MouseX.kr(40, 17000, 1), 0.2 }.play;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis opened... |
[
{
"role": "user",
"content": "Give me a granular patch with sweep grain position and interp 4. (rate 14, dur 0.04, interp 4, mode sweep, rev 0)"
},
{
"role": "assistant",
"content": "`GrainBuf` needs a buffer, a trigger and a grain duration:\n\n```supercollider\n// granular synth with GrainBuf\n... |
[
{
"role": "user",
"content": "What does `Char.toLower` do?"
},
{
"role": "assistant",
"content": "ASCII character Returns: a lower case version of a char. Nonalphabetic chars return themselves."
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```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.1)\n}.play\n // > outputs ... |
[
{
"role": "user",
"content": "Write an Ndef at 82.5 Hz I can retune while it plays. (ugens sine, cutoff 1400, lfo 0.3, freq 82.5, 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: sine source ... |
[
{
"role": "user",
"content": "What does `BSpline.bSplineIntDeltaControls` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "(describe method Arguments: list — (describe argument here). Returns: (returnvalue)"
}
] |
[
{
"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": "Explain `PatternProxy` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "PatternProxy — stream reference Keeps a reference to a stream that can be replaced while playing. Multiple streams are thus handled without creating dependencies. Category: JITLi... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `PV_RandComb`."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\nc = Buffer.read(s, ExampleFiles.child);\n\n(\nSynthDef(\"help-randcomb\", { |out = 0|\n var sig, chain;\n sig = WhiteNoise.ar(0.8);\n ... |
[
{
"role": "user",
"content": "What does `SequenceableCollection.obtain` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Retrieve an element from a given index (like SequenceableCollection#-at). This method is also implemented in Object, so that you can use it in situation... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `RunningSum`."
},
{
"role": "assistant",
"content": "```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}.p... |
[
{
"role": "user",
"content": "What does `AbstractPlayerGui.synthConsole` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "standard play/record/etc. controls using SynthConsole. you can override this method in subclasses to Arguments: layout."
}
] |
[
{
"role": "user",
"content": "What were you trained on?"
},
{
"role": "assistant",
"content": "The official SuperCollider tree, 321 Quarks, sccode.org, scsynth.org, sc3-plugins and this project's own sessions: 25.8M tokens, then 6,000 supervised rows whose code answers all compile."
}
] |
[
{
"role": "user",
"content": "Write a kick drum with a 0.5 s decay. (osc sine, sweep 0.06, decay 0.5, f0 150, 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: sine oscillator, ... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `PV_RectComb`."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var sig, chain;\n sig = WhiteNoise.ar(0.2);\n chain = FFT(LocalBuf(2048), sig);\n chain = PV_RectComb(chain, 8, LFTri.kr(0.097, 0, 0.4,... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\nNdef(\\maus, { MouseX.kr });\nNdef(\\haus, { Blip.ar(Ndef.kr(\\maus) * 70) }).play;\nNdef(\\haus).reshaping = \\elastic;\nNdef(\\maus).reshaping = \\elastic;\nNdef(\\maus, { LFNo... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\ns.boot;\n(\nz = {\nBBandPass.ar(\n SoundIn.ar([0, 1]),\n MouseX.kr(20, 20000, \\exponential),\n MouseY.kr(0.0, 10.0, \\linear), // bw\n 0.5); // mul\n}.play)\nz.release;\n\n(... |
[
{
"role": "user",
"content": "What does `FlowLayout.new` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "A view decorator which autowraps the view contents Arguments: bounds — An instance of Rect. Normally set to the `parent.bounds`.; margin — An instance of Point. The ho... |
[
{
"role": "user",
"content": "What does `OSCSched.qsched` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "will happen at the next even division ( 4.0 means on the downbeat of a 4/4 bar ), or immediately if you happen to be exactly on a Arguments: quantize; server; bundle;... |
[
{
"role": "user",
"content": "Explain this SuperCollider code.\n```supercollider\n// use input amplitude to control Pulse amplitude - use headphones to prevent feedback.\n{ Pulse.ar(90, 0.3, Amplitude.kr(SoundIn.ar(0))) }.play;\n```"
},
{
"role": "assistant",
"content": "use input amplitude to c... |
[
{
"role": "user",
"content": "What does `CytonSerial.new` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "open Arguments: port — a String with the name of the serial port. by default this is `\"/dev/tty.usbserial-DM00DRM0\"`; baudrate — it is not recommended to change thi... |
[
{
"role": "user",
"content": "What is `SystemSynthDefs`?"
},
{
"role": "assistant",
"content": "SystemSynthDefs — SynthDefs assumed to exist on the server"
},
{
"role": "user",
"content": "What does `SystemSynthDefs.numChannels` do?"
},
{
"role": "assistant",
"content": "... |
[
{
"role": "user",
"content": "What does `DataRecord.new` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "create a new Arguments: board — a OpenBCI board. For example a SyntheticData or a CytonWifi.; path — a String pointing to a directory where the file should be created.... |
[
{
"role": "user",
"content": "Write a kick at amp 0.6 with no click. (osc fm, sweep 0.06, decay 0.5, f0 180, f1 40, 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: fm oscillator, 0.0... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// vary frequency\n{ StandardL.ar(MouseX.kr(20, SampleRate.ir)) * 0.3 }.play(s;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthe... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\nr = Recorder(s);\n{ GVerb.ar(Dust.ar(4)) }.play; // play on bus 64\nr.record(numChannels: 2;\nr.stopRecording;\n```"
},
{
"role": "assistant",
"content": "A closing b... |
[
{
"role": "user",
"content": "What is the difference between Line and XLine?"
},
{
"role": "assistant",
"content": "Both are ramps: `Line.kr(start, end, dur, mul, add, doneAction)` moves linearly, `XLine.kr(...)` moves exponentially in a fixed ratio per unit time. Use Line for amplitude and XLin... |
[
{
"role": "user",
"content": "How do I make a kick that starts at 150 Hz and falls to 40 Hz? (osc fm, sweep 0.06, decay 0.5, f0 150, 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 ... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ SinOsc.ar(SinOsc.ar(0.3).curverange(440, 660, -3), 0, 0.5 * 0.1 }.play;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis op... |
[
{
"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": "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": "What is `AminoacidPattern` in SuperCollider?"
},
{
"role": "assistant",
"content": "AminoacidPattern — A pattern that translates a genome string to a stream of aminoacid indices. Category: Streams-Patterns-Events, Sonification."
}
] |
[
{
"role": "user",
"content": "Give me a bell with damping 0.2 on the reverb. (verb freeverb2, room 0.85, damp 0.2, mix 0.3, source bell)"
},
{
"role": "assistant",
"content": "`FreeVerb` is in the core library; the room and damp arguments do the work:\n\n```supercollider\n// reverb: freeverb2 on... |
[
{
"role": "user",
"content": "Write an Ndef with a tri source and a 200 Hz low-pass. (ugens tri, cutoff 200, lfo 0.3, freq 220, 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 200 ... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `ProxySynthDef`."
},
{
"role": "assistant",
"content": "```supercollider\na = ProxySynthDef(\"xtest\", { SinOsc.ar(400) * 0.1 });\n\na.add;\n\nx = Synth(\"xtest\");\nx.release;\n\n\n/*\n\n if the resulting number of c... |
[
{
"role": "user",
"content": "How do I play a random majorPentatonic scale at octave 6? (scale majorPentatonic, seq Pseq, dur 0.2, octave 6, instr fm, root 0)"
},
{
"role": "assistant",
"content": "`Pbind` sequences an Event per beat, and `\\degree` + `\\scale` does the pitch:\n\n```supercollide... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n(\n{\nvar trigger, fund, flashInst;\nflashInst = Array.fill(7,\n{\ntrigger = Dust.kr(2)*PinkNoise.ar(1);\nfund = rrand(100, 137);\nPan2.ar(\nMix.ar(\nArray.fill(7,\n{arg counter;\nvar partial;\npartial = counter + 3;\n//... |
[
{
"role": "user",
"content": "Show me a self-contained SuperCollider patch using `BufSampleRate`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\nb = Buffer.read(s, ExampleFiles.child);\n\n// compares a 1102.5 Hz sine tone (11025 * 0.1, left) with a 1100 ... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n(\n{\n~a={SinOsc.ar([22.5, 23], mul: ChaosGen.allSubclasses.choose.ar(rrand(1, 30))* 0.3)};\n~b={SinOsc.ar([22.5, 23], mul: 0.3)};\n~c={SinOsc.ar([22.5, 23]*400, mul: ChaosGen.allSubclasses.choose.ar(rrand(1, 30))* 0.03)... |
[
{
"role": "user",
"content": "Explain `ActionButton` in SuperCollider briefly."
},
{
"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 > cru... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\ns.boot;\n(\nz = {\n BLowPass4.ar(\n SoundIn.ar([0, 1]),\n MouseX.kr(10, 20000, \\exponential), // cutoff freq.\n MouseY.kr(0.1, 1.0, \\linear), // rq - compensate for 2... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `PulseDivider`."
},
{
"role": "assistant",
"content": "```supercollider\nSynthDef(\"help-PulseDivider\", { |out = 0|\n var p, a, b;\n p = Impulse.ar(8);\n a = SinOsc.ar(1200, 0, Decay2.ar(p, 0.005, 0.1));\n b = Sin... |
[
{
"role": "user",
"content": "Write a kick at amp 0.8 with a click. (osc saw, sweep 0.06, decay 0.12, f0 180, f1 40, 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": "What is `PV_BrickWall` in SuperCollider?"
},
{
"role": "assistant",
"content": "PV_BrickWall — Zero bins. Clears bins above or below a cutoff point. Category: UGens > FFT."
}
] |
[
{
"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": "What does this SuperCollider code do?\n```supercollider\n// The finishing of a ZeroXBufRd is not detemined by finite demand rate ugens but by an overall envelope, \n// its release section is triggered by a maximum number of half wavesets ('length') or a maximum time. \n\n// Buf... |
[
{
"role": "user",
"content": "How do I granulate a sample with 0.04 s grains? (rate 10, dur 0.04, 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(... |
[
{
"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": "List of exit codes?"
},
{
"role": "assistant",
"content": "SuperCollider forum — List of exit codes?\n\n7068696c:\n\n```supercollider\no = s.options;\no.inDevice = nil;\no.outDevice = \"ASIO : ASIO4ALL\";\n```\n\nHmmmm... In earlier SC versions, it wouldn’t have wor... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\nSynthDef(\"help-PinkNoise\", { |out = 0|\n Out.ar(out,\n PinkNoise.ar(0.4)\n )\n}).play;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is miss... |
[
{
"role": "user",
"content": "What does `PlayerSocket.qwake` do?"
},
{
"role": "assistant",
"content": "a player that can play other players using a cross-faded and fuse-protected socket"
}
] |
[
{
"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 = Drand([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": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\nb = Buffer.read(s, ExampleFiles.child);\n\n// indexing with a phasor\n{ BufRd.ar(1, b, Phasor.ar(0, BufRateScale.kr(b), 0, BufFrames.kr(b))) }.play;\n\n// indexing by hand\n{ Buf... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\nSynthDef(\"help-Rand\", { |out = 0|\n Out.ar(out,\n FSinOsc.ar(\n Rand(200.0, 400.0),\n 0, Line.kr(0.2, 0, 1, doneAction: Done.freeSelf))\n )\n}).add;\n);\n\n(\... |
[
{
"role": "user",
"content": "Show me a self-contained SuperCollider patch using `NdefGui`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\n(\np = ProxySpace.push(s.boot);\n\nl = NdefGui(nil, 3).moveTo(10, 120);\nm = NdefGui(nil, 3).moveTo(10, 240);\nn = ... |
[
{
"role": "user",
"content": "Explain `PLcauchy` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "PLcauchy — dynamic scope Pcauchy variant Takes Symbol args for later reference by the Streams, which will read from variables in the Environments of their instantiation. See PLx_suit... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `NamedControl`."
},
{
"role": "assistant",
"content": "```supercollider\n// multiple usage of the same name:\na = { SinOsc.ar(\\freq.kr(440, 1.0)) + Saw.ar(\\freq.kr(440, 1.0) * 0.5) * 0.1 }.play;\n\na.set(\\freq, 1220);\na.s... |
[
{
"role": "user",
"content": "What is `IFFT`?"
},
{
"role": "assistant",
"content": "IFFT — Inverse Fast Fourier Transform"
},
{
"role": "user",
"content": "What does `IFFT.new` do?"
},
{
"role": "assistant",
"content": "returns a time domain signal from converting the FF... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\nNdef(\\sound, { SinOsc.ar([600, 635], Ndef.ar(\\sound), LFNoise1.kr(2).max(0) * 0.2) });\nNdef(\\sound.play;\nNdef.clear;\n```"
},
{
"role": "assistant",
"content": "... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```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, WhiteNoise.ar);\nDelayN.ar(z, 0.2, 0.2, 1, z); // input is mixed with d... |
[
{
"role": "user",
"content": "What is `GrainIn` in SuperCollider?"
},
{
"role": "assistant",
"content": "GrainIn — Granulate an input signal Category: UGens > Generators > Granular."
}
] |
[
{
"role": "user",
"content": "How do I make a kick that starts at 220 Hz and falls to 48 Hz? (osc fm, sweep 0.06, decay 0.18, f0 220, f1 48, 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... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `DigitalOut`."
},
{
"role": "assistant",
"content": "```supercollider\n// write a sine oscillator's output to a pin\n\n(\nSynthDef(\"help-DigitalOut\", { |out = 0|\n DigitalOut.ar(0, SinOsc.ar(10));\n}).play;\n)\n``... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// default initial params\n{ LatoocarfianL.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//Should really only do this in NRT, but does work if low load in RT \n(\na = {\n \n~featuresave = FeatureSave.kr(SinOsc.kr,Impulse.kr(10)-0.5); \n \n}.play \n);\n\ns.send... |
[
{
"role": "user",
"content": "Write a SuperCollider patch that uses `BusPlug` and actually plays. Assume nothing about the session."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\nz = Bus.control(s, 16);\nz.setn({ |i| (i * 5).nthPrime } ! 16 * 5 + 100);\na = BusPlug.for(z);\n{ ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.