conversations listlengths 2 6 |
|---|
[
{
"role": "user",
"content": "Explain `MxKrJack` in SuperCollider briefly."
},
{
"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 connec... |
[
{
"role": "user",
"content": "What is `ParGroup`?"
},
{
"role": "assistant",
"content": "ParGroup — Client-side representation of a parallel group node on the server"
},
{
"role": "user",
"content": "What does `ParGroup.basicNew` do?"
},
{
"role": "assistant",
"content": ... |
[
{
"role": "user",
"content": "Explain `SplayAz` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "SplayAz — Spreads an array of channels across a ring of channels SplayAz spreads an array of channels across a ring of channels. Optional spread and center controls, and flexible leve... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `DelayL`."
},
{
"role": "assistant",
"content": "```supercollider\n(\n// Dust randomly triggers Decay to create an exponential\n// decay envelope for the WhiteNoise input source\n{\nz = Decay.ar(Dust.ar(1, 0.5), 0.3, W... |
[
{
"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(\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": "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 `MxApp.at` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Units are stored in the Mx on a grid. Each column is an MxChannel, like a channel strip on a mixer. Each MxChannel has multiple (unlimited) units. These are the rows. Visual... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n(\n//algorithm to approach the square root of n\n~next = { |n| { |x| (x + n/x)/2 } };\n\n//look for a good enough match in the stream\n~within = { |eps, list| \n list.match({},\n { |a, rest|\n rest.match({},{ |b,... |
[
{
"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": "What is a UGen graph in SuperCollider?"
},
{
"role": "assistant",
"content": "A UGen graph is the directed acyclic graph of unit generators that a SynthDef describes: sources (SinOsc, WhiteNoise) feed processors (LPF, EnvGen, Pan2) and end at an output such as Out.a... |
[
{
"role": "user",
"content": "Write an Ndef at 55 Hz I can retune while it plays. (ugens sine, cutoff 200, lfo 0.3, freq 55, amp 0.12)"
},
{
"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 20... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Integrator`."
},
{
"role": "assistant",
"content": "```supercollider\n{ Integrator.ar(LFPulse.ar(300, 0.2, 0.1), MouseX.kr(0.001, 0.999, 1)) }.play\n\n// used as an envelope\n{ Integrator.ar(LFPulse.ar(3, 0.2, 0.0004)... |
[
{
"role": "user",
"content": "I get 'Message not understood' on a nil variable."
},
{
"role": "assistant",
"content": "`~buffer` (or any variable) was never assigned, or it was assigned in a different environment. Environment variables are per-environment: a `~buf` set in one server-side file bl... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n// allocate buffer\nb = Buffer.alloc(s, 44100, 1);\n\n(\n// Dust randomly triggers Decay to create an exponential\n// decay envelope for the WhiteNoise input source\n{\nz = Decay.ar(Dust.ar(1, 0.5), 0.3, WhiteNoise.ar);\n... |
[
{
"role": "user",
"content": "What does `PLexprand.new` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Creates a new PLexprand Arguments: lo — Symbol or Pexprand lo arg. If a Symbol is passed, list can be assigned to an envir variable later on. Can be dynamically replace... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Compander`."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n Decay2.ar(\n Impulse.ar(8, 0, LFSaw.kr(0.3, 1, -0.3, 0.3)),\n 0.001,\n 0.3\n )\n * Mix.ar(Pulse.ar([80, 81], 0.3))\n}.play;\n)\n`... |
[
{
"role": "user",
"content": "What is `PLbindefParEnvironment` in SuperCollider?"
},
{
"role": "assistant",
"content": "PLbindefParEnvironment — Environment made by PLbindefPar to play and set its sources Instances of this class are made as side effect of PLbindefPar creation, assigned to PLbind... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n// A beautiful sc140 tweet by Batuhan Bozkurt, parametrized for real-time changes\n(\n// Start sound here\na = { | rateL = 5, rateR = 6, blipMul = 100, blipAdd = 50, fMul = 50, kMul = 1 |\n f = LocalIn.ar(2).tanh;\n k ... |
[
{
"role": "user",
"content": "How do I play a random majorPentatonic scale at octave 4?"
},
{
"role": "assistant",
"content": "`Pbind` sequences an Event per beat, and `\\degree` + `\\scale` does the pitch:\n\n```supercollider\n(\nSynthDef(\\sine_pad, { |out = 0, freq = 440, amp = 0.2|\n var ... |
[
{
"role": "user",
"content": "What is `BinaryOpFunction`?"
},
{
"role": "assistant",
"content": "BinaryOpFunction — represent a binary operation on a function"
},
{
"role": "user",
"content": "What does `BinaryOpFunction.value` do?"
},
{
"role": "assistant",
"content": "E... |
[
{
"role": "user",
"content": "Write a Pbind in minorPentatonic using Prand for the degrees. (scale minorPentatonic, seq Prand, dur 0.2, octave 6, instr pluck, root 0)"
},
{
"role": "assistant",
"content": "`Pbind` sequences an Event per beat, and `\\degree` + `\\scale` does the pitch:\n\n```supe... |
[
{
"role": "user",
"content": "What does `Plotter.domain` do?"
},
{
"role": "assistant",
"content": "Set/get the x-axis positions of your data points. The size of the `domainArray` must equal the size of your #-value array, i.e. a domain value specified for each data point. `(` See also the #Expl... |
[
{
"role": "user",
"content": "How do I make a kick that starts at 220 Hz and falls to 55 Hz? (osc saw, sweep 0.06, decay 0.25, f0 220, f1 55, amp 0.6, rev 0)"
},
{
"role": "assistant",
"content": "A kick is a sine with a fast pitch drop and a short amplitude envelope:\n\n```supercollider\n// kic... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\nx = { |freq = 440| SinOsc.ar(freq, 0, 0.3) }.play; // this returns a Synth object;\nx.set(\\freq, 880); // note you can set the freq argument\nx.defName; // the name of the resul... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n(\ns = Server.local;\nServer.default = s;\ns.boot;\n);\n \n \n// definition for future reference in arbitrary Environments,\n// Gauss distribution is not bounded, so do clip !\n\n(\np = Pbind(\n \\midinote, PLgau... |
[
{
"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\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": "What does `SequenceableCollection.doAdjacentPairs` do?"
},
{
"role": "assistant",
"content": "Calls function for every adjacent pair of elements in the SequenceableCollection. The function is passed the two adjacent elements and an index. `[1, 2, 3, 4, 5].doAdjacent... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Limiter`."
},
{
"role": "assistant",
"content": "```supercollider\n(\n// example signal to process\n{\n var z;\n z = Decay2.ar(\n Impulse.ar(8, LFSaw.kr(0.25, -0.6, 0.7)),\n 0.001, 0.3, FSinOsc.ar(500));\n z ... |
[
{
"role": "user",
"content": "I get 'index out of range' when playing a buffer."
},
{
"role": "assistant",
"content": "A read position is past the end of the buffer. `PlayBuf` with a `startPos` in frames beyond `~buf.numFrames`, or a `BufRd`/`GrainBuf` whose phase goes above 1, produces this. Fo... |
[
{
"role": "user",
"content": "What is `UnaryOpUGen`?"
},
{
"role": "assistant",
"content": "UnaryOpUGen — Apply a unary operation to the values of an input ugen"
},
{
"role": "user",
"content": "What does `UnaryOpUGen.new` do?"
},
{
"role": "assistant",
"content": "return... |
[
{
"role": "user",
"content": "How do I build a live drone with Ndef at 110 Hz? (ugens sine, cutoff 200, lfo 0.3, freq 110, 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 200 Hz l... |
[
{
"role": "user",
"content": "What is `FOS` in SuperCollider?"
},
{
"role": "assistant",
"content": "FOS — First order filter section. A standard first order filter section. Filter coefficients are given directly rather than calculated for you. Formula is equivalent to: Category: UGens > Filters... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `SinOscFB`."
},
{
"role": "assistant",
"content": "```supercollider\n{ SinOscFB.ar(440, MouseX.kr(0, 4))*0.1 }.play\n\n\n{ SinOscFB.ar(MouseY.kr(10, 1000, 'exponential'), MouseX.kr(0.5pi, pi))*0.1 }.play\n\n\n{ SinOscF... |
[
{
"role": "user",
"content": "How do I granulate a sample with 0.1 s grains? (rate 20, dur 0.1, interp 4, 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 {\... |
[
{
"role": "user",
"content": "What does `PlayerMixer.players` do?"
},
{
"role": "assistant",
"content": "takes multiple players as input, mixes them to a single (stereo) output"
}
] |
[
{
"role": "user",
"content": "Show another SuperCollider example using `LatoocarfianN`."
},
{
"role": "assistant",
"content": "```supercollider\n// randomly modulate all params\n(\n{ LatoocarfianN.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": "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": "Show me a self-contained SuperCollider patch using `BufSampleRate`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\nb = Buffer.read(s, ExampleFiles.child);\n\n// compares a 1102.5 Hz sine tone (11025 * 0.1, left) with a 1100 ... |
[
{
"role": "user",
"content": "What is `Shaper` in SuperCollider?"
},
{
"role": "assistant",
"content": "Shaper — Wave shaper. Performs waveshaping on the input signal by indexing into the table. Category: UGens > Buffer."
}
] |
[
{
"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 = ArrayMin.ar(son).at(0);\n val = LeakDC.ar(val); // the operation tends ... |
[
{
"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// write a sine oscillator's output to a pin, and read the pin value at other times\n\n(\nSynthDef(\"help-DigitalIO\", { |out = 0|\n DigitalIO.ar(0, SinOsc.ar(10), LFPulse.kr(... |
[
{
"role": "user",
"content": "What is `MultiLevelIdentityDictionary` in SuperCollider?"
},
{
"role": "assistant",
"content": "MultiLevelIdentityDictionary — tree of dictionaries A tree of IdentityDictionaries. Addresses within the tree are specified with a series of keys. Library is its most use... |
[
{
"role": "user",
"content": "What is `Pan4` in SuperCollider?"
},
{
"role": "assistant",
"content": "Pan4 — Four channel equal power pan. Four channel equal power panner. Outputs are in order LeftFront, RightFront, LeftBack, RightBack. Category: UGens > Multichannel > Panners."
}
] |
[
{
"role": "user",
"content": "What is `FoaFocusX` in SuperCollider?"
},
{
"role": "assistant",
"content": "FoaFocusX — First Order Ambisonic (FOA) focus transformer Apply focus to a First Order Ambisonic signal (B-format) along the x-axis. Category: Libraries > Ambisonic Toolkit > UGens > FOA > ... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n(\n{\nvar noise, out;\nnoise = LFNoise0.kr(8);\n\nout = if( noise > 0.0,\n if(noise > 0.5, \n if(noise > 0.9, WhiteNoise.ar(0.2), Pulse.ar(60, 0.5, 0.4)),\n SinOsc.ar(500, 0, 0.25)\n ),\n Saw.ar(160, 0.5)\n);\n\no... |
[
{
"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": "What is `LocalBuf`?"
},
{
"role": "assistant",
"content": "LocalBuf — Allocate a buffer local to the synth"
},
{
"role": "user",
"content": "What does `LocalBuf.newFrom` do?"
},
{
"role": "assistant",
"content": "Allocates a new buffer from a... |
[
{
"role": "user",
"content": "Show me a self-contained SuperCollider patch using `Resonz`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\"noiseToPitch\", { arg out = 0, mul = 1;\n Out.ar(\n out,\n Resonz.ar(\n WhiteNoise.ar(mul)... |
[
{
"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": "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": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\n{\n var freq, trig;\n var in = Dseq([1, 2, 3], inf);\n var rep = Dstutter(Diwhite(2, 8, inf), in);\n trig = Impulse.kr(MouseX.kr(1, 40, 1));\n freq = Demand.kr(trig, 0, r... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `LorenzL`."
},
{
"role": "assistant",
"content": "```supercollider\n// randomly modulate params\n(\n{ LorenzL.ar(\n SampleRate.ir,\n LFNoise0.kr(1, 2, 10),\n LFNoise0.kr(1, 20, 38),\n LFNoise0.kr(1, 1.5, 2)\n) * 0.2 }.pla... |
[
{
"role": "user",
"content": "Buffer.read fails and I get a path error. What should the path look like?"
},
{
"role": "assistant",
"content": "On Windows use forward slashes or escaped backslashes inside the string: `Buffer.read(s, \"C:/sounds/kick.wav\")`. A single backslash starts an escape se... |
[
{
"role": "user",
"content": "Write a Pbind in majorPentatonic using Pshuf for the degrees. (scale majorPentatonic, seq Pshuf, dur 0.25, octave 4, instr fm, root 0)"
},
{
"role": "assistant",
"content": "The pattern is the composition here; `\\strum` spreads the chord:\n\n```supercollider\n(\nSy... |
[
{
"role": "user",
"content": "How do I record my output to a file?"
},
{
"role": "assistant",
"content": "`s.record(path)` starts recording the server's output; `s.stopRecording` stops it.\n\n```supercollider\ns.record(\"C:/audio/take1.wav\");\n// play for a while\ns.stopRecording;\n```\n\nThe p... |
[
{
"role": "user",
"content": "Who are you?"
},
{
"role": "assistant",
"content": "I am sc-mind, a 198M MiniMind-3-MoE trained from scratch on the SuperCollider source and help corpus. I write and explain SuperCollider: SynthDefs, UGens, Patterns, Ndef, the language/server split, and how to make ... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `BufDur`."
},
{
"role": "assistant",
"content": "```supercollider\nb = Buffer.read(s, ExampleFiles.child);\n\n{ BufRd.ar(1, b, Sweep.ar(Impulse.ar(BufDur.kr(b).reciprocal), BufSampleRate.kr(b))) }.play;\n\nb.free\n```"... |
[
{
"role": "user",
"content": "Write a granular texture, dry. (rate 20, dur 0.2, interp 2, 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 {\n var buf = ... |
[
{
"role": "user",
"content": "Write a GrainBuf synth at 16 grains per second. (rate 16, dur 0.07, interp 2, mode noise, rev 0)"
},
{
"role": "assistant",
"content": "A working granular patch, with the buffer loaded before the synth starts:\n\n```supercollider\n// granular synth with GrainBuf\n(\... |
[
{
"role": "user",
"content": "Give me an Ndef with an LFO at 0.3 Hz. (ugens blip, cutoff 2400, lfo 0.3, 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: blip source through a 2400 ... |
[
{
"role": "user",
"content": "Write a GrainBuf synth at 6 grains per second. (rate 6, dur 0.04, interp 2, 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(\n... |
[
{
"role": "user",
"content": "Show me a self-contained SuperCollider patch using `Rand`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```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.... |
[
{
"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": "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": "What does `RedLZ77.window` do?"
},
{
"role": "assistant",
"content": "Maximum sliding window size. The default is"
}
] |
[
{
"role": "user",
"content": "How do I build a live drone with Ndef at 165 Hz? (ugens blip, cutoff 400, lfo 0.1, freq 165, amp 0.12)"
},
{
"role": "assistant",
"content": "Use `Ndef` when the patch has to change without stopping:\n\n```supercollider\n// Ndef drone: blip source through a 400 Hz l... |
[
{
"role": "user",
"content": "Write a complete SuperCollider patch built around `Pan2` that runs as it is."
},
{
"role": "assistant",
"content": "```supercollider\n(\ns.bind {\n SynthDef(\"tpulse2\", { arg out=0, freq=700, sawFreq=440.0;\n Out.ar(out, Pan2.ar(SyncSaw.ar(freq, sawFreq, 0.1),... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ SinOsc.ar(ControlRate.ir * 0.1 }.play;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis opened earlier is never closed, so ... |
[
{
"role": "user",
"content": "How do I build a live drone with Ndef at 165 Hz? (ugens blip, cutoff 800, 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: blip source through... |
[
{
"role": "user",
"content": "Write a SuperCollider patch that uses `FOS` and actually plays. Assume nothing about the session."
},
{
"role": "assistant",
"content": "```supercollider\n(\n// same as OnePole\n{ var x;\n x = LFTri.ar(0.4, 0, 0.99);\n FOS.ar(LFSaw.ar(200, 0, 0.2), 1 - x.abs, 0.0... |
[
{
"role": "user",
"content": "What does `Plotter.showUnits` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Get/set whether the corresponding ControlSpec#-units are displayed as labels. The state of #-unitLocation determines whether the units are shown as axis labels or a... |
[
{
"role": "user",
"content": "What is `Interpreter`?"
},
{
"role": "assistant",
"content": "Interpreter — The interpreter defines a context in which interactive commands are compiled and executed."
},
{
"role": "user",
"content": "What does `Interpreter.clearAll` do?"
},
{
"r... |
[
{
"role": "user",
"content": "How do I play a random minorPentatonic scale at octave 5? (scale minorPentatonic, seq Prand, dur 0.4, octave 5, 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": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\nt = SortedList.new(8, {|a,b| a.first < b.first });\nt.add([10, \"last\"]);\nt.add([1, \"first\"];\nt.postln;\n```"
},
{
"role": "assistant",
"content": "A closing bra... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `BufDur`."
},
{
"role": "assistant",
"content": "```supercollider\nb = Buffer.read(s, ExampleFiles.child);\n\n{ BufRd.ar(1, b, Sweep.ar(Impulse.ar(BufDur.kr(b).reciprocal), BufSampleRate.kr(b))) }.play;\n\nb.free\n```"... |
[
{
"role": "user",
"content": "Saving \"Presets\"?"
},
{
"role": "assistant",
"content": "SuperCollider forum — Saving \"Presets\"?\n\nIf you don’t care too much about it being human readable, just use writeArchive and readArchive:\n\n```supercollider\na = Array.fill(400, {rrand(0,2200)});\n\na.w... |
[
{
"role": "user",
"content": "Give me a bell with damping 0.2 on the reverb."
},
{
"role": "assistant",
"content": "Put the reverb inside the `SynthDef` so it is part of the voice:\n\n```supercollider\n// reverb: freeverb on a bell\n(\nSynthDef(\\reverb_synth, { |out = 0, freq = 330, amp = 0.2|\... |
[
{
"role": "user",
"content": "Write a SuperCollider patch that uses `SpecFlatness` and actually plays. Assume nothing about the session."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\n\n(\n{ // Example - vary mixture of white noise and pure tone with the mouse\n var in, chain... |
[
{
"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": "Show another SuperCollider example using `FBSineL`."
},
{
"role": "assistant",
"content": "```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": "user",
"content": "Write a minimal SuperCollider example that uses `WhiteNoise`."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\"help-WhiteNoise\", { |out = 0|\n Out.ar(out,\n WhiteNoise.ar(0.25)\n )\n}).play;\n)\n```"
}
] |
[
{
"role": "user",
"content": "Write a SuperCollider patch that uses `BusPlug` and actually plays. Assume nothing about the session."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\nz = Bus.control(s, 16);\nz.setn({ |i| (i * 5).nthPrime } ! 16 * 5 + 100);\na = BusPlug.for(z);\n{ ... |
[
{
"role": "user",
"content": "Explain this code:\n```supercollider\n{ Pan2.ar(SinOsc.ar(440) * 0.2, SinOsc.kr(0.1)) }.play;\n```"
},
{
"role": "assistant",
"content": "A sine that slowly moves between the speakers.\n\n`SinOsc.kr(0.1)` is a control-rate sine at 0.1 Hz — one cycle every 10 seconds... |
[
{
"role": "user",
"content": "Explain `BussesTool` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "BussesTool — shows all Audio busses on a server (work in progress) requires cruciallib for now. will issue a warning and fail gracefully Category: Debugging."
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `BHiPass`."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\n(\nz = {\n BHiPass.ar(\n SoundIn.ar([0, 1]),\n MouseX.kr(10, 20000, \\exponential), // cutoff freq.\n MouseY.kr(0.0, 1.0, \\linear)... |
[
{
"role": "user",
"content": "How do I play a random minorPentatonic scale at octave 5? (scale minorPentatonic, seq Pwalk, dur 0.2, octave 5, 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": "Write a minimal SuperCollider example that uses `ArrayedCollection`."
},
{
"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].midicps;\n var ... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\n{\n Decay2.ar(\n Impulse.ar(8, 0, LFSaw.kr(0.3, 1, -0.3, 0.3)),\n 0.001,\n 0.3\n )\n * Mix.ar(Pulse.ar([80, 81], 0.3))\n}.play;\n```"
},
{
"role": "assista... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\nv = Vowel()\nv.addFormants([3000,4000], -6, [200, 200])\n\n{Formants.ar(100, v) * 0.1 }.play\n{Formants.ar(100, Vowel()) * 0.1}.play\n \n{[Formants.ar(100, Vowel()) * 0.1, For... |
[
{
"role": "user",
"content": "Add freeverb2 to a pluck patch at room 0.85. (verb freeverb2, room 0.85, damp 0.5, mix 0.45, source pluck)"
},
{
"role": "assistant",
"content": "A send-style patch: dry signal plus the reverb on the tail:\n\n```supercollider\n// reverb: freeverb2 on a pluck\n(\nSyn... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `MultiplexAnalogIn`."
},
{
"role": "assistant",
"content": "```supercollider\n// modulate frequency of a sine oscillator\n\n(\nSynthDef(\"help-MultiplexAnalogIn\", { |out = 0|\n Out.ar(out,\n SinOsc.ar(MultiplexAna... |
[
{
"role": "user",
"content": "Write a Pbind whose degrees repeat every Pseq cycle."
},
{
"role": "assistant",
"content": "`Pbind` sequences an Event per beat, and `\\degree` + `\\scale` does the pitch:\n\n```supercollider\n(\nSynthDef(\\pluck, { |out = 0, freq = 440, amp = 0.2|\n var env = En... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\na = NodeProxy(s);\na.play;\na.source = { Pulse.ar(130, Saw.kr(0.3) * 0.1 }; // change this line while running\n```"
},
{
"role": "assistant",
"content": "A closing br... |
[
{
"role": "user",
"content": "What is `PbindProxy`?"
},
{
"role": "assistant",
"content": "PbindProxy — incremental event pattern reference"
},
{
"role": "user",
"content": "What does `PbindProxy.new` do?"
},
{
"role": "assistant",
"content": "Return a new instance of Pbi... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ Klank.ar(`[[800, 1071, 1153, 1723], nil, [1, 1, 1, 1]], Impulse.ar(2, 0, 0.1) }.play;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the ... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Pause`."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\n\nSynthDef(\\a, { Out.ar(0, SinOsc.ar(800, 0, 0.2)) }).add;\n\nSynthDef(\\b, { |gate = 1| Out.ar(1, PinkNoise.ar(0.3)); Pause.kr(gate, 1001) })... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n// try wiggling mouse quickly;\n// LFNoise frequently seems stuck, LFDNoise changes smoothly.\n\n{ LFNoise0.ar(MouseX.kr(0.1, 1000, 1), 0.1) }.play\n\n{ LFDNoise0.ar(MouseX.kr(0.1, 1000, 1), 0.1) }.play\n\n// silent for 2... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.