conversations
listlengths
2
6
[ { "role": "user", "content": "What does this SuperCollider code do?\n```supercollider\n// With the indices arg arbitrary series from the buffer can be played.\n// Passing an array we define an index sequence which doesn't depend on lookBack\n\n(\n~lookBack = 0;\n\np = PSloop(\n Pbind(\n \\dur, Pn(Pshuf(...
[ { "role": "user", "content": "Write a minimal SuperCollider example that uses `MulAdd`." }, { "role": "assistant", "content": "```supercollider\ns.boot;\n\n// The mul and add arguments of SinOsc themselves use MulAdd!\n// These two examples will create precisely the same synth graph:\nx = { SinO...
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\nSynthDef(\"help-Dust2\", { |out = 0|\n Out.ar(out,\n Dust2.ar(200, 0.5)\n )\n}).play;\n);\n\n(\nSynthDef(\"help-Dust2\", { |out = 0|\n Out.ar(out,\n Dust2.ar(XLine.kr...
[ { "role": "user", "content": "Explain this code:\n```supercollider\n~buf = Buffer.read(s, \"C:/sounds/break.wav\");\nPlayBuf.ar(1, ~buf, BufRateScale.kr(~buf), loop: 1);\n```" }, { "role": "assistant", "content": "Loads a sound file into server memory, then plays it in a loop at the file's origi...
[ { "role": "user", "content": "What is `Normalizer` in SuperCollider?" }, { "role": "assistant", "content": "Normalizer — Flattens dynamics. Normalizes the input amplitude to the given level. Normalizer will not overshoot like Compander will, but it needs to look ahead in the audio. Thus there is...
[ { "role": "user", "content": "What does `KDRMaskTester.==` do? What arguments does it take?" }, { "role": "assistant", "content": "KeyCodeResponder utility for comparing modifier masks Arguments: aResponder." } ]
[ { "role": "user", "content": "What does this SuperCollider code do?\n```supercollider\ns.boot;\nNdef(\\a).ar;\nNdef(\\k).kr;\n\n // make a MonitorGui with all bells and whistles\nm = MonitorGui.new(bounds: 500@40, options: [\\name, \\level, \\fade]);\n\n // when it has a kr proxy, it is visible, but disab...
[ { "role": "user", "content": "Give me a kick with damping 0.5 on the reverb. (verb freeverb2, room 0.7, damp 0.5, mix 0.45, source kick)" }, { "role": "assistant", "content": "Put the reverb inside the `SynthDef` so it is part of the voice:\n\n```supercollider\n// reverb: freeverb2 on a kick\n(\...
[ { "role": "user", "content": "What is `Rest`?" }, { "role": "assistant", "content": "Rest — Represents a rest in event patterns" }, { "role": "user", "content": "What does `Rest.new` do?" }, { "role": "assistant", "content": "Create an instance of Rest, with a value to be...
[ { "role": "user", "content": "Show another SuperCollider example using `QuadL`." }, { "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 QuadL.ar(SampleRate.ir/4, r.neg, r, 0, 0.1) * 0...
[ { "role": "user", "content": "Write a minimal SuperCollider example that uses `BPF`." }, { "role": "assistant", "content": "```supercollider\n{ BPF.ar(Saw.ar(200, 0.5), FSinOsc.kr(XLine.kr(0.7, 300, 20), 0, 3600, 4000), 0.3) }.play;\n\n{ BPF.ar(Saw.ar(200, 0.5), MouseX.kr(100, 10000, 1), 0.3) }....
[ { "role": "user", "content": "Write a Pbind in majorPentatonic using Prand for the degrees. (scale majorPentatonic, seq Prand, dur 0.3, 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```s...
[ { "role": "user", "content": "Write a granular texture, dry. (rate 28, dur 0.1, interp 2, mode noise, 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.waitForBoot {\n ...
[ { "role": "user", "content": "Show another SuperCollider example using `EnvGen`." }, { "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) * EnvGen.kr(env, doneAction: Done.freeSelf)\n}.p...
[ { "role": "user", "content": "What does this SuperCollider code do?\n```supercollider\n// vary frequency - these parameters are for \"one-pulse\" orbit\n{ RosslerL.ar(MouseX.kr(20, SampleRate.ir), 0.36, 0.35, 4.5) * 0.3 }.play(s);\n\n// randomly modulate params\n(\n{ RosslerL.ar(\n SampleRate.ir, \n 0.2, ...
[ { "role": "user", "content": "How do I build a live drone with Ndef at 220 Hz? (ugens saw, cutoff 2400, lfo 0.3, freq 220, amp 0.12)" }, { "role": "assistant", "content": "`Ndef` is a named proxy you can redefine while it is playing:\n\n```supercollider\n// Ndef drone: saw source through a 2400 ...
[ { "role": "user", "content": "What does 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\nq = PLhprand(\\lo, \\hi);\n\n\n// prepare current Environment\n// PLseq repeats a...
[ { "role": "user", "content": "Write an Ndef with a blip source and a 200 Hz low-pass." }, { "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 200 Hz low-pass\n(\nNdef(\\nd_blip_82_200, { |freq ...
[ { "role": "user", "content": "What are the server's default sample rate and block size?" }, { "role": "assistant", "content": "44100 Hz and 64 samples per block by default, so the control rate is 44100/64 = 689.06 Hz. You can read them from the language with `s.sampleRate` and `s.options.blockSi...
[ { "role": "user", "content": "GrainBuf complains about too many grains." }, { "role": "assistant", "content": "The number of simultaneous grains is `density × dur` in seconds, and it exceeds maxGrains (512 by default). Either lower the trigger rate, shorten the grains, or raise the limit: `Grain...
[ { "role": "user", "content": "Write a SuperCollider patch that uses `FFTTrigger` 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, ph...
[ { "role": "user", "content": "Write a minimal SuperCollider example that uses `MantissaMask`." }, { "role": "assistant", "content": "```supercollider\n// preserve only 3 bits of mantissa.\n{ MantissaMask.ar(SinOsc.ar(SinOsc.kr(0.2, 0, 400, 500), 0, 0.4), 3) }.play\n\n// the original\n{ SinOsc.ar...
[ { "role": "user", "content": "What does this SuperCollider patch do?\n```supercollider\na = Synth(\\MoaningDialogue)\n\n//COOL TWEAKS\n//AngryTweak\na.set(\\feedback, 29,\\freq, 6)\n//CalmTweak\na.set(\\feedback, 60, \\freq, 0.8)\n//WeirdTweak\na.set(\\feedback, 2.8, \\freq, 2)\n\n(\nSynthDef(\\MoaningDialo...
[ { "role": "user", "content": "Explain `Lorenz2DN` in SuperCollider briefly." }, { "role": "assistant", "content": "Lorenz2DN — lorenz 2D chaotic generator `x' = s(y - x)` Category: UGens > Generators > Stochastic." } ]
[ { "role": "user", "content": "What does `EnvirGui.zone` do?" }, { "role": "assistant", "content": "the composite view the envirgui makes for" } ]
[ { "role": "user", "content": "What does `BeatSched.beat` do? What arguments does it take?" }, { "role": "assistant", "content": "get the scheduler's current beat set the scheduler's current beat. this is also used to start a \"song\": zero the beat, and all absolute times previously scheduled ev...
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// example:\n(\nvar f, g, product;\nf = { SinOsc.ar(400) };\ng = { LFPulse.kr(8) };\nproduct = f * g * 0.1;\n{ Pan2.ar(product, SinOsc.kr(0.3)) }.play;\n```" }, { "role":...
[ { "role": "user", "content": "How do I play a sample from disk?" }, { "role": "assistant", "content": "Load it into a Buffer on the server, then play the buffer. `BufRateScale` keeps the pitch right when\nthe file's sample rate differs from the server's.\n\n```supercollider\n(\ns.waitForBoot {\n...
[ { "role": "user", "content": "How do I play a random minorPentatonic scale at octave 6? (scale minorPentatonic, seq Prand, 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(\nSynth...
[ { "role": "user", "content": "Show another SuperCollider example using `SelectXFocus`." }, { "role": "assistant", "content": "```supercollider\n(\n{\n var a;\n a = [\n Saw.ar(LFSaw.kr(3 * [1, 1.01], 0, 100, 230)),\n SinOsc.ar,\n Pulse.ar(LFPulse.kr(3 * [1, 1.02], 0, 0.4, 100, 23...
[ { "role": "user", "content": "What does this SuperCollider patch do?\n```supercollider\n(\n{\nvar noise, out;\nnoise = LFNoise0.kr(8);\n\nout = if( noise > 0.0,\n if(noise > 0.5, \n if(noise > 0.9, WhiteNoise.ar(0.2), Pulse.ar(60, 0.5, 0.4)),\n SinOsc.ar(500, 0, 0.25)\n ),\n Saw.ar(160, 0.5)\n);\n\no...
[ { "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": "What does `U.makeBundle` do? What arguments does it take?" }, { "role": "assistant", "content": "(describe method Arguments: targets — (describe argument here); startPos — (describe argument here); synthAction — (describe argument here). Returns: (returnvalue)" } ...
[ { "role": "user", "content": "Write a minimal SuperCollider example that uses `LinCongC`." }, { "role": "assistant", "content": "```supercollider\n// default initial params\n{ LinCongC.ar(MouseX.kr(20, SampleRate.ir)) * 0.2 }.play(s);\n```" } ]
[ { "role": "user", "content": "What does `Env.blend` do? What arguments does it take?" }, { "role": "assistant", "content": "Blend two envelopes. Returns a new Env. See #blend example Arguments: argAnotherEnv — an Env.; argBlendFrac — a number from zero to one.." } ]
[ { "role": "user", "content": "Write a Pbind in minorPentatonic using Pwalk for the degrees. (scale minorPentatonic, seq Pwalk, dur 0.3, 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```sup...
[ { "role": "user", "content": "What does `SCViewHolder.action` do? What arguments does it take?" }, { "role": "assistant", "content": "This method is forwarded to the Arguments: f. Returns: The result of calling the method on the proxied view" } ]
[ { "role": "user", "content": "What does `EffectSpec.initClass` do?" }, { "role": "assistant", "content": "datatype specifying an object that is an 'audio' rate effect" } ]
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n//code that utilizes the glitch.\n//warning! extremely loud.\n//note: might not sound the same on all soundcards\n(\n{GlitchHPF.ar(\n BrownNoise.ar(1.dup),\n 0.5,\n Saw.kr(1,...
[ { "role": "user", "content": "What does `SplineFr.setValueOnNextTick` do? What arguments does it take?" }, { "role": "assistant", "content": "Mx frame rate driven time domain spline for automation curves Arguments: value." } ]
[ { "role": "user", "content": "Give me a granular patch with noise grain position and interp 2. (rate 28, dur 0.15, interp 2, mode noise, 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 a minimal SuperCollider example that uses `DelayN`." }, { "role": "assistant", "content": "```supercollider\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, W...
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ Standard2DL.ar(220, 11025, mul:0.3) }.play(s);\n\n// mouse-controlled param\n{ Standard2DL.ar(11025, 44100, MouseX.kr(0.9,4), mul:0.3) }.play(s);\n\n// as a frequency control\n...
[ { "role": "user", "content": "Give me a Pbind with fm voices and a 0.3 rhythm. (scale minorPentatonic, seq Pseq, dur 0.3, 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```supercollider\n(\...
[ { "role": "user", "content": "What does this SuperCollider patch do?\n```supercollider\n// derived from an answer by Sergio Luque to a mail to the sc-users SuperCollider mailing list on 2013/03/22\n\n(\nvar registerSize = 16;\nvar min =\"C2\".namemidi.asInteger;\nvar max = \"C6\".namemidi.asInteger;\nvar wa...
[ { "role": "user", "content": "Write a minimal SuperCollider example that uses `FBSineN`." }, { "role": "assistant", "content": "```supercollider\n// default initial params\n{ FBSineN.ar(SampleRate.ir/4) * 0.2 }.play(s);\n```" } ]
[ { "role": "user", "content": "What does `SplineGen.kr` do? What arguments does it take?" }, { "role": "assistant", "content": "Like EnvGen.kr(env), this plays the Arguments: timeScale — If timeScale is tempo then the x values are beats. eg. Tempo.tempo; doneAction — Like EnvGen etc.; divisions —...
[ { "role": "user", "content": "What does `PMouseX.new` do? What arguments does it take?" }, { "role": "assistant", "content": "UGenPatterns quark library Arguments: minval; maxval; warp — 0 for linear and 1 for exponential. The symbols CODE\\linear and CODE\\exponential also work.; lag; length — ...
[ { "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": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// stepper cycles between 0 and 1, average hovers around 0.5\na = { AverageOutput.kr(Stepper.kr(Impulse.kr(1), min: 0, max: 1).poll }.play;\n\na.free;\n```" }, { "role": ...
[ { "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 RunningMin.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(\...
[ { "role": "user", "content": "What does this SuperCollider patch do?\n```supercollider\n(SynthDef(\\x, {|midi = 60, amp = 0.8| Out.ar(0, Pan2.ar(SinOsc.ar(midi.midicps, mul: EnvGen.kr(Env.perc(0, 0.5), timeScale: 0.5, levelScale: 0.3)), Rand(-1, 1)) * EnvGen.kr(Env.perc(0, 0.5), timeScale: 1.3*0.5, levelSca...
[ { "role": "user", "content": "Write a minimal SuperCollider example that uses `BRF`." }, { "role": "assistant", "content": "```supercollider\n{ BRF.ar(Saw.ar(200, 0.1), FSinOsc.kr(XLine.kr(0.7, 300, 20), 0, 3800, 4000), 0.3) }.play;\n\n{ BRF.ar(Saw.ar(200, 0.5), MouseX.kr(100, 10000, 1), 0.3) }....
[ { "role": "user", "content": "What does `TextView.usesTabToFocusNextView` do? What arguments does it take?" }, { "role": "assistant", "content": "Whether the tab key will - instead of inserting a tab character into the text - switch focus to the next view (as usual for other views). Defaults to ...
[ { "role": "user", "content": "Show me a self-contained SuperCollider patch using `Dstutter`: bind everything it needs first." }, { "role": "assistant", "content": "```supercollider\n(\n{\n var freq, trig;\n var in = Dseq([1, 2, 3], inf);\n var rep = Dstutter(Diwhite(2, 8, inf), in);\n trig =...
[ { "role": "user", "content": "Write a self-contained SuperCollider patch that uses `Resonz`. Define every value it uses." }, { "role": "assistant", "content": "```supercollider\n(\nSynthDef(\"pitchFromNoise\", { arg out = 0;\n Out.ar(\n out,\n Resonz.ar(\n WhiteNoise.ar(15),\n L...
[ { "role": "user", "content": "What does `PHSuse.play` do?" }, { "role": "assistant", "content": "A PHSusePlayer object is instantiated and started using the TempoClock clock. Quant or SimpleNumber quant lets the player step into the quantization as soon as possible, with respect to the necessary...
[ { "role": "user", "content": "What does Lag do?" }, { "role": "assistant", "content": "`Lag.ar(in, lagTime)` and `Lag.kr(in, lagTime)` smooth a signal with an exponential lag towards its target, which removes the clicks and zipper noise a stepped control would produce. Lag.kr on a mouse or MIDI ...
[ { "role": "user", "content": "What does `View.remove` do?" }, { "role": "assistant", "content": "Removes the view from its parent view (if any) and destroys the view. After this method is called, the view is not usable" } ]
[ { "role": "user", "content": "I get 'Message not understood' on a nil variable." }, { "role": "assistant", "content": "`~buffer` (or any variable) was never assigned, or it was assigned in a different environment. Environment variables are per-environment: a `~buf` set in one server-side file bl...
[ { "role": "user", "content": "Write a minimal SuperCollider example that uses `SharedOut`." }, { "role": "assistant", "content": "```supercollider\n(\n// only works with the internal server\ns = Server.internal;\ns.boot;\n);\n\n(\nSynthDef(\"help-SharedOut\", {\n SharedOut.kr(0, SinOsc.kr(0.2))...
[ { "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 `Slider2D.pixelStepY` do?" }, { "role": "assistant", "content": "The absolute amount by which #-y would change if the handle moved vertically by one Returns: A Float." } ]
[ { "role": "user", "content": "Explain this code:\n```supercollider\n~buf = Buffer.read(s, \"C:/sounds/break.wav\");\nPlayBuf.ar(1, ~buf, BufRateScale.kr(~buf), loop: 1);\n```" }, { "role": "assistant", "content": "Loads a sound file into server memory, then plays it in a loop at the file's origi...
[ { "role": "user", "content": "Write a self-contained SuperCollider patch that uses `Ndef`. Define every value it uses." }, { "role": "assistant", "content": "```supercollider\nNdef(\\sound, { |freq = 56, numHarm = 10| Blip.ar(freq, numHarm, 30) * 0.2 }).play;\nNdef(\\sound).set(\\freq, 15);\nNde...
[ { "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": "Explain `RunningMin` in SuperCollider briefly." }, { "role": "assistant", "content": "RunningMin — Track minimum level. Outputs the minimum value received at the input. When a trigger occurs at the reset input, the minimum output value is reset to the current value....
[ { "role": "user", "content": "Write a self-contained SuperCollider patch that uses `Normalizer`. Define every value it uses." }, { "role": "assistant", "content": "```supercollider\n(\n// example signal to process\n{\n var z;\n z = Decay2.ar(\n Impulse.ar(8, LFSaw.kr(0.25, -0.6, 0.7)),\n ...
[ { "role": "user", "content": "Write a SuperCollider patch that uses `Ball` and actually plays. Assume nothing about the session." }, { "role": "assistant", "content": "```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...
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n//code that utilizes the glitch.\n//warning! extremely loud.\n//note: might not sound the same on all soundcards\n(\n{GlitchBPF.ar(\n    ClipNoise.ar(1.dup),\n    0.5,\n    SinO...
[ { "role": "user", "content": "Write a minimal SuperCollider example that uses `Dser`." }, { "role": "assistant", "content": "```supercollider\n(\n{\n var a, freq, trig;\n a = Dser([1, 3, 2, 7, 8], 8);\n trig = Impulse.kr(MouseX.kr(1, 40, 1));\n freq = Demand.kr(trig, 0, a) * 30 + 340;\n Sin...
[ { "role": "user", "content": "What does `Slider2D.shift_scale` do? What arguments does it take?" }, { "role": "assistant", "content": "The factor by which #-step is multiplied when incrementing or decrementing the values by keyboard while the Shift 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{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": "Write a minimal SuperCollider example that uses `PulseCount`." }, { "role": "assistant", "content": "```supercollider\nSynthDef(\"help-PulseCount\", { |out = 0|\n Out.ar(out,\n SinOsc.ar(\n PulseCount.ar(Impulse.ar(10), Impulse.ar(0.4)) * 200,\n 0, 0.0...
[ { "role": "user", "content": "Write an Ndef with a blip source and a 800 Hz low-pass. (ugens blip, cutoff 800, lfo 0.3, freq 165, 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 8...
[ { "role": "user", "content": "Explain `LFPar` in SuperCollider briefly." }, { "role": "assistant", "content": "LFPar — Parabolic oscillator A sine-like shape made of two parabolas and the integral of a triangular wave. It has audible odd harmonics and is non-band-limited. Output ranges from -1 t...
[ { "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 `StreamSpec.clipHi` do?" }, { "role": "assistant", "content": "datatype specifying that the input or output is stream or pattern" } ]
[ { "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": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ Streson.ar(LFSaw.ar([220, 180], 0, mul:EnvGen.kr(Env.asr(0.5, 1, 0.02), 1.0) * 0.2), LinExp.kr(LFCub.kr(0.1, 0.5*pi), -1, 1, 280, 377).reciprocal, 0.9, 0.3 }.play\n```" }, ...
[ { "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 `TwoPole` in SuperCollider?" }, { "role": "assistant", "content": "TwoPole — Two pole filter. A two pole filter. This provides lower level access to setting of pole location. For general purposes Resonz is better. Category: UGens > Filters > Linear." } ]
[ { "role": "user", "content": "What does this SuperCollider patch do?\n```supercollider\n// By Bjørn Houdorf March 2013, Play your (short) soundfiles with some delay.\n\nb = SoundFile.collectIntoBuffers(\"yourSoundFileFolder/*\"); // 1. rund this\n\n( // 2. and then run this\nt = Task({\n({\n var num=...
[ { "role": "user", "content": "Are you ChatGPT?" }, { "role": "assistant", "content": "No. I am sc-mind, a 198M SuperCollider model trained from scratch on the language's own source and documentation. I am not a general assistant and I do not have a general model behind me." } ]
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\na = Env.adsr;\na.levels;\na.range(42, 45).levels;\na.exprange(42, 45).levels;\na.curverange(42, 45, -4).levels;\n\n(\n// Mapping an Env to an exponential frequency range:\n{\n S...
[ { "role": "user", "content": "Explain `Bjorklund` in SuperCollider briefly." }, { "role": "assistant", "content": "Bjorklund — Euclidean Algorithm for generating traditional musical rhythms After an algorithm by E. Bjorklund. See paper by Godfried Toussaint. Category: Collections." } ]
[ { "role": "user", "content": "Explain `AudioPatchOut` in SuperCollider briefly." }, { "role": "assistant", "content": "AudioPatchOut — manages state and resources for a Player's output when connecting to other Players Category: Libraries > crucial > internals." } ]
[ { "role": "user", "content": "Write a self-contained SuperCollider patch that uses `Ringz`. Define every value it uses." }, { "role": "assistant", "content": "```supercollider\nx = { arg freq=1000; Ringz.ar(Crackle.ar(1.95, 0.1), freq, 0.05) }.play(s);\nx.set(\\freq, 1500);\nx.free;\n```" } ]
[ { "role": "user", "content": "Write a minimal SuperCollider example that uses `Limiter`." }, { "role": "assistant", "content": "```supercollider\n(\n// example signal to process\n{\n var z;\n z = Decay2.ar(\n Impulse.ar(8, LFSaw.kr(0.25, -0.6, 0.7)),\n 0.001, 0.3, FSinOsc.ar(500));\n z ...
[ { "role": "user", "content": "What does `PLbindef.clear` do?" }, { "role": "assistant", "content": "As with Pdef#-clear, but in addition remove name entry from" } ]
[ { "role": "user", "content": "What does `Event.synth` do?" }, { "role": "assistant", "content": "Makes the event a control interface to the resultant Synth when" } ]
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ Trig.ar(Dust.ar(1), 0.2) * FSinOsc.ar(800, 0.5) }.play\n\n{ Trig.ar(Dust.ar(4), 0.1 }.play\n```" }, { "role": "assistant", "content": "A closing bracket is missing:...
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\ns.boot\n{ SinOsc.ar([330, 440], 0, 0.4) }.play;\nStethoscope(s, 2;\n```" }, { "role": "assistant", "content": "A closing bracket is missing: the parenthesis opened ea...
[ { "role": "user", "content": "Write an Ndef with a sine source and a 800 Hz low-pass. (ugens sine, cutoff 800, lfo 0.8, freq 110, 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...
[ { "role": "user", "content": "Write a self-contained SuperCollider patch for Seekers are something you should avoid. Define every value it uses." }, { "role": "assistant", "content": "```supercollider\n(\n{\n var time = 0.23;\n var freq = (55).midicps;\n var a = VarSaw.ar(freq/2, width: XLine...
[ { "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": "Explain `BiPanB2` in SuperCollider briefly." }, { "role": "assistant", "content": "BiPanB2 — 2D Ambisonic B-format panner. Encode a two channel signal to two dimensional ambisonic B-format. This puts two channels at opposite poles of a 2D ambisonic field. This is on...
[ { "role": "user", "content": "Write a self-contained SuperCollider patch for Beam me up scotty. Define every value it uses." }, { "role": "assistant", "content": "```supercollider\n{\nvar time = 8;\nvar freq = (40-12).midicps;\nvar a = VarSaw.ar(freq/2, width: XLine.ar(0.5,1,time)).range(0,XLine...
[ { "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 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``...