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// increase phase multiplier\n{ FBSineN.ar(SampleRate.ir, 1, 0, XLine.kr(1, 2, 10), 0.1) * 0.2 }.play(s;\n```"
},
{
"role": "assistant",
"content": "A closing bracket... |
[
{
"role": "user",
"content": "What does `Linen.kr` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Simple linear envelope generator. Arguments: gate — This triggers the envelope and holds it open while > 0. If gate < 0, force release with time `-1.0 - gate`. See EnvGen#Fo... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `Impulse`."
},
{
"role": "assistant",
"content": "```supercollider\n{ Impulse.ar(4, [0, MouseX.kr(0, 1)], 0.2) }.play;\n```"
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `FSinOsc`."
},
{
"role": "assistant",
"content": "```supercollider\n{ FSinOsc.ar(800) * 0.2 }.play;\n\n{ FSinOsc.ar(XLine.kr(200, 4000, 1)) * 0.2 }.play;\n\n// loses amplitude towards the end\n{ FSinOsc.ar(FSinOsc.ar(X... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\n{ Latoocarfian2DC.ar(\n SampleRate.ir/8,\n SampleRate.ir/2,\n LFNoise2.kr(2.dup, 1.5, 1.5),\n d:LFNoise2.kr(2.dup, 0.5, 1.5),\n mul:0.2\n) }.play(s);\n```"
},
{
"... |
[
{
"role": "user",
"content": "Explain this SuperCollider code.\n```supercollider\n(\n~loDev = -6;\n~hiDev = 5;\n~lookBack = 2;\n\np = Pbind(\n \\dur, 0.2,\n \\midinote, PLIdev(72, 11, \\loDev, \\hiDev, \\lookBack).trace(prefix: \"midi \"),\n).play;\n);\n\n\n// change on the fly\n// as lookBack equals 2, t... |
[
{
"role": "user",
"content": "What is the difference between a Synth and a SynthDef?"
},
{
"role": "assistant",
"content": "A SynthDef is a definition: a compiled UGen graph with named controls, registered on the server once. A Synth is one running instance of that definition. You create the def... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ var source = SinOsc.ar(40); var env = EnvFollow.ar(source, 0.999); [source,env] }.plot(0.5)\n\n\n{ var source = SoundIn.ar; var env = EnvFollow.ar(source, MouseX.kr(0.9,0.999);... |
[
{
"role": "user",
"content": "What is `BelaScope`?"
},
{
"role": "assistant",
"content": "BelaScope — Bela's Oscilloscope interface"
},
{
"role": "user",
"content": "What does `BelaScope.scope` do?"
},
{
"role": "assistant",
"content": "Send an array of UGen data to Bela'... |
[
{
"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 is `FoaDirectZ` in SuperCollider?"
},
{
"role": "assistant",
"content": "FoaDirectZ — First Order Ambisonic (FOA) directivity transformer Adjust the soundfield directivity of a First Order Ambisonic signal (B-format) along the z-axis. Category: Libraries > Ambi... |
[
{
"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 does `Mx.prepareChildrenToBundle` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "A mixer and dynamic patching Arguments: bundle."
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\n// Create a new empty List with size: 3\nx = List.new(3);\n\nx.postln; // -> List[ ]\n\n// Add numbers 0 to 4 to the List\n5.do({ |i| x.add(i) });\n\n// The list has been modi... |
[
{
"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": "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": "Give me a granular patch with sweep grain position and interp 2. (rate 20, dur 0.2, 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 play a random minorPentatonic scale at octave 6? (scale minorPentatonic, seq Pshuf, dur 0.2, octave 6, instr sine, root 0)"
},
{
"role": "assistant",
"content": "The pattern is the composition here; `\\strum` spreads the chord:\n\n```supercollider\n(\nSynth... |
[
{
"role": "user",
"content": "What does `Event.removeParentType` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Remove a parent event associated with an event Arguments: type — A name (usually a symbol) for the event type.."
}
] |
[
{
"role": "user",
"content": "Give me an Ndef with an LFO at 0.8 Hz. (ugens blip, cutoff 800, lfo 0.8, 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: blip source through a 800 Hz low-pas... |
[
{
"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);\nb.allocRead(ExampleFiles.child);\nx = { PlayBuf.ar(1, b, BufRateScale.kr(b), loop: 1 * 0.5 }.play;\nx.free; b.free;\n```"
},
{
"role": "assis... |
[
{
"role": "user",
"content": "Write a plucked string in SuperCollider."
},
{
"role": "assistant",
"content": "Pluck is a Karplus-Strong string: a noise burst into a tuned delay with feedback. The delay time is\nthe reciprocal of the frequency.\n\n```supercollider\n(\nSynthDef(\\pluck, { |out = 0... |
[
{
"role": "user",
"content": "What is `XOut` in SuperCollider?"
},
{
"role": "assistant",
"content": "XOut — Send signal to a bus, crossfading with previous contents. Send signal to a bus, crossfading with previous contents. `xfade` is a level for the crossfade between what is on the bus and wha... |
[
{
"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// compares a 1102.5 Hz sine tone (11025 * 0.1, left) with a 1100 Hz tone (right)\n// the apollo sample has a sample rate of 11.025 kHz... |
[
{
"role": "user",
"content": "Explain `TdefAllGui` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "TdefAllGui — see all Tdefs and their state TdefAllGui uses TdefGui views to display all Tdefs, or a selection. Category: JITLib > GUI, Live Coding."
}
] |
[
{
"role": "user",
"content": "Write a Pbind whose degrees repeat every Pwalk cycle."
},
{
"role": "assistant",
"content": "Put the scale and the degree pattern in the `Pbind` and it will pick notes for you:\n\n```supercollider\n(\nSynthDef(\\fm_voice, { |out = 0, freq = 440, amp = 0.2|\n var ... |
[
{
"role": "user",
"content": "Explain `EnvFollow` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "EnvFollow — Envelope Follower Envelope follower from Hoffmann and Cook 2008 DAFx paper. Category: UGens > Analysis //SLUGens released under the GNU GPL as extensions for SuperCollid... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ Blip.ar(LFNoise0.kr(9, 400, 500), 4, 0.2 }.play;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis opened earlier is never c... |
[
{
"role": "user",
"content": "Explain `Filter` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "Filter — Base class for filter UGens \"Filter\" is an abstract class - in other words, a class that you do not use directly. Instead, use one of its subclasses. Many common filters inh... |
[
{
"role": "user",
"content": "What is `UnixFILE` in SuperCollider?"
},
{
"role": "assistant",
"content": "UnixFILE — An abstract class Category: Files."
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `FBSineC`."
},
{
"role": "assistant",
"content": "```supercollider\n// default initial params\n{ FBSineC.ar(SampleRate.ir/4) * 0.2 }.play(s);\n```"
}
] |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n// check blockSize before (or reset blockSize in examples)\n\n(\nif (s.options.blockSize != 64) {\n s.options.blockSize = 64;\n s.quit.reboot;\n}\n);\n\n// With divisions we must avoid division by zero resp. blowup, her... |
[
{
"role": "user",
"content": "Give me a kick with damping 0.5 on the reverb. (verb gverb, room 0.5, damp 0.5, 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(\\r... |
[
{
"role": "user",
"content": "What is `RadiansPerSample` in SuperCollider?"
},
{
"role": "assistant",
"content": "RadiansPerSample — Number of radians per sample. Returns the number of radians per sample. Category: UGens > Info."
}
] |
[
{
"role": "user",
"content": "What is `PV_MagMinus` in SuperCollider?"
},
{
"role": "assistant",
"content": "PV_MagMinus — subtract spectral energy Subtracts buffer B's magnitudes from buffer A. Category: UGens > FFT."
}
] |
[
{
"role": "user",
"content": "Give me a saw kick with a 0.06 s pitch sweep. (osc saw, sweep 0.06, decay 0.25, f0 150, 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: saw oscillator, 0.06 s ... |
[
{
"role": "user",
"content": "Write a GrainBuf synth at 6 grains per second. (rate 6, dur 0.1, interp 2, mode noise1, 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 {\... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `BusPlug`."
},
{
"role": "assistant",
"content": "```supercollider\nb = BusPlug.new;\n{ Blip.ar(b + 5) }.play;\nb.bus.set(12);\n```"
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `LinRand`."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\"help-LinRand\", { |out = 0, minmax = 1|\n Out.ar(out,\n FSinOsc.ar(\n LinRand(200.0, 10000.0, minmax),\n 0, Line.kr(0.2, 0... |
[
{
"role": "user",
"content": "Write an Ndef with a tri 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: tri source through a 800 Hz low-pass\n(\nNdef(\\nd_tri_165_800, { |freq = 165,... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `StandardN`."
},
{
"role": "assistant",
"content": "```supercollider\n// vary frequency\n{ StandardN.ar(MouseX.kr(20, SampleRate.ir)) * 0.3 }.play(s);\n```"
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ MoogLadder.ar(Mix(LFSaw.ar([120, 180], 0, 0.33)), LinExp.kr(LFCub.kr(0.1, 0.5*pi), -1, 1, 180, 8500), 0.75.dup }.play\n```"
},
{
"role": "assistant",
"content": "A ... |
[
{
"role": "user",
"content": "Write a complete SuperCollider patch built around `PV_PhaseShift90` that runs as it is."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\n\n(\n{ |out = 0, bufnum = 0|\n var in, fft, fft2, shifted;\n in = SinOsc.ar(500, 0, 0.1);\n fft = FFT(LocalBu... |
[
{
"role": "user",
"content": "What is `DigitalIn` in SuperCollider?"
},
{
"role": "assistant",
"content": "DigitalIn — Read data from a digital input Reads digital data from a digital sensor input (e.g.: a button or trigger input). Category: UGens > Bela."
}
] |
[
{
"role": "user",
"content": "Give me a Pbind with sine voices and a 0.3 rhythm. (scale minorPentatonic, seq Prand, dur 0.3, octave 4, instr sine, root 0)"
},
{
"role": "assistant",
"content": "`Pbind` sequences an Event per beat, and `\\degree` + `\\scale` does the pitch:\n\n```supercollider\n(... |
[
{
"role": "user",
"content": "Write a closed hi-hat in SuperCollider."
},
{
"role": "assistant",
"content": "High-passed noise with a very short envelope — the filter is what makes it a hat rather than a hiss.\n\n```supercollider\n(\nSynthDef(\\hat, { |out = 0, amp = 0.3, dur = 0.06|\n var en... |
[
{
"role": "user",
"content": "What does `PageLayout.flow` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Place a new FlowView on the Arguments: func — A handler that recieves the new FlowView as argument; bounds — Bounds of the FlowView. Returns: (returnvalue)"
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\ns.boot\n\n{Perlin3.ar(Integrator.ar(K2A.ar(MouseX.kr(0, 0.1))), Integrator.ar(K2A.ar(MouseY.kr(0, 0.1))))}.play(s)\n\n{Perlin3.ar(*{Line.ar(0, 1000, 30)}.dup(3))}.plot(1\n```"
... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\nb = Buffer.read(s, Platform.resourceDir +/+ \"sounds/a11wlk01.wav\");\n\n// This is very cool!\n\n(\n{\n Spring.ar(PlayBuf.ar(1, b, loop: 1)*Saw.ar(4));\n}.play;\n)\n```"
},
{
"role": "assistant",
"content":... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ LFSaw.ar(500, 1, 0.1) }.play\n\n// used as both Oscillator and LFO:\n{ LFSaw.ar(LFSaw.kr(4, 0, 200, 400), 0, 0.1 }.play\n```"
},
{
"role": "assistant",
"content": "... |
[
{
"role": "user",
"content": "What is a UGen?"
},
{
"role": "assistant",
"content": "A UGen is a unit generator: the primitive signal-processing node of the server. SinOsc, Saw, WhiteNoise, LPF and EnvGen are UGens, and they are wired into a graph inside a SynthDef."
}
] |
[
{
"role": "user",
"content": "What is `MxApp` in SuperCollider?"
},
{
"role": "assistant",
"content": "MxApp — Scripting and interacting with an Mx The Mx class itself implements the patching and updating. Normal interaction with an Mx is done through the gui (MxGui) and the scripting objects su... |
[
{
"role": "user",
"content": "What is `GbmanL` in SuperCollider?"
},
{
"role": "assistant",
"content": "GbmanL — Gingerbreadman map chaotic generator A linear-interpolating sound generator based on the difference equations: Category: UGens > Generators > Chaotic."
}
] |
[
{
"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 `Recorder`."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{ SinOsc.ar(\n SinOsc.ar(\n XLine.kr(1, 100, 5)).exprange(*XLine.kr([20, 800], [7000, 200], 10)\n )\n ) * 0.1\n\n}.play;\ns.record(durati... |
[
{
"role": "user",
"content": "What are the arguments of EnvGen?"
},
{
"role": "assistant",
"content": "`EnvGen.ar(envelope, gate, levelScale, levelBias, timeScale, doneAction)` — or the .kr form. Envelope is an Env; gate is the signal that holds the envelope open (a number for a one-shot, a trig... |
[
{
"role": "user",
"content": "What is Ndef used for?"
},
{
"role": "assistant",
"content": "Ndef is the JITLib node proxy: a named placeholder for a running signal chain that you can redefine while it plays. `Ndef(\\drone, { SinOsc.ar(55) * 0.1 }).play` starts it, and calling Ndef(\\drone, { ...... |
[
{
"role": "user",
"content": "Write a self-contained SuperCollider patch that uses `ControlSpec`. Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\n// ControlSpec-map can also be used to map ugens\n(\nvar spec;\nspec = [100, 18000, \\exp].asSpec;\n{\n var freq... |
[
{
"role": "user",
"content": "How do I play a random minorPentatonic scale at octave 5? (scale minorPentatonic, seq Pwalk, dur 0.4, octave 5, instr fm, root 0)"
},
{
"role": "assistant",
"content": "The pattern is the composition here; `\\strum` spreads the chord:\n\n```supercollider\n(\nSynthDe... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\nd = { |freq = 440|\n var internalFreq;\n internalFreq = LFNoise0.ar(0.3, 300, 800);\n SinOsc.ar(\n LeastChange.kr(freq, internalFreq) // two sources of change: one exter... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// default initial params\n{ LinCongN.ar(MouseX.kr(20, SampleRate.ir)) * 0.2 }.play(s;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the p... |
[
{
"role": "user",
"content": "Explain this SuperCollider patch.\n```supercollider\n// Evaluate this to start your project\n// The Cactus instnce is stored in c by convention\n\nc = CactusGUI(Document.current.dir).cactus; // with GUI\nc = Cactus(Document.current.dir); // without GUI\n\n/*\n\nAny folder with ... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `BufFrames`."
},
{
"role": "assistant",
"content": "```supercollider\nb = Buffer.read(s, ExampleFiles.child);\n\n// indexing with a phasor\n{ BufRd.ar(1, b, Phasor.ar(0, BufRateScale.kr(b), 0, BufFrames.kr(b))) }.play;... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n(\nc=13;a=Array.fib(64,0,1);b=Array.fill(size:c,function:{arg i;a[i]%12});\np=1/(21-c);Pdef(\\x,Pbind(\\dur,p,\\degree,Pseq(b,1,0)));\nr=Array.fill(c,{arg i;Pbindf(Pdef(\\x),\\mtranspose,1-b[i]);});\nPseq(r,(1/p)).play;\... |
[
{
"role": "user",
"content": "What is the difference between an audio bus and a control bus?"
},
{
"role": "assistant",
"content": "Both are numbered channels on the server used to move signal between nodes. An audio bus carries audio-rate signal and holds one or more audio channels; a control b... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Duty`."
},
{
"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 0,\n Dseq([204, 400, 201, 5... |
[
{
"role": "user",
"content": "What is `KeyResponder` in SuperCollider?"
},
{
"role": "assistant",
"content": "KeyResponder — combines KeyCodeResponder and UnicodeResponder Category: Libraries > crucial > Keyboard, External Control > Keyboard."
}
] |
[
{
"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": "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 is `RedSmooth` in SuperCollider?"
},
{
"role": "assistant",
"content": "RedSmooth — data filter A simple class for filtering values. Single exponential smoothing. Category: Red > redTools."
}
] |
[
{
"role": "user",
"content": "Write a GrainBuf synth at 20 grains per second. (rate 20, dur 0.04, interp 2, mode noise, rev 0)"
},
{
"role": "assistant",
"content": "A working granular patch, with the buffer loaded before the synth starts:\n\n```supercollider\n// granular synth with GrainBuf\n(\... |
[
{
"role": "user",
"content": "What does `Psetp.new` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "event pattern that sets values of one key Arguments: name; value — can be a pattern, a stream or an array. The resulting stream ends when that incoming stream ends.; patter... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\nNdef(\\x, { SinOsc.ar(Rand(500, 900)) * 0.1 }).play;\nNdef(\\x).copy(\\y);\nNdef(\\y.play;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: t... |
[
{
"role": "user",
"content": "Give me a Pbind with sine voices and a 0.4 rhythm. (scale majorPentatonic, seq Pshuf, dur 0.4, octave 5, 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": "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": "What is `IdentitySet`?"
},
{
"role": "assistant",
"content": "IdentitySet — a set according to identity"
},
{
"role": "user",
"content": "What does `IdentitySet.add` do?"
},
{
"role": "assistant",
"content": "Add anObject to the IdentitySet. ... |
[
{
"role": "user",
"content": "Give me a complete SuperCollider patch for Nested ifs in a SynthDef: bind everything it needs before it is used."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\nvar noise, out;\nnoise = LFNoise0.kr(8);\n\nout = if( noise > 0.0,\n if(noise > 0.5, \n ... |
[
{
"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": "Write a minimal SuperCollider example that uses `PV_PhaseShift`."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\n\n(\nSynthDef(\"help-phaseShift\", { |out = 0|\n var in, chain;\n in = SinOsc.ar(500);\n chain = FFT(LocalBuf(2048... |
[
{
"role": "user",
"content": "Write a kick drum with a 0.18 s decay. (osc sine, sweep 0.06, decay 0.18, f0 220, f1 40, amp 0.8, rev 0)"
},
{
"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... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\ns.boot;\n(\nz = {\nBBandPass.ar(\n SoundIn.ar([0, 1]),\n MouseX.kr(20, 20000, \\exponential),\n MouseY.kr(0.0, 10.0, \\linear), // bw\n 0.5); // mul\n}.play)\nz.release;\n\n(... |
[
{
"role": "user",
"content": "What is `BufSampleRate` in SuperCollider?"
},
{
"role": "assistant",
"content": "BufSampleRate — Buffer sample rate. Returns the buffer's current sample rate. Category: UGens > Buffer > Info."
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `FFTTrigger`."
},
{
"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, phases, chain, sig;\n // Create simple undul... |
[
{
"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": "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": "What does this SuperCollider code do?\n```supercollider\ns.boot;\n\n(\nSynthDef(\"help-PinkNoise\", { |out = 0|\n Out.ar(out, PinkNoise.ar(0.1))\n}).add;\n\nSynthDef(\"help-In\", { |out = 0, in = 0|\n var input;\n input = In.ar(in, 1);\n Out.ar(out, input);\n\n}).add;\n... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n{ Pan2.ar(Klank.ar(`[[1, 2.2, 3.5, 4.9], nil, Array.series(4, 1, -0.2)], PinkNoise.ar(EnvGen.ar(Env.perc(0.001,0.01), Impulse.ar(4))), 0), 0); }.play;\n```"
},
{
"role": "assistant",
"content": "I accidentall... |
[
{
"role": "user",
"content": "What is `RHPF` in SuperCollider?"
},
{
"role": "assistant",
"content": "RHPF — A resonant high pass filter. Category: UGens > Filters > Linear."
}
] |
[
{
"role": "user",
"content": "Write a self-contained SuperCollider patch that uses `Pmul`. Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\n// sound example\n(\nSynthDef(\\sinegrain,\n { |out = 0, freq = 440, gate = 1|\n var env;\n env = EnvGen.kr(Env.a... |
[
{
"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": "What is the difference between the language and the server?"
},
{
"role": "assistant",
"content": "sclang runs your code, the clock and Patterns, and builds UGen graphs. scsynth performs the DSP in real time. They communicate over OSC, which is why a language-side m... |
[
{
"role": "user",
"content": "Write a complete SuperCollider patch built around `MultiplexAnalogIn` that runs as it is."
},
{
"role": "assistant",
"content": "```supercollider\n// modulate frequency of a sine oscillator\n\n(\nSynthDef(\"help-MultiplexAnalogIn\", { |out = 0|\n Out.ar(out,\n S... |
[
{
"role": "user",
"content": "Write a SuperCollider patch that uses `EnvGen` and actually plays. Assume nothing about the session."
},
{
"role": "assistant",
"content": "```supercollider\n// as amplitude envelope\n(\n{\n var env = Env([0, 1, 0.5, 1, 0], [0.01, 0.5, 0.02, 0.5]);\n SinOsc.ar(470... |
[
{
"role": "user",
"content": "Write a SuperCollider patch that uses `UnaryOpUGen` and actually plays. Assume nothing about the session."
},
{
"role": "assistant",
"content": "```supercollider\na = WhiteNoise.ar; // a WhiteNoise\nb = a.squared; // a UnaryOpUGen.\nb.operator; // squared\n\n// soun... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `LinRand`."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\"help-LinRand\", { |out = 0, minmax = 1|\n Out.ar(out,\n FSinOsc.ar(\n LinRand(200.0, 10000.0, minmax),\n 0, Line.kr(0.2, 0... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\n{\n SinOsc.ar(\n Peak.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 rate controlled by mouse x\n(\n{\n ... |
[
{
"role": "user",
"content": "How current is your SuperCollider knowledge?"
},
{
"role": "assistant",
"content": "It comes from a snapshot of the SuperCollider repository (documentation, class library and examples) plus code I can reason about. So classes and arguments in that snapshot I know we... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n(\nPdef(\\zed, \n Pbind(\n \\osc, Pseq([SinOsc, LFSaw],inf),\n \\instrument, Prout({ arg ev;\n SynthDef(\\zed, { arg out=0, gate=1, amp=0.1, pan=0, freq=200;\n var sig;\n ... |
[
{
"role": "user",
"content": "How do I put a pluck in a reverb at mix 0.45? (verb gverb, room 0.5, damp 0.2, mix 0.45, source pluck)"
},
{
"role": "assistant",
"content": "Put the reverb inside the `SynthDef` so it is part of the voice:\n\n```supercollider\n// reverb: gverb on a pluck\n(\nSynthD... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ LFPulse.ar(XLine.kr(1, 200, 10), 0, 0.2, 0.1 }.play;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis opened earlier is nev... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.