conversations listlengths 2 6 |
|---|
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// increase feedback\n{ FBSineL.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": "Explain `SPlayFileDiskView` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "SPlayFileDiskView — a sound file player that streams from disk A GUI for LINKClasses/SplayFileDisk (streaming soundfiles from disk). Category: SInstruments."
}
] |
[
{
"role": "user",
"content": "Explain `StreamKrDur` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "StreamKrDur — a 'control' rate player that combines a stream of values with a stream of durations and plays them This plays a pattern in real time in the language, and sends those... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `Klank`."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\nKlank.ar([ // the multichannel-expansion\n `[[500, 1078, 1201.5, 1723], nil, [1, 1, 0.5, 0.3]], // left channel\n `[[700, 1071, 1053, 1723], nil, [1, 1... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```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].midicps;\n var env = Env.perc.ar(Done.freeSelf);\n ... |
[
{
"role": "user",
"content": "Give me a kick with damping 0.5 on the reverb. (verb gverb, room 0.7, damp 0.5, mix 0.3, source kick)"
},
{
"role": "assistant",
"content": "Put the reverb inside the `SynthDef` so it is part of the voice:\n\n```supercollider\n// reverb: gverb on a kick\n(\nSynthDef... |
[
{
"role": "user",
"content": "What does `Knob.decrement` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Decrements the value by #-keystep multiplied by the Arguments: zoom — A Number.."
}
] |
[
{
"role": "user",
"content": "Write a SuperCollider patch that uses `BufRd` and actually plays. Assume nothing about the session."
},
{
"role": "assistant",
"content": "```supercollider\nb = Buffer.read(s, ExampleFiles.child);\n\n{ BufRd.ar(1, b, Sweep.ar(Impulse.ar(BufDur.kr(b).reciprocal), Buf... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `EnvGen`."
},
{
"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) * EnvGen.kr(env, doneAction: Done.freeSelf)\n}.p... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Fdef`."
},
{
"role": "assistant",
"content": "```supercollider\n// sound example\n(\ns.boot;\nSynthDef(\"gpdef\",\n { |out = 0, freq = 440, sustain = 0.05, amp = 0.1|\n var env;\n env = EnvGen.kr(Env.perc(0.01,... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\nSynthDef(\"help-LFNoise0\", { arg out=0;\n Out.ar(out,\n LFBrownNoise0.ar(1000, 1, MouseX.kr(0, 5), 0.25)\n )\n}).play;\n);\n\n//use as frequency control\n(\nSynthDef(\"h... |
[
{
"role": "user",
"content": "What is `PV_MagNoise` in SuperCollider?"
},
{
"role": "assistant",
"content": "PV_MagNoise — Multiply magnitudes by noise. Magnitudes are multiplied with noise. Category: UGens > FFT."
}
] |
[
{
"role": "user",
"content": "Write a Pbind whose degrees repeat every Pwalk cycle. (scale minorPentatonic, seq Pwalk, dur 0.3, octave 5, instr sine, root 0)"
},
{
"role": "assistant",
"content": "Put the scale and the degree pattern in the `Pbind` and it will pick notes for you:\n\n```supercoll... |
[
{
"role": "user",
"content": "Explain this SuperCollider code.\n```supercollider\n// no, it doesn't take a ugen in ...\n(\n{\n EnvGen.kr(\n Env.asr(0.1, 1.0, 0.5, \\welch),\n 1.0,\n FSinOsc.ar(1.0).range(0.0, 1.0),\n timeScale: 0.1\n ) * SinOsc.ar(440, 0, 0.3)\n}.play;\n);\... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// hear the difference, LinPan having a slight drop in the middle...\n{ LinPan2.ar(SinOsc.ar(440), Line.kr(-1, 1, 5)) }.play\n\n// ... whereas Pan2 is more smooth\n{ Pan2.ar(SinO... |
[
{
"role": "user",
"content": "What does `RangeSlider.action` do?"
},
{
"role": "assistant",
"content": "The action object evaluated whenever the user changes the position or size of the"
}
] |
[
{
"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{ LinCongC.ar(MouseX.kr(20, SampleRate.ir)) * 0.2 }.play(s;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the p... |
[
{
"role": "user",
"content": "Explain `RedStereo2` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "RedStereo2 — panning effect Returns four panned bandpass filters - pseudo ugen. With different LFOs. Category: Red > redUGens."
}
] |
[
{
"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 minimal SuperCollider example that uses `T2K`."
},
{
"role": "assistant",
"content": "```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... |
[
{
"role": "user",
"content": "Show me a self-contained SuperCollider patch using `FreqScopeView`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\n// Start server\ns.boot;\n\n// Create analyzer in a window\n(\nw = Window(\"My Analyzer\", Rect(0, 0, 511, 30... |
[
{
"role": "user",
"content": "Write a granular texture, dry. (rate 16, dur 0.2, interp 2, mode sweep, rev 0)"
},
{
"role": "assistant",
"content": "`GrainBuf` needs a buffer, a trigger and a grain duration:\n\n```supercollider\n// granular synth with GrainBuf\n(\ns.waitForBoot {\n var buf = B... |
[
{
"role": "user",
"content": "Show me a self-contained SuperCollider patch using `PV_BrickWall`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\n\n(\n{\n var in, chain;\n in = WhiteNoise.ar(0.2);\n chain = FFT(LocalBuf(2048), in);\n chain = P... |
[
{
"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 does `DFM1.ar` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Digitally modelled analog filter Arguments: in — input signal; freq — cutoff frequency; res — resonance; inputgain — gain applied to the input signal; type — set to 0.0 for l... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Dust2`."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\"help-Dust2\", { |out = 0|\n Out.ar(out,\n Dust2.ar(200, 0.5)\n )\n}).play;\n);\n\n(\nSynthDef(\"help-Dust2\", { |out = 0|\n Out.ar(o... |
[
{
"role": "user",
"content": "What does `Gradient.new` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "A linear color fade between two colors Arguments: color1 — An instance of Color.; color2 — An instance of Color.; direction — `\\h` or `\\v` for horizontal and vertical ... |
[
{
"role": "user",
"content": "Write a complete SuperCollider patch built around `ReplaceOut` that runs as it is."
},
{
"role": "assistant",
"content": "```supercollider\n(\n// define a control\nSynthDef(\"line\", { arg i_bus=10, i_start=1000, i_end=500, i_time=1;\n ReplaceOut.kr(i_bus, Line.kr(... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```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 = 1024;\n\n sig = SinOsc.ar(LFDNoise3.kr(LFNoise0.kr(1) * 40 + 60) * 700 + 80... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `QuadL`."
},
{
"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 QuadL.ar(SampleRate.ir/4, r.neg, r, 0, 0.1) * 0... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `IdentityDictionary`."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\\help_sinegrain, { |out = 0, freq = 440, sustain = 0.05|\n var env;\n env = EnvGen.kr(Env.perc(0.01, sustain, 0.2), doneActi... |
[
{
"role": "user",
"content": "Write a Pbind in minorPentatonic using Pwalk for the degrees. (scale minorPentatonic, seq Pwalk, dur 0.25, octave 4, instr sine, root 0)"
},
{
"role": "assistant",
"content": "The pattern is the composition here; `\\strum` spreads the chord:\n\n```supercollider\n(\n... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `NdefGui`."
},
{
"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 = NdefGui(nil, 3).moveTo(10, 360);\no... |
[
{
"role": "user",
"content": "Write a SuperCollider patch that uses `QuadN` and actually plays. Assume nothing about the session."
},
{
"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\... |
[
{
"role": "user",
"content": "Write a kick whose tail uses freeverb2. (verb freeverb2, room 0.85, damp 0.2, mix 0.3, source kick)"
},
{
"role": "assistant",
"content": "`FreeVerb` is in the core library; the room and damp arguments do the work:\n\n```supercollider\n// reverb: freeverb2 on a kick... |
[
{
"role": "user",
"content": "Explain `MonoAudioIn` in SuperCollider briefly."
},
{
"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": "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": "Explain this SuperCollider patch.\n```supercollider\n// =========================\n// extra demos for \\glockenspiel\n// =========================\n\n(\n// made by Diya Menon\n// demo\nPbindef(\\dmglockenspiel,\n \\instrument, \"glockenspiel\",\n \\midinote, Pseq([\n ... |
[
{
"role": "user",
"content": "What is `SystemSynthDefs`?"
},
{
"role": "assistant",
"content": "SystemSynthDefs — SynthDefs assumed to exist on the server"
},
{
"role": "user",
"content": "What does `SystemSynthDefs.numChannels` do?"
},
{
"role": "assistant",
"content": "... |
[
{
"role": "user",
"content": "How do I build a live drone with Ndef at 220 Hz? (ugens tri, cutoff 3200, lfo 0.8, freq 220, amp 0.12)"
},
{
"role": "assistant",
"content": "`Ndef` holds the synth and the environment, so you can edit it live:\n\n```supercollider\n// Ndef drone: tri source through ... |
[
{
"role": "user",
"content": "Write a kick drum with a 0.35 s decay. (osc fm, sweep 0.06, decay 0.35, f0 180, 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 swe... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `PV_BrickWall`."
},
{
"role": "assistant",
"content": "```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));... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// vary frequency\n{ StandardN.ar(MouseX.kr(20, SampleRate.ir)) * 0.3 }.play(s;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthe... |
[
{
"role": "user",
"content": "What does `LID.openPath` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Open a device using its path in the operating Arguments: path — The path in the operating system, e.g. `\"/dev/input/event4\"`. Returns: The LID device - an instance of ... |
[
{
"role": "user",
"content": "Explain `TGrains3` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "TGrains3 — buffer granulator with user envelope Triggers generate grains from a buffer. Each grain has a user-defined rise/decay shape and is panned between two channels of multiple ... |
[
{
"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": "What does this SuperCollider code do?\n```supercollider\ns.boot;\n// Simple polling of mean values - you could do this without a UGen!\nx = {|val=1, t_trig=0| MeanTriggered.kr(val, t_trig, 3).poll(t_trig, \"Mean of recent 3 values\"); }.play;\nx.set(\\val, 10.rand.postln, \\t_t... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ BrownNoise.ar(0.1) }.play;\n{ WhiteNoise.ar(0.1 }.play;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis opened earlier is ... |
[
{
"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": "Show me a self-contained SuperCollider patch using `RecordBuf`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\nb = Buffer.alloc(s, s.sampleRate * 5, 1); // a 5 second 1 channel Buffer\n\n// record for four seconds\n(\nx = Sy... |
[
{
"role": "user",
"content": "What is `Object`?"
},
{
"role": "assistant",
"content": "Object — abstract superclass of all objects"
},
{
"role": "user",
"content": "What does `Object.readArchive` do?"
},
{
"role": "assistant",
"content": "Read in an object from a text arc... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ SinOsc.ar(SinOsc.ar(0.3).range(440, 660), 0, 0.5 * 0.1 }.play;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis opened earl... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Balance2`."
},
{
"role": "assistant",
"content": "```supercollider\n// a stereo signal, both channels at 0dB\n{ [SinOsc.ar(440), SinOsc.ar(440)] }.play\n\n// using Balance on a stereo signal with the position paramete... |
[
{
"role": "user",
"content": "What does `List.stutter` do?"
},
{
"role": "assistant",
"content": "Return a new List whose elements are repeated n times. The receiver is"
}
] |
[
{
"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 a minimal SuperCollider example that uses `IdentityDictionary`."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\\help_sinegrain, { |out = 0, freq = 440, sustain = 0.05|\n var env;\n env = EnvGen.kr(Env.perc(0.01, sustain, 0.2), doneActi... |
[
{
"role": "user",
"content": "Explain this code:\n```supercollider\nMix.ar([SinOsc.ar(220, 0, 0.1), SinOsc.ar(330, 0, 0.1)])\n```"
},
{
"role": "assistant",
"content": "Sums two sine waves into one signal — a perfect fifth, 220 Hz and 330 Hz, at 0.1 amplitude each.\n\n`[SinOsc.ar(220, 0, 0.1), S... |
[
{
"role": "user",
"content": "Write a granular texture, through a reverb. (rate 14, dur 0.04, 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.wait... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n(\n{\n var freqs = [200, 600, 400, 450, 150, 20, 800];\n var amps = Saw.ar(freq: [2,3, 5]).range(1, 0.5, 0.3, 0.8);\n var snd = LFTri.ar(freq: freqs, mul: amps);\n Mix.ar(snd)\n}.play;\n)\n```"
},
{
"role": "... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `VarLag`."
},
{
"role": "assistant",
"content": "```supercollider\n(\n// used to lag pitch\n{\n SinOsc.ar( // sine wave\n VarLag.kr( // lag the modulato... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n// play SinOscs silently and wait for granulation envelopes\n\n(\na = Bus.audio(s, 10);\nx = { Splay.ar(In.ar(a, 10) * SinOsc.ar((3..12) * 100, 0, 0.05)) }.play\n);\n\n\n// send envelopes to buses\n\n(\nz = {\n DXEnvFa... |
[
{
"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": "Show me a self-contained SuperCollider patch using `Stethoscope`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var f = { |l,h| SinOsc.kr(0.1, {pi.rand}).range(l, h) } ;\n Pulse.ar({ f.(20, 1000) }!6, { f.(0.0, 1) ... |
[
{
"role": "user",
"content": "Write an Ndef at 82.5 Hz I can retune while it plays. (ugens saw, cutoff 800, lfo 0.1, freq 82.5, 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 800 ... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\nSynthDef(\"help-WhiteNoise\", { |out = 0|\n Out.ar(out,\n WhiteNoise.ar(0.25)\n )\n}).play;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is m... |
[
{
"role": "user",
"content": "What does `FixNumChannelsPlayer.asSynthDef` do?"
},
{
"role": "assistant",
"content": "a utility Player that wraps another player with NumChannels"
}
] |
[
{
"role": "user",
"content": "What does `Patch.argNameAt` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Pairs an Instr with inputs that that will be passed to the Instr Arguments: i."
}
] |
[
{
"role": "user",
"content": "Explain `Out` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "Out — Write a signal to a bus. Category: UGens > InOut."
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\na = NodeProxy(s);\na.reshaping = \\elastic;\na.play(0, 2); // play stereo\na.source = { BPF.ar(Dust.ar(8 ! 8), (0..5).nthPrime * 300, 0.01 * 20 };\na.numChannels; // 8\n```"
},... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Balance2`."
},
{
"role": "assistant",
"content": "```supercollider\n// a stereo signal, both channels at 0dB\n{ [SinOsc.ar(440), SinOsc.ar(440)] }.play\n\n// using Balance on a stereo signal with the position paramete... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\nd = { |amp = 1.0|\n var in1, in2;\n in1 = LFNoise0.ar(800, amp);\n in2 = SinOsc.ar(800);\n LeastChange.ar(in1, in2) * 0.1;\n}.play;\n);\n\nd.set(\\amp, 0.1);\nd.set(\\amp,... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n(\nSynthDef(\"ReplaceOutHelp\", { |out = 0, freq = 440|\n var source;\n source = SinOsc.ar(freq, 0, 0.1);\n\n // write to the bus, replacing previous contents\n ReplaceOut.ar(out, source);\n\n}).add;\n);\n\n// e... |
[
{
"role": "user",
"content": "Explain this SuperCollider code:\n```supercollider\n{ SinOsc.ar(440) * EnvGen.kr(Env.perc(0.01, 1), doneAction: 2) }.play;\n```"
},
{
"role": "assistant",
"content": "It plays a 440 Hz sine with a percussive envelope, and the Synth frees itself when the envelope\nen... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// logistic map as frequency control\n(\n{ var r;\n r = MouseX.kr(3.5441, 4); // stable range\n SinOsc.ar(QuadN.ar(40, r.neg, r, 0, 0.1, 800, 900)) * 0.4;\n}.play(s);\n```"
... |
[
{
"role": "user",
"content": "Explain `Blip` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "Blip — Band limited impulse oscillator. Band Limited ImPulse generator. All harmonics have equal amplitude. This is the equivalent of 'buzz' in MusicN languages. Category: UGens > Genera... |
[
{
"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": "Are you a general assistant?"
},
{
"role": "assistant",
"content": "No. I am sc-mind, a 198M model trained on SuperCollider. Ask me about SynthDefs, UGens, Patterns, Ndef, sclang and scsynth; outside that I have little to offer."
}
] |
[
{
"role": "user",
"content": "Give me a complete SuperCollider patch for little experiment with periodicity: bind everything it needs before it is used."
},
{
"role": "assistant",
"content": "```supercollider\n/* An little experiment with periodicity. \n Maybe there can be some sync artifac... |
[
{
"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": "What is `Pdef`?"
},
{
"role": "assistant",
"content": "Pdef — stream reference definition"
},
{
"role": "user",
"content": "What does `Pdef.all` do?"
},
{
"role": "assistant",
"content": "A global IdentityDictionary with all proxies."
},
... |
[
{
"role": "user",
"content": "What does `PLcauchy.new` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Creates a new PLcauchy Arguments: mean — Symbol or Pcauchy mean arg. If a Symbol is passed, list can be assigned to an envir variable later on. Can be dynamically replac... |
[
{
"role": "user",
"content": "What is `BinaryOpUGen`?"
},
{
"role": "assistant",
"content": "BinaryOpUGen — Apply a binary operation to the values of an input UGen"
},
{
"role": "user",
"content": "What does `BinaryOpUGen.new` do?"
},
{
"role": "assistant",
"content": "re... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// linexp\n(\n{\n var mod = LFNoise2.ar(80);\n SinOsc.ar(mod.linexp(-1, 1, MouseX.kr(200, 8000, 1), MouseY.kr(200, 8000, 1))) * 0.1\n}.play;\n);\n\n// exprange\n(\n{\n var mod... |
[
{
"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{ LatoocarfianL.ar(MouseX.kr(20, SampleRate.ir)) * 0.2 }.play(s;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: ... |
[
{
"role": "user",
"content": "Write an Ndef with a sine source and a 3200 Hz low-pass. (ugens sine, cutoff 3200, lfo 0.1, freq 82.5, 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 ... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `LatoocarfianL`."
},
{
"role": "assistant",
"content": "```supercollider\n// randomly modulate all params\n(\n{ LatoocarfianL.ar(\n SampleRate.ir/4,\n LFNoise2.kr(2, 1.5, 1.5),\n LFNoise2.kr(2, 1.5, 1.5),\n LFNoise2.kr(2,... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `BiPanB2`."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var w, x, y, p, q, a, b, c, d;\n\n p = LFSaw.ar(200);\n q = LFSaw.ar(301);\n\n // B-format encode\n #w, x, y = BiPanB2.ar(p, q, MouseX.kr(... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Latch`."
},
{
"role": "assistant",
"content": "```supercollider\n{ Blip.ar(Latch.ar(WhiteNoise.ar, Impulse.ar(9)) * 400 + 500, 4, 0.2) }.play;\n```"
}
] |
[
{
"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 happens when I call .play on a function?"
},
{
"role": "assistant",
"content": "`.play` on a Function builds a SynthDef from the function body, adds it to the server under an anonymous name, and starts one Synth of it. You get back the Synth, so `x = { SinOsc.a... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n{var a=LFNoise0,b=SinOscFB,c=Pulse;b.ar(a.ar([2,3])*(c.ar([5,7],b.kr([7,5]))*(a.ar([3,2]))*[800,1200]),(c.kr([100,80])*[2,3]))}.play\n```"
},
{
"role": "assistant",
"content": "dirty and noisy \"result\" of r... |
[
{
"role": "user",
"content": "What is `Phprand` in SuperCollider?"
},
{
"role": "assistant",
"content": "Phprand — random values that tend toward hi Category: Streams-Patterns-Events > Patterns > Random."
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\nSynthDef(\"help-LFNoise0\", { arg out=0;\n Out.ar(out,\n LFBrownNoise0.ar(1000, 1, MouseX.kr(0, 5), 0.25)\n )\n}).play;\n);\n\n//use as frequency control\n(\nSynthDef(\"h... |
[
{
"role": "user",
"content": "Write an Ndef with a sine source and a 200 Hz low-pass. (ugens sine, cutoff 200, lfo 0.3, freq 220, amp 0.12)"
},
{
"role": "assistant",
"content": "`Ndef` holds the synth and the environment, so you can edit it live:\n\n```supercollider\n// Ndef drone: sine source ... |
[
{
"role": "user",
"content": "What is `MxKrJack` in SuperCollider?"
},
{
"role": "assistant",
"content": "MxKrJack — A hot swappable input point for use in internal patching In particular this is used by the Instr driver to put placeholders in the control inputs. These can then be connected to d... |
[
{
"role": "user",
"content": "Write a SuperCollider patch that uses `Paddpre` and actually plays. Assume nothing about the session."
},
{
"role": "assistant",
"content": "```supercollider\n// sound example\n(\nSynthDef(\\sinegrain,\n { |out = 0, freq = 440, sustain = 0.02|\n var env;\n en... |
[
{
"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 = Dust.kr(10);\n SinOsc.ar(\n TRand.kr(300, 3000, trig)\n ) * 0.1\n}.play;\n);\n\n(\n{\n var trig = Dust.ar(MouseX.kr(1, 8000, 1));\n SinOsc.ar(\n ... |
[
{
"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": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\nSynthDef(\"help-PrintVal\",{PrintVal.kr(SinOsc.kr(440,0,0.1), 100)}).play\n\n\n//two at once\n(\nSynthDef(\"help-PrintVal\",{\n\nPrintVal.kr(SinOsc.kr(440,0,0.1), 100, 1);\n\nPri... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n// modulate frequency\n{ Pulse .ar(XLine.kr(40,4000,6),0.1, 0.2) }.play;\n{ PulseDPW.ar(XLine.kr(40,4000,6),0.1, 0.2) }.play;\n\n// two band limited square waves thru a resonant low pass filter\n{ RLPF.ar(Pulse .ar([1... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.