conversations listlengths 2 6 |
|---|
[
{
"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 SuperCollider patch for Just experimenting with patterns that runs as it is, with nothing assumed about the session."
},
{
"role": "assistant",
"content": "```supercollider\n/* Some Funky Klangs - Totally botched the math on what I was trying to do but it so... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `LinLin`."
},
{
"role": "assistant",
"content": "```supercollider\n// examples:\n\n(\n{\n var mod = SinOsc.kr(Line.kr(1, 10, 10));\n SinOsc.ar(LinLin.kr(mod, -1, 1, 100, 900)) * 0.1\n}.play;\n);\n\n// modulating dest... |
[
{
"role": "user",
"content": "Give me a sine kick with a 0.06 s pitch sweep. (osc sine, sweep 0.06, decay 0.25, f0 180, 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 drum: sine os... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\nd = SynthDef(\\tone, { |out = 0, freq = 200|\n var sig;\n\n freq.spec = ControlSpec(20, 20000);\n sig = SinOsc.ar(freq);\n\n Out.ar(out, sig);\n}).add;\n;\n\nd.specs.freq.... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```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, adding to previous contents\n Out.ar(out, s... |
[
{
"role": "user",
"content": "SC can't open or read files?"
},
{
"role": "assistant",
"content": "SuperCollider forum — SC can't open or read files\n\nIt looks as though it’s finally working!\n\nI moved the file to a folder I created in the user support directory for SuperCollider and then chang... |
[
{
"role": "user",
"content": "What is `Condition`?"
},
{
"role": "assistant",
"content": "Condition — Block the execution of a thread"
},
{
"role": "user",
"content": "What does `Condition.new` do?"
},
{
"role": "assistant",
"content": "Create a new instance, set the test... |
[
{
"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": "Write a kick drum with a 0.18 s decay. (osc fm, sweep 0.06, decay 0.18, f0 150, 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.... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `TIRand`."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\"help-TIRand\", {\n var trig, outBus;\n trig = Dust.kr(10);\n outBus = TIRand.kr(0, 1, trig); // play on random channel between 0 and 1... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```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 frequency with an exponential ramp\n{ SinOsc.ar(XLine.kr(2000, 200), 0, 0... |
[
{
"role": "user",
"content": "What does `RedLZSS.binaryStringToBytes` do?"
},
{
"role": "assistant",
"content": "Converts a binary string into 8-bit bytes. Up to 7 zeros might be padded automatically at the end. The number of zeros is stored in #*pad. #*pad is semi-private and used when converti... |
[
{
"role": "user",
"content": "Write an Ndef at 165 Hz I can retune while it plays. (ugens blip, cutoff 1400, 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: blip source through a 140... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```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));\n IFFT(chain);\n}.play\n```"
... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `HPZ2`."
},
{
"role": "assistant",
"content": "```supercollider\n// Compare:\n\n{ WhiteNoise.ar(0.25) }.play;\n\n{ HPZ2.ar(WhiteNoise.ar(0.25)) }.play;\n\n// HPZ2 is useful to detect changes in a signal:\n// see also H... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `MultiTap`."
},
{
"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(Dust.ar(2), 0.1, PinkNoi... |
[
{
"role": "user",
"content": "What does `Server.makeGui` do?"
},
{
"role": "assistant",
"content": "Create and show the server window. The window responds to a number of keyboard"
}
] |
[
{
"role": "user",
"content": "What is Env.perc and what does it take?"
},
{
"role": "assistant",
"content": "`Env.perc(attackTime, releaseTime, level, curve)` — an attack to `level` (default 1) then a decay to zero, with curve defaulting to -4 (an exponential-ish decay). `Env.perc(0.01, 1)` is t... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `LinLin`."
},
{
"role": "assistant",
"content": "```supercollider\n// linlin\n(\n{\n var mod = LFNoise2.ar(80);\n SinOsc.ar(mod.linlin(-1, 1, MouseX.kr(200, 8000, 1), MouseY.kr(200, 8000, 1))) * 0.1\n}.play;\n);\n\n// range... |
[
{
"role": "user",
"content": "Explain `Window` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "Window — Top-level container of views The Window is the most fundamental element of the GUI. It occupies a rectangular space on the screen within which other GUI elements (Views) are d... |
[
{
"role": "user",
"content": "Write a Pbind whose degrees repeat every Pwalk cycle. (scale majorPentatonic, seq Pwalk, dur 0.25, octave 6, instr fm, root 0)"
},
{
"role": "assistant",
"content": "Put the scale and the degree pattern in the `Pbind` and it will pick notes for you:\n\n```supercolli... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ SinOsc.ar(MouseX.kr(40, 10000, 1), 0, 0.1) }.play;\n{ SinOsc.ar(MouseX.kr(500, 10000, 1).poll, 0, 0.1 }.play;\n```"
},
{
"role": "assistant",
"content": "A closing ... |
[
{
"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": "Write a minimal SuperCollider example that uses `Logistic`."
},
{
"role": "assistant",
"content": "```supercollider\n// default values\n{ Logistic.ar }.play\n\n// onset of chaos\n{ Logistic.ar(Line.kr(3.55, 3.6, 5), 1000) }.play\n\n// explore via Mouse\n{ Logistic.a... |
[
{
"role": "user",
"content": "Show me a self-contained SuperCollider patch using `Unpack1FFT`: bind everything it needs first."
},
{
"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, window... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Dswitch`."
},
{
"role": "assistant",
"content": "```supercollider\n(\n {\n var d, trig;\n d = Dswitch([\n Dwhite(3, 4, 2),\n Dwhite(0, 1, 2),\n Dseq([1, 1, 1, 0], 2)\n ], Dseq([0, 1, 2, 1, 0],... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `LorenzL`."
},
{
"role": "assistant",
"content": "```supercollider\n// randomly modulate params\n(\n{ LorenzL.ar(\n SampleRate.ir,\n LFNoise0.kr(1, 2, 10),\n LFNoise0.kr(1, 20, 38),\n LFNoise0.kr(1, 1.5, 2)\n) * 0.2 }.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": "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": "How do I build a live drone with Ndef at 220 Hz? (ugens sine, cutoff 1400, lfo 0.1, freq 220, amp 0.12)"
},
{
"role": "assistant",
"content": "Use `Ndef` when the patch has to change without stopping:\n\n```supercollider\n// Ndef drone: sine source through a 1400 Hz... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```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 = SinOsc.ar(600, 0, Decay2.ar(PulseDiv... |
[
{
"role": "user",
"content": "Show me a self-contained SuperCollider patch using `Drand`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```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 = ... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// example; this buffer is mono, so the number of samples matches the number of frames\nb = Buffer.read(s, ExampleFiles.child);\n\n// indexing with a phasor\n{ BufRd.ar(1, b, Pha... |
[
{
"role": "user",
"content": "How do I make a kick that starts at 180 Hz and falls to 48 Hz? (osc fm, sweep 0.06, decay 0.25, 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... |
[
{
"role": "user",
"content": "What does `SCDoc.didIndexDocuments` do?"
},
{
"role": "assistant",
"content": "A Boolean indicating if `SCDoc.indexAllDocuments` was called in this session"
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ Integrator.ar(LFPulse.ar(300, 0.2, 0.1), MouseX.kr(0.001, 0.999, 1)) }.play\n\n// used as an envelope\n{ Integrator.ar(LFPulse.ar(3, 0.2, 0.0004), 0.999, FSinOsc.ar(700), 0) }.... |
[
{
"role": "user",
"content": "Write a kick drum with a 0.12 s decay. (osc sine, sweep 0.06, decay 0.12, f0 150, f1 48, 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// kick drum: sine oscillator... |
[
{
"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 granulate a sample with 0.1 s grains? (rate 16, dur 0.1, 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(\n... |
[
{
"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": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\nb = BusPlug.new;\n{ Blip.ar(b + 5) }.play;\nb.bus.set(12;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis opened earlier is ... |
[
{
"role": "user",
"content": "Write a complete SuperCollider patch built around `LFPulse` that runs as it is."
},
{
"role": "assistant",
"content": "```supercollider\n4.insp;\n[1,2,3].insp;\nPageLayout.insp;\nSynthDef(\"yawn\",{ arg freq=100;\n Out.ar(0,Saw.ar * LFPulse.kr(3))\n}).insp;\n```"... |
[
{
"role": "user",
"content": "Explain `NodeMap` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "NodeMap — store control values and bus mappings Object to store control values and bus mappings independently of a specific node. Category: JITLib > NodeProxy, Server > Nodes, Server ... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `ClipNoise`."
},
{
"role": "assistant",
"content": "```supercollider\n{ ClipNoise.ar(0.2) }.play;\n```"
}
] |
[
{
"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": "Write a self-contained SuperCollider patch that uses `FoldIndex`. Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\n// indexing into a table\n(\n{\n var buf = LocalBuf.newFrom([200, 300, 400, 500, 600, 800]);\n var freq = FoldInd... |
[
{
"role": "user",
"content": "Show me a self-contained SuperCollider patch using `PulseDivider`: bind everything it needs first."
},
{
"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, De... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\n{\n SinOsc.ar(\n RunningMin.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 rate controlled by mouse x\n(\... |
[
{
"role": "user",
"content": "Write a granular texture, through a reverb. (rate 28, dur 0.2, interp 4, mode noise, rev 1)"
},
{
"role": "assistant",
"content": "Granulation is `GrainBuf` plus a trigger rate; the position can move:\n\n```supercollider\n// granular synth with GrainBuf\n(\ns.waitFo... |
[
{
"role": "user",
"content": "What does `NamedIntegersSpec.canKr` do?"
},
{
"role": "assistant",
"content": "datatype specifying an option list with names and an integer output type"
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\nSynthDef(\"help-PulseCount\", { |out = 0|\n Out.ar(out,\n SinOsc.ar(\n PulseCount.ar(Impulse.ar(10), Impulse.ar(0.4)) * 200,\n 0, 0.05\n )\n )\n}.play;\n```"
... |
[
{
"role": "user",
"content": "Explain `InterplPairs` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "InterplPairs — envelope specification Takes an array of [x, y] pairs and a curve value for all break points. x values can be negative (for use in indexing with negative values or... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `LFDNoise0`."
},
{
"role": "assistant",
"content": "```supercollider\n// try wiggling mouse quickly;\n// LFNoise frequently seems stuck, LFDNoise changes smoothly.\n\n{ LFNoise0.ar(MouseX.kr(0.1, 1000, 1), 0.1) }.play\... |
[
{
"role": "user",
"content": "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(StandardL.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": "What does `AbstractWrappingDispatcher.add` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Add a responder func to this dispatcher. Subclasses should extend this to do any necessary bookkeeping. Generally this method should add this dispatche... |
[
{
"role": "user",
"content": "Write a SuperCollider patch for Very quick-and-dirty hack to show stereo phase. Start by defining the values the patch depends on."
},
{
"role": "assistant",
"content": "```supercollider\n(\nb = Bus.audio(s, 2);\na = { |inbus = 0|\n var sig = In.ar(inbus, 2);\n //... |
[
{
"role": "user",
"content": "Explain `Button` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "Button — A multi-state button A multi-state button. Category: GUI > Views."
}
] |
[
{
"role": "user",
"content": "What is `TraerParticleSystem` in SuperCollider?"
},
{
"role": "assistant",
"content": "TraerParticleSystem — takes care of gravity, drag, making particles, applying forces and advancing the simulation The particle system is in charge of everything. It makes particle... |
[
{
"role": "user",
"content": "I get \"Message 'ar' not understood\". Why?"
},
{
"role": "assistant",
"content": "You called a rate method on something that is not a UGen. `Env.ar(...)` and `Buffer.ar(...)` are the classic cases: Env is a language-side description and is played by `EnvGen.ar(env,... |
[
{
"role": "user",
"content": "Write a complete SuperCollider patch built around `Ringz` that runs as it is."
},
{
"role": "assistant",
"content": "```supercollider\na = NodeProxy(s);\na[0] = { |freq = 440, dt=0.1, rate=2| Ringz.ar(Impulse.ar(rate * [1, 1.2]), freq, dt)*0.1 };\na.play;\n(\na[1] =... |
[
{
"role": "user",
"content": "Explain `Red3DPlane` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "Red3DPlane — 3D plane / rectangle A class for rotating and rendering a plane in 3D. Category: Red > redUniverse > 3D."
}
] |
[
{
"role": "user",
"content": "Write a SuperCollider patch that uses `EnvGen` and actually plays. Assume nothing about the session."
},
{
"role": "assistant",
"content": "```supercollider\n// as amplitude envelope\n(\n{\n var env = Env([0, 1, 0.5, 1, 0], [0.01, 0.5, 0.02, 0.5]);\n SinOsc.ar(470... |
[
{
"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 does `EZGui.valueAction` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Gets/sets the value of the widget. Performs do Arguments: val — An integer.."
}
] |
[
{
"role": "user",
"content": "What is `TrigAvg` in SuperCollider?"
},
{
"role": "assistant",
"content": "TrigAvg — triggered signal averager Averages the absolute values of its input between triggers. Category: UGens > Analysis, UGens > Maths."
}
] |
[
{
"role": "user",
"content": "What does `List.wrapExtend` do?"
},
{
"role": "assistant",
"content": "Returns a new List whose elements are repeated sequences of the receiver, up to size length. The receiver is unchanged."
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Peak`."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n SinOsc.ar(\n Peak.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 rate contro... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```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(WhiteNoise.ar(0.005), MouseX.kr(8... |
[
{
"role": "user",
"content": "What does `MultiSplineFr.value` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Multi dimensional spline frame rate device Arguments: time."
}
] |
[
{
"role": "user",
"content": "What does `PLrand.new` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Creates a new PLrand Arguments: list — Symbol or Prand list arg. If a Symbol is passed, list can be assigned to an envir variable later on. This lists's elements can be dy... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `SortedList`."
},
{
"role": "assistant",
"content": "```supercollider\nt = SortedList.new(8, {|a,b| a.first < b.first });\nt.add([10, \"last\"]);\nt.add([1, \"first\"]);\nt.postln;\n```"
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `SharedOut`."
},
{
"role": "assistant",
"content": "```supercollider\n(\n// only works with the internal server\ns = Server.internal;\ns.boot;\n);\n\n(\nSynthDef(\"help-SharedOut\", {\n SharedOut.kr(0, SinOsc.kr(0.2))... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n// using timer to modulate sine frequency: the slower the trigger is the higher the frequency\n(\n{ var trig;\n trig = Impulse.kr(MouseX.kr(0.5, 20, 1));\n SinOsc.ar(Timer.kr(trig) * 500 + 500, 0, 0.2)\n}.play;\n)\n```"... |
[
{
"role": "user",
"content": "Explain this SuperCollider code.\n```supercollider\n// data sharing between streams of same PmonoPar and streams of second PmonoPar,\n// use of Ptpar ensures that first stream of second PmonoPar comes after first stream of first PmonoPar,\n// consider also PpolyPar for such typ... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Out`."
},
{
"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, adding to previous con... |
[
{
"role": "user",
"content": "Write a SuperCollider patch for Server-side sequencing (a SuperCollider snippet) that runs as it is, with nothing assumed about the session."
},
{
"role": "assistant",
"content": "```supercollider\n(\nf = { |f0=200, rate=4|\n {\n var seq = Dseq(f0*[1/2,3/4, Dstu... |
[
{
"role": "user",
"content": "Write a kick drum with a 0.5 s decay. (osc fm, sweep 0.06, decay 0.5, f0 220, f1 55, amp 0.6, rev 1)"
},
{
"role": "assistant",
"content": "The pitch envelope is what makes it read as a drum, not the oscillator:\n\n```supercollider\n// kick drum: fm oscillator, 0.06... |
[
{
"role": "user",
"content": "What model are you?"
},
{
"role": "assistant",
"content": "I am sc-mind, a 198M-parameter MiniMind-3-MoE with 64M active per token: 768 wide, 8 layers, four experts with top-1 routing, a 6,400-token vocabulary, trained from scratch on SuperCollider."
}
] |
[
{
"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": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ Impulse.ar(4, [0, MouseX.kr(0, 1)], 0.2 }.play;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis opened earlier is never cl... |
[
{
"role": "user",
"content": "Write a self-contained SuperCollider patch that uses `Ndef`. Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\nNdef(\\sound, { |freq = 56, numHarm = 10| Blip.ar(freq, numHarm, 30) * 0.2 }).play;\nNdef(\\sound).set(\\freq, 15);\nNde... |
[
{
"role": "user",
"content": "How does multi-channel expansion work?"
},
{
"role": "assistant",
"content": "If any argument of a UGen is an Array, the UGen is built once per element and the results are returned as an Array. So `SinOsc.ar([220, 330, 440])` is three oscillators, and `SinOsc.ar(220... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `LinPan2`."
},
{
"role": "assistant",
"content": "```supercollider\n// hear the difference, LinPan having a slight drop in the middle (yeah, it's subtle)...\n{ LinPan2.ar(SinOsc.ar(440), Line.kr(-1, 1, 5)) }.play;\n\n/... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\nVowel(); // defaults to A bass\nVowel(\\a, \\bass); \nVowel(\\e, \\tenor); \nVowel(\\i, \\counterTenor); \nVowel(\\o, \\alto); \nVowel(\\u, \\soprano); \n\n{Formants.ar(100, Vowe... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Pseq`."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\\help_sinegrain,\n { |out = 0, freq = 440, sustain = 0.05|\n var env;\n env = EnvGen.kr(Env.perc(0.01, sustain, 0.2), doneAction: Don... |
[
{
"role": "user",
"content": "Explain `NoteOnResponder` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "NoteOnResponder — allow functions to be registered to respond to MIDI noteOn events Category: External Control > MIDI."
}
] |
[
{
"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": "Write a minimal SuperCollider example that uses `Dgeom`."
},
{
"role": "assistant",
"content": "```supercollider\n// example\n\n(\n{\n var a, freq, trig;\n a = Dgeom(1, 1.2, 15);\n trig = Impulse.kr(MouseX.kr(1, 40, 1));\n freq = Demand.kr(trig, 0, a) * 30 + 340... |
[
{
"role": "user",
"content": "What does `Process.tailCallOptimize` do?"
},
{
"role": "assistant",
"content": "Get or set tail call optimization. The default is on. Setting this to `false` can help with debugging by including intermediate levels in an error"
}
] |
[
{
"role": "user",
"content": "What does `RedEffectModuleGUI.close` do?"
},
{
"role": "assistant",
"content": "Check if a window was created as parent and then closes"
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `HPZ1`."
},
{
"role": "assistant",
"content": "```supercollider\n// Compare:\n\n{ WhiteNoise.ar(0.25) }.play;\n\n{ HPZ1.ar(WhiteNoise.ar(0.25)) }.play;\n\n// HPZ1 is useful to detect changes in a signal:\n// see also H... |
[
{
"role": "user",
"content": "Write an Ndef with a saw source and a 200 Hz low-pass. (ugens saw, cutoff 200, lfo 0.8, 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 200 ... |
[
{
"role": "user",
"content": "What does `ArrayedCollection.shape` do?"
},
{
"role": "assistant",
"content": "Returns an array describing the dimension of each nested array. Requires #-isRectangular as a precondition. `[4, 7, 6, 8].shape //"
}
] |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n(\ns = Server.local;\nServer.default = s;\ns.boot;\n);\n \n(\np = Pbind(\n \\midinote, PlaceAll([[60, 61], 70, [80, [81, 81.5], 82]], inf),\n \\dur, 0.2\n);\n\nx = p.play;\n);\n\nx.stop;\n\n\n// to distinguis... |
[
{
"role": "user",
"content": "Explain `PV_MagSquared` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "PV_MagSquared — Square magnitudes. Squares the magnitudes and renormalizes to previous peak. This makes weak bins weaker. Category: UGens > FFT."
}
] |
[
{
"role": "user",
"content": "What is `MonoAudioIn` in SuperCollider?"
},
{
"role": "assistant",
"content": "MonoAudioIn — takes the first channel fo the audio input and duplicates it as a stereo output pending deprecation Category: Libraries > crucial > Players."
}
] |
[
{
"role": "user",
"content": "Show another SuperCollider example using `List`."
},
{
"role": "assistant",
"content": "```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 ... |
[
{
"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": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\np = SFPlayer.new; //shows open file dialog\n\n//specify the file\np = SFPlayer.new(Platform.resourceDir +/+ \"sounds/a11wlk01.wav\";\np.play;\np.stop;\np.gui;\n\n// shows open fi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.