conversations listlengths 2 6 |
|---|
[
{
"role": "user",
"content": "Give me a complete SuperCollider patch for poor man's panning: bind everything it needs before it is used."
},
{
"role": "assistant",
"content": "```supercollider\n// poor man's panning\n{\n var f, hornbostelwertheimerkonstante;\n f = MouseY.kr(1, 100, 1);\n horn... |
[
{
"role": "user",
"content": "Write an Ndef at 55 Hz I can retune while it plays."
},
{
"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 a 200 Hz low-pass\n(\nNdef(\\nd_blip_55_200, { |fr... |
[
{
"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);\nDelayL.ar(z, 0.2, 0.2, 1, z); // input is mixed with d... |
[
{
"role": "user",
"content": "What does `Dictionary.getPairs` do?"
},
{
"role": "assistant",
"content": "Return an Array with all keys and values"
}
] |
[
{
"role": "user",
"content": "Write a SuperCollider patch that uses `WhiteNoise` and actually plays. Assume nothing about the session."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var in, chain;\n in = WhiteNoise.ar(0.8);\n chain = FFT(LocalBuf(2048), in); // encode to freq... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\nb = Buffer.read(s, Platform.resourceDir +/+ \"sounds/a11wlk01.wav\");\n\n(\n{\n var snd, envTime, knee, out;\n snd = PlayBuf.ar(1, b, BufRateScale.kr(b), loop: 1);\n envTime = MouseX.kr(1.0e-3, 0.1e-3);\n kne... |
[
{
"role": "user",
"content": "I get 'Message not understood' on a nil variable."
},
{
"role": "assistant",
"content": "`~buffer` (or any variable) was never assigned, or it was assigned in a different environment. Environment variables are per-environment: a `~buf` set in one server-side file bl... |
[
{
"role": "user",
"content": "Give me an Ndef with an LFO at 0.8 Hz. (ugens saw, cutoff 1400, 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: saw source through a 1400 Hz low-pas... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n(\n// Simple amplitude tracker sending values to sclang\nSynthDef(\\ampTracker, { |in|\n var freq = 30; // num of values per second\n SendReply.kr(Impulse.kr(freq), '/amp', Amplitude.kr(SoundIn.ar(in)));\n}).add;\n);\n... |
[
{
"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).exprange(440, 6600), 0, 0.5 * 0.1 }.play;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis opened ... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n// When we provide the 'root' argument an array, we should hear a chord.\n// the synth def is defined above\n(\nPbind(\n \\instrument, \\acid, \\dur, Pseq([0.25, 0.5, 0.25], inf),\n \\root, [-24, -17], // expand root\n ... |
[
{
"role": "user",
"content": "Write an Ndef with a sine source and a 1400 Hz low-pass. (ugens sine, cutoff 1400, lfo 0.3, 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... |
[
{
"role": "user",
"content": "What does `BusPool.itemCount` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "bus allocator with retain/release counting for shared busses Arguments: bus."
}
] |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n(\nq = Patch({ Saw.ar(40.midicps) * 0.05 });\nr = Patch({ Saw.ar(52.midicps) * 0.05 });\np = PlayerSocket.new(\\audio,1);\np.play;\n);\n// then get the socked to alternately spawn q and r\np.prepareAndQSpawn(q,0.1);\np.pr... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `DelayN`."
},
{
"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": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// result of BufRd is used as index for the next BufRd\n// needs Buffer c prepared above\n\n(\ny = {\n GFIS.ar(\n { |x| BufRd.ar(1, c, c.numFrames * x) },\n (LFDNoise3.ar(... |
[
{
"role": "user",
"content": "Give me a fm kick with a 0.06 s pitch sweep. (osc fm, sweep 0.06, decay 0.5, f0 150, f1 55, amp 0.6, rev 1)"
},
{
"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 oscillato... |
[
{
"role": "user",
"content": "What does `UScore.openWFS` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "(describe method Arguments: path — (describe argument here); action — (describe argument here). Returns: (returnvalue)"
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// as a frequency control\n{ SinOsc.ar(StandardN.ar(40, MouseX.kr(0.9, 4))*800+900)*0.4 }.play(s;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is mis... |
[
{
"role": "user",
"content": "Explain `CompositeView` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "CompositeView — A view that contains other views. Category: GUI > Views."
}
] |
[
{
"role": "user",
"content": "Write a SuperCollider patch that uses `PackFFT` 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, phase... |
[
{
"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": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\nSynthDef(\"help-GaussTrig\", { arg out=0;\n Out.ar(out,\n Ringz.ar(\n WhiteNoise.ar(\n Decay.kr(\n GaussTrig.kr(10.dup, MouseX.kr(0, 0.9), 0.5),\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 w, x, y, p, a, b, c, d;\n\n p = PinkNoise.ar; // source\n\n // B-format encode\n #w, x, y = PanB2.ar(p, MouseX.kr(-1, 1), 0.1);\n\n // B-format decode to quad\n ... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `ControlRate`."
},
{
"role": "assistant",
"content": "```supercollider\n{ SinOsc.ar(ControlRate.ir) * 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{ 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": "What is `CutTrace` in SuperCollider?"
},
{
"role": "assistant",
"content": "CutTrace — Debugging tool for BBCut2 A class to trace the state of cutsynths as they render algorithmically determined cuts. The base behaviour is to post the cut data. Category: Libraries >... |
[
{
"role": "user",
"content": "What does `AbstractConstraint.and` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "abstract parent class for the Constraints micro-library Arguments: constraint."
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\n// Create a new empty List with size: 3\nx = List.new(3);\n\nx.postln; // -> List[ ]\n\n// Add numbers 0 to 4 to the List\n5.do({ |i| x.add(i) });\n\n// The list has been modi... |
[
{
"role": "user",
"content": "Give me a granular patch with noise grain position and interp 4. (rate 6, dur 0.15, interp 4, mode noise, rev 1)"
},
{
"role": "assistant",
"content": "A working granular patch, with the buffer loaded before the synth starts:\n\n```supercollider\n// granular synth w... |
[
{
"role": "user",
"content": "Explain `BufRd` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "BufRd — Buffer reading oscillator. Read the content of a buffer at an index. Category: UGens > Buffer."
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\ns.boot;\n(\nx = SynthDef(\"help-node-set\", { |freq = 440, out = 0|\n Out.ar(out, SinOsc.ar(freq, 0, 0.1))\n}).play\n);\nx.set(\\freq, 880, \\out, 1); // two pairs\nx.set(0, 660... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Impulse`."
},
{
"role": "assistant",
"content": "```supercollider\n{ Impulse.ar(800, 0.0, 0.5, 0) }.play\n\n{ Impulse.ar(XLine.kr(800, 100, 5), 0.0, 0.5, 0) }.play\n```"
}
] |
[
{
"role": "user",
"content": "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": "What does `PSVop_i.new` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Creates a new PSVop_i Arguments: genList — An array of generators. Allowed generators: Integers, Streams or Patterns producing intervals or Sieves itself. Integers and St... |
[
{
"role": "user",
"content": "What does `DataFile.read` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Read file with classes and sampler Arguments: Specify Radicles Class.; Key to identify synth object.."
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `PackFFT`."
},
{
"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, phases, chain, sig;\n // Create simple undulati... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```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)\n) * 0.2 }.play(s);\... |
[
{
"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 Lag2.kr( // lag the modulator\n LFPulse.kr(4, 0, 0.5, 50, 400), // frequency modulator\n Line.kr(0, ... |
[
{
"role": "user",
"content": "Explain `CutBuf1` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "CutBuf1 — BBCut2 buffer playback, efficient but inflexible Playback for a buffer, using a single fixed PlayBuf UGen with jump in playback position- cheap for CPU but no enveloping, so... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `DigitalIn`."
},
{
"role": "assistant",
"content": "```supercollider\n// turn on and off a sine oscillator\n\n(\nSynthDef(\"help-DigitalIn\", { |out = 0|\n Out.ar(out,\n SinOsc.ar(500, 0, 0.1 * DigitalIn.ar(0))\n ... |
[
{
"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": "What is `SynthDef` in SuperCollider?"
},
{
"role": "assistant",
"content": "SynthDef — Client-side representation of a synth definition The server application uses synth definitions as templates for creating Synth nodes. (Methods such as Function#-play, etc. are sim... |
[
{
"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": "Show me a self-contained SuperCollider patch using `CoinGate`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\n(\na = SynthDef(\"help-TCoin\", { |out = 0, prob = 0.5|\n var trig;\n trig = CoinGate.kr(prob, Impulse.kr(10));\... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ PinkNoise.ar(EnvGen.kr(Env.perc, doneAction: Done.freeSelf) }.play\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis opened ... |
[
{
"role": "user",
"content": "Explain this SuperCollider code.\n```supercollider\n// The driven pendulum is interesting as it's a quite simple model\n// that includes parameter zones of chaotic behaviour:\n// http://lampx.tugraz.at/~hadley/physikm/apps/numerical_integration/pendulum.en.php\n\n// y here deno... |
[
{
"role": "user",
"content": "What does `Dust2.ar` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Random impulses. Arguments: density — Average number of impulses per second.; mul — Output will be multiplied by this value.; add — This value will be added to the output.."... |
[
{
"role": "user",
"content": "Give me a complete SuperCollider patch for Re: Dark sea horns: bind everything it needs before it is used."
},
{
"role": "assistant",
"content": "```supercollider\n(\n Ndef(\\x, {\n var output;\n var delayTime;\n var delayMax = 0.2;\n var delayAdd = 0.... |
[
{
"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": "Write an Ndef at 220 Hz I can retune while it plays. (ugens tri, cutoff 800, lfo 0.8, 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 800 Hz... |
[
{
"role": "user",
"content": "Write a kick whose tail uses freeverb. (verb freeverb, room 0.85, damp 0.5, mix 0.45, source kick)"
},
{
"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... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `LinCongN`."
},
{
"role": "assistant",
"content": "```supercollider\n// randomly modulate params\n(\n{ LinCongN.ar(\n LFNoise2.kr(1, 1e4, 1e4),\n LFNoise2.kr(0.1, 0.5, 1.4),\n LFNoise2.kr(0.1, 0.1, 0.1),\n LFNoise2.kr(0.1... |
[
{
"role": "user",
"content": "Write a 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": "What is `Server`?"
},
{
"role": "assistant",
"content": "Server — Object representing a server application"
},
{
"role": "user",
"content": "What does `Server.new` do?"
},
{
"role": "assistant",
"content": "Create a new Server instance."
},... |
[
{
"role": "user",
"content": "What is `IdentityBag` in SuperCollider?"
},
{
"role": "assistant",
"content": "IdentityBag — A Bag according to identity An IdentityBag is an unordered collection of objects. In some languages it is referred to as a counted set. A Bag keeps track of the number of ti... |
[
{
"role": "user",
"content": "What does `FoaTilt.ar` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "First Order Ambisonic (FOA) rotation transformer Arguments: in — The B-format signal, an array: [w, x, y, z]; angle — Rotation angle, in radians.; mul — Output will be mul... |
[
{
"role": "user",
"content": "Give me a granular patch with noise grain position and interp 2."
},
{
"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 = Buffer.read(s, ... |
[
{
"role": "user",
"content": "Write a SuperCollider patch that uses `Limiter` and actually plays. Assume nothing about the session."
},
{
"role": "assistant",
"content": "```supercollider\n(\n// example signal to process\n{\n var z;\n z = Decay2.ar(\n Impulse.ar(8, LFSaw.kr(0.25, -0.6, 0.7)... |
[
{
"role": "user",
"content": "What is rq in BPF.ar?"
},
{
"role": "assistant",
"content": "rq is the reciprocal of Q, so it is a bandwidth control, not a Q control. Small rq means a narrow, resonant band; large rq means a wide, gentle one. The signature is `BPF.ar(in, freq, rq, mul, add)`. A com... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `QuadN`."
},
{
"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 QuadN.ar(SampleRate.ir/4, r.neg, r, 0, 0.1) * 0... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// increase phase multiplier\n{ FBSineL.ar(SampleRate.ir, 1, 0, XLine.kr(1, 2, 10), 0.1) * 0.2 }.play(s;\n```"
},
{
"role": "assistant",
"content": "A closing bracket... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```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 frequency, fundamental freq s... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `PackFFT`."
},
{
"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, phases, chain, sig;\n // Create simple undulati... |
[
{
"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 BHiPass.ar(\n SoundIn.ar([0, 1]),\n MouseX.kr(10, 20000, \\exponential), // cutoff freq.\n MouseY.kr(0.0, 1.0, \\linear), // rq\n 0.5); // mul\n}... |
[
{
"role": "user",
"content": "What does `SoundFileView.selectionStartTime` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "The start of a selection in Arguments: index — The index of the selection; an Integer between 0 an 63.. Returns: A Float."
}
] |
[
{
"role": "user",
"content": "Give me a granular patch with noise grain position and interp 2. (rate 14, dur 0.1, interp 2, mode noise, rev 1)"
},
{
"role": "assistant",
"content": "A working granular patch, with the buffer loaded before the synth starts:\n\n```supercollider\n// granular synth w... |
[
{
"role": "user",
"content": "Explain this SuperCollider patch.\n```supercollider\n// UnitTestScript(\"Collapse\", thisProcess.nowExecutingPath).runScript;\n\n{\n |test|\n var collapseValues = List();\n var collapse;\n\n collapse = Collapse({ |v| collapseValues.add(v) }, 0.1);\n\n collapseValues.clear;... |
[
{
"role": "user",
"content": "Write a self-contained SuperCollider patch that uses `Mix`. Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var n;\n n = 8; // number of 'voices'\n Mix.new( // mix all stereo pairs down.\n Pan2.ar( // pan the voice t... |
[
{
"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": "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 does `Slew.ar` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Slew rate limiter. Arguments: in — The input signal.; up — Maximum upward slope in units per second.; dn — Maximum downward slope in units per second.; mul — Output will be m... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// create a window for a given Ndef\nNdef(\\sound).edit\n(\nNdef(\\sound, { |freq = 440, rate = 2|\n SinOsc.ar(freq * [1, 1.625]) * SinOsc.kr(rate).max(0) * 0.2\n}).play;\n);\n\... |
[
{
"role": "user",
"content": "Explain `PV_Compander` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "PV_Compander — simple spectral compression/expansion Applies compression/expansion to individual magnitudes. Category: UGens > FFT."
}
] |
[
{
"role": "user",
"content": "What does `Ganglion.setSampleRate` do?"
},
{
"role": "assistant",
"content": "The Ganglion with USB Dongle (GanglionSerial) cannot and will not stream data over 200SPS. With the WifiShield all rates are possible (GanglionWifi). `0 = 25600"
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\nt = SortedList.new(8, {|a,b| a.first < b.first });\nt.add([10, \"last\"]);\nt.add([1, \"first\"];\nt.postln;\n```"
},
{
"role": "assistant",
"content": "A closing bra... |
[
{
"role": "user",
"content": "How do I granulate a sample with 0.15 s grains? (rate 14, dur 0.15, 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 self-contained SuperCollider patch that uses `Padd`. Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\n// sound example\n(\nSynthDef(\\sinegrain,\n { |out = 0, freq = 440, gate = 1|\n var env;\n env = EnvGen.kr(Env.a... |
[
{
"role": "user",
"content": "What is `Pdef`?"
},
{
"role": "assistant",
"content": "Pdef — stream reference definition"
},
{
"role": "user",
"content": "What does `Pdef.all` do?"
},
{
"role": "assistant",
"content": "A global IdentityDictionary with all proxies."
},
... |
[
{
"role": "user",
"content": "What is `Select` in SuperCollider?"
},
{
"role": "assistant",
"content": "Select — Select output from an array of inputs. The output is selected from an array of inputs. Category: UGens > Multichannel > Select."
}
] |
[
{
"role": "user",
"content": "Give me a Pbind with fm voices and a 0.3 rhythm. (scale majorPentatonic, seq Pseq, dur 0.3, octave 5, 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": "What is `ProxySynthDef`?"
},
{
"role": "assistant",
"content": "ProxySynthDef — synth def that wraps ugen graph"
},
{
"role": "user",
"content": "What does `ProxySynthDef.sampleAccurate` do?"
},
{
"role": "assistant",
"content": "always use O... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\ns.boot;\n\nb = Buffer.alloc(s, 100);\nb.zero;\nb.set(33, 1.034);\n// This should detect the 33rd value as the highest...\nx = {BufMax.kr(b).poll}.play;\n\n// ...until we set a new winner...\nb.set(74, 1.038);\n```"
},
... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\ns.boot;\n\n(\nSynthDef(\"lazerdrone\", {\n var in, freq, hasFreq;\n\n \n in = SinOsc.ar(440 * LFSaw.kr(100, 1000));\n\n # freq, hasFreq = Pitch.kr(\n in,\n ampThreshold: 0.09,\n median: 1);... |
[
{
"role": "user",
"content": "What does `AbstractSController.defName` do?"
},
{
"role": "assistant",
"content": "the LINKClasses/SynthDef Returns: a generated LINKClasses/Symbol matching class name and number of channels."
}
] |
[
{
"role": "user",
"content": "What is `Pdefn`?"
},
{
"role": "assistant",
"content": "Pdefn — non event stream reference definition"
},
{
"role": "user",
"content": "What does `Pdefn.all` do?"
},
{
"role": "assistant",
"content": "A global IdentityDictionary with all prox... |
[
{
"role": "user",
"content": "What is rq in BPF.ar?"
},
{
"role": "assistant",
"content": "rq is the reciprocal of Q, so it is a bandwidth control, not a Q control. Small rq means a narrow, resonant band; large rq means a wide, gentle one. The signature is `BPF.ar(in, freq, rq, mul, add)`. A com... |
[
{
"role": "user",
"content": "What does `EnvelopeView.action` do?"
},
{
"role": "assistant",
"content": "The action object evaluated whenever the user moves a"
}
] |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\np = ProxySpace.push(s.boot);\n~a.play.quant_(4); ~b.play.quant_(4);\n~c = { LFNoise1.kr(8).range(0,15).round };\n~a = Pbind(\\degree, Pstutter(4, Pseq([0,2,3,4], inf)), \\octave, [3,4], \\dur, 0.25, \\amp, 0.3);\n~b = Pb... |
[
{
"role": "user",
"content": "Write a granular texture, dry. (rate 6, dur 0.1, 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": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\na = {LFTri.ar(100+(1000*Maths.ar(MouseX.kr, MouseY.kr, 0.2, 1-MouseButton.kr(lag:0.001))[0]), 0, 0.1)}.play //notice how I am taking the [0th channel of the Maths and ignoring th... |
[
{
"role": "user",
"content": "What is `Ppar` in SuperCollider?"
},
{
"role": "assistant",
"content": "Ppar — embed event streams in parallel Embeds several event streams so that they form a single output stream with all their events in temporal order. When one stream ends, the other streams are ... |
[
{
"role": "user",
"content": "When should I use a Pattern instead of writing Synth code by hand?"
},
{
"role": "assistant",
"content": "Use a Pattern when what you want to express is a sequence over time — notes, durations, amplitudes, parameters — rather than a signal. A Pbind describes events,... |
[
{
"role": "user",
"content": "Explain `DemandSpec` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "DemandSpec — datatype specifying a \\demand rate input or output Category: Spec, Libraries > crucial > Spec."
}
] |
[
{
"role": "user",
"content": "What is `LPF` in SuperCollider?"
},
{
"role": "assistant",
"content": "LPF — 2nd order Butterworth lowpass filter A second order low pass filter. Category: UGens > Filters > Linear."
}
] |
[
{
"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": "Write a minimal SuperCollider example that uses `DecodeB2`."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var w, x, y, p, a, b, c, d;\n\n p = PinkNoise.ar; // source\n\n // B-format encode\n #w, x, y = PanB2.ar(p, MouseX.kr(-1, 1), 0.1);\n\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, 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": "What does this SuperCollider patch do?\n```supercollider\n{var a=LFNoise0,b=SinOscFB,c=Pulse;b.ar(a.ar([2,3])*(c.ar([5,7],b.kr([7,5]))*(a.ar([3,2]))*[800,1200]),(c.kr([100,80])*[2,3]))}.play\n```"
},
{
"role": "assistant",
"content": "dirty and noisy \"result\" of r... |
[
{
"role": "user",
"content": "Explain `SubsampleOffset` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "SubsampleOffset — Offset from synth start within one sample. When a synth is created from a time stamped osc-bundle, it starts calculation at the next possible block (normally... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.