conversations listlengths 2 6 |
|---|
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n// example: two SuperCollider apps communicating\n\n// application 1:\nn = NetAddr(\"127.0.0.1\", 57120); // the url should be the one of computer of app 2 (or nil)\n\no = OSCresponderNode(n, '/chat', { |t, r, msg| (\"tim... |
[
{
"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": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ SinOsc.ar(300, 0, 0.5) * SinOsc.kr(2.unipolar * 0.1 }.play;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis opened earlier... |
[
{
"role": "user",
"content": "What does `GridLayout.setMinRowHeight` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Sets the minimum height of Arguments: row — The index of a row.; height — An Integer amount of pixels.."
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ Crackle.ar(1.95, 0.5) }.play;\n\n// modulate chaos parameter\n{ Crackle.ar(Line.kr(1.0, 2.0, 3), 0.5, 0.5 }.play;\n```"
},
{
"role": "assistant",
"content": "A clos... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\n{\n var f, sf;\n sf = K2A.ar(MouseX.kr > 0.5) > 0;\n f = Ball.ar(sf, MouseY.kr(0.01, 20, 1), 0.01);\n f = f * 10 + 500;\n SinOsc.ar(f, 0, 0.2)\n}.play;\n```"
},
{
... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ BrownNoise.ar(0.1) }.play;\n{ WhiteNoise.ar(0.1 }.play;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis opened earlier is ... |
[
{
"role": "user",
"content": "Show me a self-contained SuperCollider patch using `BufSampleRate`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\nb = Buffer.read(s, ExampleFiles.child);\n\n// compares a 1102.5 Hz sine tone (11025 * 0.1, left) with a 1100 ... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n(// * //watch the postWindow\na=[\"m\",\"x\",\"f\",\"k\",\"d\",\"p\"];\nx=Array;\ny=x.newClear(6);\n~mxfkdp=Task({\n inf.do({y.put(x.series(6,0,1).choose,a.scramble).postln;\n 0.03.wait;})}).play;\nm=fork({inf.do({\n ... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Hilbert`."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\ns.scope;\na = { Hilbert.ar(SinOsc.ar(100)) * -20.dbamp }.play;\na.release;\n```"
}
] |
[
{
"role": "user",
"content": "Show me a self-contained SuperCollider patch using `PV_PhaseShift`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\n\n(\nSynthDef(\"help-phaseShift\", { |out = 0|\n var in, chain;\n in = SinOsc.ar(500);... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Free`."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\n\nSynthDef(\"a\", { Out.ar(0, SinOsc.ar(800, 0, 0.2)) }).add;\n\nSynthDef(\"b\", { |t_t = 0| Out.ar(1, PinkNoise.ar(0.3)); Free.kr(t_t, 1001) })... |
[
{
"role": "user",
"content": "What does `HPF.ar` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "2nd order Butterworth highpass filter. Arguments: in — The input signal.; freq — Cutoff frequency in Hertz. WARNING: due to the nature of its implementation frequency values c... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `CuspN`."
},
{
"role": "assistant",
"content": "```supercollider\n// vary frequency\n{ CuspN.ar(MouseX.kr(20, SampleRate.ir), 1.0, 1.99) * 0.3 }.play(s);\n\n// mouse-controlled params\n{ CuspN.ar(SampleRate.ir/4, Mouse... |
[
{
"role": "user",
"content": "What does `TdefAllGui.new` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "see all Tdefs and their state Arguments: numItems — the maximum number of Pdefs that can be shown.; parent — a parent view on which to display. If nil, a new window is... |
[
{
"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,2048,1);\n\n(\nSynthDef(\"help-brick\", { arg out=0, bufnum=0;\n var in, chain;\n in = {WhiteNoise.ar(0.2)}.dup;\n chain = FFT(bufnum, in);\n ch... |
[
{
"role": "user",
"content": "What does `Tempo.clearClocks` do?"
},
{
"role": "assistant",
"content": "for control of tempo and for use in tempo based calculations"
}
] |
[
{
"role": "user",
"content": "What does `MxCable.mapping` do?"
},
{
"role": "assistant",
"content": "This allows customized scaling and shaping of values from the outlet spec to the inlet spec. A mapping of nil (which is the default) will scale from the outlet spec to the inlet spec. eg. \\freq ... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\n// given a simple instrument\nInstr(\\Pulse,{ arg freq=440.0,width=0.5,mul=0.1;\n Pulse.ar( freq, width, mul )\n});\n\n// a patch specifies inputs (arguments) to that instrum... |
[
{
"role": "user",
"content": "Write a self-contained SuperCollider patch that uses `Dwhite`. Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var a, freq, trig;\n a = Dwhite(0, 15, inf);\n trig = Impulse.kr(MouseX.kr(1, 40, 1));\n freq = Demand.kr(t... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ LFPulse.kr(XLine.kr(1, 200, 10), 0, 0.2) * SinOsc.ar(440 * 0.1 }.play;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis ope... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Dbrown`."
},
{
"role": "assistant",
"content": "```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 SinO... |
[
{
"role": "user",
"content": "What does `NetAddr.sendMsg` do?"
},
{
"role": "assistant",
"content": "Convert the argument list to an OSC message and send it to the NetAddr without a timestamp. The first argument is the OSC address, and the remaining arguments are the arguments in the OSC message... |
[
{
"role": "user",
"content": "What does `AbstractSFP.frames2beats` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "base class for SoundFilePlayer classes Arguments: frames."
}
] |
[
{
"role": "user",
"content": "Show another SuperCollider example using `LorenzL`."
},
{
"role": "assistant",
"content": "```supercollider\n// randomly modulate params\n(\n{ LorenzL.ar(\n SampleRate.ir,\n LFNoise0.kr(1, 2, 10),\n LFNoise0.kr(1, 20, 38),\n LFNoise0.kr(1, 1.5, 2)\n) * 0.2 }.pla... |
[
{
"role": "user",
"content": "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": "How do I structure a live-coding performance in one file?"
},
{
"role": "assistant",
"content": "One Tdef per musical layer, each with its own loop, so you can start and stop layers while the set\nruns.\n\n```supercollider\n(\nTdef(\\kick, {\n loop {\n Syn... |
[
{
"role": "user",
"content": "How do I granulate a sample with 0.2 s grains? (rate 16, dur 0.2, interp 4, mode sweep, 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.wai... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// default params\n{ QuadC.ar(SampleRate.ir/4) * 0.2 }.play(s;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis opened earlie... |
[
{
"role": "user",
"content": "What does `Slider.ctrl_scale` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "The factor by which #-step is multiplied when incrementing or decrementing the value by keyboard while the Ctrl key is Arguments: A Float.."
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// Add two UGens\n{ SinOsc.ar(440, 0, 0.2) + PinkNoise.ar(0.1; }.play\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis opened... |
[
{
"role": "user",
"content": "Explain `IFFT` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "IFFT — Inverse Fast Fourier Transform The inverse fast fourier transform converts from frequency content to a signal. Category: UGens > FFT."
}
] |
[
{
"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 saw, bpf;\n saw = Pulse.ar(\n freq: [100,150],\n mul: LFPulse.kr(\n freq: [0, 0.03, 0.04],\n width: 0.15));\n bpf = LPF.ar(in: saw, freq: SinOsc.kr(-10, -5, 3).range(200, 400));\n Out.ar(0,... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n(\n{\n var saw, bpf;\n saw = Pulse.ar(\n freq: [100,150],\n mul: LFPulse.kr(\n freq: [0, 0.03, 0.04],\n width: 0.15));\n bpf = LPF.ar(in: saw, freq: SinOsc.kr(-10, -5, 3).range(200, 400));\n Out.ar(0,... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\nb = Buffer.read(s, ExampleFiles.child);\n\n(\nx = { |rate = 1|\n BufRd.ar(1, b, Phasor.ar(0, BufRateScale.kr(b) * rate, 0, BufFrames.kr(b)))\n}.play;\n```"
},
{
"role": ... |
[
{
"role": "user",
"content": "Give me a pluck with damping 0.2 on the reverb. (verb freeverb, room 0.5, damp 0.2, mix 0.3, source pluck)"
},
{
"role": "assistant",
"content": "Put the reverb inside the `SynthDef` so it is part of the voice:\n\n```supercollider\n// reverb: freeverb on a pluck\n(\... |
[
{
"role": "user",
"content": "Explain `Class` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "Class — A Class describes the structure and implementation of a set of objects which are its instances. Category: Core > Kernel, Language > OOP."
}
] |
[
{
"role": "user",
"content": "What is `AbstractFunction`?"
},
{
"role": "assistant",
"content": "AbstractFunction — An object which responds to a set of messages that represent mathematical functions"
},
{
"role": "user",
"content": "What does `AbstractFunction.neg` do?"
},
{
... |
[
{
"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{ LatoocarfianC.ar(MouseX.kr(20, SampleRate.ir)) * 0.2 }.play(s;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: ... |
[
{
"role": "user",
"content": "What is `AbstractFunction`?"
},
{
"role": "assistant",
"content": "AbstractFunction — An object which responds to a set of messages that represent mathematical functions"
},
{
"role": "user",
"content": "What does `AbstractFunction.neg` do?"
},
{
... |
[
{
"role": "user",
"content": "Explain `RedOnePole` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "RedOnePole — one pole filter with separate up and down coefficients Very similar to OnePole but can have different coef going upward or downward and also a sclang method. Useful fo... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Pan2`."
},
{
"role": "assistant",
"content": "```supercollider\n// hear the difference, LinPan having a slight drop in the middle...\n{ LinPan2.ar(SinOsc.ar(440), Line.kr(-1, 1, 5)) }.play\n\n// ... whereas Pan2 is mo... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\nb = NodeProxy.audio(s, 2);\nb.play; // listen to b\nb.source = { SinOsc.ar([400, 500], 0, 0.1) }; // play something\n\nr = b.record(\"recproxy101.aiff\"); // start recorder (paus... |
[
{
"role": "user",
"content": "Give me a granular patch with noise grain position and interp 4."
},
{
"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.waitForBoot {\n var buf = ... |
[
{
"role": "user",
"content": "How do I put a bell in a reverb at mix 0.45?"
},
{
"role": "assistant",
"content": "A send-style patch: dry signal plus the reverb on the tail:\n\n```supercollider\n// reverb: freeverb on a bell\n(\nSynthDef(\\reverb_synth, { |out = 0, freq = 330, amp = 0.2|\n va... |
[
{
"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 minimal SuperCollider example that uses `Dswitch`."
},
{
"role": "assistant",
"content": "```supercollider\n(\n {\n var d, trig;\n d = Dswitch([\n Dwhite(3, 4, 2),\n Dwhite(0, 1, 2),\n Dseq([1, 1, 1, 0], 2)\n ], Dseq([0, 1, 2, 1, 0],... |
[
{
"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 self-contained SuperCollider patch for Kepler 22-b atmosphere. Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\n(\nfork { \n Ndef(\\ttwnd).play;//(d,2,addAction:\\addToHead);\n loop {\n var seed = thisThread.randSeed... |
[
{
"role": "user",
"content": "What is `IFFT`?"
},
{
"role": "assistant",
"content": "IFFT — Inverse Fast Fourier Transform"
},
{
"role": "user",
"content": "What does `IFFT.new` do?"
},
{
"role": "assistant",
"content": "returns a time domain signal from converting the FF... |
[
{
"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": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{CrossoverDistortion.ar(SinOsc.ar([400, 404], 0, 0.2), MouseX.kr(0, 1), MouseY.kr(0, 1))}.play\n\n{CrossoverDistortion.ar(SoundIn.ar, MouseX.kr(0, 1), MouseY.kr(0, 1)}.play\n```"... |
[
{
"role": "user",
"content": "What does `SGliss.setAmplitudes` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "convenience method for CODE.set(\\amplitudes, Arguments: arr — an array of floats (0.0 to 1.0).."
}
] |
[
{
"role": "user",
"content": "What is `CutBPF1` in SuperCollider?"
},
{
"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": "Explain this SuperCollider code.\n```supercollider\n// no, it doesn't take a ugen in ...\n(\n{\n EnvGen.kr(\n Env.asr(0.1, 1.0, 0.5, \\welch),\n 1.0,\n FSinOsc.ar(1.0).range(0.0, 1.0),\n timeScale: 0.1\n ) * SinOsc.ar(440, 0, 0.3)\n}.play;\n);\... |
[
{
"role": "user",
"content": "Explain `Tdef` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "Tdef — task reference definition Tdef registers tasks by key. All accesses to the registered tasks go through the Tdef class via that key. Registered tasks can be replaced with other tas... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```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 = Warp1.ar(1, b, pointe... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\n// used to lag pitch\n{\n SinOsc.ar( // sine wave\n VarLag.kr( // lag the modulator\n LFPulse.kr(1... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Dswitch1`."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var a, freq, trig;\n a = Dswitch1([1, 3, MouseY.kr(1, 15), 2, Dwhite(0, 3, 2)], MouseX.kr(0, 4));\n trig = Impulse.kr(3);\n freq = Demand.... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Pause`."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\n\nSynthDef(\\a, { Out.ar(0, SinOsc.ar(800, 0, 0.2)) }).add;\n\nSynthDef(\\b, { |gate = 1| Out.ar(1, PinkNoise.ar(0.3)); Pause.kr(gate, 1001) })... |
[
{
"role": "user",
"content": "Build a slowly evolving drone with Ndef."
},
{
"role": "assistant",
"content": "Ndef gives you a named patch you can redefine while it plays; the filter is a separate node in the\nchain so you can change it on its own.\n\n```supercollider\n(\nNdef(\\drone, { |freq =... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ LFNoise2.ar(1000, 0.25) }.play;\n\n// modulate frequency\n\n{ LFNoise2.ar(XLine.kr(1000, 10000, 10), 0.25) }.play;\n\n// as frequency modulator\n(\n{ SinOsc.ar(\n LFNoise2.a... |
[
{
"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": "What does `Red3D.render` do?"
},
{
"role": "assistant",
"content": "Call this to perform the projection and scaling calculations. This updates the variable"
}
] |
[
{
"role": "user",
"content": "Write a SuperCollider patch that uses `BinaryOpUGen` and actually plays. Assume nothing about the session."
},
{
"role": "assistant",
"content": "```supercollider\na = WhiteNoise.ar; // a WhiteNoise\nb = a + 2; // a BinaryOpUGen.\nb.operator; // +\n\n// sound exampl... |
[
{
"role": "user",
"content": "Explain `ToggleFF` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "ToggleFF — Toggle flip flop. Toggles between 0 and 1 upon receiving a trigger. Category: UGens > Triggers."
}
] |
[
{
"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 minimal SuperCollider example that uses `SampleRate`."
},
{
"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), resulting in a 1 Hz beating\n(\n{\n v... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n// try wiggling mouse quickly:\n// LFNoise2 overshoots when going from high to low freqs, LFDNoise changes smoothly.\n\n{ SinOsc.ar(LFNoise2.ar(MouseX.kr(0.1, 1000, 1), 200, 500), 0, 0.2) }.play\n\n{ SinOsc.ar(LFDNoise3... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n(\n{\n\nvar in, fft, entropy;\n\n//in = SinOsc.ar(MouseX.kr(100,1000),0,0.1);\n//in = Mix(SinOsc.ar([440,MouseX.kr(440,880)],0,0.1)); \nin= SoundIn.ar; \n\nfft = FFT(LocalBuf(2048), in);\n\nentropy=SpectralEntropy.kr(fft... |
[
{
"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": "Give me an Ndef with an LFO at 0.1 Hz. (ugens tri, cutoff 200, 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: tri source through a 200 Hz low... |
[
{
"role": "user",
"content": "How do I play a random majorPentatonic scale at octave 5? (scale majorPentatonic, seq Prand, dur 0.2, octave 5, instr pluck, root 0)"
},
{
"role": "assistant",
"content": "The pattern is the composition here; `\\strum` spreads the chord:\n\n```supercollider\n(\nSynt... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\n// used to lag pitch\n{\n SinOsc.ar( // sine wave\n Lag2.kr( // lag the modulator\n LFPulse.kr(4, 0, 0.5, 50, 400), // frequency modulator\n Line.kr(0, ... |
[
{
"role": "user",
"content": "Give me a fm kick with a 0.06 s pitch sweep. (osc fm, sweep 0.06, decay 0.5, f0 220, f1 40, 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 oscillato... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// Ndef\nNdef(\\a, { Saw.ar(12) }).asCode;\n\n// in a pushed proxy space\np = ProxySpace.push(s.boot);\n~x = { Saw.ar(123, 0.1 };\n~x.play;\n~x.asCode;\n\np.end.pop;\n\n// anonym... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\n// used to lag pitch\n{\n SinOsc.ar( // sine wave\n Lag3.kr( // lag the modulator\n LFPulse.kr(4, 0, 0.5, 50, 400), // frequency modulator\n Line.kr(0, ... |
[
{
"role": "user",
"content": "Show me a self-contained SuperCollider patch using `LFClipNoise`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\"help-LFClipNoise\", { |out = 0|\n Out.ar(out,\n LFClipNoise.ar(1000, 0.25)\n )\n}).play;\n);... |
[
{
"role": "user",
"content": "Explain this code:\n```supercollider\n{ Pan2.ar(SinOsc.ar(440) * 0.2, SinOsc.kr(0.1)) }.play;\n```"
},
{
"role": "assistant",
"content": "A sine that slowly moves between the speakers.\n\n`SinOsc.kr(0.1)` is a control-rate sine at 0.1 Hz — one cycle every 10 seconds... |
[
{
"role": "user",
"content": "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": "What is `CountLimit` in SuperCollider?"
},
{
"role": "assistant",
"content": "CountLimit — Counts how many items have been presented to it. returns true until limit false thereafter Counts how many items have been presented to it. returns true until the limit has be... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// modulate frequency and index multiplier\n{ FBSineC.ar(LFNoise2.kr(1, 1e4, 1e4), LFNoise2.kr(1, 16, 17), 1, 1.005, 0.7) * 0.2 }.play(s;\n```"
},
{
"role": "assistant",
... |
[
{
"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-MouseButton.kr(lag:0.001))[0]), 0, 0.1)}.play //notice how I am taking the [0th channel of the Maths and ignoring t... |
[
{
"role": "user",
"content": "Give me a Pbind with sine voices and a 0.3 rhythm. (scale minorPentatonic, seq Pwalk, 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```supercollide... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\nv = Vowel()\nv.addFormants([3000,4000], -6, [200, 200])\n\n{Formants.ar(100, v) * 0.1 }.play\n{Formants.ar(100, Vowel()) * 0.1}.play\n \n{[Formants.ar(100, Vowel()) * 0.1, For... |
[
{
"role": "user",
"content": "How do I make a kick that starts at 220 Hz and falls to 40 Hz? (osc sine, sweep 0.06, decay 0.35, f0 220, f1 40, amp 0.6, rev 0)"
},
{
"role": "assistant",
"content": "Start with a swept sine, then shorten the decay to taste:\n\n```supercollider\n// kick drum: sine ... |
[
{
"role": "user",
"content": "How do I play a random minorPentatonic scale at octave 4? (scale minorPentatonic, seq Pwalk, dur 0.4, octave 4, 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```superco... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\nd = { |gate = 1| { BrownNoise.ar }.dup * EnvGen.kr(Env.asr, gate, doneAction: Done.freeSelf) }.play;\nd.release(3;\n```"
},
{
"role": "assistant",
"content": "A closi... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `TwoPole`."
},
{
"role": "assistant",
"content": "```supercollider\n{ TwoPole.ar(WhiteNoise.ar(0.005), 2000, 0.95) }.play\n\n{ TwoPole.ar(WhiteNoise.ar(0.005), XLine.kr(800, 8000, 8), 0.95) }.play\n\n{ TwoPole.ar(White... |
[
{
"role": "user",
"content": "What is `SFormantFrequencies` in SuperCollider?"
},
{
"role": "assistant",
"content": "SFormantFrequencies — control SFormant frequencies Frequency control for LINKClasses/SFormant. Category: SInstruments."
}
] |
[
{
"role": "user",
"content": "Write a self-contained SuperCollider patch that uses `Dseq`. Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var a, freq, trig;\n a = Dseq([1, 3, 2, 7, 8], 3);\n trig = Impulse.kr(MouseX.kr(1, 40, 1));\n freq = Demand.... |
[
{
"role": "user",
"content": "Write a complete SuperCollider patch built around `Pwrap` that runs as it is."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\\help_sinegrain,\n { |out = 0, freq = 440, sustain = 0.05|\n var env;\n env = EnvGen.kr(Env.perc(0.01, sustain,... |
[
{
"role": "user",
"content": "What is `Pfx` in SuperCollider?"
},
{
"role": "assistant",
"content": "Pfx — add an effect synth to the synths of a given event stream Puts an effect node on the tail of the current group and releases it when the contained pattern finishes. If a bus is given, it is ... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\ns.boot;\nx = { SinOsc.ar((Line.kr(0, 10, 10).snap(1, 0.3, 1) + 60).poll.midicps, 0, -24.dbamp }.play\n```"
},
{
"role": "assistant",
"content": "A closing bracket is ... |
[
{
"role": "user",
"content": "Explain `PlayerAmpGui` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "PlayerAmpGui — gui class Category: Libraries > crucial > GuiClasses."
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `DigitalOut`."
},
{
"role": "assistant",
"content": "```supercollider\n// write a sine oscillator's output to a pin\n\n(\nSynthDef(\"help-DigitalOut\", { |out = 0|\n DigitalOut.ar(0, SinOsc.ar(10));\n}).play;\n)\n``... |
[
{
"role": "user",
"content": "Explain `PSinOsc` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "PSinOsc — UGenPatterns quark library Based on SinOsc Category: Streams-Patterns-Events > UGenPatterns > Generators."
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```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, sig);\n}).add;\n;\n\nd.specs.freq.... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// constant source (72), max deviation +/- 3\n// no repetition within 5 pitches\n\n(\nx = {\n var trig = Impulse.ar(5);\n var midi = Demand.ar(trig, 0, DIdev(72, 2, -1, 2));\n ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.