conversations listlengths 2 6 |
|---|
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n// derived from an answer by Sergio Luque to a mail to the sc-users SuperCollider mailing list on 2013/03/22\n\n(\nvar registerSize = 16;\nvar min =\"C2\".namemidi.asInteger;\nvar max = \"C6\".namemidi.asInteger;\nvar wa... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n(\n~resize_enveloppe = { | levels, times |\n var reverted_levels, index;\n index = 0;\n reverted_levels = levels.reverse;\n while( { reverted_levels[index] == 0 && reverted_levels[index+1] == 0 }, { times[ times.size... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Unpack1FFT`."
},
{
"role": "assistant",
"content": "```supercollider\n// Let's extract the DC component - i.e. the magnitude at binindex zero.\n(\n{\n var sig, chain, stream, windowStarts, demand;\n var fftsize = 10... |
[
{
"role": "user",
"content": "Write a SuperCollider patch that uses `FFTTrigger` and actually plays. Assume nothing about the session."
},
{
"role": "assistant",
"content": "```supercollider\n// Reminder: This isn't the intended typical usage! It's OK to do this though.\n(\nx = {\n var mags, ph... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `LPF`."
},
{
"role": "assistant",
"content": "```supercollider\n{ LPF.ar(Saw.ar(200, 0.1), SinOsc.kr(XLine.kr(0.7, 300, 20), 0, 3600, 4000)) }.play;\n\n// kr:\n(\n{ var ctl = LPF.kr(LFPulse.kr(8), SinOsc.kr(XLine.kr(1,... |
[
{
"role": "user",
"content": "Give me a Pbind with fm voices and a 0.4 rhythm. (scale minorPentatonic, seq Pseq, dur 0.4, octave 6, instr fm, root 0)"
},
{
"role": "assistant",
"content": "The pattern is the composition here; `\\strum` spreads the chord:\n\n```supercollider\n(\nSynthDef(\\fm_voi... |
[
{
"role": "user",
"content": "Write a Pbind in majorPentatonic using Pwalk for the degrees. (scale majorPentatonic, seq Pwalk, dur 0.3, octave 4, instr sine, root 0)"
},
{
"role": "assistant",
"content": "The pattern is the composition here; `\\strum` spreads the chord:\n\n```supercollider\n(\nS... |
[
{
"role": "user",
"content": "How do I build a live drone with Ndef at 55 Hz? (ugens sine, 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: sine source through ... |
[
{
"role": "user",
"content": "Write a GrainBuf synth at 20 grains per second. (rate 20, dur 0.1, interp 4, mode sweep, rev 1)"
},
{
"role": "assistant",
"content": "A working granular patch, with the buffer loaded before the synth starts:\n\n```supercollider\n// granular synth with GrainBuf\n(\n... |
[
{
"role": "user",
"content": "What is `PauseSelfWhenDone` in SuperCollider?"
},
{
"role": "assistant",
"content": "PauseSelfWhenDone — FIXME: PauseSelfWhenDone purpose. FIXME: PauseSelfWhenDone description. Category: UGens > Synth control, UGens > Undocumented."
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Dxrand`."
},
{
"role": "assistant",
"content": "```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;... |
[
{
"role": "user",
"content": "My pattern keeps playing after I press Ctrl+."
},
{
"role": "assistant",
"content": "Ctrl+. (CmdPeriod) stops everything scheduled on the clocks, including Patterns. If yours survives, it is not scheduled on a clock — most often it is a `Synth` created directly, or ... |
[
{
"role": "user",
"content": "What does `SimpleDMX.addChannelVals` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "add values to the internal DMX state. The values are added to the respective Arguments: channel — the index where to start inserting values.; vals — an array... |
[
{
"role": "user",
"content": "What does `UChain.trimStart` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "(describe method Arguments: newStart — (describe argument here); removeFade — (describe argument here). Returns: (returnvalue)"
}
] |
[
{
"role": "user",
"content": "Show me a self-contained SuperCollider patch using `FreqScopeView`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\n// Start server\ns.boot;\n\n// Create analyzer in a window\n(\nw = Window(\"My Analyzer\", Rect(0, 0, 511, 30... |
[
{
"role": "user",
"content": "Explain `CutFunc` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "CutFunc — Breakbeat cut rendering with an arbitrary function Cut renderer calling an arbitrary function. The function will be called at s.latency seconds before the cut is timed to oc... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `PV_BrickWall`."
},
{
"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 = PV_BrickWall(chain, SinOsc.kr(0.1));... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\np = PHS(h, [], 0.15, [ \\midinote, Pkey(\\val) ]).play;\n\n// also:\n// p = PHS(h, [], 0.15, [ \\midinote, Pfunc { |e| e.use { ~val } } ]).play;\n\n// stop allows resuming, cleanup with free or Cmd-. \n\np.stop; // HS sy... |
[
{
"role": "user",
"content": "Write a SuperCollider patch for Using sine waves to generate a saw waveform. Start by defining the values the patch depends on."
},
{
"role": "assistant",
"content": "```supercollider\nq={|f,e|a=Array.fill(e,{|j|e-j}).reverse;(Mix.ar(a.collect{|x|SinOsc.ar(f*x,0,1/x... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\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... |
[
{
"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": "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{ RHPF.ar(Saw.ar(200, 0.1), FSinOsc.kr(XLine.kr(0.7, 300, 20), 0, 3600, 4000), 0.2) }.play;\n\n(\n{ var ctl = RHPF.kr(LFSaw.kr(2), SinOsc.kr(XLine.kr(0.07, 30, 20), 0, 35, 40),... |
[
{
"role": "user",
"content": "Write a self-contained SuperCollider patch that uses `LFNoise1`. Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\nb = Bus.control(s, 1);\n\na = {\n var freq;\n freq = LFNoise1.kr(2, 600, 800);\n Out.kr(b, freq); // no need ... |
[
{
"role": "user",
"content": "What does `ArrayedCollection.takeAt` do?"
},
{
"role": "assistant",
"content": "Similar to #-removeAt, but does not maintain the order of the items following the one that was removed. Instead, the last item is placed into the position of the removed item and the arr... |
[
{
"role": "user",
"content": "What does `ArrayBuffer.at` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "given an array, will allocate and fill a Buffer for use in Patch etc Arguments: i."
}
] |
[
{
"role": "user",
"content": "What does `Signal.overWrite` do?"
},
{
"role": "assistant",
"content": "Write a signal to myself starting at the index. If the other signal is too long only the first part is overdubbed. `a = Signal.fill(10,"
}
] |
[
{
"role": "user",
"content": "Write a Pbind in minorPentatonic using Pshuf for the degrees. (scale minorPentatonic, seq Pshuf, dur 0.3, octave 5, instr fm, root 0)"
},
{
"role": "assistant",
"content": "`Pbind` sequences an Event per beat, and `\\degree` + `\\scale` does the pitch:\n\n```superco... |
[
{
"role": "user",
"content": "Explain this SuperCollider code.\n```supercollider\n// larger pitch range and lookBack in upper voice \n// as with most patterns, no automatic array expansion of pattern arguments\n\n(\n~src = Pseg(Pseq([65, 85], inf), 5, \\sin).round;\n\np = Pbind(\n \\dur, 1/7,\n \\midinote... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\n// used to lag pitch\n{\n SinOsc.ar( // sine wave\n VarLag.kr( // lag the modulator\n LFPulse.kr(1... |
[
{
"role": "user",
"content": "How do I make a kick that starts at 150 Hz and falls to 40 Hz? (osc saw, sweep 0.06, decay 0.12, f0 150, f1 40, amp 0.8, rev 1)"
},
{
"role": "assistant",
"content": "A kick is a sine with a fast pitch drop and a short amplitude envelope:\n\n```supercollider\n// kic... |
[
{
"role": "user",
"content": "What does `SplineGui.gui` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "See also examples below. Arguments: parent — nil, Window, composite view, FlowView; bounds — nil or Rect; argSpec — optional spec; argDomainSpec — optional spec, see be... |
[
{
"role": "user",
"content": "What does `AbstractFunction.tanh` do?"
},
{
"role": "assistant",
"content": "An object which responds to a set of messages that represent mathematical functions"
}
] |
[
{
"role": "user",
"content": "Write a SuperCollider patch that uses `Ball` and actually plays. Assume nothing about the session."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var f, sf;\n sf = K2A.ar(MouseX.kr > 0.5) > 0;\n f = Ball.ar(sf, MouseY.kr(0.01, 20, 1), 0.01);\n f... |
[
{
"role": "user",
"content": "What does `PLtuple.new` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Creates a new PLtuple Arguments: list — Symbol or Ptuple list arg. If a Symbol is passed, list can be assigned to an envir variable later on. This lists's elements can be... |
[
{
"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// logistic map\n// equation: x1 = -r*x0^2 + r*x0\n(\n{ var r;\n r = MouseX.kr(3.5441, 4); // stable range\n QuadC.ar(SampleRate.ir/4, r.neg, r, 0, 0.1) * 0.4;\n}.play(s);\n``... |
[
{
"role": "user",
"content": "Write a SuperCollider patch that uses `Dseries` and actually plays. Assume nothing about the session."
},
{
"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 = D... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\n{\n var a, freq, trig;\n a = Dibrown(0, 15, 1, inf);\n trig = Impulse.kr(MouseX.kr(1, 40, 1));\n freq = Demand.kr(trig, 0, a) * 30 + 340;\n SinOsc.ar(freq) * 0.1\n\n}.pla... |
[
{
"role": "user",
"content": "Write a SuperCollider patch for Feedback resonator. Start by defining the values the patch depends on."
},
{
"role": "assistant",
"content": "```supercollider\n// Resonator, must subtract blockSize for correct tuning\n(\nSynthDef(\"testRes\", {\n \nvar freq = 300, ... |
[
{
"role": "user",
"content": "What is `Platform`?"
},
{
"role": "assistant",
"content": "Platform — handle cross-platform differencies"
},
{
"role": "user",
"content": "What does `Platform.case` do?"
},
{
"role": "assistant",
"content": "Perform actions depending on the c... |
[
{
"role": "user",
"content": "Give me a Pbind with pluck voices and a 0.4 rhythm. (scale majorPentatonic, seq Pwalk, dur 0.4, octave 5, instr pluck, root 0)"
},
{
"role": "assistant",
"content": "`Pbind` sequences an Event per beat, and `\\degree` + `\\scale` does the pitch:\n\n```supercollider\... |
[
{
"role": "user",
"content": "Write a 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": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ Lorenz2DC.ar(8800, 16000) }.play(s);\n\n// randomly modulate params\n(\n{ Lorenz2DC.ar(\n 110, 22050,\n LFNoise2.kr(1, 2, 10),\n 20,\n LFNoise2.kr(1, 1.5, 2),\n 0.01\n) * ... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ OneZero.ar(WhiteNoise.ar(0.5), 0.5) }.play\n\n{ OneZero.ar(WhiteNoise.ar(0.5), -0.5) }.play\n\n{ OneZero.ar(WhiteNoise.ar(0.5), Line.kr(-0.5, 0.5, 10) }.play\n```"
},
{
... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `PV_PhaseShift`."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\n\n(\nSynthDef(\"help-phaseShift\", { |out = 0|\n var in, chain;\n in = SinOsc.ar(500);\n chain = FFT(LocalBuf(2048... |
[
{
"role": "user",
"content": "How do I build a live drone with Ndef at 110 Hz? (ugens blip, cutoff 200, lfo 0.8, freq 110, amp 0.12)"
},
{
"role": "assistant",
"content": "`Ndef` is a named proxy you can redefine while it is playing:\n\n```supercollider\n// Ndef drone: blip source through a 200 ... |
[
{
"role": "user",
"content": "What does `UChain.start` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "(describe method Arguments: target — (describe argument here); startPos — (describe argument here); latency — (describe argument here). Returns: (returnvalue)"
}
] |
[
{
"role": "user",
"content": "Show me a self-contained SuperCollider patch using `SampleRate`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\n// compares a 441 Hz sine tone derived from sample rate (44100 * 0.01, left)\n// with a 440 Hz tone (right), res... |
[
{
"role": "user",
"content": "Write an Ndef with a blip source and a 200 Hz low-pass. (ugens blip, cutoff 200, 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 20... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// needs Buffer c prepared above\n\n(\ny = {\n var add = LFDNoise3.ar(0.3) * [0.05, 0.0505];\n GFIS.ar(\n { |x| BufRd.ar(1, c, c.numFrames * (x + add)) }, \n (LFDNoise3.a... |
[
{
"role": "user",
"content": "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": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// linexp\n(\n{\n var mod = LFNoise2.ar(80);\n SinOsc.ar(mod.linexp(-1, 1, MouseX.kr(200, 8000, 1), MouseY.kr(200, 8000, 1))) * 0.1\n}.play;\n);\n\n// exprange\n(\n{\n var mod... |
[
{
"role": "user",
"content": "Show me a self-contained SuperCollider patch using `Rand`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```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.... |
[
{
"role": "user",
"content": "Write a GrainBuf synth at 28 grains per second. (rate 28, dur 0.04, interp 2, mode noise1, rev 0)"
},
{
"role": "assistant",
"content": "Granulation is `GrainBuf` plus a trigger rate; the position can move:\n\n```supercollider\n// granular synth with GrainBuf\n(\ns.... |
[
{
"role": "user",
"content": "Explain this SuperCollider code.\n```supercollider\n// wait\n\n(\nvar r;\nr = Routine {\n 10.do({ |a|\n a.postln;\n // Often you might see Wait being used to pause a routine\n // This waits for one second between each number\n 1.wait;\n });\n // Wait half second ... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n(\nvar carrier, modulator, depth, scale;\n\ncarrier = 440;\nmodulator = 650;\ndepth = 355.2;\n\n// generate a 5 step scale, picking the 5 most consonant steps from the dissonance curve\nscale = DissonanceCurve.fm(carrier,... |
[
{
"role": "user",
"content": "What does `Server.inputBus` do?"
},
{
"role": "assistant",
"content": "Return a Bus object that represents the input audio"
}
] |
[
{
"role": "user",
"content": "Write a SuperCollider patch that uses `DigitalOut` and actually plays. Assume nothing about the session."
},
{
"role": "assistant",
"content": "```supercollider\n// write a sine oscillator's output to a pin\n\n(\nSynthDef(\"help-DigitalOut\", { |out = 0|\n Digita... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `ExpRand`."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\"help-ExpRand\", { |out = 0|\n Out.ar(out,\n FSinOsc.ar(\n ExpRand(100.0, 8000.0),\n 0, Line.kr(0.2, 0, 0.01, doneAction: D... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `DelayL`."
},
{
"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 `FunctionDef.varArgs` do?"
},
{
"role": "assistant",
"content": "Return whether function has ellipsis argument. `{ |a, b ... c| a + b * c }.def.varArgs; //"
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\n Instr(\\helpTempoPlayer,{\n Impulse.ar( Tempo.kr )\n });\n\n Patch(\\helpTempoPlayer).play(atTime:1)\n;\nTempo.bpm = 100;\n\nTempo.bpm = 180;\n```"
},
{
"role":... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\n Instr(\\beatClockPlayerTest,{ arg gate=0.0;\n var a,t;\n\n t = gate;\n a = Decay2.kr(t,0.01,0.1).clip2(1.0);\n a * SinOsc.ar(300);\n },[\n \\gate\n ]);\n\n ... |
[
{
"role": "user",
"content": "What does `NumberEditor.rate` do?"
},
{
"role": "assistant",
"content": "holds a float value with a spec, editable with a gui"
}
] |
[
{
"role": "user",
"content": "Explain `Xor` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "Xor — given two constraint objects, validates that the test object is true for one or the other but not both Category: Libraries > crucial > Constraints."
}
] |
[
{
"role": "user",
"content": "Write a Pbind whose degrees repeat every Prand cycle. (scale minorPentatonic, seq Prand, 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": "Give me a saw kick with a 0.06 s pitch sweep. (osc saw, sweep 0.06, decay 0.25, f0 150, 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 ... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `SinOsc`."
},
{
"role": "assistant",
"content": "```supercollider\n// create an audio-rate sine wave at 200 Hz,\n// starting with phase 0 and an amplitude of 0.5\n{ SinOsc.ar(200, 0, 0.5) }.play;\n\n// modulate the fre... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `QuadC`."
},
{
"role": "assistant",
"content": "```supercollider\n// default params\n{ QuadC.ar(SampleRate.ir/4) * 0.2 }.play(s);\n```"
}
] |
[
{
"role": "user",
"content": "Show another SuperCollider example using `LeastChange`."
},
{
"role": "assistant",
"content": "```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 sou... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\n Instr(\\helpTempoPlayer,{\n var t;\n t = TempoPlayer.new; // default global tempo\n Impulse.ar( t.kr )\n });\n\n Patch(\\helpTempoPlayer).play(atTime:1)\n```"
}... |
[
{
"role": "user",
"content": "What is `SendPeakRMS`?"
},
{
"role": "assistant",
"content": "SendPeakRMS — Track peak and power of a signal for GUI applications."
},
{
"role": "user",
"content": "What does `SendPeakRMS.ar` do?"
},
{
"role": "assistant",
"content": "Unlike ... |
[
{
"role": "user",
"content": "What does `MIDIdef.reset` do?"
},
{
"role": "assistant",
"content": "A convenience method to create a new MIDIdef which responds to MIDI reset messages. See #*new for argument descriptions. The responding `func` will be passed the argument Returns: A new instance of... |
[
{
"role": "user",
"content": "Give me a Pbind with pluck voices and a 0.3 rhythm. (scale majorPentatonic, seq Pseq, dur 0.3, octave 4, instr pluck, root 0)"
},
{
"role": "assistant",
"content": "Put the scale and the degree pattern in the `Pbind` and it will pick notes for you:\n\n```supercollid... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\ns.bind {\n a = { |freq = 100| SinOsc.ar(freq, LFTri.ar(freq)) * 0.2 }.play;\n s.sync;\n a.set(\\freq, 400);\n}\n```"
},
{
"role": "assistant",
"content": "A clo... |
[
{
"role": "user",
"content": "Write a SuperCollider patch for Digital Bird sounds that runs as it is, with nothing assumed about the session."
},
{
"role": "assistant",
"content": "```supercollider\n(\nNdef(\\birdy, {arg freq=1500, amp=0.5, rate=10;\n var osc, son, convIn, rand;\n osc=LFCub;\n... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\nb = Buffer.read(s, Platform.resourceDir +/+ \"sounds/a11wlk01.wav\");\n\n// This is very cool!\n\n(\n{\n Spring.ar(PlayBuf.ar(1, b, loop: 1)*Saw.ar(4));\n}.play;\n)\n```"
},
{
"role": "assistant",
"content":... |
[
{
"role": "user",
"content": "How do I build a live drone with Ndef at 110 Hz? (ugens blip, cutoff 1400, lfo 0.8, freq 110, amp 0.12)"
},
{
"role": "assistant",
"content": "`Ndef` holds the synth and the environment, so you can edit it live:\n\n```supercollider\n// Ndef drone: blip source throug... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// next example\n\nb = Buffer.read(s, ExampleFiles.child);\n\n(\n{\n var input = SoundIn.ar(0);\n var framesize = 2048; // must have power of two\n Convolution2L.ar(input, b, ... |
[
{
"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": "Are you a general assistant?"
},
{
"role": "assistant",
"content": "No. I am sc-mind, a 198M model trained on SuperCollider. Ask me about SynthDefs, UGens, Patterns, Ndef, sclang and scsynth; outside that I have little to offer."
}
] |
[
{
"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": "What does `MxOutletApp.>>` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Connect this outlet to an inlet or to each item in a query Arguments: inlet. Returns: inlet"
}
] |
[
{
"role": "user",
"content": "Show another SuperCollider example using `LinCongL`."
},
{
"role": "assistant",
"content": "```supercollider\n// randomly modulate params\n(\n{ LinCongL.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// 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 `Recorder`."
},
{
"role": "assistant",
"content": "```supercollider\nr = Recorder(s);\n{ GVerb.ar(Dust.ar(4)) }.play; // play on bus 64\nr.record(numChannels: 2);\nr.stopRecording;\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 env = Env.step([0, 3, 5, 2, 7, 3, 0, 3, 4, 0], [0.5, 0.1, 0.2, 1.0, 1.5, 2, 0.2, 0.1, 0.2, 0.1]);\n var envgen = EnvGen.kr(env);\n var freq = (envgen + 60).midicps;... |
[
{
"role": "user",
"content": "Write a GrainBuf synth at 28 grains per second. (rate 28, dur 0.15, interp 2, mode noise1, 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": "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{ LPZ1.ar(WhiteNoise.ar(0.25) }.play;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the pa... |
[
{
"role": "user",
"content": "What does `Array.belaScope` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Send this Array's content to Bela's Oscilloscope (see BelaScope for required Arguments: scopeChannel — Bela's oscilloscope channel to start scoping on. This has to be... |
[
{
"role": "user",
"content": "Write a SuperCollider patch for 8-bit synth (a SuperCollider snippet) that runs as it is, with nothing assumed about the session."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\"AM2\", { arg freq = 440, modfreq = 12, amp = 0.5, attack = 0.01, ... |
[
{
"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{ FBSineL.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 a granular patch with noise grain position and interp 2. (rate 16, dur 0.04, interp 2, mode noise, rev 0)"
},
{
"role": "assistant",
"content": "A working granular patch, with the buffer loaded before the synth starts:\n\n```supercollider\n// granular synth ... |
[
{
"role": "user",
"content": "How do I make a kick that starts at 220 Hz and falls to 55 Hz? (osc fm, sweep 0.06, decay 0.18, f0 220, 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... |
[
{
"role": "user",
"content": "What is SuperCollider?"
},
{
"role": "assistant",
"content": "SuperCollider is a platform for audio synthesis and algorithmic composition, written in C++ and SuperCollider. It splits into a language client (sclang) that runs your code and builds UGen graphs, and an ... |
[
{
"role": "user",
"content": "Write a self-contained SuperCollider patch for Swarm of sound files. Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\nb = SoundFile.collectIntoBuffers(\"yourSoundFileFolder/*\"); // By Bjørn Houdorf, December 21, 2012\n\n(\n{\nvar... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\nNdef(\\x, { SinOsc.ar(Rand(500, 900)) * 0.1 }).play;\nNdef(\\x).copy(\\y);\nNdef(\\y.play;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: t... |
[
{
"role": "user",
"content": "What is the correct way to stop everything?"
},
{
"role": "assistant",
"content": "Depends on what is playing, and they are different layers:\n\n- `s.freeAll` — frees every node on the server (all sound stops, definitions survive).\n- `CmdPeriod.run` — stops everyth... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `FreqScope`."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\n\n// create a new analyzer\nFreqScope.new(400, 200, 0, server: s);\n\n// basic sine\n{ SinOsc.ar(2000, 0, 0.25) }.play(s);\n\n// random saw... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.