conversations listlengths 2 6 |
|---|
[
{
"role": "user",
"content": "I edited a SynthDef and the running sound did not change."
},
{
"role": "assistant",
"content": "Redefining a SynthDef only affects Synths created after the new definition reaches the server; existing instances keep the graph they were built with. Free and recreate ... |
[
{
"role": "user",
"content": "How do I add reverb with FreeVerb?"
},
{
"role": "assistant",
"content": "`FreeVerb.ar(in, mix, room, damp)` — mix 0..1 is dry/wet, room 0..1 is the size (0.5 is a small room, 0.9 is a hall), damp 0..1 rolls off the high end of the tail. Put it after your sound: `Fr... |
[
{
"role": "user",
"content": "What is `DrawGrid`?"
},
{
"role": "assistant",
"content": "DrawGrid — Draws grid lines on a UserView for plotting"
},
{
"role": "user",
"content": "What does `DrawGrid.draw` do?"
},
{
"role": "assistant",
"content": "This draws to the current... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n(\ns = Server.local;\nServer.default = s;\ns.boot;\n);\n\n(\n// PLseq not used as proxy, only taken as it defaults to repeats = inf\n\np = Pbind(\n \\midinote, PLseq([PLser(\\a, \\r), 60, 61]),\n \\dur, 0.2\n);\n\n/... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n(\ns = Server.local;\nServer.default = s;\ns.boot;\n);\n \n \n// definition for future reference in arbitrary Environments\n\np = PLwhite(\\lo, \\hi);\n\n\n// prepare current Environment\n// PLseq repeats de... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\nNdef(\\sound, { |freq = 56, numHarm = 10| Blip.ar(freq, numHarm, 30) * 0.2 }).play;\nNdef(\\sound).set(\\freq, 15);\nNdef(\\sound).set(\\freq, 15, \\numHarm, 100);\n\nNdef(\\lfo,... |
[
{
"role": "user",
"content": "What is `BHiPass`?"
},
{
"role": "assistant",
"content": "BHiPass — 12db/oct rolloff - 2nd order resonant Hi Pass Filter"
},
{
"role": "user",
"content": "What does `BHiPass.sc` do?"
},
{
"role": "assistant",
"content": "calculate filter coef... |
[
{
"role": "user",
"content": "What does `SGliss.getPannings` do?"
},
{
"role": "assistant",
"content": "read the panning positions control rate bus Returns: an array of floats (-1.0 to 1.0)."
}
] |
[
{
"role": "user",
"content": "How do I structure a live-coding performance in one file?"
},
{
"role": "assistant",
"content": "One Tdef per musical layer, each with its own loop, so you can start and stop layers while the set\nruns.\n\n```supercollider\n(\nTdef(\\kick, {\n loop {\n Syn... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ LFPulse.ar(LFPulse.kr(3, 0, 0.3, 200, 200), 0, 0.2, 0.1 }.play;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis opened ear... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\ns.boot;\n\nInstr(\"saw\",{ arg freq=400; Saw.ar(freq) * EnvGen.kr(Env.perc,doneAction:2)});\n\np = Patch(\"saw\",[KrNumberEditor(300,\\freq)]);\n\nSheet({ arg f;\n p.gui(f);\... |
[
{
"role": "user",
"content": "What does `SimpleNumber.airyAiPrime` do?"
},
{
"role": "assistant",
"content": "Returns the derivative of the Airy function Ai at"
}
] |
[
{
"role": "user",
"content": "Explain `PV_MagShift` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "PV_MagShift — shift and stretch magnitude bin position. Shift and stretch the positions of only the magnitude of the bins. Can be used as a very crude frequency shifter/scaler. Ca... |
[
{
"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 a saw kick with a 0.06 s pitch sweep. (osc saw, sweep 0.06, decay 0.35, f0 180, f1 48, 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: saw oscil... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `Pmulp`."
},
{
"role": "assistant",
"content": "```supercollider\n// sound example\n(\nSynthDef(\\sinegrain,\n { |out = 0, freq = 440, sustain = 0.02|\n var env;\n env = EnvGen.kr(Env.perc(0.001, sustain), 1, doneActio... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n{ BlitB3Square.ar(XLine.kr(1000, 20, 10)) }.play;\n\n{ BlitB3Square.ar(MouseX.kr(20,1000,'exponential'),MouseY.kr(0.001,0.999)) }.play;\n\n//comparison\n//blit version is cheaper, but aliases once pushed over 4000 or so a... |
[
{
"role": "user",
"content": "Write a kick drum with a 0.35 s decay. (osc sine, sweep 0.06, decay 0.35, f0 180, f1 40, amp 0.8, 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: sine oscillator... |
[
{
"role": "user",
"content": "Write a complete SuperCollider patch built around `SelectXFocus` that runs as it is."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var a;\n a = [\n Saw.ar(LFSaw.kr(3 * [1, 1.01], 0, 100, 230)),\n SinOsc.ar,\n Pulse.ar(LFPulse.kr(3 ... |
[
{
"role": "user",
"content": "Write a self-contained SuperCollider patch that uses `LinSelectX`. Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var a;\n a = [\n SinOsc.ar,\n Saw.ar(300),\n Pulse.ar(230)\n ];\n\n LinSelectX.ar(Mous... |
[
{
"role": "user",
"content": "What is `RedDifferentialManchesterCodeNegative` in SuperCollider?"
},
{
"role": "assistant",
"content": "RedDifferentialManchesterCodeNegative — Differential manchester encoding with negative edge clock Also known as biphase mark code (BMC). See http://en.wikipedia.... |
[
{
"role": "user",
"content": "Explain `AbstractVector` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "AbstractVector — an element of F^N Represents an element of F^N, where F is either the real numbers R or the complex numbers C. Usual operations are implemented. Examples are g... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ SinOsc.ar(LFNoise0.ar(2).range(420, 460).poll(label: \\LFNoise), 0, 0.2) }.play;\n\n// multichannel polling:\n(\n{\n var freqs = SinOsc.ar([0.2, 0.3]).range(420, 460);\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 trig;\n trig = Dust.kr(10);\n Pan2.ar(SinOsc.ar(\n TGaussRand.kr(300, 3000, trig)\n ),\n TGaussRand.kr(-1, 1, trig),\n 0.1\n )\n}.play;\n```"
},
... |
[
{
"role": "user",
"content": "What is `BBCutProc11` in SuperCollider?"
},
{
"role": "assistant",
"content": "BBCutProc11 — Automatic breakbeat cutting algorithm The original automatic breakbeat cutting algorithm as refined in the BreakBeatx series of classes. This cut procedure favours small odd... |
[
{
"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": "What does `WebView.setUrlHandler` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Set or clear a function to handle a specific URL prefix (e.g. Arguments: prefix — URL prefix. For mail:///, use the string \"mail\" (do not append \"://\"); fun... |
[
{
"role": "user",
"content": "What is `PdefGui` in SuperCollider?"
},
{
"role": "assistant",
"content": "PdefGui — a line of editing controls for a Pdef, and optionally its envir A gui showing the Pdef's name, playing state, source state, and envir state. Optionally, its envir can also be edited... |
[
{
"role": "user",
"content": "Write a complete SuperCollider patch built around `ArrayedCollection` that runs as it is."
},
{
"role": "assistant",
"content": "```supercollider\n(\nvar pitches = [43.0, 55.0, 58.86, 57.42, 67.0];\nfork {\n pitches.size.do{ |i|\n {\n var freq = pitches[i]... |
[
{
"role": "user",
"content": "Write a complete SuperCollider patch built around `QuadC` that runs as it is."
},
{
"role": "assistant",
"content": "```supercollider\n// logistic map\n// equation: x1 = -r*x0^2 + r*x0\n(\n{ var r;\n r = MouseX.kr(3.5441, 4); // stable range\n QuadC.ar(SampleRate... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n(\ns = Server.local;\nServer.default = s;\ns.boot;\n);\n \n \n// definition for future reference in arbitrary Environments\n\n(\np = Pbind(\n \\freq, Pn(PLgeom(\\start, \\grow, 50)) % 2000 + 400,\n... |
[
{
"role": "user",
"content": "Explain this SuperCollider code.\n```supercollider\nq = Pbind(\\freq, 300, \\dur, Pn(0.3, 2));\nq.trace.play;\n\n// Sound-wise ineffective modification of the incoming stream\np = Pbind(\\degree, 6) <> q;\np.trace.play;\n\n// Instead\np = Pbind(\\degree, 6) <> Pfunc { |ev| ev.f... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\na = NodeProxy(s);\na.source = { |freq = 444| Blip.ar(freq * [1, 1.03], 200) * 0.1 };\na.play;\na.set(\\freq, 555);\nb = a.copy;\nb.play;\nb.set(\\freq, 222;\n```"
},
{
"r... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// increase feedback\n{ FBSineC.ar(SampleRate.ir, 1, Line.kr(0.01, 4, 10), 1, 0.1) * 0.2 }.play(s;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is mi... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `TChoose`."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var a;\n a = [\n SinOsc.ar,\n Saw.ar,\n Pulse.ar\n ];\n TChoose.ar(Dust.ar(MouseX.kr(1, 1000, 1)), a) * 0.2\n\n}.play;\n)\... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n(\n{\nvar noise, out;\nnoise = LFNoise0.kr(8);\n\nout = if( noise > 0.0,\n if(noise > 0.5, \n if(noise > 0.9, WhiteNoise.ar(0.2), Pulse.ar(60, 0.5, 0.4)),\n SinOsc.ar(500, 0, 0.25)\n ),\n Saw.ar(160, 0.5)\n);\n\no... |
[
{
"role": "user",
"content": "Can I run SuperCollider without the IDE?"
},
{
"role": "assistant",
"content": "Yes. `sclang` runs the language and `scsynth` the server, and they are separate processes by design\n— the IDE is only a client. A headless script is a `.scd` run with `sclang my-piece.s... |
[
{
"role": "user",
"content": "How do I make a piece reproducible instead of a different take every time?"
},
{
"role": "assistant",
"content": "Three things make a SuperCollider piece repeatable: a fixed seed, a fixed tempo, and no live input.\n\n```supercollider\n(\nthisThread.randSeed = 1234;\... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `PV_MagNoise`."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\n\nb = Buffer.read(s, ExampleFiles.child);\n\n(\nSynthDef(\"help-magNoise\", { |out = 0|\n var in, chain;\n in = SinOsc.ar(SinOsc.kr(Sin... |
[
{
"role": "user",
"content": "Write a Pbind whose degrees repeat every Prand cycle. (scale minorPentatonic, seq Prand, dur 0.2, octave 5, 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": "What is the difference between Env and EnvGen?"
},
{
"role": "assistant",
"content": "Env is a language-side description: a list of levels, times and a curve, e.g. `Env.perc(0.01, 1)` or `Env.adsr(0.01, 0.1, 0.5, 0.8)`. EnvGen is the UGen that plays it on the server... |
[
{
"role": "user",
"content": "Write a filter sweep over a saw."
},
{
"role": "assistant",
"content": "An LFO on the cutoff of a resonant low-pass; XLine or an LFO both work, the LFO is the loopable one.\n\n```supercollider\n{ LPF.ar(Saw.ar([60, 60.2]), SinOsc.kr(0.2).exprange(150, 4000), 0.4) * ... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n(\n{\n var saw, bpf;\n saw = Pulse.ar(\n freq: [100,150],\n mul: LFPulse.kr(\n freq: [0, 0.03, 0.04],\n width: 0.15));\n bpf = LPF.ar(in: saw, freq: SinOsc.kr(-10, -5, 3).range(200, 400));\n Out.ar(0,... |
[
{
"role": "user",
"content": "What does `TDelay.ar` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Trigger delay. Arguments: in — Input trigger signal.; dur — Delay time in seconds.."
}
] |
[
{
"role": "user",
"content": "What does `Function.asSynthDef` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Returns a SynthDef based on this Function, adding a Linen and an Out ugen if Arguments: rates — An Array of rates and lagtimes for the function's arguments (see S... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `SampleRate`."
},
{
"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), resulting in a 1 Hz beating\n(\n{\n v... |
[
{
"role": "user",
"content": "How do I granulate a sample with 0.04 s grains? (rate 14, dur 0.04, 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 with GrainBuf\n(\... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\na = NodeProxy(s);\na.play;\na.source = { Pulse.ar(130, Saw.kr(0.3) * 0.1 }; // change this line while running\n```"
},
{
"role": "assistant",
"content": "A closing br... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `DigitalIO`."
},
{
"role": "assistant",
"content": "```supercollider\n// write a sine oscillator's output to a pin, and read the pin value at other times\n\n(\nSynthDef(\"help-DigitalIO\", { |out = 0|\n DigitalIO.ar... |
[
{
"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": "How do I build a live drone with Ndef at 165 Hz?"
},
{
"role": "assistant",
"content": "Use `Ndef` when the patch has to change without stopping:\n\n```supercollider\n// Ndef drone: blip source through a 3200 Hz low-pass\n(\nNdef(\\nd_blip_165_3200, { |freq = 165, a... |
[
{
"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": "Explain this SuperCollider patch.\n```supercollider\n// for the members of the cult of q\n// who don't want to ~tilde\n\n\n//-- INIT\nq = q ? ();\n\nq.local = currentEnvironment;\n\nq.local.pattern = Pbind(\\note, Pbrown(0, { 17.rand + 1 } ! 12), \\dur, 0.05, \\amp, 0.01);\n\n\... |
[
{
"role": "user",
"content": "Write a complete SuperCollider patch built around `Out` that runs as it is."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\"help-out\", { |out = 0, freq = 440|\n var source;\n source = SinOsc.ar(freq, 0, 0.1);\n\n // write to the bus, a... |
[
{
"role": "user",
"content": "Write a SuperCollider patch that uses `Saw` and actually plays. Assume nothing about the session."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\\event_set, { |freq = 440, gate = 1, amp = 0.1, lagTime = 0.1,\n ffreq = 2000, detune = 1.005, ... |
[
{
"role": "user",
"content": "What does `CutProcStream.new` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Stream wrapper for a cut procedure Arguments: proc — A cut procedure derived from BBCutProc."
}
] |
[
{
"role": "user",
"content": "Write a complete SuperCollider patch built around `MultiTap` that runs as it is."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\nb = Buffer.alloc(s, s.sampleRate);\n(\n{\n MultiTap.ar(`[0.1, 0.2, 0.3, 0.4], `[0.1, 0.2, 0.4, 0.8],\n Decay.ar(Dus... |
[
{
"role": "user",
"content": "What does `SCButtonAdapter.flowMakeView` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "parent class for Button classes Arguments: layout; x; y."
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `AnalogOut`."
},
{
"role": "assistant",
"content": "```supercollider\n// write a sine oscillator's output to a pin\n\n(\nSynthDef(\"help-AnalogOut\", { |out = 0|\n AnalogOut.ar(0, SinOsc.ar(10));\n}).play;\n)\n```"
... |
[
{
"role": "user",
"content": "Explain this code:\n```supercollider\n{ Pan2.ar(SinOsc.ar(440) * 0.2, SinOsc.kr(0.1)) }.play;\n```"
},
{
"role": "assistant",
"content": "A sine that slowly moves between the speakers.\n\n`SinOsc.kr(0.1)` is a control-rate sine at 0.1 Hz — one cycle every 10 seconds... |
[
{
"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 `LatoocarfianC`."
},
{
"role": "assistant",
"content": "```supercollider\n// default initial params\n{ LatoocarfianC.ar(MouseX.kr(20, SampleRate.ir)) * 0.2 }.play(s);\n```"
}
] |
[
{
"role": "user",
"content": "What does `ServerLogGui.writeName` do?"
},
{
"role": "assistant",
"content": "the interface for display and searching the ServerLog Returns: (returnvalue)"
}
] |
[
{
"role": "user",
"content": "What does `View.focusColor` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Get or set the color used to display keyboard focus on the Arguments: A Color.."
}
] |
[
{
"role": "user",
"content": "What is `Pdrop` in SuperCollider?"
},
{
"role": "assistant",
"content": "Pdrop — skips (drops) the first n events from a pattern Skips an initial (count) number of events from a pattern. Category: Streams-Patterns-Events > Patterns."
}
] |
[
{
"role": "user",
"content": "Give me a granular patch with sweep grain position and interp 2. (rate 16, 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 ... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `SampleRate`."
},
{
"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), resulting in a 1 Hz beating\n(\n{\n v... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n(\n Ndef(\\x, {\n var output;\n var delayTime;\n var delayMax = 0.2;\n var delayAdd = 0.1;\n var pulseFreq = 0.5;\n var proxyMul = 2;\n var pulseMin = 40;\n var pulseMax = 130;\n var numOfEch... |
[
{
"role": "user",
"content": "Write a plucked string in SuperCollider."
},
{
"role": "assistant",
"content": "Pluck is a Karplus-Strong string: a noise burst into a tuned delay with feedback. The delay time is\nthe reciprocal of the frequency.\n\n```supercollider\n(\nSynthDef(\\pluck, { |out = 0... |
[
{
"role": "user",
"content": "Explain `CytonDaisyWifi` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "CytonDaisyWifi — for communicating with a Cyton+Daisy board (16ch) this class is for communication via wifi osc (wifishield). use CytonDaisySerial for the bluetooth dongle. Cat... |
[
{
"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": "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": "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 = Dbrown(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}.play... |
[
{
"role": "user",
"content": "What is `GlitchBPF` in SuperCollider?"
},
{
"role": "assistant",
"content": "GlitchBPF — backward compatibility October 2012 BPF was changed to use double-precision floats (git commit: 72412f63affa94f69e2ea7539e21831a1d0d3e01). GlitchBPF can be used as drop-in repla... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `MouseButton`."
},
{
"role": "assistant",
"content": "```supercollider\n{ SinOsc.ar(MouseButton.kr(400, 440, 0.1), 0, 0.1) }.play;\n{ SinOsc.ar(MouseButton.kr(400, 740, 2), 0, 0.1) }.play;\n\n(\nSynthDef(\\mousexyb, { ... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `MoogFF`."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\n// Play it with the mouse...\nx = { MoogFF.ar(WhiteNoise.ar(01.1), MouseY.kr(100, 10000, 1), MouseX.kr(0, 4)) }.play(s);\nx.free;\n\n// Mmmm, ... |
[
{
"role": "user",
"content": "What is `Buffer`?"
},
{
"role": "assistant",
"content": "Buffer — Client-side representation of a buffer on a server"
},
{
"role": "user",
"content": "What does `Buffer.alloc` do?"
},
{
"role": "assistant",
"content": "Create and return a Buf... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `RunningMax`."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n SinOsc.ar(\n RunningMax.ar(Dust.ar(20), Impulse.ar(0.4)) * 500 + 200,\n 0, 0.2\n )\n\n}.play;\n);\n\n// follow a sine lfo, reset... |
[
{
"role": "user",
"content": "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": "Explain `Silence` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "Silence — A placeholder audio rate player that makes no sound `Silence.new.play` Category: Libraries > crucial > Players."
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `ControlSpec`."
},
{
"role": "assistant",
"content": "```supercollider\n// ControlSpec-map can also be used to map ugens\n(\nvar spec;\nspec = [100, 18000, \\exp].asSpec;\n{\n var freq, osc;\n osc = SinOsc.kr(0.1).ra... |
[
{
"role": "user",
"content": "What does `SequenceableCollection.copyToEnd` do?"
},
{
"role": "assistant",
"content": "Return a new SequenceableCollection which is a copy of the indexed slots of the receiver from start to the end of the collection. `x.copyToEnd(a)` can also be written as"
}
] |
[
{
"role": "user",
"content": "Explain `MulAdd` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "MulAdd — Multiply and add to a signal Multiplies the signal by mul and adds add. This UGen is very efficient (it performs various optimisation checks, for example). It is used very hea... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `MouseY`."
},
{
"role": "assistant",
"content": "```supercollider\n{ SinOsc.ar(MouseY.kr(40, 10000, 1), 0, 0.1) }.play;\n```"
}
] |
[
{
"role": "user",
"content": "Write a Pbind in minorPentatonic using Prand for the degrees. (scale minorPentatonic, seq Prand, dur 0.2, octave 6, 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": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ Blip.ar(Blip.kr(4, 5, 500, 60), 59, 0.1 }.play;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis opened earlier is never cl... |
[
{
"role": "user",
"content": "Write a Pbind in minorPentatonic using Prand for the degrees. (scale minorPentatonic, seq Prand, dur 0.25, octave 4, instr fm, root 0)"
},
{
"role": "assistant",
"content": "`Pbind` sequences an Event per beat, and `\\degree` + `\\scale` does the pitch:\n\n```superc... |
[
{
"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": "Show me a self-contained SuperCollider patch using `Dxrand`: bind everything it needs first."
},
{
"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 ... |
[
{
"role": "user",
"content": "How do I make a kick that starts at 180 Hz and falls to 55 Hz? (osc fm, sweep 0.06, decay 0.5, f0 180, f1 55, amp 0.6, rev 0)"
},
{
"role": "assistant",
"content": "A kick is a sine with a fast pitch drop and a short amplitude envelope:\n\n```supercollider\n// kick ... |
[
{
"role": "user",
"content": "What does `MAbstractElement.index` do?"
},
{
"role": "assistant",
"content": "returns the index (Number) of `this` inside its parent"
}
] |
[
{
"role": "user",
"content": "What is your name?"
},
{
"role": "assistant",
"content": "sc-mind. I am the 198M MiniMind-3-MoE this repository trains on SuperCollider source and help text."
}
] |
[
{
"role": "user",
"content": "Explain `BufSamples` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "BufSamples — Current number of samples in buffer. Returns the current number of allocated samples. A sample is not the same as a frame (compare with BufFrames); a frame includes th... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n//code that utilizes the glitch.\n//warning! extremely loud.\n//note: might not sound the same on all soundcards\n(\n{GlitchRHPF.ar(\n BrownNoise.ar(1.dup),\n 0.5,\n Saw.kr(1... |
[
{
"role": "user",
"content": "Give me a granular patch with noise1 grain position and interp 4."
},
{
"role": "assistant",
"content": "A working granular patch, with the buffer loaded before the synth starts:\n\n```supercollider\n// granular synth with GrainBuf\n(\ns.waitForBoot {\n var buf =... |
[
{
"role": "user",
"content": "What does `MIDIIn.replaceFuncTo` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Replace a Function or similar object in the list to be evaluated whenever a particular MIDI message is received with another one. This method is preferable to th... |
[
{
"role": "user",
"content": "What does `ContiguousBlockAllocator.findAvailable` do?"
},
{
"role": "assistant",
"content": "Given an integer width of a desired block, find and return a `ContiguousBlock` object whose `start` is the beginning address of the block and whose `size` is the width. Thi... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n(\nc=13;a=Array.fib(64,0,1);b=Array.fill(size:c,function:{arg i;a[i]%12});\np=1/(21-c);Pdef(\\x,Pbind(\\dur,p,\\degree,Pseq(b,1,0)));\nr=Array.fill(c,{arg i;Pbindf(Pdef(\\x),\\mtranspose,1-b[i]);});\nPseq(r,(1/p)).play;\... |
[
{
"role": "user",
"content": "What is `Pbjorklund2` in SuperCollider?"
},
{
"role": "assistant",
"content": "Pbjorklund2 — Euclidean Algorithm for generating traditional musical rhythms After an algorithm by E. Bjorklund. See paper by Godfried Toussaint. Category: Streams-Patterns-Events > Patte... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\ns.boot;\ns.scope;\na = { Hilbert.ar(SinOsc.ar(100) * -20.dbamp }.play;\na.release;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the paren... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.