conversations listlengths 2 6 |
|---|
[
{
"role": "user",
"content": "Can you run this code and tell me if it works?"
},
{
"role": "assistant",
"content": "No — I cannot execute SuperCollider. What I can tell you is what would break and why: bracket balance, arguments that must exist for the class, a SynthDef that never reaches Out, a... |
[
{
"role": "user",
"content": "What is `UGen`?"
},
{
"role": "assistant",
"content": "UGen — Abstract superclass of all unit generators"
},
{
"role": "user",
"content": "What does `UGen.multiNew` do?"
},
{
"role": "assistant",
"content": "These methods are responsible for ... |
[
{
"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": "Write a minimal SuperCollider example that uses `DelayC`."
},
{
"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": "Write a SuperCollider patch that uses `NodeProxy` and actually plays. Assume nothing about the session."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\n\na = NodeProxy.new.play; // play to hardware output.\na.fadeTime = 2; // fadeTime specifies cro... |
[
{
"role": "user",
"content": "What is Env.perc and what does it take?"
},
{
"role": "assistant",
"content": "`Env.perc(attackTime, releaseTime, level, curve)` — an attack to `level` (default 1) then a decay to zero, with curve defaulting to -4 (an exponential-ish decay). `Env.perc(0.01, 1)` is t... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Unpack1FFT`."
},
{
"role": "assistant",
"content": "```supercollider\n// Let's extract the DC component - i.e. the magnitude at binindex zero.\n(\n{\n var sig, chain, stream, windowStarts, demand;\n var fftsize = 10... |
[
{
"role": "user",
"content": "What does `PrintVal.ar` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "debug assistance Arguments: in — input to sample (.kr rate); numblocks — print the value after this number of control periods (44100/64 is about 689 per second); id — giv... |
[
{
"role": "user",
"content": "Write a SuperCollider patch that uses `WhiteNoise` and actually plays. Assume nothing about the session."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var in, chain;\n in = WhiteNoise.ar(0.8);\n chain = FFT(LocalBuf(2048), in); // encode to freq... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `RunningSum`."
},
{
"role": "assistant",
"content": "```supercollider\n// RMS Power\n(\n{\n var input, numsamp;\n\n input = LFSaw.ar;\n numsamp = 30;\n\n (RunningSum.ar(input.squared, numsamp) / numsamp).sqrt\n}.p... |
[
{
"role": "user",
"content": "What happens when I call .play on a function?"
},
{
"role": "assistant",
"content": "`.play` on a Function builds a SynthDef from the function body, adds it to the server under an anonymous name, and starts one Synth of it. You get back the Synth, so `x = { SinOsc.a... |
[
{
"role": "user",
"content": "How do I build a live drone with Ndef at 165 Hz? (ugens blip, cutoff 2400, lfo 0.8, freq 165, 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: blip source throug... |
[
{
"role": "user",
"content": "What is `Updater` in SuperCollider?"
},
{
"role": "assistant",
"content": "Updater — simple MVC utility; calls an update handler when the model changes A simple utility object that adds itself as a dependant on a model and calls the handler whenever the model is cha... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `WhiteNoise`."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\"help-WhiteNoise\", { |out = 0|\n Out.ar(out,\n WhiteNoise.ar(0.25)\n )\n}).play;\n)\n```"
}
] |
[
{
"role": "user",
"content": "What does `U.gui` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "(describe method Arguments: parent — (describe argument here); bounds — (describe argument here). Returns: (returnvalue)"
}
] |
[
{
"role": "user",
"content": "Write a chord progression with Pbind."
},
{
"role": "assistant",
"content": "Put an array of degrees in the pattern, use \\strum to spread the chord, and the default instrument\nplays all notes of each event.\n\n```supercollider\n(\nPbind(\n \\scale, Scale.minor,... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `LatoocarfianC`."
},
{
"role": "assistant",
"content": "```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,... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Lag2`."
},
{
"role": "assistant",
"content": "```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 mod... |
[
{
"role": "user",
"content": "Write a granular texture, through a reverb. (rate 28, dur 0.1, 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 {\n ... |
[
{
"role": "user",
"content": "Give me a complete SuperCollider patch for Will nobody switch the damn thing off?: bind everything it needs before it is used."
},
{
"role": "assistant",
"content": "```supercollider\n(\n\n{\nvar dseq, trig;\n\ndseq = Dseq([SinOsc.ar(45).range(-5, 12), SinOsc.ar(Sin... |
[
{
"role": "user",
"content": "Write a SuperCollider patch that uses `Paddp` and actually plays. Assume nothing about the session."
},
{
"role": "assistant",
"content": "```supercollider\n// sound example\n(\nSynthDef(\\sinegrain,\n { |out = 0, freq = 440, sustain = 0.02|\n var env;\n env ... |
[
{
"role": "user",
"content": "How do I build a live drone with Ndef at 55 Hz? (ugens blip, cutoff 1400, lfo 0.8, freq 55, 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 1400 ... |
[
{
"role": "user",
"content": "Explain `Delay2` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "Delay2 — Two sample delay. Delays the input by two samples. Category: UGens > Delays."
}
] |
[
{
"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 = PLbrown(\\lo, \\hi, \\step);\n\n\n// prepare current Environment\n// PLseq repeats ar... |
[
{
"role": "user",
"content": "Write a granular texture in SuperCollider."
},
{
"role": "assistant",
"content": "Read a sound file into a buffer, then trigger grains from it. Grain density is the Impulse rate and\ngrain length is dur; keep the density times the length under maxGrains or raise it.... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `TExpRand`."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var trig = Dust.kr(10);\n SinOsc.ar(\n TExpRand.kr(300.0, 3000.0, trig)\n ) * 0.1\n}.play;\n);\n\n(\n{\n var trig = Dust.ar(MouseX.... |
[
{
"role": "user",
"content": "Are you a general assistant?"
},
{
"role": "assistant",
"content": "No. I am sc-mind, a 198M model trained on SuperCollider. Ask me about SynthDefs, UGens, Patterns, Ndef, sclang and scsynth; outside that I have little to offer."
}
] |
[
{
"role": "user",
"content": "Show another SuperCollider example using `List`."
},
{
"role": "assistant",
"content": "```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 ... |
[
{
"role": "user",
"content": "Show me a self-contained SuperCollider patch using `Buffer`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```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.... |
[
{
"role": "user",
"content": "Write a warm pad in SuperCollider."
},
{
"role": "assistant",
"content": "Detuned saws through a slow filter envelope and a long release: the detune is what makes it wide.\n\n```supercollider\n(\nSynthDef(\\pad, { |out = 0, freq = 220, amp = 0.15, gate = 1|\n var... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n(\nq = Patch({ Saw.ar(40.midicps) * 0.05 });\nr = Patch({ Saw.ar(52.midicps) * 0.05 });\np = PlayerSocket.new(\\audio,1);\np.play;\n);\n// then get the socked to alternately spawn q and r\np.prepareAndQSpawn(q,0.1);\np.pr... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `MouseX`."
},
{
"role": "assistant",
"content": "```supercollider\n{ SinOsc.ar(MouseX.kr(40, 10000, 1), 0, 0.1) }.play;\n{ SinOsc.ar(MouseX.kr(500, 10000, 1).poll, 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(\n{\n var w, x, y, p, q, a, b, c, d;\n\n p = LFSaw.ar(200);\n q = LFSaw.ar(301);\n\n // B-format encode\n #w, x, y = BiPanB2.ar(p, q, MouseX.kr(-1, 1), 0.1);\n\n // B-form... |
[
{
"role": "user",
"content": "Write an Ndef at 55 Hz I can retune while it plays. (ugens blip, cutoff 2400, lfo 0.3, freq 55, 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 ... |
[
{
"role": "user",
"content": "Write a Pbind whose degrees repeat every Prand cycle. (scale minorPentatonic, seq Prand, dur 0.4, octave 6, 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": "What does `ScalarPatchOut.control` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "\\scalar rate PatchOut Arguments: controlPatchIn; needsValueSetNow."
}
] |
[
{
"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": "Explain `WeaklyNonlinear` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "WeaklyNonlinear — Weakly Nonlinear Oscillator Naive Euler ODE solver implementation of the Weakly Nonlinear Oscillator with external perturbation (see Strogatz, Steven H. (199... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```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 = { SinOsc.ar(440, 0, 0.1, 0.05) }.play(s);\nx.trace; // You should see a \"Mu... |
[
{
"role": "user",
"content": "Write a kick drum with a 0.12 s decay. (osc sine, sweep 0.06, decay 0.12, f0 150, f1 48, amp 0.6, rev 1)"
},
{
"role": "assistant",
"content": "The pitch envelope is what makes it read as a drum, not the oscillator:\n\n```supercollider\n// kick drum: sine oscillator... |
[
{
"role": "user",
"content": "What is `RedALF` in SuperCollider?"
},
{
"role": "assistant",
"content": "RedALF — ascii to list-of-floats conversion Based on two old Max/MSP externals by Cycling'74 that came with the Pluggo installer. Category: Red > redTools."
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `TChoose`."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var a;\n a = [\n SinOsc.ar,\n Saw.ar,\n Pulse.ar\n ];\n TChoose.ar(Dust.ar(MouseX.kr(1, 1000, 1)), a) * 0.2\n\n}.play;\n)\... |
[
{
"role": "user",
"content": "Explain `FoaDirectX` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "FoaDirectX — First Order Ambisonic (FOA) directivity transformer Adjust the soundfield directivity of a First Order Ambisonic signal (B-format) along the x-axis. Category: Librarie... |
[
{
"role": "user",
"content": "Write a self-contained SuperCollider patch that uses `LeastChange`. Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\n(\nd = { |amp = 1.0|\n var in1, in2;\n in1 = LFNoise0.ar(800, amp);\n in2 = SinOsc.ar(800);\n LeastChange.ar(... |
[
{
"role": "user",
"content": "What does `SimpleNumber.ellint1` do?"
},
{
"role": "assistant",
"content": "Returns the incomplete elliptic integral of the first kind, Legendre form. Requires `-1 <= k <="
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ RLPFD.ar(Mix(LFSaw.ar([120, 180], 0, 0.33)), LinExp.kr(LFCub.kr(0.1, 0.5*pi), -1, 1, 280, 1500), 0.6, 0.5, mul:3.dup }.play\n```"
},
{
"role": "assistant",
"content... |
[
{
"role": "user",
"content": "What is SuperCollider?"
},
{
"role": "assistant",
"content": "SuperCollider is a platform for audio synthesis and algorithmic composition, written in C++ and SuperCollider. It splits into a language client (sclang) that runs your code and builds UGen graphs, and an ... |
[
{
"role": "user",
"content": "Write a SuperCollider patch for Digital Bird sounds that runs as it is, with nothing assumed about the session."
},
{
"role": "assistant",
"content": "```supercollider\n(\nNdef(\\birdy, {arg freq=1500, amp=0.5, rate=10;\n var osc, son, convIn, rand;\n osc=LFCub;\n... |
[
{
"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": "Explain this SuperCollider code.\n```supercollider\n// Here we start with initOutOffset = 0.5, fadeMode = 1 (step first),\n// channels with indices 0 and 4 (base tone and 5th partial) are equally weighted.\n\n(\nx = {\n var lfo = XLine.ar(1, 0.5, 60);\n DXMix.ar(\n Dseq([0... |
[
{
"role": "user",
"content": "I get 'syntax error, unexpected NAME' on a block that looks fine."
},
{
"role": "assistant",
"content": "Almost always a missing semicolon between two statements — SuperCollider does not insert them.\n\n```supercollider\n// broken: two statements, no separator\n{ va... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `LinExp`."
},
{
"role": "assistant",
"content": "```supercollider\n// compare:\n(\n{\n var mod = SinOsc.kr(Line.kr(1, 10, 10));\n SinOsc.ar(mod * 400 + 500) * 0.1\n}.play;\n);\n\n(\n{\n var mod = SinOsc.kr(Line.kr(1... |
[
{
"role": "user",
"content": "Give me a Pbind with sine voices and a 0.3 rhythm. (scale minorPentatonic, seq Pseq, dur 0.3, octave 6, instr sine, root 0)"
},
{
"role": "assistant",
"content": "The pattern is the composition here; `\\strum` spreads the chord:\n\n```supercollider\n(\nSynthDef(\\si... |
[
{
"role": "user",
"content": "Write a granular texture, dry. (rate 10, dur 0.15, interp 2, mode noise1, rev 0)"
},
{
"role": "assistant",
"content": "Granulation is `GrainBuf` plus a trigger rate; the position can move:\n\n```supercollider\n// granular synth with GrainBuf\n(\ns.waitForBoot {\n ... |
[
{
"role": "user",
"content": "What does `NamedControl.ar` do?"
},
{
"role": "assistant",
"content": "add a new instance of AudioControl with given name and default values. If lags are given, apply a Lag UGen to"
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `BiPanB2`."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var w, x, y, p, q, a, b, c, d;\n\n p = LFSaw.ar(200);\n q = LFSaw.ar(301);\n\n // B-format encode\n #w, x, y = BiPanB2.ar(p, q, MouseX.kr(... |
[
{
"role": "user",
"content": "Do you know other programming languages?"
},
{
"role": "assistant",
"content": "Only as far as SuperCollider needs them. I am sc-mind, a 198M model trained on SuperCollider; I can read its sclang syntax and explain it, and that is the limit of what I was trained to ... |
[
{
"role": "user",
"content": "What does `RedGrain.new` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Create granulator (stereo only for Arguments: server — If `nil` then the default server will be used.."
}
] |
[
{
"role": "user",
"content": "What is `Pchain` in SuperCollider?"
},
{
"role": "assistant",
"content": "Pchain — pass values from stream to stream Category: Streams-Patterns-Events > Patterns > Composition."
}
] |
[
{
"role": "user",
"content": "Explain `EaseOutQuint` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "EaseOutQuint — Quintic ease-out Easing equation for a quintic (t^5) ease-out, decelerating to zero velocity. Category: Ease."
}
] |
[
{
"role": "user",
"content": "Write a kick drum with a 0.18 s decay. (osc sine, sweep 0.06, decay 0.18, f0 150, f1 55, amp 0.6, rev 0)"
},
{
"role": "assistant",
"content": "A kick is a sine with a fast pitch drop and a short amplitude envelope:\n\n```supercollider\n// kick drum: sine oscillator... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `BrownNoise`."
},
{
"role": "assistant",
"content": "```supercollider\n{ BrownNoise.ar(0.1) }.play;\n{ WhiteNoise.ar(0.1) }.play;\n```"
}
] |
[
{
"role": "user",
"content": "Explain `EaseInOutElastic` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "EaseInOutElastic — Elastic ease-in/out Easing equation for an elastic (exponentially decaying sine wave) ease-in/out, accelerating until halfway, then decelerating. The a par... |
[
{
"role": "user",
"content": "Explain `Pulse` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "Pulse — Band limited pulse wave. Band limited pulse wave generator with pulse width modulation. Category: UGens > Generators > Deterministic."
}
] |
[
{
"role": "user",
"content": "What is `CompositeInstr` in SuperCollider?"
},
{
"role": "assistant",
"content": "CompositeInstr — two Instr combined together with function composition Two Instr chained one into the next. Category: Libraries > crucial > Instr."
}
] |
[
{
"role": "user",
"content": "Add freeverb to a kick patch at room 0.85. (verb freeverb, room 0.85, damp 0.5, mix 0.3, source kick)"
},
{
"role": "assistant",
"content": "`FreeVerb` is in the core library; the room and damp arguments do the work:\n\n```supercollider\n// reverb: freeverb on a kic... |
[
{
"role": "user",
"content": "What does `Tempo.beats2secs` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "for control of tempo and for use in tempo based calculations Arguments: beats."
}
] |
[
{
"role": "user",
"content": "Saving \"Presets\"?"
},
{
"role": "assistant",
"content": "SuperCollider forum — Saving \"Presets\"?\n\nIf you don’t care too much about it being human readable, just use writeArchive and readArchive:\n\n```supercollider\na = Array.fill(400, {rrand(0,2200)});\n\na.w... |
[
{
"role": "user",
"content": "What is `KeyCodeResponder` in SuperCollider?"
},
{
"role": "assistant",
"content": "KeyCodeResponder — register responder functions for keycode and modifier combinations Handles multiple registrations for keycode and modifier combinations. This object should be used... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{Decimator.ar(SinOsc.ar([400, 404], 0, 0.2), MouseX.kr(0, 44100), MouseY.kr(0, 31))}.play\n\n{Decimator.ar(SoundIn.ar, MouseX.kr(0, 44100), MouseY.kr(0, 31)}.play\n```"
},
{
... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// note different syntax in these two examples\n{ if(LFNoise1.kr(1.0, 0.5, 0.5), SinOsc.ar, Saw.ar) * 0.1 }.play;\n\n{ Trig1.ar(Dust.ar(3), 0.2).lag(0.1).if(FSinOsc.ar(440), FSin... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\ns.boot;\n(\nx = {\nvar son = SinOsc.ar(mul: SinOsc.ar(0.3).range(0,1) * Line.ar(0, 1, 20, doneAction: 2));\nTextVU.ar(2, son, \"Sin\");\n}.play;\n```"
},
{
"role": "assis... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `LinCongN`."
},
{
"role": "assistant",
"content": "```supercollider\n// default initial params\n{ LinCongN.ar(MouseX.kr(20, SampleRate.ir)) * 0.2 }.play(s);\n```"
}
] |
[
{
"role": "user",
"content": "Show me a self-contained SuperCollider patch using `PulseCount`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\nSynthDef(\"help-PulseCount\", { |out = 0|\n Out.ar(out,\n SinOsc.ar(\n PulseCount.ar(Impulse.ar(10), Im... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ Blip.ar(Blip.kr(4, 5, 500, 60), 59, 0.1 }.play;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis opened earlier is never cl... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{var n= 1024; WaveletDaub.ar(SoundIn.ar, n, MouseX.kr(0,n))}.play\n\n{var n= 1024; WaveletDaub.ar(Saw.ar(MouseY.kr(50,10000, 'exponential'),0.5), n, MouseX.kr(0,n)}.play\n```"
... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// as a frequency control\n{ SinOsc.ar(StandardN.ar(40, MouseX.kr(0.9, 4))*800+900)*0.4 }.play(s;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is mis... |
[
{
"role": "user",
"content": "Explain `NestedAllpassN` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "NestedAllpassN — Nested Allpass filters as proposed by Vercoe and Pluckett Useful for reverberation, especially implementing Gardner reverbs. Category: UGens > Delays."
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ SinOsc.ar(SinOsc.ar(0.3).exprange(440, 6600), 0, 0.5 * 0.1 }.play;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis opened ... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\ns.boot;\n(\nz = {\n BHiPass.ar(\n SoundIn.ar([0, 1]),\n MouseX.kr(10, 20000, \\exponential), // cutoff freq.\n MouseY.kr(0.0, 1.0, \\linear), // rq\n 0.5); // mul\n}... |
[
{
"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": "Write a self-contained SuperCollider patch that uses `InFeedback`. Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\"help-InFeedback\", { |out = 0, in = 0|\n var input, sound;\n input = InFeedback.ar(in, 1);\n ... |
[
{
"role": "user",
"content": "Explain this SuperCollider patch.\n```supercollider\n/// Installing sc3-plugins quarks\n\n// If you installed the sc3-plugins to a user location:\n~sc3plugs = Quarks(\nreposPath: \"https://sc3-plugins.svn.sourceforge.net/svnroot/sc3-plugins/build\",\nlocalPath: Platform.userApp... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `TIRand`."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\"help-TIRand\", {\n var trig, outBus;\n trig = Dust.kr(10);\n outBus = TIRand.kr(0, 1, trig); // play on random channel between 0 and 1... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `Scale`."
},
{
"role": "assistant",
"content": "```supercollider\n(\nr = {\n var scale = Scale.choose.postln;\n SinOsc.ar(\n (\n DegreeToKey.kr(\n scale.as(LocalBuf),\n MouseX.kr(0, 15), // mouse index... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ BPF.ar(BrownNoise.ar(0.1.dup), MouseX.kr(40, 17000, 1), 0.2 }.play;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis opened... |
[
{
"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": "How do I build a live drone with Ndef at 165 Hz? (ugens sine, cutoff 800, lfo 0.3, freq 165, 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: sine source through... |
[
{
"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 does this SuperCollider patch do?\n```supercollider\ns.boot;\n\n(\nSynthDef(\"lazerdrone\", {\n var in, freq, hasFreq;\n\n \n in = SinOsc.ar(440 * LFSaw.kr(100, 1000));\n\n # freq, hasFreq = Pitch.kr(\n in,\n ampThreshold: 0.09,\n median: 1);... |
[
{
"role": "user",
"content": "What does `Platform.killAll` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "kill all processes as defined by Arguments: cmdLineArgs — a string containing one or several process names.; force — if true (default), the process will be closed fo... |
[
{
"role": "user",
"content": "Explain `EnvGate` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "EnvGate — singleton fade envelope Convenience class for an envelope generator combining fadeTime and gate arguments. Category: JITLib > NodeProxy."
}
] |
[
{
"role": "user",
"content": "Explain this SuperCollider code.\n```supercollider\n// syntax can be more condensed with EventShortcuts, turn it on, post defaults\n\nEventShortcuts.on\n\nEventShortcuts.postCurrent\n\n\n(\nPLbindef(\\u,\n \\i, \\saw_grain,\n \\d, 0.2,\n \\m, Pwhite(60, 90)\n)\n);\n\n~u.play... |
[
{
"role": "user",
"content": "What does `Pdef.clock` do?"
},
{
"role": "assistant",
"content": "get or set the instance's default clock, used by #-play if no other clock is specified. Defaults to"
}
] |
[
{
"role": "user",
"content": "Write a SuperCollider patch that uses `SpecFlatness` and actually plays. Assume nothing about the session."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\n\n(\n{ // Example - vary mixture of white noise and pure tone with the mouse\n var in, chain... |
[
{
"role": "user",
"content": "Give me an Ndef with an LFO at 0.8 Hz. (ugens tri, cutoff 2400, lfo 0.8, freq 220, amp 0.12)"
},
{
"role": "assistant",
"content": "`Ndef` holds the synth and the environment, so you can edit it live:\n\n```supercollider\n// Ndef drone: tri source through a 2400 Hz ... |
[
{
"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": "Write a Pbind in majorPentatonic using Pshuf for the degrees. (scale majorPentatonic, seq Pshuf, dur 0.25, octave 6, 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```su... |
[
{
"role": "user",
"content": "Explain this SuperCollider code.\n```supercollider\n// syntax can be more condensed with EventShortcuts, turn it on, post defaults\n\nEventShortcuts.on\n\nEventShortcuts.postCurrent\n\n\n(\nPLbindef(\\u,\n \\i, \\saw_grain,\n \\d, 0.2,\n \\m, Pwhite(60, 90)\n)\n);\n\n~u.play... |
[
{
"role": "user",
"content": "What is `ProxySynthDef`?"
},
{
"role": "assistant",
"content": "ProxySynthDef — synth def that wraps ugen graph"
},
{
"role": "user",
"content": "What does `ProxySynthDef.sampleAccurate` do?"
},
{
"role": "assistant",
"content": "always use O... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.