conversations listlengths 2 6 |
|---|
[
{
"role": "user",
"content": "Write a SuperCollider patch that uses `Saw` and actually plays. Assume nothing about the session."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\\event_set, { |freq = 440, gate = 1, amp = 0.1, lagTime = 0.1,\n ffreq = 2000, detune = 1.005, ... |
[
{
"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 `Duty`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\n(\n {\n var freq;\n freq = Duty.kr(\n Drand([0.01, 0.2, 0.4], inf), // demand ugen as durations\n ... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `KeyTrack`."
},
{
"role": "assistant",
"content": "```supercollider\n// alternating major and minor chords as a test\n(\n{\n var in, fft, resample;\n var key, transientdetection;\n\n in = Mix(SinOsc.ar((60 + [0, MouseX.kr(... |
[
{
"role": "user",
"content": "Explain `AbstractSPlayFileView` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "AbstractSPlayFileView — a gui for soundfile players Helper class for soundfile player gui classes. Category: SInstruments."
}
] |
[
{
"role": "user",
"content": "What is `OutputProxy` in SuperCollider?"
},
{
"role": "assistant",
"content": "OutputProxy — Place holder for multiple outputs OutputProxy is used by some UGens as a place holder for multiple outputs. There is no reason for a user to create an OutputProxy directly. ... |
[
{
"role": "user",
"content": "Explain this SuperCollider code.\n```supercollider\n// same as above, but we set the address to nil so we can receive from anywhere\n// no need for a NetAddr since we are just listening (and not sending)\n\no = OSCresponderNode(nil, '/test', { |t, r, msg| msg.postln }).add;\no.... |
[
{
"role": "user",
"content": "What does `View.isClosed` do?"
},
{
"role": "assistant",
"content": "The basic visible element of GUI Returns: A Boolean stating whether the view has been destroyed."
}
] |
[
{
"role": "user",
"content": "How do I build a live drone with Ndef at 165 Hz? (ugens sine, cutoff 3200, lfo 0.8, freq 165, 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 320... |
[
{
"role": "user",
"content": "Write a Pbind whose degrees repeat every Pseq cycle. (scale majorPentatonic, seq Pseq, dur 0.3, octave 4, instr fm, root 0)"
},
{
"role": "assistant",
"content": "The pattern is the composition here; `\\strum` spreads the chord:\n\n```supercollider\n(\nSynthDef(\\fm... |
[
{
"role": "user",
"content": "Explain `BeatClockPlayer` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "BeatClockPlayer — 'trig' rate player that plays steady impulse triggers locked to tempo A 'trig' rate player that plays steady impulse triggers locked to tempo Category: Libra... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ SinOsc.ar(MouseY.kr(40, 10000, 1), 0, 0.1 }.play;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis opened earlier is never ... |
[
{
"role": "user",
"content": "Show me a self-contained SuperCollider patch using `Recorder`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\nr = Recorder(s);\n{ GVerb.ar(Dust.ar(4)) }.play; // play on bus 64\nr.record(numChannels: 2);\nr.stopRecording;\n`... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// this does not work:\n(\n{\n var trig = Dust.ar(4);\n Trig.kr(trig, 0.1) * SinOsc.ar(800) * 0.1\n}.play;\n);\n\n// this works:\n(\n{\n var trig = T2K.kr(Dust.ar(4));\n Trig... |
[
{
"role": "user",
"content": "Write a kick at amp 0.8 with no click. (osc fm, sweep 0.06, decay 0.25, f0 150, f1 55, amp 0.8, rev 0)"
},
{
"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.... |
[
{
"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": "What does `MxQuery.whereIsKindOf` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Filters where source object is of the class or a subclass of Arguments: class. Returns: an MxQuery with the selected results"
}
] |
[
{
"role": "user",
"content": "What is `PWrap` in SuperCollider?"
},
{
"role": "assistant",
"content": "PWrap — UGenPatterns quark library Based on Wrap 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\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": "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": "What does `XFader.ar` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Linear cross fader Arguments: l; r; pan."
}
] |
[
{
"role": "user",
"content": "What does `NotificationCenter.notify` do?"
},
{
"role": "assistant",
"content": "The object emits a message and may also pass extra"
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{SinOsc.ar(Summer.kr(Impulse.kr(5), 1.5, 0, 0).poll * 100, 0, 0.1)}.play;\n\n(\n{\n var trig = Dust.kr(5);\n var reset = Impulse.kr(0.5);\n SinOsc.ar(Summer.kr(trig, [0.5, 0.2... |
[
{
"role": "user",
"content": "Explain `Pwrand` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "Pwrand — embed values randomly chosen from a list Returns one item from the list at random for each repeat, the probability for each item is determined by a list of weights which shoul... |
[
{
"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{ LatoocarfianN.ar(MouseX.kr(20, SampleRate.ir)) * 0.2 }.play(s;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: ... |
[
{
"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": "Write a minimal SuperCollider example that uses `LinCongL`."
},
{
"role": "assistant",
"content": "```supercollider\n// default initial params\n{ LinCongL.ar(MouseX.kr(20, SampleRate.ir)) * 0.2 }.play(s);\n```"
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `RunningMax`."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n SinOsc.ar(\n RunningMax.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": "Write a minimal SuperCollider example that uses `T2A`."
},
{
"role": "assistant",
"content": "```supercollider\n// example\n(\n{\n var trig = Impulse.kr(MouseX.kr(1, 100, 1));\n Ringz.ar(T2A.ar(trig), 800, 0.01) * 0.4\n}.play;\n);\n\n// compare with K2A\n(\n{\n v... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `MouseY`."
},
{
"role": "assistant",
"content": "```supercollider\n{ SinOsc.ar(MouseY.kr(40, 10000, 1), 0, 0.1) }.play;\n```"
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `BPZ2`."
},
{
"role": "assistant",
"content": "```supercollider\n// Compare:\n\n{ WhiteNoise.ar(0.25) }.play;\n\n{ BPZ2.ar(WhiteNoise.ar(0.25)) }.play;\n```"
}
] |
[
{
"role": "user",
"content": "How do I make a kick that starts at 150 Hz and falls to 55 Hz? (osc saw, sweep 0.06, decay 0.35, 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// kic... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n// won't work (the output is 0.5*0.0), which is why we need the DC UGen!\n{ 0.5 }.play\n\n// constantly zero\n{ DC.ar(0.0) }.play;\n\n\n// DC offset; will click on start and finish\n{ DC.ar(0.5) + SinOsc.ar(440, 0, 0.1) }... |
[
{
"role": "user",
"content": "What does `Buffer.sampleRate` do?"
},
{
"role": "assistant",
"content": "Returns the language-side instance variable `sampleRate`, of the corresponding server-side buffer. By default, this will be set to the server's sample rate when the `Buffer` is instantiated. Th... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n(\nNdef(\\birdy, {arg freq=1500, amp=0.5, rate=10;\n var osc, son, convIn, rand;\n osc=LFCub;\n rand = LFNoise1.ar(rate);\n convIn=LinCongN.ar(rate);\n son = osc.ar(Convolution.ar(convIn,convIn));\n freq = Latch.kr... |
[
{
"role": "user",
"content": "Write an Ndef with a saw source and a 800 Hz low-pass."
},
{
"role": "assistant",
"content": "Use `Ndef` when the patch has to change without stopping:\n\n```supercollider\n// Ndef drone: saw source through a 800 Hz low-pass\n(\nNdef(\\nd_saw_110_800, { |freq = 110,... |
[
{
"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": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// vary frequency\n{ StandardN.ar(MouseX.kr(20, SampleRate.ir)) * 0.3 }.play(s;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthe... |
[
{
"role": "user",
"content": "Write a complete SuperCollider patch built around `TIRand` that runs as it is."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\"help-TIRand\", {\n var trig, outBus;\n trig = Dust.kr(10);\n outBus = TIRand.kr(0, 1, trig); // play on random ch... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n{h={|f|1-LFTri.ar(f)};l={|s,e|Line.ar(s,e,1200,1,0,2)};FreeVerb.ar(h.(l.(147,5147))*h.(l.(1117,17))*h.(100)*h.([55,55.1])*0.05,0.7,1)}.play\n\n//Explanation of this piece - http://schemawound.com/post/40100438722/11-13-... |
[
{
"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 `ArrayedCollection.perfectShuffle` do?"
},
{
"role": "assistant",
"content": "Returns a copy of the receiver with its items split into two equal halves, then reconstructed by interleaving the two halves. the size of the collection should be even, otherwise... |
[
{
"role": "user",
"content": "What is `EZScroller` in SuperCollider?"
},
{
"role": "assistant",
"content": "EZScroller — Show a subset of items on gui elements EZScroller is a vertical slider that allows displaying different subsets of a dynamically changing list of objects on a fixed number of ... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\ns.boot\nb = Bus.audio(s, 2);\na = { SinOsc.ar([330, 440], 0, 0.4) }.play(s, b // you won't hear this if you only have two channels\nb.scope\n\na.free;\nb.free;\n```"
},
{
... |
[
{
"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\n// Compare:\n\n{ WhiteNoise.ar(0.25) }.play;\n\n{ HPZ1.ar(WhiteNoise.ar(0.25)) }.play;\n\n// HPZ1 is useful to detect changes in a signal:\n// see also HPZ2\n(\n{\n var changing... |
[
{
"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 minimal SuperCollider example that uses `Pgtpar`."
},
{
"role": "assistant",
"content": "```supercollider\n// synthdef\n(\nSynthDef(\\help_sinegrain,\n { |out = 0, freq = 440, sustain = 0.05|\n var env;\n env = EnvGen.kr(Env.perc(0.01, susta... |
[
{
"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": "Write a minimal SuperCollider example that uses `NamedControl`."
},
{
"role": "assistant",
"content": "```supercollider\n// use NamedControl to create a number of multichannel controls:\n\na = { SinOsc.ar(NamedControl.kr(\\freq, [300, 330, 370], [1, 0.3, 0.02])).sum... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{SineShaper.ar(SinOsc.ar([400, 404], 0, 0.2), MouseX.kr(0, 1))}.play\n\n{SineShaper.ar(SoundIn.ar, MouseX.kr(0, 1)}.play\n```"
},
{
"role": "assistant",
"content": "A... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `CuspL`."
},
{
"role": "assistant",
"content": "```supercollider\n// vary frequency\n{ CuspL.ar(MouseX.kr(20, SampleRate.ir), 1.0, 1.99) * 0.3 }.play(s);\n\n// mouse-controlled params\n{ CuspL.ar(SampleRate.ir/4, Mouse... |
[
{
"role": "user",
"content": "Give me a Pbind with sine voices and a 0.4 rhythm. (scale majorPentatonic, seq Pshuf, dur 0.4, octave 6, instr sine, root 0)"
},
{
"role": "assistant",
"content": "The pattern is the composition here; `\\strum` spreads the chord:\n\n```supercollider\n(\nSynthDef(\\s... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// as frequency control...\n(\n{\nSinOsc.ar(\n LinCongN.ar(\n 40,\n LFNoise2.kr(0.1, 0.1, 1),\n LFNoise2.kr(0.1, 0.1, 0.1),\n LFNoise2.kr(0.1),\n 0, 500, 600\n )... |
[
{
"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": "What does doneAction do?"
},
{
"role": "assistant",
"content": "It tells the server what to do to the enclosing Synth when the UGen finishes. The one that matters most is `doneAction: 2`, which frees the Synth: that is how a percussive sound cleans itself up instead... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n// connect will connect to all midi in devices\n// if you need to specify one,\n// check the sources at: MIDIClient.sources\n// and connect using MIDIIn.connect( source_index )\nMIDIIn.connect;\n\n// show incoming contr... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `PV_BrickWall`."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\n\n(\n{\n var in, chain;\n in = WhiteNoise.ar(0.2);\n chain = FFT(LocalBuf(2048), in);\n chain = PV_BrickWall(chain, SinOsc.kr(0.1));... |
[
{
"role": "user",
"content": "What is SuperCollider?"
},
{
"role": "assistant",
"content": "SuperCollider is a platform for audio synthesis and algorithmic composition, written in C++ and SuperCollider. It splits into a language client (sclang) that runs your code and builds UGen graphs, and an ... |
[
{
"role": "user",
"content": "Write an Ndef at 220 Hz I can retune while it plays. (ugens tri, cutoff 400, lfo 0.8, 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: tri source throu... |
[
{
"role": "user",
"content": "How do I make a kick that starts at 220 Hz and falls to 40 Hz? (osc saw, sweep 0.06, decay 0.18, f0 220, f1 40, amp 0.6, rev 1)"
},
{
"role": "assistant",
"content": "Start with a swept sine, then shorten the decay to taste:\n\n```supercollider\n// kick drum: saw os... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```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 = NdefGui(nil, 3).moveTo(10, 480);\n\nSpec.add(\\dens, [0.1, 300, \\ex... |
[
{
"role": "user",
"content": "Explain this code:\n```supercollider\nRoutine({ loop { Synth(\\kick); 0.5.wait } }).play;\n```"
},
{
"role": "assistant",
"content": "It starts a kick every half second, forever.\n\nA Routine is a language-side coroutine: `.play` runs it on the clock, and `wait` sus... |
[
{
"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": "Explain `CutBPF1` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "CutBPF1 — BBCut2 bandpass filter CutBPF1 adds a bandpass filter to BBCut2. The rq value modulates by a geometric series. Category: Libraries > BBCut > Cut FX."
}
] |
[
{
"role": "user",
"content": "Show me a self-contained SuperCollider patch using `NdefGui`: bind everything it needs first."
},
{
"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 = ... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `FoldIndex`."
},
{
"role": "assistant",
"content": "```supercollider\n// indexing into a table\n(\n{\n var buf = LocalBuf.newFrom([200, 300, 400, 500, 600, 800]);\n var freq = FoldIndex.kr(buf, MouseX.kr(0, BufFrames... |
[
{
"role": "user",
"content": "Explain this SuperCollider code.\n```supercollider\nPdef(\\x).play;\nPdef(\\x).quant = 0; // we don't want quant here.\nPdef(\\x, Pbind(\\degree, Pseq((0..5), inf), \\dur, 0.3)).condition_({ |val, i| i.postln % 6 == 0 });\nPdef(\\x, Pbind(\\degree, Pseq((0..7) + 5.rand, inf), \... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n// Reminder: This isn't the intended typical usage! It's OK to do this though.\n(\nx = {\n var mags, phases, chain, sig;\n // Create simple undulating magnitudes\n mags = { FSinOsc.kr(ExpRand(0.1, 1)).range(0, 1) }.dup... |
[
{
"role": "user",
"content": "Explain this code:\n```supercollider\n{ LPF.ar(Saw.ar(100), SinOsc.kr(0.5).exprange(200, 2000)) * 0.2 }.play;\n```"
},
{
"role": "assistant",
"content": "A sawtooth through a low-pass filter whose cutoff is swept slowly up and down — a classic filter\nsweep.\n\n- `S... |
[
{
"role": "user",
"content": "What does `Object.dup` do?"
},
{
"role": "assistant",
"content": "Duplicates the receiver n times, returning an array of n copies. Different classes respond to this message differently. The shortcut \"!\" can be used in"
}
] |
[
{
"role": "user",
"content": "What is `VOSIM` in SuperCollider?"
},
{
"role": "assistant",
"content": "VOSIM — vosim pulse generator Category: UGens > Generators."
}
] |
[
{
"role": "user",
"content": "Explain `SCDoc` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "SCDoc — Help system main class SCDoc manages the SuperCollider documentation system. Category: HelpSystem."
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// Compare:\n\n{ WhiteNoise.ar(0.25) }.play;\n\n{ LPZ1.ar(WhiteNoise.ar(0.25) }.play;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the pa... |
[
{
"role": "user",
"content": "Give me an Ndef with an LFO at 0.8 Hz. (ugens sine, cutoff 1400, lfo 0.8, freq 165, 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 1400 Hz low-pass\... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `Warp1`."
},
{
"role": "assistant",
"content": "```supercollider\n(\nb.free;\nb = Buffer.read(s, ExampleFiles.apollo11);\n{\n var pointer = Phasor.ar(0, SampleDur.ir / BufDur.ir(b) * XLine.kr(1, 0.25, 20));\n var sound = Wa... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `HPF`."
},
{
"role": "assistant",
"content": "```supercollider\n{ HPF.ar(Saw.ar(200, 0.1), FSinOsc.kr(XLine.kr(0.7, 300, 20), 0, 3600, 4000), 5) }.play;\n\n(\n{ var ctl = HPF.kr(LFSaw.kr(5), SinOsc.kr(XLine.kr(0.07, ... |
[
{
"role": "user",
"content": "What does `SimpleController.new` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Creates a SimpleController instance with the model to be Arguments: model — An object of any class."
}
] |
[
{
"role": "user",
"content": "What does `MultiSplineFr.createPoint` do?"
},
{
"role": "assistant",
"content": "Multi dimensional spline frame rate device"
}
] |
[
{
"role": "user",
"content": "How do I granulate a sample with 0.07 s grains? (rate 16, dur 0.07, interp 4, mode noise1, 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.... |
[
{
"role": "user",
"content": "Write a granular texture, dry. (rate 14, dur 0.07, interp 2, mode noise, rev 0)"
},
{
"role": "assistant",
"content": "`GrainBuf` needs a buffer, a trigger and a grain duration:\n\n```supercollider\n// granular synth with GrainBuf\n(\ns.waitForBoot {\n var buf = ... |
[
{
"role": "user",
"content": "What does `Integer.factorial` do?"
},
{
"role": "assistant",
"content": "32-bit Integer number Returns: the factorial of the receiver as an integer. This will overflow for numbers `> 12` and throw an error. Floating point factorials can be used in such cases (see: S... |
[
{
"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": "Explain this SuperCollider code.\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 between cueing\n// now use like named instance m... |
[
{
"role": "user",
"content": "How do I put a bell in a reverb at mix 0.45? (verb gverb, room 0.5, damp 0.2, mix 0.45, source bell)"
},
{
"role": "assistant",
"content": "Put the reverb inside the `SynthDef` so it is part of the voice:\n\n```supercollider\n// reverb: gverb on a bell\n(\nSynthDef(... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `ProxySynthDef`."
},
{
"role": "assistant",
"content": "```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 c... |
[
{
"role": "user",
"content": "Write a Pbind in minorPentatonic using Pseq for the degrees. (scale minorPentatonic, seq Pseq, dur 0.4, 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```super... |
[
{
"role": "user",
"content": "What is `Pstutter` in SuperCollider?"
},
{
"role": "assistant",
"content": "Pstutter — repeat input stream values repeat each element n times. Category: Streams-Patterns-Events > Patterns > Repetition."
}
] |
[
{
"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;\n a = [\n SinOsc.ar,\n Saw.ar,\n Pulse.ar\n ];\n TWChoose.ar(Dust.ar(MouseX.kr(1, 1000, 1)), a, [0.99, 0.05, 0.05].normalizeSum) * 0.2\n\n}.pla... |
[
{
"role": "user",
"content": "What is `HoaZoom` in SuperCollider?"
},
{
"role": "assistant",
"content": "HoaZoom — Higher Order Ambisonic (HOA) zoom transformer Apply zoom to a Higher Order Ambisonic signal (HOA) along an arbitrary axis & radius. Category: Libraries > Ambisonic Toolkit > UGens >... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `LFDNoise1`."
},
{
"role": "assistant",
"content": "```supercollider\n// try wiggling mouse quickly;\n// LFNoise frequently seems stuck, LFDNoise changes smoothly.\n\n{ SinOsc.ar(LFNoise1.ar(MouseX.kr(0.1, 1000, 1), 2... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\np = SFPlayer.new; //shows open file dialog\n\n//specify the file\np = SFPlayer.new(Platform.resourceDir +/+ \"sounds/a11wlk01.wav\";\np.play;\np.stop;\np.gui;\n\n// shows open fi... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `PV_RectComb`."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var sig, chain;\n sig = WhiteNoise.ar(0.2);\n chain = FFT(LocalBuf(2048), sig);\n chain = PV_RectComb(chain, 8, LFTri.kr(0.097, 0, 0.4,... |
[
{
"role": "user",
"content": "Write a kick at amp 0.8 with a click. (osc fm, sweep 0.06, decay 0.12, f0 150, f1 55, amp 0.8, rev 1)"
},
{
"role": "assistant",
"content": "Start with a swept sine, then shorten the decay to taste:\n\n```supercollider\n// kick drum: fm oscillator, 0.06 s pitch swee... |
[
{
"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": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ Latoocarfian2DL.ar(MouseX.kr(20, SampleRate.ir * 0.5), MouseX.kr(40, SampleRate.ir), mul:0.2) }.play(s);\n\n\n(\n{ Latoocarfian2DL.ar(\n SampleRate.ir/4,\n SampleRate.ir,\n ... |
[
{
"role": "user",
"content": "What does `OpenBCI.stop` do?"
},
{
"role": "assistant",
"content": "stop streaming or stop synthetic or file"
}
] |
[
{
"role": "user",
"content": "Write a kick drum with a 0.25 s decay."
},
{
"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, 0.06 s pitch sweep\n(\nSynthDef(\\kick_synth, { |out = 0, amp = ... |
[
{
"role": "user",
"content": "What is `Henon2DC` in SuperCollider?"
},
{
"role": "assistant",
"content": "Henon2DC — henon map 2D chaotic generator `y = b * x(n)` Category: UGens > Generators > Stochastic."
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `LinExp`."
},
{
"role": "assistant",
"content": "```supercollider\n// compare:\n(\n{\n var mod = SinOsc.kr(Line.kr(1, 10, 10));\n SinOsc.ar(mod * 400 + 500) * 0.1\n}.play;\n);\n\n(\n{\n var mod = SinOsc.kr(Line.kr(1... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.