conversations listlengths 2 6 |
|---|
[
{
"role": "user",
"content": "How do I play a random minorPentatonic scale at octave 6? (scale minorPentatonic, seq Prand, dur 0.3, octave 6, instr fm, root 0)"
},
{
"role": "assistant",
"content": "The pattern is the composition here; `\\strum` spreads the chord:\n\n```supercollider\n(\nSynthDe... |
[
{
"role": "user",
"content": "How do I granulate a sample with 0.07 s grains? (rate 16, dur 0.07, interp 4, 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(\... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\n{\n var trig;\n trig = Dust.kr(10);\n Pan2.ar(SinOsc.ar(\n TGaussRand.kr(300, 3000, trig)\n ),\n TGaussRand.kr(-1, 1, trig),\n 0.1\n )\n}.play;\n```"
},
... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n// vary frequency - these parameters are for \"one-pulse\" orbit\n{ RosslerL.ar(MouseX.kr(20, SampleRate.ir), 0.36, 0.35, 4.5) * 0.3 }.play(s);\n\n// randomly modulate params\n(\n{ RosslerL.ar(\n SampleRate.ir, \n 0.2, ... |
[
{
"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": "What is `FBSineL` in SuperCollider?"
},
{
"role": "assistant",
"content": "FBSineL — Feedback sine with chaotic phase indexing A linear-interpolating sound generator based on the difference equations: Category: UGens > Generators > Chaotic."
}
] |
[
{
"role": "user",
"content": "What is the difference between the language and the server?"
},
{
"role": "assistant",
"content": "sclang runs your code, the clock and Patterns, and builds UGen graphs. scsynth performs the DSP in real time. They communicate over OSC, which is why a language-side m... |
[
{
"role": "user",
"content": "What are you good at?"
},
{
"role": "assistant",
"content": "SuperCollider. I can explain its classes and UGens, write SynthDefs and patches, read a patch back to you, and tell you why one does not compile. I am 198M parameters; I am not a general assistant."
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```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.ar(MouseX.kr(3, 3.99), MouseY.... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// increase feedback\n{ FBSineN.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": "Give me a sine kick with a 0.06 s pitch sweep. (osc sine, sweep 0.06, decay 0.35, f0 180, f1 55, amp 0.8, 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... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\np = Pmono(\\default, \\dur, 0.2, \\freq, Pwhite(1, 8) * 100).play\n\np.stop\n\n// multi channel expansion is supported:\np = Pmono(\\default, \\dur, 0.2, \\freq, Pwhite(1, 8) * 100, \\detune, [0, 2, 5, 1]).play\n\np.stop\... |
[
{
"role": "user",
"content": "Explain this SuperCollider patch.\n```supercollider\n// crucial-library - sends midi clock and song position pointer\n// x.add( MIDIClockOut(\"IAC Driver\", \"IAC Bus 1\") )\n\nMxUnit.register('MIDIClockOut',\n(\n make: { arg mco;\n ~source = mco;\n MxUnit(mco,... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n// start a noise patch and set the id of the generator\n(\nSynthDef(\"help-RandID\", { |out = 0, id = 1|\n RandID.ir(id);\n Out.ar(out,\n WhiteNoise.ar(0.05) + Dust2.ar(70)\n )\n}).add;\n);\n\n// reset the seed of m... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\nSynthDef(\"help-IRand\", {\n Out.ar(\n IRand(0, 1), // play on random channel between 0 and 1\n FSinOsc.ar(500,\n 0, Line.kr(0.2, 0, 0.1, doneAction: Done.freeSelf... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n{ SyncSaw.ar(100, Line.kr(100, 800, 12), 0.1) }.play;\n\n\n(\nplot { [\n SyncSaw.ar(800, 1200),\n Impulse.ar(800) // to show sync rate\n] }\n);\n\n(\nplot { [\n SyncSaw.ar(800, Line.kr(800, 1600, 0.01)), // modulate sa... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ var source = SinOsc.ar(40); var env = EnvFollow.ar(source, 0.999); [source,env] }.plot(0.5)\n\n\n{ var source = SoundIn.ar; var env = EnvFollow.ar(source, MouseX.kr(0.9,0.999);... |
[
{
"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": "What does this SuperCollider patch do?\n```supercollider\n(//*********PREPARE**********\np.pop;\n//Any code that needs to access your own environment goes here\np = ProxySpace.push(s);\n~fxLoop.play.fadeTime_(5);\n);\n\n(//*********FXLoop**********\n~fxLoop = {\n var in = Soun... |
[
{
"role": "user",
"content": "What does `QPenPrinter.newPage` do?"
},
{
"role": "assistant",
"content": "Starts a new page. Typically called within the aPrintFunc of"
}
] |
[
{
"role": "user",
"content": "What does `Server.options` do?"
},
{
"role": "assistant",
"content": "Get or set this Server's ServerOptions object. Changes to options only take effect when the server is"
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\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 s... |
[
{
"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": "Give me a complete SuperCollider patch for Will nobody switch the damn thing off?: bind everything it needs before it is used."
},
{
"role": "assistant",
"content": "```supercollider\n(\n\n{\nvar dseq, trig;\n\ndseq = Dseq([SinOsc.ar(45).range(-5, 12), SinOsc.ar(Sin... |
[
{
"role": "user",
"content": "Write an Ndef at 165 Hz I can retune while it plays. (ugens tri, cutoff 400, lfo 0.8, freq 165, 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 throu... |
[
{
"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": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\ns.boot;\ns.scope;\na = { HilbertFIR.ar(SinOsc.ar(100) * -20.dbamp, LocalBuf(2048) }.play;\na.release;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is... |
[
{
"role": "user",
"content": "How do I pan notes around the stereo field in a pattern?"
},
{
"role": "assistant",
"content": "Put `\\pan` in the Pbind: the default instrument understands it and passes it to Pan2.\n\n```supercollider\n(\nPbind(\n \\scale, Scale.minorPentatonic,\n \\degree, ... |
[
{
"role": "user",
"content": "What is `SequenceableCollection`?"
},
{
"role": "assistant",
"content": "SequenceableCollection — Abstract superclass of indexable collections"
},
{
"role": "user",
"content": "What does `SequenceableCollection.series` do?"
},
{
"role": "assistan... |
[
{
"role": "user",
"content": "My Synth runs but I hear nothing. How do I debug it?"
},
{
"role": "assistant",
"content": "Check in this order, because each step eliminates a whole class of causes:\n\n1. **Is anything coming out of the bus you write to?** `Out.ar(0, sig)` for the master. A typo l... |
[
{
"role": "user",
"content": "Give me a Pbind with sine voices and a 0.3 rhythm. (scale majorPentatonic, seq Pwalk, dur 0.3, octave 5, instr sine, root 0)"
},
{
"role": "assistant",
"content": "The pattern is the composition here; `\\strum` spreads the chord:\n\n```supercollider\n(\nSynthDef(\\s... |
[
{
"role": "user",
"content": "What can you do?"
},
{
"role": "assistant",
"content": "Write and explain SuperCollider: SynthDefs, UGens, Patterns, Ndef, buses and envelopes, and tell you why a patch is silent or will not compile. I am 198M parameters, so I am narrow on purpose."
}
] |
[
{
"role": "user",
"content": "Give me an Ndef with an LFO at 0.3 Hz. (ugens saw, cutoff 800, lfo 0.3, 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 Hz low-pass\n(\... |
[
{
"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 self-contained SuperCollider patch that uses `Duty`. Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\n// this is useful when two UGens need to be called, but only one of their outputs is needed\n(\n{\n var a, b, c;\n a =... |
[
{
"role": "user",
"content": "What does `InterfaceDef.onCC` do?"
},
{
"role": "assistant",
"content": "defines event, midi and GUI handlers for an Interface"
}
] |
[
{
"role": "user",
"content": "Explain `FoaDirectY` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "FoaDirectY — First Order Ambisonic (FOA) directivity transformer Adjust the soundfield directivity of a First Order Ambisonic signal (B-format) along the y-axis. Category: Librarie... |
[
{
"role": "user",
"content": "Explain this SuperCollider code.\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\n// exponentiation can also be interesting\n// here an area of instabi... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// world's most expensive patchcord (use headphones to avoid feedback)\n{ SoundIn.ar(0) }.play;\n\n// stereo version\n{ SoundIn.ar([0, 1]) }.play;\n\n// scope input; silent outpu... |
[
{
"role": "user",
"content": "I get 'server not running' or nothing happens at all."
},
{
"role": "assistant",
"content": "The server is not booted. In the IDE press Ctrl+B, or evaluate `s.boot`. If code depends on a SynthDef being there, put it inside `s.waitForBoot { ... }`. When a script runs... |
[
{
"role": "user",
"content": "Write a GrainBuf synth at 28 grains per second. (rate 28, dur 0.07, interp 4, mode noise1, 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": "How do I build a live drone with Ndef at 165 Hz? (ugens tri, cutoff 3200, lfo 0.3, freq 165, 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": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// ControlSpec-map can also be used to map ugens\n(\nvar spec;\nspec = [100, 18000, \\exp].asSpec;\n{\n var freq, osc;\n osc = SinOsc.kr(0.1).range(0, 1);\n freq = spec.map(os... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `QuadL`."
},
{
"role": "assistant",
"content": "```supercollider\n// default params\n{ QuadL.ar(SampleRate.ir/4) * 0.2 }.play(s);\n```"
}
] |
[
{
"role": "user",
"content": "How do I add a reverb send to a whole group?"
},
{
"role": "assistant",
"content": "Same shape as the delay: a private stereo bus, one effect reading it, instruments writing both dry\nand wet.\n\n```supercollider\n(\n~verbBus = Bus.audio(s, 2);\nSynthDef(\\verb, { |... |
[
{
"role": "user",
"content": "What does `SmoothClipQ.kr` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "wave shaping / clipping pseudo ugen using parabolic segments Arguments: in — input signal.; lo — lower limit, defaults to -1.; hi — upper limit, defaults to 1.; amount... |
[
{
"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 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 controlled by mouse x\n(\n{\n ... |
[
{
"role": "user",
"content": "What is `Wavetable` in SuperCollider?"
},
{
"role": "assistant",
"content": "Wavetable — sampled audio buffer in wavetable format A Wavetable is a FloatArray in a special format used by SuperCollider's interpolating oscillators. Wavetables cannot be created by new. ... |
[
{
"role": "user",
"content": "Write a SuperCollider patch for 8-bit synth (a SuperCollider snippet) that runs as it is, with nothing assumed about the session."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\"AM2\", { arg freq = 440, modfreq = 12, amp = 0.5, attack = 0.01, ... |
[
{
"role": "user",
"content": "I get 'Node not found' when I call .set on a Synth after a while."
},
{
"role": "assistant",
"content": "The Synth was freed and the language still holds a reference. That happens whenever the SynthDef used `doneAction: 2` and the envelope finished, or when somethin... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ LFPulse.ar(LFPulse.kr(3, 0, 0.3, 200, 200), 0, 0.2, 0.1 }.play;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis opened ear... |
[
{
"role": "user",
"content": "What is `DrawGrid`?"
},
{
"role": "assistant",
"content": "DrawGrid — Draws grid lines on a UserView for plotting"
},
{
"role": "user",
"content": "What does `DrawGrid.draw` do?"
},
{
"role": "assistant",
"content": "This draws to the current... |
[
{
"role": "user",
"content": "Explain `PV_PhaseShift90` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "PV_PhaseShift90 — Shift phase by 90 degrees. Shift phase of all bins by 90 degrees. Category: UGens > FFT."
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\ns.boot;\n(\nx = SynthDef(\"help-node-set\", { |freq = 440, out = 0|\n Out.ar(out, SinOsc.ar(freq, 0, 0.1))\n}).play\n);\nx.run(false;\nx.run; // default is true\nx.free;\n```"
... |
[
{
"role": "user",
"content": "What is `Atk` in SuperCollider?"
},
{
"role": "assistant",
"content": "Atk — a class that stores some global variables for the Ambisonic Toolkit The Atk class defines variables that may be used by the rest of the ATK library, including resources for kernel encoding ... |
[
{
"role": "user",
"content": "What does `SequenceableCollection.clumps` do?"
},
{
"role": "assistant",
"content": "Separates the collection into sub-collections by separating elements into groupings whose size is given by integers in the groupSizeList. `[1, 2, 3, 4, 5, 6, 7, 8].clumps([1,"
}
] |
[
{
"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 Lag.kr( // lag the modulator\n LFPulse.kr(4, ... |
[
{
"role": "user",
"content": "What is `OteyPianoStrings` in SuperCollider?"
},
{
"role": "assistant",
"content": "OteyPianoStrings — Piano physical model. Digital wave guide physical model of a piano string wrapping the code provided by Clayton Otey. Category: UGens > PhysicalModels."
}
] |
[
{
"role": "user",
"content": "What does `BusPool.busses` do?"
},
{
"role": "assistant",
"content": "bus allocator with retain/release counting for shared busses"
}
] |
[
{
"role": "user",
"content": "What are the arguments of EnvGen?"
},
{
"role": "assistant",
"content": "`EnvGen.ar(envelope, gate, levelScale, levelBias, timeScale, doneAction)` — or the .kr form. Envelope is an Env; gate is the signal that holds the envelope open (a number for a one-shot, a trig... |
[
{
"role": "user",
"content": "What is `SendPeakRMS`?"
},
{
"role": "assistant",
"content": "SendPeakRMS — Track peak and power of a signal for GUI applications."
},
{
"role": "user",
"content": "What does `SendPeakRMS.ar` do?"
},
{
"role": "assistant",
"content": "Unlike ... |
[
{
"role": "user",
"content": "Write a SuperCollider patch that uses `AnalogOut` 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-AnalogOut\", { |out = 0|\n AnalogOu... |
[
{
"role": "user",
"content": "Explain this SuperCollider patch.\n```supercollider\n// UnitTestScript(\"Collapse\", thisProcess.nowExecutingPath).runScript;\n\n{\n |test|\n var collapseValues = List();\n var collapse;\n\n collapse = Collapse({ |v| collapseValues.add(v) }, 0.1);\n\n collapseValues.clear;... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\ns.boot\n{ SinOsc.ar([330, 440], 0, 0.4) }.play;\nStethoscope(s, 2;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis opened ea... |
[
{
"role": "user",
"content": "Give me a granular patch with noise grain position and interp 4. (rate 10, dur 0.1, interp 4, 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(... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `LinCongC`."
},
{
"role": "assistant",
"content": "```supercollider\n// randomly modulate params\n(\n{ LinCongC.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": "What does `View.insertMenuAction` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Insert a MenuAction into the list of attached Arguments: action — A MenuAction to add.; addBefore — A MenuAction or integer index value. The action will be inse... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `Duty`."
},
{
"role": "assistant",
"content": "```supercollider\n(\n {\n var freq;\n freq = Duty.kr(\n Dseq([0.2, 0.3, 0.4, Dseq([1, 1, 1, 2, 1, 2], inf)]) / 2,\n Dust.kr(1), // control rate reset\n ... |
[
{
"role": "user",
"content": "Do you know other programming languages?"
},
{
"role": "assistant",
"content": "Only as far as SuperCollider needs them. I am sc-mind, a 198M model trained on SuperCollider; I can read its sclang syntax and explain it, and that is the limit of what I was trained to ... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `LatoocarfianN`."
},
{
"role": "assistant",
"content": "```supercollider\n// default initial params\n{ LatoocarfianN.ar(MouseX.kr(20, SampleRate.ir)) * 0.2 }.play(s);\n```"
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `IFFT`."
},
{
"role": "assistant",
"content": "```supercollider\n// without any modification, convert FFT chain (frequency domain signal) back to audio (time domain signal)\n(\n{ var in, chain;\n in = WhiteNoise.a... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```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 click on start and fini... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// Ndef\nNdef(\\a, { Saw.ar(12) }).asCode;\n\n// in a pushed proxy space\np = ProxySpace.push(s.boot);\n~x = { Saw.ar(123, 0.1 };\n~x.play;\n~x.asCode;\n\np.end.pop;\n\n// anonym... |
[
{
"role": "user",
"content": "What does `DrawGrid.font` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Get/set the font used by the grid lines Arguments: f — A Font.. Returns: A Font."
}
] |
[
{
"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": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ Latoocarfian2DL.ar(MouseX.kr(20, SampleRate.ir * 0.5), MouseX.kr(40, SampleRate.ir), mul:0.2) }.play(s);\n\n\n(\n{ Latoocarfian2DL.ar(\n SampleRate.ir/4,\n SampleRate.ir,\n ... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `Duty`."
},
{
"role": "assistant",
"content": "```supercollider\n(\n {\n var freq;\n freq = Duty.kr(\n Dseq([0.2, 0.3, 0.4, Dseq([1, 1, 1, 2, 1, 2], inf)]) / 2,\n Dust.kr(1), // control rate reset\n ... |
[
{
"role": "user",
"content": "Write a granular texture, through a reverb. (rate 14, dur 0.15, 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 with GrainBuf\n(\ns.w... |
[
{
"role": "user",
"content": "Give me a granular patch with noise1 grain position and interp 2. (rate 28, dur 0.15, interp 2, mode noise1, rev 0)"
},
{
"role": "assistant",
"content": "Granulation is `GrainBuf` plus a trigger rate; the position can move:\n\n```supercollider\n// granular synth wi... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n(\n{\n var saw, bpf;\n saw = Saw.ar(\n freq: [1700,2000],\n mul: LFPulse.kr(\n freq: [2,7],\n width: 0.115));\n bpf = LPF.ar(in: saw, freq: SinOsc.kr(1/3).range(250, 4000)); \n}.play;\n)\n```"
},
{... |
[
{
"role": "user",
"content": "Write a complete SuperCollider patch built around `Resonz` that runs as it is."
},
{
"role": "assistant",
"content": "```supercollider\n// 1st, evaluate a synthdef\n(\nSynthDef(\"pitchFromNoise\", { arg out = 0;\n Out.ar(\n out,\n Resonz.ar(\n WhiteNoise... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// needs Buffer c prepared above\n\n(\ny = {\n var add = LFDNoise3.ar(0.3) * [0.05, 0.0505];\n GFIS.ar(\n { |x| BufRd.ar(1, c, c.numFrames * (x + add)) }, \n 0.5, 7\n ) ... |
[
{
"role": "user",
"content": "What is `WrapIndex` in SuperCollider?"
},
{
"role": "assistant",
"content": "WrapIndex — Index into a table with a signal. The input signal value is truncated to an integer value and used as an index into the table. Out-of-range index values are wrapped cyclically t... |
[
{
"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": "What is `IsEven` in SuperCollider?"
},
{
"role": "assistant",
"content": "IsEven — answers whether the item is even. `(` Category: Libraries > crucial > Constraints."
}
] |
[
{
"role": "user",
"content": "The server stopped responding. What do I do?"
},
{
"role": "assistant",
"content": "In order: `Ctrl+.` (CmdPeriod) to reset scheduling, then `s.reboot` if the server itself is wedged.\nA reboot drops every SynthDef and buffer, so re-add them — which is why real proj... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ LFPulse.ar(50 * 0.1 }.play;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis opened earlier is never closed, so the express... |
[
{
"role": "user",
"content": "Explain this SuperCollider code.\n```supercollider\n// example from ServerErrorGui in crucial lib\n\nf = OSCresponderNode(s.addr, '/fail', { |time, responder, msg|\n {\n var mins, secs;\n mins = (time/60).round(1);\n secs = (time%60).round(0.1);\n if(secs<10, { sec... |
[
{
"role": "user",
"content": "What does `BusPlug.copy` do?"
},
{
"role": "assistant",
"content": "copies the hidden internal state to make the new BusPlug independent of the old, running on a new Bus. By design, the Monitor is copied, but is not running (use play to start it in the same configur... |
[
{
"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": "Write a plucked string in SuperCollider."
},
{
"role": "assistant",
"content": "Pluck is a Karplus-Strong string: a noise burst into a tuned delay with feedback. The delay time is\nthe reciprocal of the frequency.\n\n```supercollider\n(\nSynthDef(\\pluck, { |out = 0... |
[
{
"role": "user",
"content": "How do I build a live drone with Ndef at 110 Hz?"
},
{
"role": "assistant",
"content": "`Ndef` is a named proxy you can redefine while it is playing:\n\n```supercollider\n// Ndef drone: sine source through a 400 Hz low-pass\n(\nNdef(\\nd_sine_110_400, { |freq = 110,... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// result of BufRd is used as index for the next BufRd\n// needs Buffer c prepared above\n\n(\ny = {\n GFIS.ar(\n { |x| BufRd.ar(1, c, c.numFrames * x) },\n (LFDNoise3.ar(... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `ControlRate`."
},
{
"role": "assistant",
"content": "```supercollider\n{ SinOsc.ar(ControlRate.ir) * 0.1 }.play;\n```"
}
] |
[
{
"role": "user",
"content": "What does `SPlayFile.maxNumInactiveBuffers` do?"
},
{
"role": "assistant",
"content": "The maximum number of buffer objects to keep in the #-buffers list. Buffers not frequently played will be removed and"
}
] |
[
{
"role": "user",
"content": "What is `Assemblage` in SuperCollider?"
},
{
"role": "assistant",
"content": "Assemblage — An Assembladge or Ndef based Mixer A class that for mixing differnet Ndefs and adding effects. Category: Libraries > Radicles."
}
] |
[
{
"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 `SensoryDissonance` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "SensoryDissonance — Perceptual feature modeling sensory dissonance Sensory Dissonance model, measuring roughness between pairs of prominent spectral peaks. Follows the algor... |
[
{
"role": "user",
"content": "What does `Environment.linkDoc` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Links the environment to the current document, so that it is the currentEnvironment only when one document is in focus. See: Arguments: doc — The document to link... |
[
{
"role": "user",
"content": "Write a GrainBuf synth at 16 grains per second. (rate 16, dur 0.2, interp 4, mode noise, 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 {... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.