conversations listlengths 2 6 |
|---|
[
{
"role": "user",
"content": "What does `MultiplePlayers.voices` do?"
},
{
"role": "assistant",
"content": "parent class for players that have multiple tracks / voices"
}
] |
[
{
"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\n(\np = Pbind(\n \\freq, Pn(PLgeom(\\start, \\grow, 50)) % 2000 + 400,\n... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n//code that utilizes the glitch.\n//warning! extremely loud.\n//note: might not sound the same on all soundcards\n(\n{GlitchHPF.ar(\n BrownNoise.ar(1.dup),\n 0.5,\n Saw.kr(1,... |
[
{
"role": "user",
"content": "Give me a granular patch with sweep grain position and interp 4. (rate 28, dur 0.1, interp 4, 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 w... |
[
{
"role": "user",
"content": "What is `Median` in SuperCollider?"
},
{
"role": "assistant",
"content": "Median — Median filter. Returns the median of the last length input points. This non-linear filter is good at reducing impulse noise from a signal. Category: UGens > Filters > Nonlinear."
}
... |
[
{
"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{ LatoocarfianL.ar(\n SampleRate.ir/4,\n LFNoise2.kr(2, 1.5, 1.5),\n LFNoise2.kr(2, 1.5, 1.5),\n LFNoise2.kr(2, 0.5, 1.5),\n LFNoise2.kr(... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// note different syntax in these two examples\n{ if(LFNoise1.kr(1.0, 0.5, 0.5), SinOsc.ar, Saw.ar) * 0.1 }.play;\n\n{ Trig1.ar(Dust.ar(3), 0.2).lag(0.1).if(FSinOsc.ar(440), FSin... |
[
{
"role": "user",
"content": "Show me a self-contained SuperCollider patch using `RecordBuf`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\nb = Buffer.alloc(s, s.sampleRate * 5, 1); // a 5 second 1 channel Buffer\n\n// record for four seconds\n(\nx = Sy... |
[
{
"role": "user",
"content": "How do I make a kick that starts at 150 Hz and falls to 48 Hz? (osc saw, sweep 0.06, decay 0.25, f0 150, f1 48, 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": "Write a minimal SuperCollider example that uses `InFeedback`."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\"help-InFeedback\", { |out = 0, in = 0|\n var input, sound;\n input = InFeedback.ar(in, 1);\n sound = SinOsc.ar(input * 1300 + ... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Dshuf`."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var a, freq, trig;\n a = Dseq([Dshuf([1, 3, 2, 7, 8.5], 3)], inf);\n trig = Impulse.kr(MouseX.kr(1, 40, 1));\n freq = Demand.kr(trig, 0, a) *... |
[
{
"role": "user",
"content": "What is `EZRanger` in SuperCollider?"
},
{
"role": "assistant",
"content": "EZRanger — A wrapper class for a label, a rangeslider, and numberboxes EZRanger is wrapper class which creates an (optional) StaticText, and a RangeSlider plus a NumberBox. If the parent is ... |
[
{
"role": "user",
"content": "What does `StartUp.defer` do?"
},
{
"role": "assistant",
"content": "Registers an object or function to be evaluated after startup is finished, or immediately, if this has happened"
}
] |
[
{
"role": "user",
"content": "How do I build a live drone with Ndef at 110 Hz? (ugens sine, cutoff 3200, lfo 0.1, 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 3200 Hz... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ Gbman2DC.ar(MouseX.kr(20, SampleRate.ir*0.25), MouseX.kr(80, SampleRate.ir), 0.1) }.play(s);\n\n{ Gbman2DC.ar(11025, 22050, -0.7, -2.7, 0.1) }.play(s);\n\n{ Gbman2DC.ar(2200, 8... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Env`."
},
{
"role": "assistant",
"content": "```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)... |
[
{
"role": "user",
"content": "I get \"Message 'ar' not understood\". Why?"
},
{
"role": "assistant",
"content": "You called a rate method on something that is not a UGen. `Env.ar(...)` and `Buffer.ar(...)` are the classic cases: Env is a language-side description and is played by `EnvGen.ar(env,... |
[
{
"role": "user",
"content": "What does `RedMixerChannel.new` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "channel strip Arguments: out — Channel index for stereo bus.; group — If `nil` then `Server.default.defaultGroup` will be used.; lag — For eq settings, balance an... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n//listen to x and y output with defaults\n{Out.ar(0,0.5*SpruceBudworm.ar(0.0))}.play\n\n\n//be careful with rate range, can blow-up easily here, or just not sound\n{Out.ar(0,0.5*SpruceBudworm.ar(0.0,MouseX.kr(0.09,0.1)))}... |
[
{
"role": "user",
"content": "How do I make a kick that starts at 180 Hz and falls to 40 Hz?"
},
{
"role": "assistant",
"content": "Start with a swept sine, then shorten the decay to taste:\n\n```supercollider\n// kick drum: sine oscillator, 0.06 s pitch sweep\n(\nSynthDef(\\kick_synth, { |out =... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// turn on and off a sine oscillator\n\n(\nSynthDef(\"help-DigitalIn\", { |out = 0|\n Out.ar(out,\n SinOsc.ar(500, 0, 0.1 * DigitalIn.ar(0))\n )\n}).play;\n```"
},
{
... |
[
{
"role": "user",
"content": "Give me a granular patch with sweep grain position and interp 2. (rate 20, dur 0.04, interp 2, mode sweep, 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": "How do I put a kick in a reverb at mix 0.45? (verb gverb, room 0.85, damp 0.2, mix 0.45, source kick)"
},
{
"role": "assistant",
"content": "A send-style patch: dry signal plus the reverb on the tail:\n\n```supercollider\n// reverb: gverb on a kick\n(\nSynthDef(\\re... |
[
{
"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": "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": "Explain `SmoothFoldQ2` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "SmoothFoldQ2 — wave folding pseudo ugen using parabolic segments, two fold ranges Wave folding using SmoothClipQ. Values outside the range lo-hi are folded back, if the concerned... |
[
{
"role": "user",
"content": "Give me a Pbind with sine voices and a 0.3 rhythm. (scale majorPentatonic, seq Pseq, dur 0.3, octave 6, instr sine, root 0)"
},
{
"role": "assistant",
"content": "Put the scale and the degree pattern in the `Pbind` and it will pick notes for you:\n\n```supercollider... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Dust2`."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\"help-Dust2\", { |out = 0|\n Out.ar(out,\n Dust2.ar(200, 0.5)\n )\n}).play;\n);\n\n(\nSynthDef(\"help-Dust2\", { |out = 0|\n Out.ar(o... |
[
{
"role": "user",
"content": "What is `SynthiX` in SuperCollider?"
},
{
"role": "assistant",
"content": "SynthiX — A patching matrix for Mx inspired by the EMS Synthi A Category: Mx."
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `QuadC`."
},
{
"role": "assistant",
"content": "```supercollider\n// default params\n{ QuadC.ar(SampleRate.ir/4) * 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\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, 367];\na.release;\n```"
... |
[
{
"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.set(\\freq, 880, \\out, 1); // two pairs\nx.set(0, 660... |
[
{
"role": "user",
"content": "How do I play a random minorPentatonic scale at octave 5? (scale minorPentatonic, seq Pshuf, dur 0.25, octave 5, instr pluck, root 0)"
},
{
"role": "assistant",
"content": "The pattern is the composition here; `\\strum` spreads the chord:\n\n```supercollider\n(\nSyn... |
[
{
"role": "user",
"content": "Show me a self-contained SuperCollider patch using `SampleRate`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\n// compares a 441 Hz sine tone derived from sample rate (44100 * 0.01, left)\n// with a 440 Hz tone (right), res... |
[
{
"role": "user",
"content": "Write a SuperCollider patch for Server-side sequencing (a SuperCollider snippet) that runs as it is, with nothing assumed about the session."
},
{
"role": "assistant",
"content": "```supercollider\n(\nf = { |f0=200, rate=4|\n {\n var seq = Dseq(f0*[1/2,3/4, Dstu... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `AbstractFunction`."
},
{
"role": "assistant",
"content": "```supercollider\na = { |x| #[440, 720, 801, 1020.2].at(x) }; b = a.cpsmidi; [a.value(3), b.value(3)];\na = Pseries(220, 220, inf).cpsmidi; a.asStream.nextN(12); // o... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\ns.boot;\n\n(\nSynthDef(\"help-phaseShift\", { |out = 0|\n var in, chain;\n in = SinOsc.ar(500);\n chain = FFT(LocalBuf(2048), in);\n chain = PV_PhaseS... |
[
{
"role": "user",
"content": "What does `HoaZoom.ar` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Higher Order Ambisonic (HOA) zoom transformer Arguments: in — The input signal.; angle — Distortion angle, in radians. -pi/2 to pi/2; theta — Azimuth, in radians.; phi — E... |
[
{
"role": "user",
"content": "Write a complete SuperCollider patch built around `SelectX` that runs as it is."
},
{
"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.si... |
[
{
"role": "user",
"content": "What is `RedLZ78` in SuperCollider?"
},
{
"role": "assistant",
"content": "RedLZ78 — lz78 compression/decompression See http://oldwww.rasip.fer.hr/research/compress/algorithms/fund/lz/lz78.html Category: Red > > redTools."
}
] |
[
{
"role": "user",
"content": "Explain `OffsetOut` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "OffsetOut — Write a signal to a bus with sample accurate timing. Output signal to a bus, the sample offset within the bus is kept exactly; i.e. if the synth is scheduled to be start... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `BrownNoise`."
},
{
"role": "assistant",
"content": "```supercollider\n{ SinOsc.ar(BrownNoise.ar(100, 200)) * 0.1 }.play;\n```"
}
] |
[
{
"role": "user",
"content": "What's the difference between Env.perc and Env.adsr?"
},
{
"role": "assistant",
"content": "`Env.perc(attack, release)` goes up once and decays to zero — one-shot sounds. `Env.adsr(a, d, s, r)` holds at a sustain level while its gate is open and only releases when t... |
[
{
"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": "Give me a Pbind with pluck voices and a 0.2 rhythm. (scale majorPentatonic, 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```supercollider\... |
[
{
"role": "user",
"content": "Who made you?"
},
{
"role": "assistant",
"content": "I am sc-mind, trained by this repository from a six-source SuperCollider corpus and a supervised set whose code answers were compiled with sclang before they were written."
}
] |
[
{
"role": "user",
"content": "Show another SuperCollider example using `Amplitude`."
},
{
"role": "assistant",
"content": "```supercollider\n// use input amplitude to control Pulse amplitude - use headphones to prevent feedback.\n{ Pulse.ar(90, 0.3, Amplitude.kr(SoundIn.ar(0))) }.play;\n```"
}... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `Node`."
},
{
"role": "assistant",
"content": "```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 tr... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `Amplitude`."
},
{
"role": "assistant",
"content": "```supercollider\n// use input amplitude to control Pulse amplitude - use headphones to prevent feedback.\n{ Pulse.ar(90, 0.3, Amplitude.kr(SoundIn.ar(0))) }.play;\n```"
}... |
[
{
"role": "user",
"content": "Write a kick drum with a 0.5 s decay. (osc sine, sweep 0.06, decay 0.5, f0 180, f1 48, amp 0.6, 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": "What does `CondVar.shallowCopy` do?"
},
{
"role": "assistant",
"content": "Throws a `ShouldNotImplementError`; CondVars cannot be copied, shallow copied, or deep"
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\ns.boot;\nz = Bus.control(s, 16);\nz.setn({ |i| (i * 5).nthPrime } ! 16 * 5 + 100);\na = BusPlug.for(z);\n{ Splay.ar(SinOsc.ar(a.kr(3, MouseX.kr(0, 25))) * 0.1 }.play; // selectiv... |
[
{
"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 minimal SuperCollider example that uses `Ref`."
},
{
"role": "assistant",
"content": "```supercollider\n{ Klank.ar(`[[800, 1071, 1153, 1723], nil, [1, 1, 1, 1]], Impulse.ar(2, 0, 0.1)) }.play;\n```"
}
] |
[
{
"role": "user",
"content": "What does `PLbindef.new` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Creates a new PLbindef object or sets sources as with Arguments: ... args — First arg should be the name, followed by key/value pairs for the Pbindef. The last arg can b... |
[
{
"role": "user",
"content": "What does `TouchResponder.new` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "allow functions to be registered to respond to MIDI aftertouch events Arguments: function — A Function to be evaluated. Arguments passed to the function are: src, ... |
[
{
"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 `File` in SuperCollider?"
},
{
"role": "assistant",
"content": "File — A class for reading and writing files A class for reading and writing files. Not sound files. Category: Files."
}
] |
[
{
"role": "user",
"content": "How do I make a kick that starts at 220 Hz and falls to 40 Hz?"
},
{
"role": "assistant",
"content": "A kick is a sine with a fast pitch drop and a short amplitude envelope:\n\n```supercollider\n// kick drum: fm oscillator, 0.06 s pitch sweep\n(\nSynthDef(\\kick_syn... |
[
{
"role": "user",
"content": "Write a SuperCollider patch for Electrode Theremin (a SuperCollider snippet) that runs as it is, with nothing assumed about the session."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var saw, bpf;\n saw = Saw.ar(\n freq: 30, \n mul: SinOsc.... |
[
{
"role": "user",
"content": "Explain `GroupedPlayerMixer` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "GroupedPlayerMixer — Mixes multiple players together, clumping them under Groups A very useful tool to mix multiple players together while clumping them into separate Group... |
[
{
"role": "user",
"content": "How do I make a kick that starts at 220 Hz and falls to 40 Hz? (osc sine, sweep 0.06, decay 0.25, f0 220, f1 40, 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// ki... |
[
{
"role": "user",
"content": "Write a kick drum in SuperCollider."
},
{
"role": "assistant",
"content": "A pitch-swept sine with a fast decay: the frequency envelope is what makes it read as a kick.\n\n```supercollider\n(\nSynthDef(\\kick, { |out = 0, amp = 0.8|\n var pitch = EnvGen.kr(Env([1... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n(\n{\n var time = 0.23;\n var freq = (55).midicps;\n var a = VarSaw.ar(freq/2, width: XLine.ar(0.5,1,time)).range(0,XLine.ar(0.666,1/666,time));\n var tone = SinOsc.ar(freq).fold(-0.23*a,a) * EnvGen.ar(Env([1,0],[tim... |
[
{
"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": "Write a minimal SuperCollider example that uses `UnaryOpUGen`."
},
{
"role": "assistant",
"content": "```supercollider\na = WhiteNoise.ar; // a WhiteNoise\nb = a.squared; // a UnaryOpUGen.\nb.operator; // squared\n\n// sound example\n\n{ var a = LFSaw.ar(300).range(... |
[
{
"role": "user",
"content": "Write a SuperCollider patch that uses `DigitalOut` 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-DigitalOut\", { |out = 0|\n Digita... |
[
{
"role": "user",
"content": "What does `String.drawLeftJustIn` do?"
},
{
"role": "assistant",
"content": "Draws the String into the given Rect using the Font and Color specified."
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Hasher`."
},
{
"role": "assistant",
"content": "```supercollider\n{ Hasher.ar(Line.ar(0, 1, 1), 0.2) }.play;\n\n// Even adding a small amount to the input can result in a very different output. Compare these two examp... |
[
{
"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": "What does this SuperCollider code do?\n```supercollider\n// hand code a mono signal to a decorrelated soundfield in B-format\n// NOTE: the demonstrated kernel is not ideal for this task\n\n// define encoding kernel\n(\nvar kernelSize;\nvar scale;\n\nkernelSize = 256;\nscale = 2... |
[
{
"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": "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": "Show another SuperCollider example using `Scale`."
},
{
"role": "assistant",
"content": "```supercollider\n(\nr = {\n var scale = Scale.choose.postln;\n SinOsc.ar(\n (\n DegreeToKey.kr(\n scale.as(LocalBuf),\n MouseX.kr(0, 15), // mouse index... |
[
{
"role": "user",
"content": "What does `Tempo.new` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "for control of tempo and for use in tempo based calculations Arguments: tempo — tempo in beats per second; tempoClock — The TempoClock that this Tempo object will control."... |
[
{
"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 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": "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": "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": "Write a kick drum with a 0.12 s decay. (osc sine, sweep 0.06, decay 0.12, f0 220, f1 48, amp 0.8, rev 1)"
},
{
"role": "assistant",
"content": "The pitch envelope is what makes it read as a drum, not the oscillator:\n\n```supercollider\n// kick drum: sine oscillator... |
[
{
"role": "user",
"content": "Give me a granular patch with sweep grain position and interp 2. (rate 10, dur 0.07, 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 ... |
[
{
"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 = Dbrown(0, 15, 1, inf);\n trig = Impulse.kr(MouseX.kr(1, 40, 1));\n freq = Demand.kr(trig, 0, a) * 30 + 340;\n SinOsc.ar(freq) * 0.1\n\n}.play... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ Out.ar(87, SinOsc.ar(MouseX.kr(340, 1000, 1) * [1, 2, 3], 0, 0.2)) }.play;\nx = Monitor.new.play(87, 3, 0, fadeTime: 3;\nx.stop;\nx.play;\n```"
},
{
"role": "assistant"... |
[
{
"role": "user",
"content": "Explain `DataBuffer` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "DataBuffer — buffer data and accelerometer values Collects data from any OpenBCI board into buffers. Category: External Control."
}
] |
[
{
"role": "user",
"content": "How do I build a live drone with Ndef at 220 Hz? (ugens saw, cutoff 2400, lfo 0.3, 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: saw source through a 2400 ... |
[
{
"role": "user",
"content": "What does `Task.reset` do?"
},
{
"role": "assistant",
"content": "Set the stream to restart from the beginning the next time it's"
}
] |
[
{
"role": "user",
"content": "Give me a Pbind with sine voices and a 0.25 rhythm. (scale minorPentatonic, seq Pshuf, dur 0.25, octave 6, instr sine, root 0)"
},
{
"role": "assistant",
"content": "`Pbind` sequences an Event per beat, and `\\degree` + `\\scale` does the pitch:\n\n```supercollider\... |
[
{
"role": "user",
"content": "Give me a complete SuperCollider patch for electric hum: bind everything it needs before it is used."
},
{
"role": "assistant",
"content": "```supercollider\n(\nNdef(\\eHum).addSpec(\\fFreq, ControlSpec(25, 1000, \\lin, step: 25));\nNdef(\\eHum).addSpec(\\fRq, [0.01... |
[
{
"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": "Write a granular texture, through a reverb. (rate 20, dur 0.04, interp 2, 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": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\ns.boot;\nb = Buffer.new(s);\n// read only the first channel (a Sine wave) of a stereo file\nb.allocReadChannel(ExampleFiles.sinedPink, channels: [0]);\nx = { PlayBuf.ar(1, b, Buf... |
[
{
"role": "user",
"content": "What is `Stream`?"
},
{
"role": "assistant",
"content": "Stream — Stream is the base class for classes that define streams"
},
{
"role": "user",
"content": "What does `Stream.play` do?"
},
{
"role": "assistant",
"content": "Streams that retur... |
[
{
"role": "user",
"content": "What is `Library` in SuperCollider?"
},
{
"role": "assistant",
"content": "Library — keeping objects in a central place Library is a global MultiLevelIdentityDictionary. The Library can be used as a place to store data that you want globally accessible. It is an alt... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `Monitor`."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\ns.scope(16);\n\n{ Out.ar(87, SinOsc.ar(MouseX.kr(40, 10000, 1) * [1, 2, 3], 0, 0.2)) }.play;\nx = Monitor.new;\nx.play(87, 3, 1, 2);\nx.out = 0;\nx.... |
[
{
"role": "user",
"content": "Explain this SuperCollider code.\n```supercollider\n// a Buffer for the UGens to use\nb = Buffer.alloc(s, 44100, 1);\n\n// write a signal into a delay, tap it at multiple times\nSynthDef(\\write, { |buffer, cout|\n var src, tapPhase, tap1, tap2, tap3;\n src = WhiteNoise.ar(0.... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\na = ProxySynthDef(\"xtest\", { SinOsc.ar(400) * 0.1 });\n\na.add;\n\nx = Synth(\"xtest\");\nx.release;\n\n\n/*\n\n if the resulting number of channels is larger than a given cha... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `MulAdd`."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\n\n// The mul and add arguments of SinOsc themselves use MulAdd!\n// These two examples will create precisely the same synth graph:\nx = { SinO... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Stethoscope`."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot\n{ SinOsc.ar([330, 440], 0, 0.4) }.play;\nStethoscope(s, 2);\n```"
}
] |
[
{
"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": "Show another SuperCollider example using `NodeProxy`."
},
{
"role": "assistant",
"content": "```supercollider\nb = NodeProxy.new.play;\nb.source = { PinkNoise.ar(0.2.dup) };\n// now I want to filter b through a new proxy.\na = NodeProxy.new;\na <-- b; a.source = { H... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.