conversations listlengths 2 6 |
|---|
[
{
"role": "user",
"content": "Write a kick at amp 0.6 with a click. (osc sine, sweep 0.06, decay 0.12, f0 220, f1 40, amp 0.6, rev 1)"
},
{
"role": "assistant",
"content": "Start with a swept sine, then shorten the decay to taste:\n\n```supercollider\n// kick drum: sine oscillator, 0.06 s pitch ... |
[
{
"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": "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": "Write a minimal SuperCollider example that uses `RunningSum`."
},
{
"role": "assistant",
"content": "```supercollider\n// distorts of course - would need scaling\n{ RunningSum.ar(SoundIn.ar) }.play\n\n// Running Average over x samples\n(\n{\n var x = 100;\n Ru... |
[
{
"role": "user",
"content": "What is `FoaMagW` in SuperCollider?"
},
{
"role": "assistant",
"content": "FoaMagW — First Order Ambisonic (FOA) Magnitude of Soundfield Complex Energy Vector Return the Magnitude of Complex Energy Vector, ||W||, of a first order ambisonic (B-format) signal. Categor... |
[
{
"role": "user",
"content": "Explain `ControlDur` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "ControlDur — Duration of one block Returns the current block duration of the server in seconds. Equivalent to 1 / ControlRate. Category: UGens > Info."
}
] |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n(\n{ var nse, env, kic;\n kic = tanh(Ringz.ar(LPF.ar(Trig.ar(Impulse.ar(1.0),SampleDur.ir),1000),30,0.25,7).sin*2);\n env = Env.perc(0.05, 1, 1, -4);\n nse = BrownNoise.ar(2) + PinkNoise.ar(0.5) * EnvGen.kr(env,Impul... |
[
{
"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 is `AmpComp` in SuperCollider?"
},
{
"role": "assistant",
"content": "AmpComp — Basic psychoacoustic amplitude compensation. Implements the (optimized) formula: Category: UGens > Analysis > Amplitude."
}
] |
[
{
"role": "user",
"content": "What does `SimpleNumber.gaussCurve` do?"
},
{
"role": "assistant",
"content": "Map the receiver onto a gauss function. Uses the"
}
] |
[
{
"role": "user",
"content": "Give me a sine kick with a 0.06 s pitch sweep. (osc sine, sweep 0.06, decay 0.5, f0 220, f1 48, amp 0.6, rev 0)"
},
{
"role": "assistant",
"content": "Start with a swept sine, then shorten the decay to taste:\n\n```supercollider\n// kick drum: sine oscillator, 0.06 ... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n// Create a new empty collections with size 3:\nx = Array.new(3);\ny = Array.new(3);\nz = List.new(3);\n\n// Try to add 7 items to the array and list.\n// If the array exceeds maxSize, it will only\n// grow to an internal... |
[
{
"role": "user",
"content": "Explain `Fb1_Lorenz` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "Fb1_Lorenz — Lorenz pseudo ugen Fb1_ODE wrapper for the Lorenz ODE system: Category: Libraries > miSCellaneous > Nonlinear."
}
] |
[
{
"role": "user",
"content": "Show another SuperCollider example using `BrownNoise`."
},
{
"role": "assistant",
"content": "```supercollider\n{ SinOsc.ar(BrownNoise.ar(100, 200)) * 0.1 }.play;\n```"
}
] |
[
{
"role": "user",
"content": "How do I play a random majorPentatonic scale at octave 6? (scale majorPentatonic, seq Prand, dur 0.4, octave 6, instr pluck, root 0)"
},
{
"role": "assistant",
"content": "`Pbind` sequences an Event per beat, and `\\degree` + `\\scale` does the pitch:\n\n```supercol... |
[
{
"role": "user",
"content": "Can you listen to the sound you generate?"
},
{
"role": "assistant",
"content": "No. I am 198M parameters trained on SuperCollider's documentation and class library; I have no audio input and no way to hear a result. What I can do is reason about the code: whether i... |
[
{
"role": "user",
"content": "What is `Bus` in SuperCollider?"
},
{
"role": "assistant",
"content": "Bus — Representation of a bus on the server The clientside representation of an audio or control bus on a server. Encapsulates all the Browse#OpenSoundControl#OSC messages a Bus can receive. Mana... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `NamedControl`."
},
{
"role": "assistant",
"content": "```supercollider\n// use NamedControl to create a number of multichannel controls:\n\na = { SinOsc.ar(NamedControl.kr(\\freq, [300, 330, 370], [1, 0.3, 0.02])).sum... |
[
{
"role": "user",
"content": "Write a SuperCollider patch that uses `Dibrown` and actually plays. Assume nothing about the session."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var a, freq, trig;\n a = Dibrown(0, 15, 1, inf);\n trig = Impulse.kr(MouseX.kr(1, 40, 1));\n fre... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n// poor man's panning\n{\n var f, hornbostelwertheimerkonstante;\n f = MouseY.kr(1, 100, 1);\n hornbostelwertheimerkonstante = 0.00063;\n Impulse.ar(f, hornbostelwertheimerkonstante * f * [1, MouseX.kr(0, 2)], 0.1) \... |
[
{
"role": "user",
"content": "Write a SuperCollider patch for phasemodulation feedback and allpass network. Start by defining the values the patch depends on."
},
{
"role": "assistant",
"content": "```supercollider\nn=LFNoise1;Ndef(\\x,{a=SinOsc.ar(65,Ndef(\\x).ar*n.ar(0.1,3),n.ar(3,6)).tanh;9.d... |
[
{
"role": "user",
"content": "Write a SuperCollider patch that uses `Routine` and actually plays. Assume nothing about the session."
},
{
"role": "assistant",
"content": "```supercollider\n// SynthDefs on the fly\ns.boot;\n(\nt = TempoClock.new;\nr = Routine.new({\n 10.do({\n // could be don... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\nb= Buffer.read(s,\"sounds/break\",20000,10000);\n\n//gradual erosion\n(\nSynthDef(\"help-sortbuf\",{arg bufnum;\nOut.ar(0,\nPan2.ar( \nSortBuf.ar(bufnum,LFNoise0.kr(5,50000,60000),0)\n,0.0))\n}).play(s,[\\bufnum, b.bufnum... |
[
{
"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": "What does `FlowLayout.margin` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "The horizontal and vertical inner margins, within which the parent's subviews are Arguments: arg1 — An instance of Point.."
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `T2A`."
},
{
"role": "assistant",
"content": "```supercollider\n// example\n(\n{\n var trig = Impulse.kr(MouseX.kr(1, 100, 1));\n Ringz.ar(T2A.ar(trig), 800, 0.01) * 0.4\n}.play;\n);\n\n// compare with K2A\n(\n{\n v... |
[
{
"role": "user",
"content": "Explain `RedMRCM` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "RedMRCM — multiple reduction copy machine Plotting with Pen. After Flake - \"The Computational Beauty of Nature\". Category: Red > redUniverse > additional."
}
] |
[
{
"role": "user",
"content": "What does `LibraryBase.atList` do?"
},
{
"role": "assistant",
"content": "Access the dictionary at a path, given as a list of keys. The keys may be any object, but are usually"
}
] |
[
{
"role": "user",
"content": "What does `Updater.remove` do?"
},
{
"role": "assistant",
"content": "simple MVC utility; calls an update handler when the model changes"
}
] |
[
{
"role": "user",
"content": "What does `FoaFocusX.ar` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "First Order Ambisonic (FOA) focus transformer Arguments: in — The B-format signal, an array: [w, x, y, z]; angle — The distortion angle, in radians. -pi/2 to pi/2; mul —... |
[
{
"role": "user",
"content": "How do I granulate a sample with 0.2 s grains? (rate 10, dur 0.2, interp 2, mode noise, rev 1)"
},
{
"role": "assistant",
"content": "`GrainBuf` needs a buffer, a trigger and a grain duration:\n\n```supercollider\n// granular synth with GrainBuf\n(\ns.waitForBoot {\... |
[
{
"role": "user",
"content": "Write a pluck whose tail uses combn. (verb combn, room 0.7, damp 0.2, mix 0.3, source pluck)"
},
{
"role": "assistant",
"content": "`FreeVerb` is in the core library; the room and damp arguments do the work:\n\n```supercollider\n// reverb: combn on a pluck\n(\nSynth... |
[
{
"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 `EaseOutExpo` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "EaseOutExpo — Exponential ease-out Easing equation for an exponential (2^t) ease-out, decelerating from zero velocity. Category: Ease."
}
] |
[
{
"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{ 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": "assistant",
"content": "A closing bracket is missi... |
[
{
"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": "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": "Write a SuperCollider patch that uses `RunningSum` and actually plays. Assume nothing about the session."
},
{
"role": "assistant",
"content": "```supercollider\n// RMS Power\n(\n{\n var input, numsamp;\n\n input = LFSaw.ar;\n numsamp = 30;\n\n (RunningS... |
[
{
"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": "How do I build a live drone with Ndef at 220 Hz? (ugens saw, cutoff 400, 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: saw source through a 400 Hz low... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// synth definition with raising frequency\n\n(\nSynthDef(\\synth_0, { |devFactor = 0.1, devFreq = 10, amp = 0.1|\n var freq = XLine.kr(400, 1200, 10); \n Out.ar(0, SinOsc.... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\ns.boot;\n\n(\nSynthDef(\"help-phaseShift\", { |out = 0|\n var in, chain;\n in = SinOsc.ar(500);\n chain = FFT(LocalBuf(2048), in);\n chain = PV_PhaseS... |
[
{
"role": "user",
"content": "What is `Concat2` in SuperCollider?"
},
{
"role": "assistant",
"content": "Concat2 — Concatenative Cross-Synthesis on Live Streams See Concat for a longer description. This version two is a \"better live concatenative synthesiser\". Category: UGens > GranularSynthes... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Synth`."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\n// create a Synth at the head of the default Server's default group\n// based on the SynthDef \"default\"\nx = Synth.new(\"default\");\ns.query... |
[
{
"role": "user",
"content": "What is `RedPendulum` in SuperCollider?"
},
{
"role": "assistant",
"content": "RedPendulum — an object that oscillates Category: Red > redUniverse."
}
] |
[
{
"role": "user",
"content": "Write a granular texture, dry. (rate 28, 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 with GrainBuf\n(\ns.waitForBoot {\... |
[
{
"role": "user",
"content": "What is a SynthDef?"
},
{
"role": "assistant",
"content": "A SynthDef is a named, compiled server-side instrument: a UGen graph plus named controls. You build one with SynthDef(\\name, { |args| ... }).add, and then play instances with Synth(\\name)."
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `PV_Mul`."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\n\n(\nSynthDef(\"help-mul\", { |out = 0|\n var inA, chainA, inB, chainB, chain ;\n inA = SinOsc.ar(500, 0, 0.5);\n inB = SinOsc.ar(Line.kr(... |
[
{
"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": "What does `PlayerSocket.setSource` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "a player that can play other players using a cross-faded and fuse-protected socket Arguments: s; atTime — see atTime; releaseTime."
}
] |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n(\n// use input amplitude to control Pulse amplitude - use headphones to prevent feedback.\nSynthDef(\"help-AmplitudeMod\",{ arg out=0;\n Out.ar(out,\n Pulse.ar(90, 0.3, Amplitude.kr(SoundIn.ar))\n )\n}).play;\n\n);\... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n(\nb = Bus.audio(s, 2);\na = { |inbus = 0|\n var sig = In.ar(inbus, 2);\n // x axis is side, oriented toward right;\n // y axis is mid\n [sig[1] - sig[0], sig.sum]\n}.play(s.defaultGroup, outbus: b, addAction: \\addA... |
[
{
"role": "user",
"content": "Give me a Pbind with pluck voices and a 0.4 rhythm. (scale majorPentatonic, seq Pwalk, dur 0.4, octave 6, 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": "Explain `HLayoutView` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "HLayoutView — A container view that arranges its children horizontally Category: GUI > Views."
}
] |
[
{
"role": "user",
"content": "What does `PV_MagDiv.new` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Division of magnitudes Arguments: bufferA — fft buffer A.; bufferB — fft buffer B.; zeroed — number to use when bins are zeroed out, i.e. causing division by zero (defa... |
[
{
"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 does `RedMixerChannel.cvs` do?"
},
{
"role": "assistant",
"content": "Dictionary with all Ref objects. (used to be CV"
}
] |
[
{
"role": "user",
"content": "What does `RedAgent.act` do?"
},
{
"role": "assistant",
"content": "A Function. Called as the second thing in the agent's update"
}
] |
[
{
"role": "user",
"content": "Write a kick drum with a 0.35 s decay."
},
{
"role": "assistant",
"content": "The pitch envelope is what makes it read as a drum, not the oscillator:\n\n```supercollider\n// kick drum: saw oscillator, 0.06 s pitch sweep\n(\nSynthDef(\\kick_synth, { |out = 0, amp = 0... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `LFPulse`."
},
{
"role": "assistant",
"content": "```supercollider\n{ LFPulse.ar(XLine.kr(1, 200, 10), 0, 0.2, 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{ ClipNoise.ar(0.2 }.play;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis opened earlier is never closed, so the expression... |
[
{
"role": "user",
"content": "Show me a self-contained SuperCollider patch using `Dswitch1`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var a, freq, trig;\n a = Dswitch1([1, 3, MouseY.kr(1, 15), 2, Dwhite(0, 3, 2)], MouseX.kr(0, 4));\n trig... |
[
{
"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": "What is `GlitchRHPF` in SuperCollider?"
},
{
"role": "assistant",
"content": "GlitchRHPF — backward compatibility after sc3.4 HPF and RHPF were changed to use double-precision floats (svn revision: 10300 - 8sep2010). GlitchHPF and GlitchRHPF can be used as drop-in r... |
[
{
"role": "user",
"content": "What does `SequenceableCollection.sort` do?"
},
{
"role": "assistant",
"content": "Sort the contents of the collection using the comparison function argument. If the function is nil, the following default function is used: `{ |a, b| a <= b }`. The comparison functio... |
[
{
"role": "user",
"content": "List of exit codes?"
},
{
"role": "assistant",
"content": "SuperCollider forum — List of exit codes?\n\n7068696c:\n\n```supercollider\no = s.options;\no.inDevice = nil;\no.outDevice = \"ASIO : ASIO4ALL\";\n```\n\nHmmmm... In earlier SC versions, it wouldn’t have wor... |
[
{
"role": "user",
"content": "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": "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": "What is `Main`?"
},
{
"role": "assistant",
"content": "Main — The concrete instance of Process"
},
{
"role": "user",
"content": "What does `Main.thisProcess` do?"
},
{
"role": "assistant",
"content": "The singleton instance of Main is availab... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{WalshHadamard.ar(SoundIn.ar, MouseX.kr(0,64)}.play\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis opened earlier is never ... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n// check blockSize before (or reset blockSize in examples)\n\n(\nif (s.options.blockSize != 64) {\n s.options.blockSize = 64;\n s.quit.reboot;\n}\n);\n\n// With divisions we must avoid division by zero resp. blowup, her... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `BrownNoise`."
},
{
"role": "assistant",
"content": "```supercollider\n{ SinOsc.ar(BrownNoise.ar(100, 200)) * 0.1 }.play;\n```"
}
] |
[
{
"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 is `AbstractServerAction`?"
},
{
"role": "assistant",
"content": "AbstractServerAction — register actions to be taken for a server"
},
{
"role": "user",
"content": "What does `AbstractServerAction.functionSelector` do?"
},
{
"role": "assista... |
[
{
"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": "What does `SimpleNumber.cylNeumannZero` do?"
},
{
"role": "assistant",
"content": "Returns a single zero or root of the Neumann function (Bessel function of the second kind). `index` is a 1-based index of zero of the cylindrical Neumann function of order"
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `OnePole`."
},
{
"role": "assistant",
"content": "```supercollider\n{ OnePole.ar(WhiteNoise.ar(0.5), 0.95) }.play\n\n{ OnePole.ar(WhiteNoise.ar(0.5), -0.95) }.play\n\n{ OnePole.ar(WhiteNoise.ar(0.5), Line.kr(-0.99, 0.9... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Dswitch1`."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var a, freq, trig;\n a = Dswitch1([1, 3, MouseY.kr(1, 15), 2, Dwhite(0, 3, 2)], MouseX.kr(0, 4));\n trig = Impulse.kr(3);\n freq = Demand.... |
[
{
"role": "user",
"content": "What is a SynthDef?"
},
{
"role": "assistant",
"content": "A SynthDef is a named, compiled server-side instrument: a UGen graph plus named controls. You build one with SynthDef(\\name, { |args| ... }).add, and then play instances with Synth(\\name)."
}
] |
[
{
"role": "user",
"content": "Saving \"Presets\"?"
},
{
"role": "assistant",
"content": "SuperCollider forum — Saving \"Presets\"?\n\nIf you don’t care too much about it being human readable, just use writeArchive and readArchive:\n\n```supercollider\na = Array.fill(400, {rrand(0,2200)});\n\na.w... |
[
{
"role": "user",
"content": "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": "Write a minimal SuperCollider example that uses `FFTTrigger`."
},
{
"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 undul... |
[
{
"role": "user",
"content": "What is `InTrig` in SuperCollider?"
},
{
"role": "assistant",
"content": "InTrig — Generate a trigger anytime a bus is set. Any time the bus is \"touched\", ie. has its value set (using \"/c_set\" etc.), a single impulse trigger will be generated. Its amplitude is t... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n// Since the allpass delay has no audible effect as a resonator on\n// steady-state sound ...\n\n{ AllpassC.ar(WhiteNoise.ar(0.1), 0.01, XLine.kr(0.0001, 0.01, 20), 0.2) }.play;\n\n// ...these examples add the input to th... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\n// use input amplitude to control SinOsc frequency - use headphones to prevent feedback.\n{\n SinOsc.ar(\n Amplitude.kr(\n SoundIn.ar(0),\... |
[
{
"role": "user",
"content": "Write a Pbind in majorPentatonic using Pwalk for the degrees."
},
{
"role": "assistant",
"content": "`Pbind` sequences an Event per beat, and `\\degree` + `\\scale` does the pitch:\n\n```supercollider\n(\nSynthDef(\\pluck, { |out = 0, freq = 440, amp = 0.2|\n var... |
[
{
"role": "user",
"content": "Write a granular texture, dry. (rate 28, dur 0.04, interp 4, mode noise, 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": "Explain `RedIntelHex` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "RedIntelHex — read and decode intel hex files See http://en.wikipedia.org/wiki/Intel_HEX and http://www.sbprojects.com/knowledge/fileformats/intelhex.php Category: Red > redTools.... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\n{\n var f, sf, g;\n sf = LFNoise0.ar(MouseX.kr(1, 100, 1));\n g = MouseY.kr(0.1, 10, 1);\n f = Ball.ar(sf, g, 0.01, 0.01);\n f = f * 140 + 500;\n SinOsc.ar(f, 0, 0.2)\n}... |
[
{
"role": "user",
"content": "Add freeverb to a kick patch at room 0.85."
},
{
"role": "assistant",
"content": "A send-style patch: dry signal plus the reverb on the tail:\n\n```supercollider\n// reverb: freeverb on a kick\n(\nSynthDef(\\reverb_synth, { |out = 0, freq = 330, amp = 0.2|\n var ... |
[
{
"role": "user",
"content": "Give me a fm kick with a 0.06 s pitch sweep. (osc fm, sweep 0.06, decay 0.12, f0 180, f1 55, amp 0.6, rev 0)"
},
{
"role": "assistant",
"content": "Start with a swept sine, then shorten the decay to taste:\n\n```supercollider\n// kick drum: fm oscillator, 0.06 s pit... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `LFDNoise3`."
},
{
"role": "assistant",
"content": "```supercollider\n// try wiggling mouse quickly:\n// LFNoise2 overshoots when going from high to low freqs, LFDNoise changes smoothly.\n\n{ SinOsc.ar(LFNoise2.ar(Mou... |
[
{
"role": "user",
"content": "How do I make a kick that starts at 220 Hz and falls to 55 Hz? (osc saw, sweep 0.06, decay 0.18, f0 220, f1 55, 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// kic... |
[
{
"role": "user",
"content": "What does `QPalette.highlightText` do?"
},
{
"role": "assistant",
"content": "Convenience method to get or set the color for the 'highlightText'"
}
] |
[
{
"role": "user",
"content": "What does `MxDocument.eval` do?"
},
{
"role": "assistant",
"content": "a wrapper for placing code Documents onto the Mx grid"
}
] |
[
{
"role": "user",
"content": "Write a SuperCollider patch that uses `Pan2` and actually plays. Assume nothing about the session."
},
{
"role": "assistant",
"content": "```supercollider\ng = Group.new;\n\n// make 4 synths in g\n// 1.0.rand2 returns a random number from -1 to 1.\n4.do({ { arg amp ... |
[
{
"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": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\ns.boot\nb = Bus.audio(s, 2);\na = { SinOsc.ar([330, 440], 0, 0.4) }.play(s, b // you won't hear this if you only have two channels\nb.scope\n\na.free;\nb.free;\n```"
},
{
... |
[
{
"role": "user",
"content": "What is `SmoothFoldQ` in SuperCollider?"
},
{
"role": "assistant",
"content": "SmoothFoldQ — wave folding pseudo ugen using parabolic segments Wave folding using SmoothClipQ. Values outside the range lo-hi are folded back, if foldRange > 0. A larger foldRange means ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.