conversations listlengths 2 6 |
|---|
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// the following two lines produce equivalent results\n{ SinOsc.ar(440, 0, 0.3) }.play(fadeTime: 0.0);\nSynthDef(\\help_FuncPlay, { Out.ar(0, SinOsc.ar(440, 0, 0.3)) }.play;\n```... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ TwoZero.ar(WhiteNoise.ar(0.125), XLine.kr(20, 20000, 8), 1 }.play\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis opened e... |
[
{
"role": "user",
"content": "Give me a granular patch with noise grain position and interp 4. (rate 16, dur 0.1, interp 4, 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 w... |
[
{
"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": "What does this SuperCollider patch do?\n```supercollider\n// you have to write the sample path in the firts line\n\n~bufferdue = Buffer.read(s,\" WRITE YOUR SAMPLE PATH HERE \", bufnum:2);\n\n(\nSynthDef.new(\\bufbeat, {\n arg amp = 1, out = 0, buf, start, end, freq = 1;\n va... |
[
{
"role": "user",
"content": "What can you do?"
},
{
"role": "assistant",
"content": "Write and explain SuperCollider: SynthDefs, UGens, Patterns, Ndef, buses and envelopes, and tell you why a patch is silent or will not compile. I am 198M parameters, so I am narrow on purpose."
}
] |
[
{
"role": "user",
"content": "What does `Tempo.default` do?"
},
{
"role": "assistant",
"content": "for control of tempo and for use in tempo based calculations"
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Synth`."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\n// create a Synth at the head of the default Server's default group\n// based on the SynthDef \"default\"\nx = Synth.new(\"default\");\ns.query... |
[
{
"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.run(false;\nx.run; // default is true\nx.free;\n```"
... |
[
{
"role": "user",
"content": "What does `UChain.addAll` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Add all units in collection to Arguments: inUnits — Collection with units.."
}
] |
[
{
"role": "user",
"content": "Write a SuperCollider patch that uses `PackFFT` and actually plays. Assume nothing about the session."
},
{
"role": "assistant",
"content": "```supercollider\n// Reminder: This isn't the intended typical usage! It's OK to do this though.\n(\nx = {\n var mags, phase... |
[
{
"role": "user",
"content": "Explain this code:\n```supercollider\nNdef(\\x, { Saw.ar(110) * 0.1 }).play;\nNdef(\\x)[1] = \\filter -> { |in| RLPF.ar(in, 800, 0.4) };\n```"
},
{
"role": "assistant",
"content": "Two nodes in one named proxy: a saw source, then a resonant low-pass filter fed by it... |
[
{
"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": "How do I build a live drone with Ndef at 165 Hz? (ugens saw, cutoff 1400, 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: saw source through a 1400 Hz l... |
[
{
"role": "user",
"content": "Write a SuperCollider patch that uses `SharedOut` and actually plays. Assume nothing about the session."
},
{
"role": "assistant",
"content": "```supercollider\n(\n// only works with the internal server\ns = Server.internal;\ns.boot;\n);\n\n(\nSynthDef(\"help-Shared... |
[
{
"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": "Explain `In` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "In — Read a signal from a bus. In.ar and In.kr read signals from audio and control buses, respectively. (See the Getting-Started/11-Busses##Busses chapter of the Getting-Started/00-Getting... |
[
{
"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 = SinOsc.ar(1).round(0.1);\n var b = SinOsc.ar(1.2).round(0.1);\n BinaryOpUGen('==', a, b) * 0.1\n}.play;\n```"
},
{
"role": "assistant",
"conte... |
[
{
"role": "user",
"content": "Write a SuperCollider patch for number 10 for Quiz 4a. Start by defining the values the patch depends on."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var tri, bpf;\n tri = LFTri.ar(\n freq: [440,340, 513],\n mul: LFPulse.kr(\n freq: ... |
[
{
"role": "user",
"content": "Explain `LorenzL` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "LorenzL — Lorenz chaotic generator A strange attractor discovered by Edward N. Lorenz while studying mathematical models of the atmosphere. The system is composed of three ordinary di... |
[
{
"role": "user",
"content": "Give me a granular patch with sweep grain position and interp 4. (rate 10, dur 0.15, 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... |
[
{
"role": "user",
"content": "Write an Ndef at 220 Hz I can retune while it plays. (ugens saw, 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: saw source through a 2... |
[
{
"role": "user",
"content": "Explain this code:\n```supercollider\nx = { |freq = 440, amp = 0.2| SinOsc.ar(freq) * amp }.play;\nx.set(\\freq, 660);\n```"
},
{
"role": "assistant",
"content": "Starts an anonymous synth with two controls, then changes one of them while it plays.\n\nThe `|freq = 4... |
[
{
"role": "user",
"content": "What does `EnvelopeView.thumbSize` do?"
},
{
"role": "assistant",
"content": "Sets both #-thumbWidth and #-thumbHeight to the"
}
] |
[
{
"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": "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": "What is `PSVdif_i` in SuperCollider?"
},
{
"role": "assistant",
"content": "PSVdif_i — Sieve pattern for difference of integer generators with interval output Pattern for difference of integer generators with interval output. For an introduction and more examples se... |
[
{
"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": "What does this SuperCollider patch do?\n```supercollider\n(\nf = ();\nf.beatAndBar = {\n var t = currentEnvironment.clock; // t= TempoClock.new;\n var text = \"xB: \";\n\n var nBeatsPerBar = { arg n, beats, clock;\n var nBpb = clock.beatsPerBar * n;\n \"\" ++ n ++ te... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n(//*********PREPARE**********\np.pop;\n//Any code that needs to access your own environment goes here\np = ProxySpace.push(s);\n~fxLoop.play.fadeTime_(5);\n);\n\n(//*********FXLoop**********\n~fxLoop = {\n var in = Soun... |
[
{
"role": "user",
"content": "What does `MultiSliderView.reference` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "The reference values in relation to which the values will be visually represented. The default for each slider is Arguments: An array of Floats.."
}
] |
[
{
"role": "user",
"content": "What is `VarGui`?"
},
{
"role": "assistant",
"content": "VarGui — slider / player gui to set envir variables and synth controllers and play synths, event patterns and tasks"
},
{
"role": "user",
"content": "What does `VarGui.new` do?"
},
{
"role"... |
[
{
"role": "user",
"content": "What does `ServerLog.sendMsg` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "records OSC traffic to and from a Server and displays this in a browseable searchable interface Arguments: ... args. Returns: (returnvalue)"
}
] |
[
{
"role": "user",
"content": "Give me an Ndef with an LFO at 0.1 Hz. (ugens blip, cutoff 2400, 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: blip source through a 2400 Hz low-pass\... |
[
{
"role": "user",
"content": "Explain `PdefEditor` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "PdefEditor — will be replaced - please use PdefGui now! Category: JITLib > GUI, Live Coding."
}
] |
[
{
"role": "user",
"content": "Show another SuperCollider example using `Recorder`."
},
{
"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": "What is `OSCBundle` in SuperCollider?"
},
{
"role": "assistant",
"content": "OSCBundle — network bundle object A bundle object that allows to add preparation messages for async processes. If this feature is not needed, a list object can be used instead. Category: Ex... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{Disintegrator.ar(SinOsc.ar([400, 404], 0, 0.2), MouseX.kr(0, 1), MouseY.kr(0, 1))}.play\n\n{Disintegrator.ar(SoundIn.ar, MouseX.kr(0, 44100), MouseY.kr(0, 1)}.play\n```"
},
... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n~x.play;\n\n~x = { var alpha,beta; alpha = rrand(99,399); beta = alpha = rrand(99,399);Pan2.ar(LeakDC.ar(Normalizer.ar(BPeakEQ.ar(BPeakEQ.ar(BPeakEQ.ar(BPeakEQ.ar(\nFreeVerb.ar(Formant.ar(TRand.kr(alpha,alpha+(rrand(5,20... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `DecodeB2`."
},
{
"role": "assistant",
"content": "```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 /... |
[
{
"role": "user",
"content": "Write a self-contained SuperCollider patch that uses `Diwhite`. Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var a, freq, trig;\n a = Diwhite(0, 15, inf);\n trig = Impulse.kr(MouseX.kr(1, 40, 1));\n freq = Demand.kr... |
[
{
"role": "user",
"content": "Write 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 self-contained SuperCollider patch for now with snooze (press mouse button). Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\nNdef(\\a, { |freq=2000, rate=1, width=0.6, now = 10|\n LFPulse.kr(rate, 0, 4/6) *\n LFPulse.kr... |
[
{
"role": "user",
"content": "What is `Free` in SuperCollider?"
},
{
"role": "assistant",
"content": "Free — When triggered, frees a node. Category: UGens > Synth control."
}
] |
[
{
"role": "user",
"content": "Explain this SuperCollider code.\n```supercollider\n(\np = Pbind(\n \\instrument, \\synth_1a,\n \\preAmp, PL(\\preAmp), \n \\amp, PL(\\amp), \n \\midinote, PLseq(\\seq) + PL(\\seqAdd), \n \\dur, 0.2\n);\n\n~spec = 4.collect { |i| [\\seq, [12*i + 24, 12*i + 48, \\... |
[
{
"role": "user",
"content": "What is `Plotter`?"
},
{
"role": "assistant",
"content": "Plotter — Plot numerical data on a window or view"
},
{
"role": "user",
"content": "What does `Plotter.plotGraph` do?"
},
{
"role": "assistant",
"content": "`{ |x| sin(x) }.plotGraph(3... |
[
{
"role": "user",
"content": "What is `Pdef`?"
},
{
"role": "assistant",
"content": "Pdef — stream reference definition"
},
{
"role": "user",
"content": "What does `Pdef.all` do?"
},
{
"role": "assistant",
"content": "A global IdentityDictionary with all proxies."
},
... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n(\n~chaos={\n var signal, myFrequency, frequencyMin=0.1, frequencyMax=30, myAmplitude, amplitudeMin=0.01, amplitudeMax=0.6, myPhase, phaseMin=0, phaseMax=1.5;\n myFrequency = Array.fill(2, {[rrand(frequencyMin, frequen... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ Lorenz2DN.ar(11025, 44100) }.play(s);\n\n// randomly modulate params\n(\n{ Lorenz2DN.ar(\n 11025, 44100,\n LFNoise0.kr(1, 2, 10),\n 20,\n LFNoise0.kr(1, 1.5, 2),\n 0.02\n)... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Balance2`."
},
{
"role": "assistant",
"content": "```supercollider\n// a stereo signal, both channels at 0dB\n{ [SinOsc.ar(440), SinOsc.ar(440)] }.play\n\n// using Balance on a stereo signal with the position paramete... |
[
{
"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 GrainBuf synth at 10 grains per second. (rate 10, dur 0.15, interp 4, mode noise1, rev 1)"
},
{
"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": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```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(0, 2pi); a.sin * 0.1 }.play;\n\n... |
[
{
"role": "user",
"content": "What is `OnError` in SuperCollider?"
},
{
"role": "assistant",
"content": "OnError — register functions to be evaluated when an error occurs OnError registers functions to perform an action when an error occurs. Category: Control."
}
] |
[
{
"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": "Write a GrainBuf synth at 10 grains per second. (rate 10, dur 0.04, interp 2, mode noise1, rev 1)"
},
{
"role": "assistant",
"content": "Granulation is `GrainBuf` plus a trigger rate; the position can move:\n\n```supercollider\n// granular synth with GrainBuf\n(\ns.... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `ControlName`."
},
{
"role": "assistant",
"content": "```supercollider\n(\nd = SynthDef(\\tone, { |out = 0, freq = 200|\n var sig;\n\n freq.spec = ControlSpec(20, 20000);\n sig = SinOsc.ar(freq);\n\n Out.ar(out, si... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n// proceed with caution. start at min volume, and not with your expensive speakers.\n\nfork{b=Buffer.alloc(s,512,1);inf.do{b.cheby({[1,0].choose}!2);{(Shaper.ar(b,SinOsc.ar(55,0,Line.kr(1,0,2,1,0,2))))!2}.play;0.1.wait;}... |
[
{
"role": "user",
"content": "What is `Group` in SuperCollider?"
},
{
"role": "assistant",
"content": "Group — Client-side representation of a group node on the server A Group is the client-side representation of a group node on the server, which is a collection of other nodes organized as a lin... |
[
{
"role": "user",
"content": "Write an Ndef at 110 Hz I can retune while it plays. (ugens sine, cutoff 1400, 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 140... |
[
{
"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\np = PLmeanrand(\\lo, \\hi);\n\n\n// prepare current Environment\n// PLseq repeats... |
[
{
"role": "user",
"content": "Write an Ndef at 110 Hz I can retune while it plays."
},
{
"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 Hz low-pass\n(\nNdef(\\nd_saw_110_200, { |freq = 11... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `Ball`."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var f, sf, g;\n sf = LFNoise0.ar(MouseX.kr(1, 100, 1));\n g = MouseY.kr(0.1, 10, 1);\n f = Ball.ar(sf, g, 0.01, 0.01);\n f = f * 140 + 500;\n SinOs... |
[
{
"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{ LinCongL.ar(\n LFNoise2.kr(1, 1e4, 1e4),\n LFNoise2.kr(0.1, 0.5, 1.4),\n LFNoise2.kr(0.1, 0.1, 0.1),\n LFNoise2.kr(0.1)\n) * 0.2 }.play(s);\... |
[
{
"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": "What is `EaseInCirc` in SuperCollider?"
},
{
"role": "assistant",
"content": "EaseInCirc — Circular ease-in Easing equation for a circular (sqrt(1-t^2)) ease-in, accelerating from zero velocity. Category: Ease."
}
] |
[
{
"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{ LatoocarfianC.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": "Give me a complete SuperCollider patch for seeking an Array!: bind everything it needs before it is used."
},
{
"role": "assistant",
"content": "```supercollider\n(// * //watch the postWindow\na=[\"m\",\"x\",\"f\",\"k\",\"d\",\"p\"];\nx=Array;\ny=x.newClear(6);\n~mx... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ Standard2DC.ar(220, 11025, mul:0.3) }.play(s);\n\n// mouse-controlled param\n{ Standard2DC.ar(8000, 20000, MouseX.kr(0.9,4), mul:0.3) }.play(s);\n\n// as a frequency control\n{... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `LeastChange`."
},
{
"role": "assistant",
"content": "```supercollider\n(\nd = { |freq = 440|\n var internalFreq;\n internalFreq = LFNoise0.ar(0.3, 300, 800);\n SinOsc.ar(\n LeastChange.kr(freq, internalFreq) // two sou... |
[
{
"role": "user",
"content": "How do I play a random majorPentatonic scale at octave 4? (scale majorPentatonic, seq Prand, dur 0.2, octave 4, instr fm, root 0)"
},
{
"role": "assistant",
"content": "`Pbind` sequences an Event per beat, and `\\degree` + `\\scale` does the pitch:\n\n```supercollid... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n( //testing RecCutProc\nvar sf;\nvar rcdat;\n\nRoutine.run({\n\nsf= BBCutBuffer(Platform.resourceDir +/+ \"sounds/break.aiff\",8);\n\ns.sync;\n\n//argument 1-cut positions, 16 is wraparound, necessary for calculatin... |
[
{
"role": "user",
"content": "Give me a granular patch with noise1 grain position and interp 2. (rate 28, dur 0.1, 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... |
[
{
"role": "user",
"content": "Explain `Pswitch` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "Pswitch — embed values in a list according to a pattern of indices Category: Streams-Patterns-Events > Patterns > List > Indexing."
}
] |
[
{
"role": "user",
"content": "What is `CondVar`?"
},
{
"role": "assistant",
"content": "CondVar — Condition variable: block one or more threads until some condition is true"
},
{
"role": "user",
"content": "What does `CondVar.wait` do?"
},
{
"role": "assistant",
"content"... |
[
{
"role": "user",
"content": "How do I granulate a sample with 0.2 s grains? (rate 28, dur 0.2, interp 4, 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(\ns.waitForBoot {\... |
[
{
"role": "user",
"content": "What is `RedAbstractMix` in SuperCollider?"
},
{
"role": "assistant",
"content": "RedAbstractMix — abstract class Category: Red > redMix."
}
] |
[
{
"role": "user",
"content": "What does `ScrollView.autohidesScrollers` do?"
},
{
"role": "assistant",
"content": "Sets or gets whether the view hides one or another scrollbar if the contents do not exceed the view's bounds in the scrollbar's direction. If #-hasHorizontalScroller or #-hasVertica... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{LPCError.ar(AudioIn.ar, MouseX.kr(1,64))}.play\n\n{LPCError.ar(SinOsc.ar(LFNoise0.kr(0.2,400,500)), MouseX.kr(1,64))}.play\n\n{LPCError.ar(Resonz.ar(Mix(Saw.ar(100*[1,0.9,0.8,0.... |
[
{
"role": "user",
"content": "Explain `Latoocarfian2DC` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "Latoocarfian2DC — latoocarfian 2D chaotic generator `x(n+1) = sin(by(n)) + c*sin(bx(n))` Category: UGens > Generators > Stochastic."
}
] |
[
{
"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": "Write a minimal SuperCollider example that uses `PV_MagSquared`."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\n\n(\nb = Buffer.alloc(s, 2048, 1);\nc = Buffer.read(s, ExampleFiles.child);\n);\n\n(\nSynthDef(\"help-magSquared\", { |out = 0, bufnum ... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n// Handy code for quick class demonstrations.\n// Comparing a few intervals - Just Intonation versus 12-tone Equal Tempered\n\n// Major third (just)\nNdef(\\a, { Saw.ar(freq: [60.midicps, 60.midicps * 5/4], mul: 0.1) }).... |
[
{
"role": "user",
"content": "Write a self-contained SuperCollider patch that uses `Saw`. Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\n(\n SynthDef(\\controlList, { |out = 0, freq = 440, amp = 0.1, detune = #[0.999, 1.001], gate = 1|\n var sig = M... |
[
{
"role": "user",
"content": "What does `RedSlide.up` do?"
},
{
"role": "assistant",
"content": "Set or get the amount of lag when using the slide"
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\n// time warped analog bubbles, time scale is mouse x position\n{\n\n Bend.time(MouseX.kr(0.02, 20, 1), {\n var f = LFSaw.kr(0.4, 0, 24, LFSaw.kr([8,7.23], 0, 3, 80)).midic... |
[
{
"role": "user",
"content": "Write a complete SuperCollider patch built around `Pmulp` that runs as it is."
},
{
"role": "assistant",
"content": "```supercollider\n// sound example\n(\nSynthDef(\\sinegrain,\n { |out = 0, freq = 440, sustain = 0.02|\n var env;\n env = EnvGen.kr(Env.perc(0... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `QuadC`."
},
{
"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 QuadC.ar(SampleRate.ir/4, r.neg, r, 0, 0.1) * 0... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ SinOsc.ar(500 + LFPulse.ar(4).bipolar(40), 0, 0.5 * 0.1 }.play;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis opened ear... |
[
{
"role": "user",
"content": "Write a Pbind whose degrees repeat every Pwalk cycle. (scale majorPentatonic, seq Pwalk, dur 0.2, octave 4, instr pluck, root 0)"
},
{
"role": "assistant",
"content": "`Pbind` sequences an Event per beat, and `\\degree` + `\\scale` does the pitch:\n\n```supercollide... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `NamedControl`."
},
{
"role": "assistant",
"content": "```supercollider\n// multiple usage of the same name:\na = { SinOsc.ar(\\freq.kr(440, 1.0)) + Saw.ar(\\freq.kr(440, 1.0) * 0.5) * 0.1 }.play;\n\na.set(\\freq, 1220);\na.s... |
[
{
"role": "user",
"content": "Write a SuperCollider patch that uses `Dust` and actually plays. Assume nothing about the session."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\"help-Dust\", { |out = 0|\n Out.ar(out,\n Dust.ar(200, 0.5)\n )\n}).play;\n);\n\n(\nSynthDef... |
[
{
"role": "user",
"content": "Explain `AudioPatchIn` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "AudioPatchIn — manages a Player's input when connecting to other Players Category: Libraries > crucial > internals."
}
] |
[
{
"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": "What is `PV_MagShift` in SuperCollider?"
},
{
"role": "assistant",
"content": "PV_MagShift — shift and stretch magnitude bin position. Shift and stretch the positions of only the magnitude of the bins. Can be used as a very crude frequency shifter/scaler. Category: ... |
[
{
"role": "user",
"content": "Show me a self-contained SuperCollider patch using `Convolution2L`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\n// next example\n\nb = Buffer.read(s, ExampleFiles.child);\n\n(\n{\n var input = SoundIn.ar(0);\n var frame... |
[
{
"role": "user",
"content": "Write a kick whose tail uses gverb. (verb gverb, room 0.7, 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(\\reverb_synth... |
[
{
"role": "user",
"content": "Explain this code:\n```supercollider\n~pad = Synth(\\pad, [\\freq, 165]);\n~pad.set(\\gate, 0);\n```"
},
{
"role": "assistant",
"content": "It starts a sustained synth and then releases it.\n\n`Synth(\\pad, [\\freq, 165])` creates an instance of a SynthDef that take... |
[
{
"role": "user",
"content": "What does `PV_Cutoff.new` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "zero bins with interpolation Arguments: buffer — fft buffer; wipe — can range between -1 and +1. if wipe == 0 then there is no effect. if wipe > 0 then it acts like a h... |
[
{
"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{ HPZ2.ar(WhiteNoise.ar(0.25)) }.play;\n\n// HPZ2 is useful to detect changes in a signal:\n// see also HPZ1\n(\n{\n var changing... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.