conversations
listlengths
2
6
[ { "role": "user", "content": "Explain `NodeTreeView` in SuperCollider briefly." }, { "role": "assistant", "content": "NodeTreeView — Show Server-side Node Tree Category: GUI > Views." } ]
[ { "role": "user", "content": "Write a minimal SuperCollider example that uses `LinPan2`." }, { "role": "assistant", "content": "```supercollider\n// hear the difference, LinPan having a slight drop in the middle (yeah, it's subtle)...\n{ LinPan2.ar(SinOsc.ar(440), Line.kr(-1, 1, 5)) }.play;\n\n/...
[ { "role": "user", "content": "Write a kick at amp 0.8 with no click. (osc fm, sweep 0.06, decay 0.5, f0 220, f1 48, amp 0.8, rev 0)" }, { "role": "assistant", "content": "The pitch envelope is what makes it read as a drum, not the oscillator:\n\n```supercollider\n// kick drum: fm oscillator, 0.0...
[ { "role": "user", "content": "Write a minimal SuperCollider example that uses `ClipNoise`." }, { "role": "assistant", "content": "```supercollider\n{ ClipNoise.ar(0.2) }.play;\n```" } ]
[ { "role": "user", "content": "Explain `Sieve` in SuperCollider briefly." }, { "role": "assistant", "content": "Sieve — Container class for sieve lists Container for a list of ascending integers as 'points' or 'intervals'. For an introduction and more examples see Sieves_and_Psieve_patterns. Cate...
[ { "role": "user", "content": "What does `SimpleNumber.ramp` do?" }, { "role": "assistant", "content": "Map the receiver onto a ramp starting at `0.0`, ending at `1.0`, effectively clipping the receiver at [0," } ]
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ Trig.ar(Dust.ar(1), 0.2) * FSinOsc.ar(800, 0.5) }.play\n\n{ Trig.ar(Dust.ar(4), 0.1 }.play\n```" }, { "role": "assistant", "content": "A closing bracket is missing:...
[ { "role": "user", "content": "Explain this SuperCollider code.\n```supercollider\n// If a Function is passed to indices it takes the current lookBack arg as argument.\n\n// mirroring the full lookBack size\n// start without loop\n\n(\n~lookBack = 0;\n\np = PSloop(\n Pbind(\n \\dur, Pn(Pshuf([1, 1, 2]/6)...
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\nSynthDef(\"mini\",{\n Out.ar( 0,\n Instr(\"minimoog.two\").ar( SinOsc.kr(1.0).range(300,500) )\n )\n}).send(s;\n```" }, { "role": "assistant", "content": "A clos...
[ { "role": "user", "content": "Show me a self-contained SuperCollider patch using `DiskIn`: bind everything it needs first." }, { "role": "assistant", "content": "```supercollider\ns.boot;\n\n\n\n// create with cueSoundFile class method\nb = Buffer.cueSoundFile(s, ExampleFiles.apollo11, 0, 1);\nx...
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ LFNoise1.ar(1000, 0.25) }.play;\n\n// modulate frequency\n\n{ LFNoise1.ar(XLine.kr(1000, 10000, 10), 0.25) }.play;\n\n// as frequency modulator\n(\n{ SinOsc.ar(\n LFNoise1.a...
[ { "role": "user", "content": "What is your name?" }, { "role": "assistant", "content": "sc-mind. I am the 198M MiniMind-3-MoE this repository trains on SuperCollider source and help text." } ]
[ { "role": "user", "content": "Write a SuperCollider patch for Digital Bird sounds that runs as it is, with nothing assumed about the session." }, { "role": "assistant", "content": "```supercollider\n(\nNdef(\\birdy, {arg freq=1500, amp=0.5, rate=10;\n var osc, son, convIn, rand;\n osc=LFCub;\n...
[ { "role": "user", "content": "How do I play a random majorPentatonic scale at octave 4? (scale majorPentatonic, seq Pwalk, dur 0.4, octave 4, instr sine, root 0)" }, { "role": "assistant", "content": "The pattern is the composition here; `\\strum` spreads the chord:\n\n```supercollider\n(\nSynth...
[ { "role": "user", "content": "What does `MKtl.new` do? What arguments does it take?" }, { "role": "assistant", "content": "Accesses an existing instance of MKtl with the given name, or creates a new instance with that name. As with e.g. JITLib proxies like Ndef, Tdef, Pdef, or OSCdef, MIDIdef et...
[ { "role": "user", "content": "What is `Pbindef`?" }, { "role": "assistant", "content": "Pbindef — incremental event pattern reference definition" }, { "role": "user", "content": "What does `Pbindef.new` do?" }, { "role": "assistant", "content": "store the pattern in the g...
[ { "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{ LinCongN.ar(MouseX.kr(20, SampleRate.ir)) * 0.2 }.play(s;\n```" }, { "role": "assistant", "content": "A closing bracket is missing: the p...
[ { "role": "user", "content": "What is `DataSequencer` in SuperCollider?" }, { "role": "assistant", "content": "DataSequencer — distribute data and accelerometer values over time Collects data from any OpenBCI board and spread out over time. Mainly useful with wifi shield where packages arrives i...
[ { "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(\ns.bind {\n a = { |freq = 100| SinOsc.ar(freq, LFTri.ar(freq)) * 0.2 }.play;\n s.sync;\n a.set(\\freq, 400);\n}\n```" }, { "role": "assistant", "content": "A clo...
[ { "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": "Show another SuperCollider example using `LeastChange`." }, { "role": "assistant", "content": "```supercollider\n(\nd = { |freq = 440|\n var internalFreq;\n internalFreq = LFNoise0.ar(0.3, 300, 800);\n SinOsc.ar(\n LeastChange.kr(freq, internalFreq) // two sou...
[ { "role": "user", "content": "What is `QuadC` in SuperCollider?" }, { "role": "assistant", "content": "QuadC — General quadratic map chaotic generator A cubic-interpolating sound generator based on the difference equation: Category: UGens > Generators > Chaotic." } ]
[ { "role": "user", "content": "How do I use a metronome or check my timing?" }, { "role": "assistant", "content": "A click on the clock you are using, plus a counter to see where you are in the bar:\n\n```supercollider\n(\nTdef(\\click, {\n var count = 0;\n loop {\n (Synth(\\hat, [\\...
[ { "role": "user", "content": "What is `PitchShiftPA` in SuperCollider?" }, { "role": "assistant", "content": "PitchShiftPA — Phase-Aligned Pitch and Formant Shifter Phase Aligned Wavepacket (Re-)Synthesis (PAWS) pseudo-UGen, allowing for manipulating pitch and formant structure of the sound inde...
[ { "role": "user", "content": "What does `SynthFile.write` do? What arguments does it take?" }, { "role": "assistant", "content": "Write synth object for spcecific class into Arguments: Specify Radicles Class.; Key to identify synth object.; Object to write into file.." } ]
[ { "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": "Give me a granular patch with noise grain position and interp 4. (rate 20, dur 0.15, interp 4, mode noise, rev 1)" }, { "role": "assistant", "content": "Granulation is `GrainBuf` plus a trigger rate; the position can move:\n\n```supercollider\n// granular synth with...
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ LFSaw.ar(500, 1, 0.1) }.play\n\n// used as both Oscillator and LFO:\n{ LFSaw.ar(LFSaw.kr(4, 0, 200, 400), 0, 0.1 }.play\n```" }, { "role": "assistant", "content": "...
[ { "role": "user", "content": "What does `Dictionary.atAll` do?" }, { "role": "assistant", "content": "Return an Array of all values for the given keys. `d = Dictionary.newFrom([\\hello, 9, \\whello, \"world\", \\z," } ]
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// compares a 441 Hz sine tone derived from sample rate (44100 * 0.01, left)\n// with a 440 Hz tone (right), resulting in a 1 Hz beating\n(\n{\n var freq;\n freq = [SampleRate....
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\ns.boot;\nx = { SinOsc.ar((Line.kr(0, 10, 10).snap(1, 0.3, 1) + 60).poll.midicps, 0, -24.dbamp }.play\n```" }, { "role": "assistant", "content": "A closing bracket is ...
[ { "role": "user", "content": "What does `SimpleController.remove` do? What arguments does it take?" }, { "role": "assistant", "content": "Remove a registered Arguments: action — Action to remove." } ]
[ { "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": "Write a complete SuperCollider patch built around `Pwrap` that runs as it is." }, { "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,...
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\nSynthDef(\"help-Rand\", { |out = 0|\n Out.ar(out,\n FSinOsc.ar(\n Rand(200.0, 400.0),\n 0, Line.kr(0.2, 0, 1, doneAction: Done.freeSelf))\n )\n}).add;\n);\n\n(\...
[ { "role": "user", "content": "What does `Pdef.count` do?" }, { "role": "assistant", "content": "Create and update condition that simply counts up to n and switches the pattern" } ]
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ Gbman2DL.ar(MouseX.kr(20, SampleRate.ir*0.25), MouseX.kr(80, SampleRate.ir), 0.1) }.play(s);\n\n{ Gbman2DL.ar(11025, 22050, -0.7, -2.7, 0.1) }.play(s);\n\n{ Gbman2DL.ar(2200, 8...
[ { "role": "user", "content": "Write a minimal SuperCollider example that uses `TExpRand`." }, { "role": "assistant", "content": "```supercollider\n(\n{\n var trig = Dust.kr(10);\n SinOsc.ar(\n TExpRand.kr(300.0, 3000.0, trig)\n ) * 0.1\n}.play;\n);\n\n(\n{\n var trig = Dust.ar(MouseX....
[ { "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 = Dbrown2(0, 15, 1, [1, 4], inf);\n trig = Dust.kr(MouseX.kr(1, 40, 1));\n freq = Demand.kr(trig, 0, a) * 30 + 340;\n SinOsc.ar(freq) * 0.1\n\n...
[ { "role": "user", "content": "Explain `GridLines` in SuperCollider briefly." }, { "role": "assistant", "content": "GridLines — A factory class for AbstractGridLines `GridLines` is a factory class that returns the appropriate subclass of AbstractGridLines for a given `ControlSpec`, e.g. a LinearG...
[ { "role": "user", "content": "Write a minimal SuperCollider example that uses `RunningMin`." }, { "role": "assistant", "content": "```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...
[ { "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": "Explain this SuperCollider code.\n```supercollider\n(\n~loDev = -6;\n~hiDev = 5;\n~lookBack = 2;\n\np = Pbind(\n \\dur, 0.2,\n \\midinote, PIdev(72, 11, Pfunc { ~loDev }, Pfunc { ~hiDev }, Pfunc { ~lookBack }).trace(prefix: \"midi \"),\n).play;\n);\n\n// change on the fly\n//...
[ { "role": "user", "content": "Write a self-contained SuperCollider patch that uses `Dgeom`. Define every value it uses." }, { "role": "assistant", "content": "```supercollider\n// example\n\n(\n{\n var a, freq, trig;\n a = Dgeom(1, 1.2, 15);\n trig = Impulse.kr(MouseX.kr(1, 40, 1));\n freq =...
[ { "role": "user", "content": "Give me a Pbind with fm voices and a 0.4 rhythm. (scale majorPentatonic, seq Pwalk, dur 0.4, octave 4, instr fm, root 0)" }, { "role": "assistant", "content": "Put the scale and the degree pattern in the `Pbind` and it will pick notes for you:\n\n```supercollider\n(...
[ { "role": "user", "content": "What is `IFFT`?" }, { "role": "assistant", "content": "IFFT — Inverse Fast Fourier Transform" }, { "role": "user", "content": "What does `IFFT.new` do?" }, { "role": "assistant", "content": "returns a time domain signal from converting the FF...
[ { "role": "user", "content": "Write a minimal SuperCollider example that uses `Amplitude`." }, { "role": "assistant", "content": "```supercollider\n(\n{\n // LFSaw begins at 0, illustrates attack time better\n var sig = LFSaw.ar(440);\n var amps = Amplitude.ar(\n sig,\n attackTime: [0.0...
[ { "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": "Give me a saw kick with a 0.06 s pitch sweep. (osc saw, sweep 0.06, decay 0.12, f0 220, f1 48, 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: saw oscillator, 0.06 s ...
[ { "role": "user", "content": "Give me an Ndef with an LFO at 0.8 Hz. (ugens tri, cutoff 200, lfo 0.8, freq 82.5, 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 a 200 Hz l...
[ { "role": "user", "content": "Write a minimal SuperCollider example that uses `Symbol`." }, { "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...
[ { "role": "user", "content": "Write a Pbind in majorPentatonic using Pwalk for the degrees. (scale majorPentatonic, seq Pwalk, dur 0.2, octave 5, instr fm, root 0)" }, { "role": "assistant", "content": "Put the scale and the degree pattern in the `Pbind` and it will pick notes for you:\n\n```sup...
[ { "role": "user", "content": "What does `Function.thunk` do?" }, { "role": "assistant", "content": "Return a Thunk, which is an unevaluated value that can be used in calculations `x = thunk { 4.rand" } ]
[ { "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": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ Impulse.ar(4, [0, MouseX.kr(0, 1)], 0.2 }.play;\n```" }, { "role": "assistant", "content": "A closing bracket is missing: the parenthesis opened earlier is never cl...
[ { "role": "user", "content": "Write a granular texture, through a reverb. (rate 20, dur 0.2, interp 4, mode noise1, rev 1)" }, { "role": "assistant", "content": "A working granular patch, with the buffer loaded before the synth starts:\n\n```supercollider\n// granular synth with GrainBuf\n(\ns.w...
[ { "role": "user", "content": "What does `SimpleNumber.ibeta` do?" }, { "role": "assistant", "content": "Returns the normalised incomplete beta function of `a`, `b` and `x`. Require 0 <= `x` <= 1, `a,b` >= 0, and in addition that not both `a` and `b` are" } ]
[ { "role": "user", "content": "GrainBuf complains about too many grains." }, { "role": "assistant", "content": "The number of simultaneous grains is `density × dur` in seconds, and it exceeds maxGrains (512 by default). Either lower the trigger rate, shorten the grains, or raise the limit: `Grain...
[ { "role": "user", "content": "What is `PV_MagSmooth` in SuperCollider?" }, { "role": "assistant", "content": "PV_MagSmooth — Smooth spectral magnitudes over time Smooths out the magnitude of FFT bins over time using recursive averaging. Category: UGens > FFT, UGens > Analysis." } ]
[ { "role": "user", "content": "How do I use a metronome or check my timing?" }, { "role": "assistant", "content": "A click on the clock you are using, plus a counter to see where you are in the bar:\n\n```supercollider\n(\nTdef(\\click, {\n var count = 0;\n loop {\n (Synth(\\hat, [\\...
[ { "role": "user", "content": "Resizing FreqScope?" }, { "role": "assistant", "content": "SuperCollider forum — Resizing FreqScope?\n\nOddly, this seems to work:\n\n```supercollider\n// max partial = 20 kHz\n// do not play this loudly\na = { Blip.ar(100, 200, 0.02).dup }.play;\n\nv = FreqScope(80...
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```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```" }, { "role": "assistant",...
[ { "role": "user", "content": "What is `PDC` in SuperCollider?" }, { "role": "assistant", "content": "PDC — UGenPatterns quark library Based on DC Category: Streams-Patterns-Events > UGenPatterns > Generators." } ]
[ { "role": "user", "content": "Show me a self-contained SuperCollider patch using `AnalogIn`: bind everything it needs first." }, { "role": "assistant", "content": "```supercollider\n// modulate frequency of a sine oscillator\n\n(\nSynthDef(\"help-AnalogIn\", { |out = 0|\n Out.ar(out,\n SinOs...
[ { "role": "user", "content": "What is the difference between ~foo and a local variable?" }, { "role": "assistant", "content": "`var foo` is a local: it exists only inside the function or file block that declares it. `~foo` is an environment variable: it lives in the current Environment, survives...
[ { "role": "user", "content": "What does `Node.server` do?" }, { "role": "assistant", "content": "Abstract superclass of Synth and Group Returns: an instance of Server corresponding to this Node's server app." } ]
[ { "role": "user", "content": "Explain `PV_BinShift` in SuperCollider briefly." }, { "role": "assistant", "content": "PV_BinShift — Shift and stretch bin position. Shift and scale the positions of the bins. Can be used as a very crude frequency shifter/scaler. Category: UGens > FFT." } ]
[ { "role": "user", "content": "How does multi-channel expansion work?" }, { "role": "assistant", "content": "If any argument of a UGen is an Array, the UGen is built once per element and the results are returned as an Array. So `SinOsc.ar([220, 330, 440])` is three oscillators, and `SinOsc.ar(220...
[ { "role": "user", "content": "Write a kick drum with a 0.25 s decay. (osc saw, sweep 0.06, decay 0.25, f0 220, f1 48, 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: saw oscillator, 0.06 s pitch s...
[ { "role": "user", "content": "Write a minimal SuperCollider example that uses `Lag3`." }, { "role": "assistant", "content": "```supercollider\n(\n// used to lag pitch\n{\n SinOsc.ar( // sine wave\n Lag3.kr( // lag the modulator\n LFPulse.kr(4, 0, 0.5, 50, 400), // frequency mod...
[ { "role": "user", "content": "Write a bell in SuperCollider." }, { "role": "assistant", "content": "A bell is a set of inharmonic partials with a long percussive decay. The ratios below are the\nclassic bell ones; the envelope frees the Synth when it ends.\n\n```supercollider\n(\nSynthDef(\\bell...
[ { "role": "user", "content": "Write a self-contained SuperCollider patch that uses `Diwhite`. Define every value it uses." }, { "role": "assistant", "content": "```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...
[ { "role": "user", "content": "Write an Ndef with a blip source and a 3200 Hz low-pass. (ugens blip, cutoff 3200, lfo 0.1, 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: blip sourc...
[ { "role": "user", "content": "Write a granular texture, through a reverb. (rate 28, dur 0.2, interp 4, mode noise, rev 1)" }, { "role": "assistant", "content": "Granulation is `GrainBuf` plus a trigger rate; the position can move:\n\n```supercollider\n// granular synth with GrainBuf\n(\ns.waitFo...
[ { "role": "user", "content": "Write a self-contained SuperCollider patch for it goes beyond vibrato too. Define every value it uses." }, { "role": "assistant", "content": "```supercollider\n(\nSynthDef(\"vibrato\", {arg freq=440, release=0.1;\n var x, sig,out, mod1, depth, mfreq,maxfreq, maxdep...
[ { "role": "user", "content": "How do I granulate a sample with 0.15 s grains? (rate 10, dur 0.15, interp 4, mode noise1, 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...
[ { "role": "user", "content": "Give me an Ndef with an LFO at 0.8 Hz. (ugens sine, cutoff 800, lfo 0.8, freq 55, amp 0.12)" }, { "role": "assistant", "content": "Use `Ndef` when the patch has to change without stopping:\n\n```supercollider\n// Ndef drone: sine source through a 800 Hz low-pass\n(\...
[ { "role": "user", "content": "Write a complete SuperCollider patch built around `Pseq` that runs as it is." }, { "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, ...
[ { "role": "user", "content": "Explain `FBSineC` in SuperCollider briefly." }, { "role": "assistant", "content": "FBSineC — Feedback sine with chaotic phase indexing A cubic-interpolating sound generator based on the difference equations: Category: UGens > Generators > Chaotic." } ]
[ { "role": "user", "content": "What does this SuperCollider code do?\n```supercollider\n(\n// prep\ns = Server.local;\n\nn = SynthDef(\"Updater-help\", {|out, freq|\n var sin;\n sin = SinOsc.ar(freq, 0.5)*EnvGen.kr(Env.triangle(4,1), doneAction:2);\n Out.ar(out, sin);\n }).send(s);\n);\n\n(...
[ { "role": "user", "content": "Write a GrainBuf synth at 6 grains per second. (rate 6, dur 0.2, interp 4, mode sweep, 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.wait...
[ { "role": "user", "content": "What are the server's default sample rate and block size?" }, { "role": "assistant", "content": "44100 Hz and 64 samples per block by default, so the control rate is 44100/64 = 689.06 Hz. You can read them from the language with `s.sampleRate` and `s.options.blockSi...
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{var n= 1024; WaveletDaub.ar(SoundIn.ar, n, MouseX.kr(0,n))}.play\n\n{var n= 1024; WaveletDaub.ar(Saw.ar(MouseY.kr(50,10000, 'exponential'),0.5), n, MouseX.kr(0,n)}.play\n```" ...
[ { "role": "user", "content": "Write a kick drum with a 0.12 s decay. (osc saw, sweep 0.06, decay 0.12, f0 150, f1 40, 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: saw oscillator, 0.06 s pitch s...
[ { "role": "user", "content": "What is `PBPZ2` in SuperCollider?" }, { "role": "assistant", "content": "PBPZ2 — UGenPatterns quark library Based on BPZ2 Category: Streams-Patterns-Events > UGenPatterns > Modifiers." } ]
[ { "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 (LFDNoise3.a...
[ { "role": "user", "content": "What does this SuperCollider patch do?\n```supercollider\n(// * //watch the postWindow\na=[\"m\",\"x\",\"f\",\"k\",\"d\",\"p\"];\nx=Array;\ny=x.newClear(6);\n~mxfkdp=Task({\n inf.do({y.put(x.series(6,0,1).choose,a.scramble).postln;\n 0.03.wait;})}).play;\nm=fork({inf.do({\n ...
[ { "role": "user", "content": "Write a minimal SuperCollider example that uses `Pan2`." }, { "role": "assistant", "content": "```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 mo...
[ { "role": "user", "content": "Show another SuperCollider example using `LeastChange`." }, { "role": "assistant", "content": "```supercollider\n(\nd = { |freq = 440|\n var internalFreq;\n internalFreq = LFNoise0.ar(0.3, 300, 800);\n SinOsc.ar(\n LeastChange.kr(freq, internalFreq) // two sou...
[ { "role": "user", "content": "Write a minimal SuperCollider example that uses `Impulse`." }, { "role": "assistant", "content": "```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": "user", "content": "What is `FoaSFPL` in SuperCollider?" }, { "role": "assistant", "content": "FoaSFPL — First Order Ambisonic (FOA) Soundfield Pressure Level Return the Soundfield Pressure Level, SFPL, of a first order ambisonic (B-format) signal, in dB. Category: Libraries > Ambisoni...
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\ns.bind {\n a = { |freq = 100| SinOsc.ar(freq, LFTri.ar(freq)) * 0.2 }.play;\n s.sync;\n a.set(\\freq, 400);\n}\n```" }, { "role": "assistant", "content": "A clo...
[ { "role": "user", "content": "Write a minimal SuperCollider example that uses `Dseries`." }, { "role": "assistant", "content": "```supercollider\n(\n{\n var a, freq, trig;\n a = Dseries(0, 1, 15);\n trig = Impulse.kr(MouseX.kr(1, 40, 1));\n freq = Demand.kr(trig, 0, a) * 30 + 340;\n SinOsc....
[ { "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": "What does `ObjectWithArgs.values` do? What arguments does it take?" }, { "role": "assistant", "content": "(describe method Arguments: newValues — (describe argument here). Returns: (returnvalue)" } ]
[ { "role": "user", "content": "Write a SuperCollider patch for batuhan's buzzer parametrized that runs as it is, with nothing assumed about the session." }, { "role": "assistant", "content": "```supercollider\n// A beautiful sc140 tweet by Batuhan Bozkurt, parametrized for real-time changes\n(\n/...
[ { "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": "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": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\n Instr(\\beatClockPlayerTest,{ arg gate=0.0;\n var a,t;\n\n t = gate;\n a = Decay2.kr(t,0.01,0.1).clip2(1.0);\n a * SinOsc.ar(300);\n },[\n \\gate\n ]);\n\n ...