conversations listlengths 2 6 |
|---|
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\na = {LFTri.ar(50+(1000*Maths.ar(10, 10, 0.5, 1)[0]), 0, 0.1)}.play //notice how I am taking the [0]th channel of the Maths and ignoring the [1st channel.\n```"
},
{
"role... |
[
{
"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": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// the following two lines produce equivalent results\n{ SinOsc.ar(440, 0, 0.3) }.play(fadeTime: 0.0);\nSynthDef(\\help_FuncPlay, { Out.ar(0, SinOsc.ar(440, 0, 0.3)) }.play;\n```... |
[
{
"role": "user",
"content": "Write a chord progression with Pbind."
},
{
"role": "assistant",
"content": "Put an array of degrees in the pattern, use \\strum to spread the chord, and the default instrument\nplays all notes of each event.\n\n```supercollider\n(\nPbind(\n \\scale, Scale.minor,... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// default initial params\n{ LatoocarfianC.ar(MouseX.kr(20, SampleRate.ir)) * 0.2 }.play(s;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: ... |
[
{
"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": "Explain `Mono` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "Mono — mixes the input to mono if it isn't already Mixes the input to mono if it isn't already. Category: UGens > Multichannel."
}
] |
[
{
"role": "user",
"content": "Show another SuperCollider example using `InFeedback`."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\"help-InFeedback\", { |out = 0, in = 0|\n Out.ar(out,\n InFeedback.ar(in, 1)\n );\n}).add;\nSynthDef(\"help-SinOsc\", { |out = 0, freq =... |
[
{
"role": "user",
"content": "Explain `RedOscillator2` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "RedOscillator2 — doubly coupled oscillator See https://www.complexity-explorables.org/explorables/janus-bunch/ Category: Red > redUniverse."
}
] |
[
{
"role": "user",
"content": "What does `PitchShiftPA.ar` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Phase-Aligned Pitch and Formant Shifter Arguments: in — The monophonic (single-voice) input signal.; freq — The tracked frequency of the input signal (e.g. using Pitc... |
[
{
"role": "user",
"content": "Write a SuperCollider patch for Electrode Theremin (a SuperCollider snippet) that runs as it is, with nothing assumed about the session."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var saw, bpf;\n saw = Saw.ar(\n freq: 30, \n mul: SinOsc.... |
[
{
"role": "user",
"content": "How do I granulate a sample with 0.04 s grains? (rate 14, dur 0.04, interp 2, mode sweep, rev 1)"
},
{
"role": "assistant",
"content": "A working granular patch, with the buffer loaded before the synth starts:\n\n```supercollider\n// granular synth with GrainBuf\n(\... |
[
{
"role": "user",
"content": "Explain `Option` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "Option — Represents optional values. In programming languages (especially functional programming languages) an option type is a polymorphic type that represents encapsulation of an opt... |
[
{
"role": "user",
"content": "Explain `SDroneFrequencies` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "SDroneFrequencies — control SDrone frequencies Frequency control for LINKClasses/SDrone. Category: SInstruments."
}
] |
[
{
"role": "user",
"content": "What are the arguments of GrainBuf.ar?"
},
{
"role": "assistant",
"content": "`GrainBuf.ar(numChannels, trigger, dur, sndbuf, rate, pos, interp, pan, envbufnum, maxGrains, mul, add)`. The ones you always pass are numChannels (1 or 2), trigger (a UGen that fires grai... |
[
{
"role": "user",
"content": "Write a GrainBuf synth at 16 grains per second. (rate 16, dur 0.15, interp 2, 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.w... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `PulseCount`."
},
{
"role": "assistant",
"content": "```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.0... |
[
{
"role": "user",
"content": "Give me a granular patch with noise grain position and interp 4. (rate 10, dur 0.2, 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": "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": "Write a minimal SuperCollider example that uses `PanB2`."
},
{
"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 // B... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n(\n{\nvar trigger, fund, flashInst;\nflashInst = Array.fill(7,\n{\ntrigger = Dust.kr(2)*PinkNoise.ar(1);\nfund = rrand(100, 137);\nPan2.ar(\nMix.ar(\nArray.fill(7,\n{arg counter;\nvar partial;\npartial = counter + 3;\n//... |
[
{
"role": "user",
"content": "Write a GrainBuf synth at 20 grains per second."
},
{
"role": "assistant",
"content": "Granulation is `GrainBuf` plus a trigger rate; the position can move:\n\n```supercollider\n// granular synth with GrainBuf\n(\ns.waitForBoot {\n var buf = Buffer.read(s, Platfo... |
[
{
"role": "user",
"content": "What is `RedDTMF` in SuperCollider?"
},
{
"role": "assistant",
"content": "RedDTMF — old-skool telephone Silly class simulating old telephone tone dialing and ring signals. See http://en.wikipedia.org/wiki/DTMF Category: Red > redUGens."
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\na = { |x, root = 60| x + root }; b = a.midicps; [a.value(9), b.value(9)];\na = Pseries(60, 1, inf).midicps; a.asStream.nextN(12);\n{ a = LFNoise1.ar(1) * 5 + 60; Pulse.ar(a.round... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `DC`."
},
{
"role": "assistant",
"content": "```supercollider\n// won't work (the output is 0.5*0.0), which is why we need the DC UGen!\n{ 0.5 }.play\n\n// constantly zero\n{ DC.ar(0.0) }.play;\n\n\n// DC offset; will ... |
[
{
"role": "user",
"content": "What does `Object.repeat` do?"
},
{
"role": "assistant",
"content": "Repeatedly embeds the receiver in the stream using a Pn (may thus be used for patterns and other objects alike) `a ="
}
] |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n(\n{\n var time = 0.23;\n var freq = (55).midicps;\n var a = VarSaw.ar(freq/2, width: XLine.ar(0.5,1,time)).range(0,XLine.ar(0.666,1/666,time));\n var tone = SinOsc.ar(freq).fold(-0.23*a,a) * EnvGen.ar(Env([1,0],[tim... |
[
{
"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": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\ns.boot\n\n{ Ringz.ar(PinkNoise.ar([0.1, 0.2]).scope(\\pink), 2000, 1, 0.25 }.play; // multichannel works\ns.scope; // can still separately scope the output of the server\n```"
... |
[
{
"role": "user",
"content": "Explain this code:\n```supercollider\nNdef(\\x, { Saw.ar(110) * 0.1 }).play;\nNdef(\\x)[1] = \\filter -> { |in| RLPF.ar(in, 800, 0.4) };\n```"
},
{
"role": "assistant",
"content": "Two nodes in one named proxy: a saw source, then a resonant low-pass filter fed by it... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Unpack1FFT`."
},
{
"role": "assistant",
"content": "```supercollider\n// Let's extract the DC component - i.e. the magnitude at binindex zero.\n(\n{\n var sig, chain, stream, windowStarts, demand;\n var fftsize = 10... |
[
{
"role": "user",
"content": "Write a 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": "How should I check an answer you give me?"
},
{
"role": "assistant",
"content": "Three quick checks, cheapest first. Does it evaluate without a syntax error — the post window points at the exact character. Does the node appear in `s.plotTree` — if yes, the problem i... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// as frequency control...\n(\n{\nSinOsc.ar(\n LinCongC.ar(\n 40,\n LFNoise2.kr(0.1, 0.1, 1),\n LFNoise2.kr(0.1, 0.1, 0.1),\n LFNoise2.kr(0.1),\n 0, 500, 600\n )... |
[
{
"role": "user",
"content": "What is `Node`?"
},
{
"role": "assistant",
"content": "Node — Abstract superclass of Synth and Group"
},
{
"role": "user",
"content": "What does `Node.free` do?"
},
{
"role": "assistant",
"content": "Stop this Node and free it from its parent... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{\nvar a, b, t = Impulse.kr(2);\na = { Dseq([1, 2, 3, 4, 5], inf) } * 100;\nb = a + 1;\nDemand.kr(t, 0, [a, b]).poll(t\n}.play\n```"
},
{
"role": "assistant",
"conten... |
[
{
"role": "user",
"content": "Write a kick at amp 0.6 with a click. (osc fm, sweep 0.06, decay 0.35, f0 220, f1 55, 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: fm oscillator, 0.06 s pitch swee... |
[
{
"role": "user",
"content": "How do I get a Euclidean-style rhythm in SuperCollider?"
},
{
"role": "assistant",
"content": "Describe the pattern as a list of hits and rests; `Rest` gives the gap without starting a Synth.\n\n```supercollider\n(\nPbind(\n \\instrument, \\hat,\n \\dur, 0.125... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `FBSineL`."
},
{
"role": "assistant",
"content": "```supercollider\n// default initial params\n{ FBSineL.ar(SampleRate.ir/4) * 0.2 }.play(s);\n```"
}
] |
[
{
"role": "user",
"content": "Explain `PLorenzN` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "PLorenzN — UGenPatterns quark library Lorenz Attractor. Category: Streams-Patterns-Events > UGenPatterns > Generators."
}
] |
[
{
"role": "user",
"content": "What were you trained on?"
},
{
"role": "assistant",
"content": "The official SuperCollider tree, 321 Quarks, sccode.org, scsynth.org, sc3-plugins and this project's own sessions: 25.8M tokens, then 6,000 supervised rows whose code answers all compile."
}
] |
[
{
"role": "user",
"content": "Give me a granular patch with sweep grain position and interp 2. (rate 6, dur 0.1, interp 2, mode sweep, rev 1)"
},
{
"role": "assistant",
"content": "A working granular patch, with the buffer loaded before the synth starts:\n\n```supercollider\n// granular synth wi... |
[
{
"role": "user",
"content": "What does `SDrone.defName` do?"
},
{
"role": "assistant",
"content": "a LINKClasses/Symbol used for the internal"
}
] |
[
{
"role": "user",
"content": "Write a Pbind in minorPentatonic using Pshuf for the degrees. (scale minorPentatonic, seq Pshuf, dur 0.4, octave 4, instr pluck, root 0)"
},
{
"role": "assistant",
"content": "Put the scale and the degree pattern in the `Pbind` and it will pick notes for you:\n\n```... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `Control`."
},
{
"role": "assistant",
"content": "```supercollider\na = { SinOsc.ar(\\freq.kr(440, 1.2)) }.play;\na.set(\\freq, 330);\na.release;\na = { SinOsc.ar(\\freq.kr([440, 460], 1.2)) }.play;\na.setn(\\freq, [330, 367]... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\na = {\n var dur;\n\n dur = 0.1;\n\n LFTri.ar(100+(1000*Maths.ar(dur/2, dur/2, 0.99, 1, 0, 1, LFNoise0.ar(1/dur).range(0,1))[0]), 0, 0.1)\n}.play\n```"
},
{
"role": ... |
[
{
"role": "user",
"content": "Explain `DXEnvFanOut` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "DXEnvFanOut — sends crossfade envelopes to out buses according to demand-rate control DXEnvFanOut sends multichannel envelopes, which are used by DXMix / DXMixIn / DXFan / DXFanOu... |
[
{
"role": "user",
"content": "Write a kick drum with a 0.35 s decay. (osc fm, sweep 0.06, decay 0.35, f0 180, f1 40, amp 0.8, 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 pitch swe... |
[
{
"role": "user",
"content": "What does `UChain.put` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Place unit at Arguments: index — Int; unit."
}
] |
[
{
"role": "user",
"content": "What does `SimpleNumber.coin` do?"
},
{
"role": "assistant",
"content": "Let x be the receiver clipped to the range [0, 1]. With probability x, return true. With probability 1 - x, return"
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\nx = {\n // A collection of different tones:\n var son = SinOsc.ar((100, 100.3 .. 110));\n var val = ArrayMax.ar(son).at(0);\n val = LeakDC.ar(val); // the operation tends ... |
[
{
"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 `Ball`."
},
{
"role": "assistant",
"content": "```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 SinOs... |
[
{
"role": "user",
"content": "How current is your SuperCollider knowledge?"
},
{
"role": "assistant",
"content": "It comes from a snapshot of the SuperCollider repository (documentation, class library and examples) plus code I can reason about. So classes and arguments in that snapshot I know we... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// this does not work:\n(\n{\n var trig = Dust.ar(4);\n Trig.kr(trig, 0.1) * SinOsc.ar(800) * 0.1\n}.play;\n);\n\n// this works:\n(\n{\n var trig = T2K.kr(Dust.ar(4));\n Trig... |
[
{
"role": "user",
"content": "Show me a self-contained SuperCollider patch using `Duty`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\n(\n {\n var freq;\n freq = Duty.kr(\n Drand([0.01, 0.2, 0.4], inf), // demand ugen as durations\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 = 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": "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": "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": "Explain this SuperCollider patch.\n```supercollider\n////////////// xosc nufo is unused by now ///////////\n// OSCdef(\\xoscAlive, { |msg, time|\n// if (NTMI.nufo.lastInTime == 0 or: { NTMI.nufo.timeSinceLast > 10 }) {\n// Tdef(\\allLEDs).play;\n// };\n// NTMI.nufo.de... |
[
{
"role": "user",
"content": "What does `KeyCodeResponder.capsModifier` do?"
},
{
"role": "assistant",
"content": "register responder functions for keycode and modifier combinations"
}
] |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\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 stays constant\n{ Formant.ar(200, XLine.kr(4... |
[
{
"role": "user",
"content": "Write a kick whose tail uses freeverb. (verb freeverb, room 0.5, damp 0.2, mix 0.3, source kick)"
},
{
"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(\\reve... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Archive`."
},
{
"role": "assistant",
"content": "```supercollider\n// make a storage place for various objects:\nq = (); // Event\n\nq[\\a_long_array] = Array.rand(128, 0.0, 1.0);\nq[\\pi_squared] = pi * pi;\nq[\\favo... |
[
{
"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": "Show me a self-contained SuperCollider patch using `LPF`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\nSynthDef(\\default, { arg out=0, freq=440, amp=0.1, pan=0, gate=1;\n var z;\n z = LPF.ar(\n Mix.new(VarSaw.ar(fr... |
[
{
"role": "user",
"content": "Explain `TrigControl` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "TrigControl — FIXME: TrigControl purpose. FIXME: TrigControl description. Category: UGens > Synth control, UGens > Undocumented."
}
] |
[
{
"role": "user",
"content": "How do I build a live drone with Ndef at 220 Hz?"
},
{
"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_220_200, { |freq... |
[
{
"role": "user",
"content": "Explain `SmoothFoldS2` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "SmoothFoldS2 — wave folding pseudo ugen using sine segments, two fold ranges Wave folding using SmoothClipS. Values outside the range lo-hi are folded back, if the concerned fold... |
[
{
"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": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\ns.boot;\nb = Buffer.new(s);\n// read only the first channel (a Sine wave) of a stereo file\nb.allocReadChannel(ExampleFiles.sinedPink, channels: [0]);\nx = { PlayBuf.ar(1, b, Buf... |
[
{
"role": "user",
"content": "Build a slowly evolving drone with Ndef."
},
{
"role": "assistant",
"content": "Ndef gives you a named patch you can redefine while it plays; the filter is a separate node in the\nchain so you can change it on its own.\n\n```supercollider\n(\nNdef(\\drone, { |freq =... |
[
{
"role": "user",
"content": "Explain `QPenPrinter` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "QPenPrinter — QPen PDF export and printing of vector graphics QPenPrinter allows Pen to operate on a printer device. The graphics can be exported to PDF by using \"print to file\"... |
[
{
"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 = Diwhite(0, 15, 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": "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": "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 SuperCollider patch that uses `TWChoose` and actually plays. Assume nothing about the session."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var a;\n a = [\n SinOsc.ar,\n Saw.ar,\n Pulse.ar\n ];\n TWChoose.ar(Dust.ar(Mo... |
[
{
"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 minimal SuperCollider example that uses `Recorder`."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{ SinOsc.ar(\n SinOsc.ar(\n XLine.kr(1, 100, 5)).exprange(*XLine.kr([20, 800], [7000, 200], 10)\n )\n ) * 0.1\n\n}.play;\ns.record(durati... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `BufWr`."
},
{
"role": "assistant",
"content": "```supercollider\n(\n// allocate a buffer for writinig into\ns = Server.local;\ns.sendMsg(\"/b_alloc\", 0, 44100 * 2);\n);\n\n\n// write into the buffer with a BufWr\n(\n... |
[
{
"role": "user",
"content": "Explain this SuperCollider code.\n```supercollider\n// another example\n\n(\n// must have power of two framesize- FFT size will be sorted by Convolution2 to be double this\n// maximum is currently a = 8192 for FFT of size 16384\na = 2048;\n// kernel buffer\ng = Buffer.alloc(s, ... |
[
{
"role": "user",
"content": "Write a GrainBuf synth at 14 grains per second. (rate 14, dur 0.2, interp 4, mode noise1, 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.w... |
[
{
"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 BLowPass.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 is `BelaScope`?"
},
{
"role": "assistant",
"content": "BelaScope — Bela's Oscilloscope interface"
},
{
"role": "user",
"content": "What does `BelaScope.scope` do?"
},
{
"role": "assistant",
"content": "Send an array of UGen data to Bela'... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\ns.boot;\n(\nb = Buffer.alloc(s, 512, 1);\nb.sine1(1.0 / [1, 2, 3, 4], true, true, true);\nx = { Osc.ar(b, 200, 0, 0.5) }.play;\n;\nx.free; b.free;\n```"
},
{
"role": "ass... |
[
{
"role": "user",
"content": "Write an Ndef at 165 Hz I can retune while it plays. (ugens blip, cutoff 1400, lfo 0.3, freq 165, amp 0.12)"
},
{
"role": "assistant",
"content": "`Ndef` is a named proxy you can redefine while it is playing:\n\n```supercollider\n// Ndef drone: blip source through a... |
[
{
"role": "user",
"content": "What does `ServerLog.matchMsgs` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "records OSC traffic to and from a Server and displays this in a browseable searchable interface Arguments: matchFunc. Returns: (returnvalue)"
}
] |
[
{
"role": "user",
"content": "What is `TempoSpec` in SuperCollider?"
},
{
"role": "assistant",
"content": "TempoSpec — datatype specifying a control rate input representing tempo Category: Spec, Libraries > crucial > Spec."
}
] |
[
{
"role": "user",
"content": "Explain `PsymNilSafe` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "PsymNilSafe — Psym variant that avoids hangs if all referenced patterns return nil This adapts an idea of James Harkins' PnNilSafe (ddwPatterns quark) for Psym. If all patterns in... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `LinCongL`."
},
{
"role": "assistant",
"content": "```supercollider\n// randomly modulate params\n(\n{ LinCongL.ar(\n LFNoise2.kr(1, 1e4, 1e4),\n LFNoise2.kr(0.1, 0.5, 1.4),\n LFNoise2.kr(0.1, 0.1, 0.1),\n LFNoise2.kr(0.1... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\na = {LFTri.ar(100+(1000*Maths.ar(MouseX.kr, MouseY.kr, 0.2, 0, 1, MouseButton.kr(lag:0.001))[0]), 0, 0.1}.play\n```"
},
{
"role": "assistant",
"content": "A closing b... |
[
{
"role": "user",
"content": "What is `IdentitySet`?"
},
{
"role": "assistant",
"content": "IdentitySet — a set according to identity"
},
{
"role": "user",
"content": "What does `IdentitySet.add` do?"
},
{
"role": "assistant",
"content": "Add anObject to the IdentitySet. ... |
[
{
"role": "user",
"content": "How do I make a kick that starts at 220 Hz and falls to 40 Hz? (osc saw, sweep 0.06, decay 0.5, f0 220, f1 40, amp 0.8, rev 1)"
},
{
"role": "assistant",
"content": "A kick is a sine with a fast pitch drop and a short amplitude envelope:\n\n```supercollider\n// kick... |
[
{
"role": "user",
"content": "Give me a saw kick with a 0.06 s pitch sweep. (osc saw, sweep 0.06, decay 0.35, f0 220, f1 40, 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": "Give me a granular patch with noise grain position and interp 4. (rate 6, dur 0.2, 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 G... |
[
{
"role": "user",
"content": "Write a self-contained SuperCollider patch that uses `MouseX`. Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\n(\nb = Bus.control(s, 9); // nine channel control rate\nb.setn([244, 737, 20, 271, 382, 172, 4, 2399, 251]);\n{\n var... |
[
{
"role": "user",
"content": "Explain this SuperCollider code.\n```supercollider\n// Note that constructions like SynthDef(...) and Synth(...) are short for SynthDef.new(...), etc.\n// With SynthDef it is common to chain this with calls on the resulting instance,\n// e.g. SynthDef(...).add or SynthDef(...).... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\ns.quit;\nf = { Group.new(s.defaultGroup); \"Other code can be evaluated too\".postln };\nServerTree.add(f);\ns.boot;\ns.queryAllNodes; // note the group within the default group\... |
[
{
"role": "user",
"content": "What is `PV_CommonMag` in SuperCollider?"
},
{
"role": "assistant",
"content": "PV_CommonMag — returns common magnitudes Returns magnitudes common to bufferA & bufferB within a tolerance level. Category: UGens > FFT."
}
] |
[
{
"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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.