conversations listlengths 2 6 |
|---|
[
{
"role": "user",
"content": "What is `Collection`?"
},
{
"role": "assistant",
"content": "Collection — Abstract superclass of all collections"
},
{
"role": "user",
"content": "What does `Collection.newFrom` do?"
},
{
"role": "assistant",
"content": "Creates a new Collect... |
[
{
"role": "user",
"content": "What does `HasPatchIns.annotatedInputProxies` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "parent class for Players that have PatchIns such as Patch Arguments: offset; array."
}
] |
[
{
"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": "What can you help with?"
},
{
"role": "assistant",
"content": "SuperCollider. I can write a SynthDef or a Pbind, explain a class or a UGen, read a patch back, and diagnose one that fails to compile. That is the whole of my training."
}
] |
[
{
"role": "user",
"content": "What does `Function.envirFlop` do?"
},
{
"role": "assistant",
"content": "This method is kept for backward compatibility. Use `flop`"
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `SelectX`."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var a;\n a = [\n SinOsc.ar,\n Saw.ar(300),\n Pulse.ar(230)\n ];\n\n SelectX.ar(MouseX.kr(0, 1) * a.size, a) * 0.2\n}.play;... |
[
{
"role": "user",
"content": "Explain `Place` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "Place — interlaced embedding of subarrays Returns elements in the list. If an element is an array itself, it embeds the first element when it comes by first time, the second element whe... |
[
{
"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": "Write a minimal SuperCollider example that uses `BLowPass`."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\n(\nz = {\n BLowPass.ar(\n SoundIn.ar([0, 1]),\n MouseX.kr(10, 20000, \\exponential), // cutoff freq.\n MouseY.kr(0.0, 1.0, \\linea... |
[
{
"role": "user",
"content": "Give me a complete SuperCollider patch for (thor magnusson) (2006) An instrumentalist inside a synthdef: bind everything it needs before it is used."
},
{
"role": "assistant",
"content": "```supercollider\n// (thor magnusson) (2006)\n\n// An instrumentalist inside a... |
[
{
"role": "user",
"content": "Write an Ndef at 82.5 Hz I can retune while it plays. (ugens saw, cutoff 2400, lfo 0.8, 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 240... |
[
{
"role": "user",
"content": "How do I build a live drone with Ndef at 165 Hz? (ugens blip, cutoff 200, lfo 0.3, 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 200 Hz l... |
[
{
"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": "What is `Condition`?"
},
{
"role": "assistant",
"content": "Condition — Block the execution of a thread"
},
{
"role": "user",
"content": "What does `Condition.new` do?"
},
{
"role": "assistant",
"content": "Create a new instance, set the test... |
[
{
"role": "user",
"content": "Write a SuperCollider patch that uses `Ringz` and actually plays. Assume nothing about the session."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var in, chain;\n in = Ringz.ar(Impulse.ar([2, 3]), [700, 800], 0.1) * 5; // stereo input\n chain = ... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\nb = Bus(\\audio, 0, 2);\ns.bind {\n SynthDef(\\sinPerc, { |out = 0|\n var signal = SinOsc.ar * Env.sine(0.1).ar(gate: Impulse.ar(2));\n OffsetOut.ar(out, signal ! 2) }\... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n(\nSynthDef(\\sine, { |freq = 400, amp = 0.1| Out.ar(0, SinOsc.ar(freq, mul: amp)) }).add;\nSynthDef(\\pulse, { |freq = 400, amp = 0.1| Out.ar(0, Pulse.ar(freq, mul: amp)) }).add;\n);\n\n(\nx = Synth(\\sine).register;\ny ... |
[
{
"role": "user",
"content": "What is `GanglionSerial` in SuperCollider?"
},
{
"role": "assistant",
"content": "GanglionSerial — for communicating with a Ganglion board (4ch) this class is for communication via bluetooth serial (dongle). use GanglionWifi for the wifi shield. Category: External C... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// this frees after the Decay has become quiet enough for a long enough time\n{ var signal = Decay.ar(Impulse.ar(0), 2, PinkNoise.ar(0.2)); DetectSilence.ar(signal, doneAction: D... |
[
{
"role": "user",
"content": "Give me a Pbind with pluck voices and a 0.2 rhythm. (scale majorPentatonic, seq Pwalk, dur 0.2, octave 5, instr pluck, root 0)"
},
{
"role": "assistant",
"content": "Put the scale and the degree pattern in the `Pbind` and it will pick notes for you:\n\n```supercolli... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `LatoocarfianL`."
},
{
"role": "assistant",
"content": "```supercollider\n// default initial params\n{ LatoocarfianL.ar(MouseX.kr(20, SampleRate.ir)) * 0.2 }.play(s);\n```"
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `LatoocarfianC`."
},
{
"role": "assistant",
"content": "```supercollider\n// default initial params\n{ LatoocarfianC.ar(MouseX.kr(20, SampleRate.ir)) * 0.2 }.play(s);\n```"
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Dgeom`."
},
{
"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 = Demand.kr(trig, 0, a) * 30 + 340... |
[
{
"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 = { Hilbert.ar(SinOsc.ar(100) * -20.dbamp }.play;\na.release;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the paren... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\nb = Buffer.alloc(s, 1);\n{\nvar x, y, rate, a, c, m;\n rate = MouseX.kr(100, SampleRate.ir);\n a = 1.1;\n c = 0.13;\n m = 1.0;\n x = Dbufrd(b); // read from buffer\n x =... |
[
{
"role": "user",
"content": "Write a complete SuperCollider patch built around `Dwrand` that runs as it is."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var a, freq, trig;\n a = Dwrand([0, 1, 2, 7], [0.4, 0.4, 0.1, 0.1], inf).dpoll;\n trig = Impulse.kr(MouseX.kr(1, 400, 1)... |
[
{
"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": "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 `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": "Explain this SuperCollider patch.\n```supercollider\n// NTMI.zoom sets all the influx'es inScalers AND RandomOrbit's excursion from current state.\n\nNTMI.zoom = NTMI.zoom?1;\n\n// tune this for jitter on zoom pot on NTMI\nSpec.add(\\zoom, [0, 1, \\lin, 0.025]);\n\nNTMI.setZoom... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `ReplaceOut`."
},
{
"role": "assistant",
"content": "```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... |
[
{
"role": "user",
"content": "What is `ServerOptions` in SuperCollider?"
},
{
"role": "assistant",
"content": "ServerOptions — Encapsulates commandline and other options for a Server ServerOptions encapsulates various options for a server app within an object. This makes it convenient to launch ... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `LinCongN`."
},
{
"role": "assistant",
"content": "```supercollider\n// default initial params\n{ LinCongN.ar(MouseX.kr(20, SampleRate.ir)) * 0.2 }.play(s);\n```"
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ BPF.ar(BrownNoise.ar(0.1.dup), MouseX.kr(40, 17000, 1), 0.2 }.play;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis opened... |
[
{
"role": "user",
"content": "What does `ArrayedCollection.copySeries` do?"
},
{
"role": "assistant",
"content": "Return a new ArrayedCollection consisting of the values starting at first, then every step of the distance between first and second, up until last. — All indices (first, second, last... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```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 RunningSum.ar(LFSaw.ar, x) * (x.r... |
[
{
"role": "user",
"content": "Write a complete SuperCollider patch built around `Compander` that runs as it is."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var z;\n\n // signal (clean)\n z = Decay2.ar(\n Impulse.ar(8, 0, LFSaw.kr(0.3, 1, -0.3, 0.3)),\n 0.001,\n 0.... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n// Periphonic (3D) decoder with eight channels arranged in a bi-rectangle:\n// [ [ 30, 0 ], [ -30, 0 ], [ 90, 35.3 ], [ -90, 35.3 ],\n// [ -150, -0 ], [ 150, -0 ], [ -90, -35.3 ], [ 90, -35.3 ] ]\n\n// specify 1/2 the d... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```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.ar;\n chain = FFT(Local... |
[
{
"role": "user",
"content": "Add freeverb2 to a bell patch at room 0.85."
},
{
"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 bell\n(\nSynthDef(\\reverb_synth, { |out = 0, freq = 330, am... |
[
{
"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 TExpRand.kr(300.0, 3000.0, trig)\n ) * 0.1\n}.play;\n);\n\n(\n{\n var trig = Dust.ar(MouseX.kr(1, 8000, 1));\n SinOsc.ar... |
[
{
"role": "user",
"content": "What does `FoaNr.ar` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "First Order Ambisonic (FOA) Soundfield Unit Normalized Reactive Intensity Vector Arguments: in — The B-format signal, an array: [w, x, y, z]; size — Analysis filter kernel s... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `RHPF`."
},
{
"role": "assistant",
"content": "```supercollider\n{ RHPF.ar(Saw.ar(200, 0.1), FSinOsc.kr(XLine.kr(0.7, 300, 20), 0, 3600, 4000), 0.2) }.play;\n\n(\n{ var ctl = RHPF.kr(LFSaw.kr(2), SinOsc.kr(XLine.kr(0... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\np = ProxySpace.push(s.boot);\n~a.play.quant_(4); ~b.play.quant_(4);\n~c = { LFNoise1.kr(8).range(0,15).round };\n~a = Pbind(\\degree, Pstutter(4, Pseq([0,2,3,4], inf)), \\octave, [3,4], \\dur, 0.25, \\amp, 0.3);\n~b = Pb... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Diwhite`."
},
{
"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(trig, 0, a) * 30 + 340;\n SinOs... |
[
{
"role": "user",
"content": "Write an Ndef at 165 Hz I can retune while it plays."
},
{
"role": "assistant",
"content": "Use `Ndef` when the patch has to change without stopping:\n\n```supercollider\n// Ndef drone: blip source through a 1400 Hz low-pass\n(\nNdef(\\nd_blip_165_1400, { |freq = 16... |
[
{
"role": "user",
"content": "What does `LeakDC.ar` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Remove DC Arguments: in — The input signal.; coef — Leak coefficient.; mul — Output will be multiplied by this value.; add — This value will be added to the output.."
}
] |
[
{
"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": "What does `Red3D.position` do?"
},
{
"role": "assistant",
"content": "Get or set the current position of the shape as a"
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// an envelope in a synth\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}.play\n);\n// an enve... |
[
{
"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 kick drum with a 0.5 s decay. (osc fm, sweep 0.06, decay 0.5, f0 220, f1 55, 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.06... |
[
{
"role": "user",
"content": "Explain `Exception` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "Exception — root error class The root of SuperCollider's error handling mechanism. Category: Core."
}
] |
[
{
"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": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\nSynthDef(\"help-PinkNoise\", { |out = 0|\n Out.ar(out,\n PinkNoise.ar(0.4)\n )\n}).play;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is miss... |
[
{
"role": "user",
"content": "What is `ProxySynthDef`?"
},
{
"role": "assistant",
"content": "ProxySynthDef — synth def that wraps ugen graph"
},
{
"role": "user",
"content": "What does `ProxySynthDef.sampleAccurate` do?"
},
{
"role": "assistant",
"content": "always use O... |
[
{
"role": "user",
"content": "What is `NumInputBuses` in SuperCollider?"
},
{
"role": "assistant",
"content": "NumInputBuses — Number of input busses. Category: UGens > Info."
}
] |
[
{
"role": "user",
"content": "Explain `SFormantFrequencies` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "SFormantFrequencies — control SFormant frequencies Frequency control for LINKClasses/SFormant. Category: SInstruments."
}
] |
[
{
"role": "user",
"content": "How should I check an answer you give me?"
},
{
"role": "assistant",
"content": "Three quick checks, cheapest first. Does it evaluate without a syntax error — the post window points at the exact character. Does the node appear in `s.plotTree` — if yes, the problem i... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n// server has hardwareBufferSize 512 for this example.\ns.options.hardwareBufferSize = 512; s.reboot;\n// do something that sends messages with server latency\nPbind(\\degree, Pbrown(-14, 14, 3), \\dur, 1/8).play;\ns.late... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// randomly modulate params\n(\n{ FBSineL.ar(\n LFNoise2.kr(1, 1e4, 1e4),\n LFNoise2.kr(1, 32, 33),\n LFNoise2.kr(1, 0.5),\n LFNoise2.kr(1, 0.05, 1.05),\n LFNoise2.kr(1, 0.3... |
[
{
"role": "user",
"content": "Explain `FoaMagA` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "FoaMagA — First Order Ambisonic (FOA) Magnitude of Soundfield Complex Admittance Vector Return the Magnitude of Complex Admittance Vector, ||A||, of a first order ambisonic (B-format)... |
[
{
"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": "What is `InstrAt` in SuperCollider?"
},
{
"role": "assistant",
"content": "InstrAt — a reference to an Instr by name. obsolete This is now happily obsolete. Category: Libraries > crucial > deprecated."
}
] |
[
{
"role": "user",
"content": "Write an Ndef at 110 Hz I can retune while it plays. (ugens saw, cutoff 1400, lfo 0.3, freq 110, amp 0.12)"
},
{
"role": "assistant",
"content": "`Ndef` is a named proxy you can redefine while it is playing:\n\n```supercollider\n// Ndef drone: saw source through a 1... |
[
{
"role": "user",
"content": "What does `QtGUI.stringBounds` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Returns a Rect representing the size of the smallest rectangle that could contain a given string rendered with the given font. `QtGUI.stringBounds(\"hellooo\", Fon... |
[
{
"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": "Write a complete SuperCollider patch built around `QuadL` that runs as it is."
},
{
"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... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```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, 0.5, 1.5),\n LFNoise2.kr(... |
[
{
"role": "user",
"content": "What is `Dtag` in SuperCollider?"
},
{
"role": "assistant",
"content": "Dtag — demand rate tag system Emil Post's tag system as a demand rate ugen. Category: UGens > Demand."
}
] |
[
{
"role": "user",
"content": "Write an Ndef at 55 Hz I can retune while it plays. (ugens saw, 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: saw source through a 200 ... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ PinkNoise.ar(EnvGen.kr(Env.perc, doneAction: Done.freeSelf) }.play\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis opened ... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\na = NodeProxy.new.play;\na.source = { RLPF.ar(\\in.ar(0!2), [4600, 7000], 0.1) };\nb = NodeProxy.new.source_ { Impulse.ar([5, 7] / 2 };\na <<> b;\n```"
},
{
"role": "assi... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\n{\n# x,y,z = RosslerL.ar(MouseX.kr(1, 200));\nPan2.ar(Pulse.ar(x.range(100,1000), y.range(0,1), 0.3), z)\n}.play(s)\n```"
},
{
"role": "assistant",
"content": "A c... |
[
{
"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": "Write a kick whose tail uses freeverb2. (verb freeverb2, room 0.5, damp 0.5, mix 0.3, source kick)"
},
{
"role": "assistant",
"content": "A send-style patch: dry signal plus the reverb on the tail:\n\n```supercollider\n// reverb: freeverb2 on a kick\n(\nSynthDef(\\r... |
[
{
"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": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\ns.boot;\n\n\n\n// create with cueSoundFile class method\nb = Buffer.cueSoundFile(s, ExampleFiles.apollo11, 0, 1);\nx = { DiskIn.ar(1, b) }.play;\nb.close; // must call close in ... |
[
{
"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": "Explain `BeatTrack` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "BeatTrack — Autocorrelation beat tracker Autocorrelation based beat tracker; foot Research note: This UGen is a derivation following: Davies, M. E. P. and Plumbley, M. D. Beat Track... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\na = {LFTri.ar(100+(1000*Maths2.ar(MouseX.kr, MouseY.kr, 0.2, 1, 0, 1, LFPulse.ar(2))[0]), 0, 0.1}.play\n```"
},
{
"role": "assistant",
"content": "A closing bracket i... |
[
{
"role": "user",
"content": "Write an Ndef at 55 Hz I can retune while it plays. (ugens sine, cutoff 2400, lfo 0.1, freq 55, 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 thro... |
[
{
"role": "user",
"content": "What is `Tdef`?"
},
{
"role": "assistant",
"content": "Tdef — task reference definition"
},
{
"role": "user",
"content": "What does `Tdef.all` do?"
},
{
"role": "assistant",
"content": "A global IdentityDictionary with all proxies."
},
{
... |
[
{
"role": "user",
"content": "What does `SCluster.setDistortions` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "convenience method for CODE.set(\\distortions, Arguments: arr — an array of floats (0.0 to 1.0).."
}
] |
[
{
"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": "How do I build a live drone with Ndef at 220 Hz? (ugens tri, cutoff 2400, lfo 0.1, freq 220, amp 0.12)"
},
{
"role": "assistant",
"content": "`Ndef` is a named proxy you can redefine while it is playing:\n\n```supercollider\n// Ndef drone: tri source through a 2400 ... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```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 sources of change: one exter... |
[
{
"role": "user",
"content": "What are the arguments of PlayBuf.ar?"
},
{
"role": "assistant",
"content": "`PlayBuf.ar(numChannels, bufnum, rate, trigger, startPos, loop)`. numChannels must match what is in the buffer, or you get a channel mismatch; bufnum is the Buffer's integer number; rate is... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `ExpRand`."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\"help-ExpRand\", { |out = 0|\n Out.ar(out,\n FSinOsc.ar(\n ExpRand(100.0, 8000.0),\n 0, Line.kr(0.2, 0, 0.01, doneAction: D... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `PulseCount`."
},
{
"role": "assistant",
"content": "```supercollider\nSynthDef(\"help-PulseCount\", { |out = 0|\n Out.ar(out,\n SinOsc.ar(\n PulseCount.ar(Impulse.ar(10), Impulse.ar(0.4)) * 200,\n 0, 0.0... |
[
{
"role": "user",
"content": "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 granulate a sample with 0.15 s grains? (rate 14, dur 0.15, interp 4, mode sweep, 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": "Write a kick at amp 0.6 with no click. (osc saw, sweep 0.06, decay 0.5, f0 220, f1 48, amp 0.6, 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: saw oscillator, 0... |
[
{
"role": "user",
"content": "Write a kick at amp 0.8 with a click. (osc sine, sweep 0.06, decay 0.12, f0 150, f1 55, amp 0.8, rev 1)"
},
{
"role": "assistant",
"content": "A kick is a sine with a fast pitch drop and a short amplitude envelope:\n\n```supercollider\n// kick drum: sine oscillator,... |
[
{
"role": "user",
"content": "Write a granular texture, dry. (rate 10, dur 0.04, 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.waitForBoot {\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": "Write a minimal SuperCollider example that uses `Logistic`."
},
{
"role": "assistant",
"content": "```supercollider\n// default values\n{ Logistic.ar }.play\n\n// onset of chaos\n{ Logistic.ar(Line.kr(3.55, 3.6, 5), 1000) }.play\n\n// explore via Mouse\n{ Logistic.a... |
[
{
"role": "user",
"content": "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": "How do I play a random majorPentatonic scale at octave 4? (scale majorPentatonic, seq Pshuf, dur 0.2, octave 4, instr pluck, root 0)"
},
{
"role": "assistant",
"content": "Put the scale and the degree pattern in the `Pbind` and it will pick notes for you:\n\n```supe... |
[
{
"role": "user",
"content": "Explain `NumAudioBuses` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "NumAudioBuses — Number of audio busses. Category: UGens > Info."
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.