conversations
listlengths
2
6
[ { "role": "user", "content": "Write a minimal SuperCollider example that uses `InFeedback`." }, { "role": "assistant", "content": "```supercollider\n(\nSynthDef(\"help-InFeedback\", { |out = 0, in = 0|\n var input, sound;\n input = InFeedback.ar(in, 1);\n sound = SinOsc.ar(input * 1300 + ...
[ { "role": "user", "content": "What does this SuperCollider code do?\n```supercollider\n// The finishing of a ZeroXBufRd is not detemined by finite demand rate ugens but by an overall envelope, \n// its release section is triggered by a maximum number of half wavesets ('length') or a maximum time. \n\n// Buf...
[ { "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": "What does `RedWorld.objects` do?" }, { "role": "assistant", "content": "An Array of all objects currently in this" } ]
[ { "role": "user", "content": "How do I play a random minorPentatonic scale at octave 4? (scale minorPentatonic, seq Pshuf, dur 0.2, octave 4, instr pluck, root 0)" }, { "role": "assistant", "content": "`Pbind` sequences an Event per beat, and `\\degree` + `\\scale` does the pitch:\n\n```supercol...
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n//Should really only do this in NRT, but does work if low load in RT \n(\na = {\n \n~featuresave = FeatureSave.kr(SinOsc.kr,Impulse.kr(10)-0.5); \n \n}.play \n);\n\ns.send...
[ { "role": "user", "content": "Write a minimal SuperCollider example that uses `SortedList`." }, { "role": "assistant", "content": "```supercollider\nt = SortedList.new(8, {|a,b| a.first < b.first });\nt.add([10, \"last\"]);\nt.add([1, \"first\"]);\nt.postln;\n```" } ]
[ { "role": "user", "content": "Show me a self-contained SuperCollider patch using `AbstractFunction`: bind everything it needs first." }, { "role": "assistant", "content": "```supercollider\na = { |x, root = 60| x + root }; b = a.midicps; [a.value(9), b.value(9)];\na = Pseries(60, 1, inf).midicps...
[ { "role": "user", "content": "Give me a granular patch with noise grain position and interp 4. (rate 10, dur 0.07, interp 4, mode noise, rev 0)" }, { "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": "What does this SuperCollider patch do?\n```supercollider\n// A beautiful sc140 tweet by Batuhan Bozkurt, parametrized for real-time changes\n(\n// Start sound here\na = { | rateL = 5, rateR = 6, blipMul = 100, blipAdd = 50, fMul = 50, kMul = 1 |\n f = LocalIn.ar(2).tanh;\n k ...
[ { "role": "user", "content": "What is the node tree and what is a Group for?" }, { "role": "assistant", "content": "Everything running on the server is a node: Synths and Groups, arranged in a tree under the root group. Order matters, because audio flows through buses from earlier to later nodes...
[ { "role": "user", "content": "Write a minimal SuperCollider example that uses `BufRateScale`." }, { "role": "assistant", "content": "```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}....
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// linlin\n(\n{\n var mod = LFNoise2.ar(80);\n SinOsc.ar(mod.linlin(-1, 1, MouseX.kr(200, 8000, 1), MouseY.kr(200, 8000, 1))) * 0.1\n}.play;\n);\n\n// range\n(\n{\n var mod = ...
[ { "role": "user", "content": "What does `TempoClock.bars2beats` do?" }, { "role": "assistant", "content": "Returns a beat relative to #-baseBar. `t =" } ]
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ Integrator.ar(LFPulse.ar(300, 0.2, 0.1), MouseX.kr(0.001, 0.999, 1)) }.play\n\n// used as an envelope\n{ Integrator.ar(LFPulse.ar(3, 0.2, 0.0004), 0.999, FSinOsc.ar(700), 0) }....
[ { "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": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n//try passing a signal through the hair cell\nx = { Meddis.ar(SinOsc.ar(440)) }.play;\nx.free;\n\n//recursive hair cell compression\n{ Meddis.ar(Meddis.ar(SoundIn.ar) }.play;\n``...
[ { "role": "user", "content": "Explain `USession` in SuperCollider briefly." }, { "role": "assistant", "content": "USession — (put short description here) (put long description here) Category: UnitLib." } ]
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\nNdef(\\maus, { MouseX.kr });\nNdef(\\haus, { Blip.ar(Ndef.kr(\\maus) * 70) }).play;\nNdef(\\haus).reshaping = \\elastic;\nNdef(\\maus).reshaping = \\elastic;\nNdef(\\maus, { LFNo...
[ { "role": "user", "content": "Write an Ndef with a sine source and a 2400 Hz low-pass." }, { "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 a 2400 Hz low-pass\n(\nNdef(\\nd_sine_220_240...
[ { "role": "user", "content": "What does this SuperCollider patch do?\n```supercollider\n{Mix({|i|var j=Impulse,t=TChoose.kr(j.kr(1/8),[1,6,3]/8),r=Ringz.ar(j.ar(i*t+0.25),600*t*i+[0,9]);CombC.ar(r,1,0.5,4,0.1,r)}!4).tanh/4}.play\n```" }, { "role": "assistant", "content": "Hi colliders, this is m...
[ { "role": "user", "content": "Write a Pbind whose degrees repeat every Pseq cycle. (scale majorPentatonic, seq Pseq, dur 0.25, octave 6, instr sine, root 0)" }, { "role": "assistant", "content": "The pattern is the composition here; `\\strum` spreads the chord:\n\n```supercollider\n(\nSynthDef(\...
[ { "role": "user", "content": "Write a kick at amp 0.6 with no click. (osc fm, sweep 0.06, decay 0.25, f0 220, 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: fm oscillator, 0....
[ { "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": "What does this SuperCollider code do?\n```supercollider\ns.boot;\n(\n{\n// Move the mouse. This varies from sinewave (left) to almost-square (right)\nvar sig = (SinOsc.ar(MouseY.kr(100, 1000, 1)) * MouseX.kr(1,10)).clip2(1);\nvar val = Crest.kr(sig, 440).poll;\n(sig * 0.1).dup\...
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ ClipNoise.ar(0.2 }.play;\n```" }, { "role": "assistant", "content": "A closing bracket is missing: the parenthesis opened earlier is never closed, so the expression...
[ { "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": "What does this SuperCollider code do?\n```supercollider\ns.boot;\n\nb = Buffer.alloc(s, 100);\nb.zero;\nb.set(33, 1.034);\n// This should detect the 33rd value as the highest...\nx = {BufMax.kr(b).poll}.play;\n\n// ...until we set a new winner...\nb.set(74, 1.038);\n```" }, ...
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// Add two NodeProxies\nNdef(\\x, { SinOsc.ar(440, 0, 0.2) });\nNdef(\\y, { PinkNoise.ar(0.1) });\nNdef(\\z, Ndef(\\x) + Ndef(\\y).play;\n```" }, { "role": "assistant", ...
[ { "role": "user", "content": "How do I build a live drone with Ndef at 110 Hz? (ugens tri, cutoff 200, lfo 0.3, freq 110, amp 0.12)" }, { "role": "assistant", "content": "Use `Ndef` when the patch has to change without stopping:\n\n```supercollider\n// Ndef drone: tri source through a 200 Hz low...
[ { "role": "user", "content": "What is `EaseInElastic` in SuperCollider?" }, { "role": "assistant", "content": "EaseInElastic — Elastic ease-in Easing equation for an elastic (exponentially decaying sine wave) ease-in, accelerating from zero velocity. The a parameter is amplitude and p is period....
[ { "role": "user", "content": "Explain this code:\n```supercollider\nNdef(\\x, { Saw.ar(110) * 0.1 }).play;\nNdef(\\x)[1] = \\filter -> { |in| RLPF.ar(in, 800, 0.4) };\n```" }, { "role": "assistant", "content": "Two nodes in one named proxy: a saw source, then a resonant low-pass filter fed by it...
[ { "role": "user", "content": "What is `Gbman2DC` in SuperCollider?" }, { "role": "assistant", "content": "Gbman2DC — gingerbreadman map 2D chaotic generator `x(n+1) = 1 - y(n) + |x(n)|` Category: UGens > Generators > Stochastic." } ]
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ Out.ar(87, SinOsc.ar(MouseX.kr(340, 1000, 1) * [1, 2, 3], 0, 0.2)) }.play;\nx = Monitor.new.play(87, 3, 0, fadeTime: 3;\nx.stop;\nx.play;\n```" }, { "role": "assistant"...
[ { "role": "user", "content": "Show another SuperCollider example using `Symbol`." }, { "role": "assistant", "content": "```supercollider\na = { Ringz.ar(T2A.ar(\\trig.tr), \\freq.kr(500, 1), 0.8) }.play;\na.set(\\freq, 330, \\trig, 1);\na.set(\\freq, 830, \\trig, 1);\na.release;\n```" } ]
[ { "role": "user", "content": "Write a granular texture, dry. (rate 20, dur 0.07, 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 {\n var buf =...
[ { "role": "user", "content": "Write a minimal SuperCollider example that uses `PanB2`." }, { "role": "assistant", "content": "```supercollider\n(\n{\n var w, x, y, p, a, b, c, d;\n\n p = PinkNoise.ar; // source\n\n // B-format encode\n #w, x, y = PanB2.ar(p, MouseX.kr(-1, 1), 0.1);\n\n // B...
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\na = NodeProxy(s);\na.play;\na.source = { Pulse.ar(130, Saw.kr(0.3) * 0.1 }; // change this line while running\n```" }, { "role": "assistant", "content": "A closing br...
[ { "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 is `RedMandelbrot` in SuperCollider?" }, { "role": "assistant", "content": "RedMandelbrot — mandelbrot fractal Plotting a fractal with Image. Category: Red > redUniverse > additional." } ]
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// mouse-controlled param\n{ StandardL.ar(SampleRate.ir/2, MouseX.kr(0.9, 4)) * 0.3 }.play(s;\n```" }, { "role": "assistant", "content": "A closing bracket is missing...
[ { "role": "user", "content": "Write a self-contained SuperCollider patch that uses `DecodeB2`. Define every value it uses." }, { "role": "assistant", "content": "```supercollider\n(\n{\n var w, x, y, p, a, b, c, d;\n\n p = PinkNoise.ar; // source\n\n // B-format encode\n #w, x, y = PanB2.ar(...
[ { "role": "user", "content": "Write a kick at amp 0.8 with no click. (osc fm, sweep 0.06, decay 0.25, f0 150, 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: fm oscillator, 0.06 s pitch swe...
[ { "role": "user", "content": "What does `Sheet.new` do? What arguments does it take?" }, { "role": "assistant", "content": "utility to create a single auto-resized window Arguments: buildDialog; name; bounds." } ]
[ { "role": "user", "content": "Write a minimal SuperCollider example that uses `Vibrato`." }, { "role": "assistant", "content": "```supercollider\n// vibrato at 1 Hz, note the use of DC.ar UGen; a constant of 400.0 doesn't work\n{ SinOsc.ar(Vibrato.ar(DC.ar(400.0), 1, 0.02)) }.play\n\n// compare:...
[ { "role": "user", "content": "Explain `Vibrato` in SuperCollider briefly." }, { "role": "assistant", "content": "Vibrato — The Vibrato oscillator models a slow frequency modulation. Vibrato is a slow frequency modulation. Consider the systematic deviation in pitch of a singer around a fundamenta...
[ { "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": "Give me a granular patch with noise grain position and interp 4. (rate 6, dur 0.04, interp 4, 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": "What does `MxUnit.freeToBundle` do? What arguments does it take?" }, { "role": "assistant", "content": "Container for a musical object (Instr, NDef, Spline etc); this is a single unit that has inlets and outlets which can be connected to other units Arguments: bundl...
[ { "role": "user", "content": "What does this SuperCollider patch do?\n```supercollider\n(\n// Simple amplitude tracker sending values to sclang\nSynthDef(\\ampTracker, { |in|\n var freq = 30; // num of values per second\n SendReply.kr(Impulse.kr(freq), '/amp', Amplitude.kr(SoundIn.ar(in)));\n}).add;\n);\n...
[ { "role": "user", "content": "Explain this SuperCollider patch.\n```supercollider\n// for the members of the cult of q\n// who don't want to ~tilde\n\n\n//-- INIT\nq = q ? ();\n\nq.local = currentEnvironment;\n\nq.local.pattern = Pbind(\\note, Pbrown(0, { 17.rand + 1 } ! 12), \\dur, 0.05, \\amp, 0.01);\n\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, 100);\nb.zero;\nb.set(33, 1.034);\n// This should detect the 33rd value as the highest...\nx = {BufMax.kr(b).poll}.play;\n\n// ...until we set a ne...
[ { "role": "user", "content": "How do I make a kick that starts at 220 Hz and falls to 55 Hz? (osc saw, sweep 0.06, decay 0.5, f0 220, f1 55, amp 0.8, rev 1)" }, { "role": "assistant", "content": "Start with a swept sine, then shorten the decay to taste:\n\n```supercollider\n// kick drum: saw osc...
[ { "role": "user", "content": "How do I play a random minorPentatonic scale at octave 6? (scale minorPentatonic, seq Pwalk, 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```superc...
[ { "role": "user", "content": "What is `Archive` in SuperCollider?" }, { "role": "assistant", "content": "Archive — storing objects to file Archives can write any object to disk and read from file again. Complex structures of objects can thus be restored. Writing an object to file as a compile st...
[ { "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": "How do I granulate a sample with 0.1 s grains? (rate 20, dur 0.1, interp 4, mode noise, rev 1)" }, { "role": "assistant", "content": "`GrainBuf` needs a buffer, a trigger and a grain duration:\n\n```supercollider\n// granular synth with GrainBuf\n(\ns.waitForBoot {\...
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\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": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// increase phase multiplier\n{ FBSineC.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 is `BinaryOpUGen`?" }, { "role": "assistant", "content": "BinaryOpUGen — Apply a binary operation to the values of an input UGen" }, { "role": "user", "content": "What does `BinaryOpUGen.new` do?" }, { "role": "assistant", "content": "re...
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```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 var freq;\n freq = [SampleRate....
[ { "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": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// default initial params\n{ FBSineN.ar(SampleRate.ir/4) * 0.2 }.play(s;\n```" }, { "role": "assistant", "content": "A closing bracket is missing: the parenthesis ope...
[ { "role": "user", "content": "Write a minimal SuperCollider example that uses `LPZ1`." }, { "role": "assistant", "content": "```supercollider\n// Compare:\n\n{ WhiteNoise.ar(0.25) }.play;\n\n{ LPZ1.ar(WhiteNoise.ar(0.25)) }.play;\n```" } ]
[ { "role": "user", "content": "Give me a granular patch with sweep grain position and interp 2. (rate 14, dur 0.15, interp 2, mode sweep, rev 0)" }, { "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": "Write an Ndef with a sine source and a 200 Hz low-pass. (ugens sine, cutoff 200, lfo 0.1, freq 55, amp 0.12)" }, { "role": "assistant", "content": "Use `Ndef` when the patch has to change without stopping:\n\n```supercollider\n// Ndef drone: sine source through a 20...
[ { "role": "user", "content": "What does `Pconst.new` do?" }, { "role": "assistant", "content": "Embeds elements of the pattern into the stream until the sum comes close enough to sum. At that point, the difference between the specified sum and the actual running sum is" } ]
[ { "role": "user", "content": "Write a self-contained SuperCollider patch that uses `DigitalIn`. Define every value it uses." }, { "role": "assistant", "content": "```supercollider\n// turn on and off a sine oscillator\n\n(\nSynthDef(\"help-DigitalIn\", { |out = 0|\n Out.ar(out,\n SinOsc.ar(5...
[ { "role": "user", "content": "Write a minimal SuperCollider example that uses `SortedList`." }, { "role": "assistant", "content": "```supercollider\nt = SortedList.new(8, {|a,b| a.first < b.first });\nt.add([10, \"last\"]);\nt.add([1, \"first\"]);\nt.postln;\n```" } ]
[ { "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": "Give me a sine kick with a 0.06 s pitch sweep. (osc sine, sweep 0.06, decay 0.25, f0 180, f1 55, amp 0.8, rev 1)" }, { "role": "assistant", "content": "Start with a swept sine, then shorten the decay to taste:\n\n```supercollider\n// kick drum: sine oscillator, 0.06...
[ { "role": "user", "content": "What is the node tree and what is a Group for?" }, { "role": "assistant", "content": "Everything running on the server is a node: Synths and Groups, arranged in a tree under the root group. Order matters, because audio flows through buses from earlier to later nodes...
[ { "role": "user", "content": "Give me an Ndef with an LFO at 0.1 Hz. (ugens tri, cutoff 3200, lfo 0.1, freq 110, amp 0.12)" }, { "role": "assistant", "content": "Use `Ndef` when the patch has to change without stopping:\n\n```supercollider\n// Ndef drone: tri source through a 3200 Hz low-pass\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 `Diwhite`." }, { "role": "assistant", "content": "```supercollider\n(\n{\n var a, freq, trig;\n a = Diwhite(0, 15, inf);\n trig = Impulse.kr(MouseX.kr(1, 40, 1));\n freq = Demand.kr(trig, 0, a) * 30 + 340;\n SinOs...
[ { "role": "user", "content": "Write a kick whose tail uses freeverb. (verb freeverb, room 0.7, damp 0.2, mix 0.45, 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 kick\n(...
[ { "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 this SuperCollider patch do?\n```supercollider\n‎{h={|f|1-LFTri.ar(f)};l={|s,e|Line.ar(s,e,1200,1,0,2)};FreeVerb.ar(h.(l.(147,5147))*h.(l.(1117,17))*h.(100)*h.([55,55.1])*0.05,0.7,1)}.play\n\n//Explanation of this piece - http://schemawound.com/post/40100438722/11-13-...
[ { "role": "user", "content": "What does `AbstractPlayerProxy.synthArg` do?" }, { "role": "assistant", "content": "base class for players that act as proxies for another player" } ]
[ { "role": "user", "content": "What does `Knob.ctrl_scale` do? What arguments does it take?" }, { "role": "assistant", "content": "The factor by which #-step or #-keystep is multiplied when used at mouse or keyboard interaction while the Ctrl key is Arguments: A Float.." } ]
[ { "role": "user", "content": "What is `EventShortcuts` in SuperCollider?" }, { "role": "assistant", "content": "EventShortcuts — holds default and user-defined dictionaries of shortcuts for events and event patterns Container for dictionaries of shortcuts for the event framework, which can be de...
[ { "role": "user", "content": "What does `SGliss.release` do? What arguments does it take?" }, { "role": "assistant", "content": "fade out the sound and free all internal nodes and Arguments: releaseTime — fade out time in seconds.." } ]
[ { "role": "user", "content": "Show another SuperCollider example using `QuadC`." }, { "role": "assistant", "content": "```supercollider\n// logistic map\n// equation: x1 = -r*x0^2 + r*x0\n(\n{ var r;\n r = MouseX.kr(3.5441, 4); // stable range\n QuadC.ar(SampleRate.ir/4, r.neg, r, 0, 0.1) * 0...
[ { "role": "user", "content": "Write a kick at amp 0.6 with no click. (osc saw, sweep 0.06, decay 0.18, f0 220, f1 48, 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 pitch s...
[ { "role": "user", "content": "What is `Coyote` in SuperCollider?" }, { "role": "assistant", "content": "Coyote — an amplitude tracking based onset detector Coyote is an onset detector which tries to find onset attacks in a signal without using FFT processing. It tracks the amplitude changes in t...
[ { "role": "user", "content": "What does `EventShortcuts.current` do?" }, { "role": "assistant", "content": "Returns the Symbol of the current shortcut" } ]
[ { "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": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\ns.boot;\nz = Bus.control(s, 16);\nz.setn({ |i| (i * 5).nthPrime } ! 16 * 5 + 100);\na = BusPlug.for(z);\n{ Splay.ar(SinOsc.ar(a.kr(3, MouseX.kr(0, 25))) * 0.1 }.play; // selectiv...
[ { "role": "user", "content": "Write a minimal SuperCollider example that uses `BHiPass`." }, { "role": "assistant", "content": "```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)...
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// increase feedback\n{ FBSineN.ar(SampleRate.ir, 1, Line.kr(0.01, 4, 10), 1, 0.1) * 0.2 }.play(s;\n```" }, { "role": "assistant", "content": "A closing bracket is mi...
[ { "role": "user", "content": "Write a minimal SuperCollider example that uses `Blip`." }, { "role": "assistant", "content": "```supercollider\n// modulate frequency\n{ Blip.ar(XLine.kr(20000, 200, 6), 100, 0.2) }.play;\n\n// modulate numharmonics\n{ Blip.ar(200, Line.kr(1, 100, 20), 0.2) }.play;...
[ { "role": "user", "content": "What is `BHiPass` in SuperCollider?" }, { "role": "assistant", "content": "BHiPass — 12db/oct rolloff - 2nd order resonant Hi Pass Filter The B equalization suite is based on the Second Order Section (SOS) biquad UGen. Category: UGens > Filters > BEQSuite." } ]
[ { "role": "user", "content": "Write an Ndef with a saw source and a 2400 Hz low-pass. (ugens saw, cutoff 2400, lfo 0.3, 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: saw source through ...
[ { "role": "user", "content": "What does `Boolean.&&` do?" }, { "role": "assistant", "content": "abstract class whose instances represent a logical value Returns: true if the receiver is true and aBoolean is true." } ]
[ { "role": "user", "content": "Show another SuperCollider example using `NodeProxy`." }, { "role": "assistant", "content": "```supercollider\nb = NodeProxy.new.play;\nb.source = { PinkNoise.ar(0.2.dup) };\n// now I want to filter b through a new proxy.\na = NodeProxy.new;\na <-- b; a.source = { H...
[ { "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": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\na = {LFTri.ar(100+(1000*Maths.ar(MouseX.kr, MouseY.kr, SinOsc.ar(0.2, 0).range(0,1), 1-MouseButton.kr(lag:0.001))[0]), 0, 0.1}.play\n```" }, { "role": "assistant", "c...
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\na = {LFTri.ar(50+(1000*Maths.ar(10, 10, 0.5, 1)[0]), 0, 0.1)}.play //notice how I am taking the [0]th channel of the Maths and ignoring the [1st channel.\n```" }, { "role...
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\nd = SynthDef(\"help-NodeControl\", { |out = 0, freq = 400|\n Out.ar(out,\n SinOsc.ar(freq, 0, 0.5)\n )\n});\ny = d.play; // the synth\n\nc = NodeControl(y, 1;\n\nc.value = ...
[ { "role": "user", "content": "What does `MultiLevelIdentityDictionary.removeEmptyAt` do?" }, { "role": "assistant", "content": "Remove the item located by the path. This might make the item's parent dictionary empty. In that case, it will remove the parent and continue up the chain, removing emp...