conversations listlengths 2 6 |
|---|
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `SampleRate`."
},
{
"role": "assistant",
"content": "```supercollider\n// compares a 441 Hz sine tone derived from sample rate (44100 * 0.01, left)\n// with a 440 Hz tone (right), resulting in a 1 Hz beating\n(\n{\n v... |
[
{
"role": "user",
"content": "What is a SynthDef?"
},
{
"role": "assistant",
"content": "A SynthDef is a named, compiled server-side instrument: a UGen graph plus named controls. You build one with SynthDef(\\name, { |args| ... }).add, and then play instances with Synth(\\name)."
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `DecodeB2`."
},
{
"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 /... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Dreset`."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var a, freq;\n a = Dreset(Dseries(0, 2, inf), Drand([0, 0, 0, 1], inf));\n freq = Duty.kr(1/MouseX.kr(1, 40, 1), 0, a) * 30 + 340;\n SinOsc.... |
[
{
"role": "user",
"content": "Write a complete SuperCollider patch built around `Pwrap` that runs as it is."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\\help_sinegrain,\n { |out = 0, freq = 440, sustain = 0.05|\n var env;\n env = EnvGen.kr(Env.perc(0.01, sustain,... |
[
{
"role": "user",
"content": "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": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\n{\n var freq, trig;\n var in = Dseq([1, 2, 3], inf);\n var rep = Ddup(Diwhite(2, 8, inf), in);\n trig = Impulse.kr(MouseX.kr(1, 40, 1));\n freq = Demand.kr(trig, 0, rep).... |
[
{
"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": "What is `Object`?"
},
{
"role": "assistant",
"content": "Object — abstract superclass of all objects"
},
{
"role": "user",
"content": "What does `Object.readArchive` do?"
},
{
"role": "assistant",
"content": "Read in an object from a text arc... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `HPZ2`."
},
{
"role": "assistant",
"content": "```supercollider\n// Compare:\n\n{ WhiteNoise.ar(0.25) }.play;\n\n{ HPZ2.ar(WhiteNoise.ar(0.25)) }.play;\n\n// HPZ2 is useful to detect changes in a signal:\n// see also H... |
[
{
"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// as a frequency control\n{ SinOsc.ar(Lag.ar(LorenzL.ar(MouseX.kr(1, 200)), 3e-3)*800+900)*0.4 }.play(s;\n```"
},
{
"role": "assistant",
"content": "A closing bracke... |
[
{
"role": "user",
"content": "Explain `Environment` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "Environment — A dictionary which can serve as a 'name space' for functions An Environment is an IdentityDictionary with additional features that allow it to serve as a 'name space... |
[
{
"role": "user",
"content": "Write an FM bell in SuperCollider."
},
{
"role": "assistant",
"content": "PMOsc is phase modulation: a non-integer modulator ratio gives the inharmonic clang.\n\n```supercollider\n(\nSynthDef(\\fmBell, { |out = 0, freq = 440, amp = 0.2, dur = 4|\n var index = Env... |
[
{
"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, 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 th... |
[
{
"role": "user",
"content": "What is `Buffer`?"
},
{
"role": "assistant",
"content": "Buffer — Client-side representation of a buffer on a server"
},
{
"role": "user",
"content": "What does `Buffer.alloc` do?"
},
{
"role": "assistant",
"content": "Create and return a Buf... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `RunningMax`."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n SinOsc.ar(\n RunningMax.ar(Dust.ar(20), Impulse.ar(0.4)) * 500 + 200,\n 0, 0.2\n )\n\n}.play;\n);\n\n// follow a sine lfo, reset... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n// nOut allows for switching between iteration levels up to maximum n\n\n(\ny = {\n |nOut = 10|\n GFIS.ar({ |x| sin(LFDNoise1.ar(20).range(3, 3.5) * x) }, [0.2, 0.3], 10, nOut) * 0.1\n}.play\n);\n\n\ny.set(\\nOut, 9)\n\... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n// try wiggling mouse quickly;\n// LFNoise frequently seems stuck, LFDNoise changes smoothly.\n\n{ LFNoise0.ar(MouseX.kr(0.1, 1000, 1), 0.1) }.play\n\n{ LFDNoise0.ar(MouseX.kr(0.1, 1000, 1), 0.1) }.play\n\n// silent for 2... |
[
{
"role": "user",
"content": "How do I put a bell in a reverb at mix 0.3? (verb combn, room 0.7, damp 0.2, mix 0.3, source bell)"
},
{
"role": "assistant",
"content": "Put the reverb inside the `SynthDef` so it is part of the voice:\n\n```supercollider\n// reverb: combn on a bell\n(\nSynthDef(\\... |
[
{
"role": "user",
"content": "What is `SynthDef`?"
},
{
"role": "assistant",
"content": "SynthDef — Client-side representation of a synth definition"
},
{
"role": "user",
"content": "What does `SynthDef.new` do?"
},
{
"role": "assistant",
"content": "Create a SynthDef ins... |
[
{
"role": "user",
"content": "What does `IntegerEditor.value` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "a number box and slider for editing an Integer value Arguments: val; changer."
}
] |
[
{
"role": "user",
"content": "Show me a self-contained SuperCollider patch using `ProxySpace`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\n\np = ProxySpace.new;\np.fadeTime = 2; // fadeTime specifies crossfade\np[\\out].play; // monitor an em... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ Blip.ar(Latch.ar(WhiteNoise.ar, Impulse.ar(9)) * 400 + 500, 4, 0.2 }.play;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis... |
[
{
"role": "user",
"content": "What does `ScaleSpec.new` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "datatype expressing a scale array Arguments: prototype."
}
] |
[
{
"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": "What is the correct way to stop everything?"
},
{
"role": "assistant",
"content": "Depends on what is playing, and they are different layers:\n\n- `s.freeAll` — frees every node on the server (all sound stops, definitions survive).\n- `CmdPeriod.run` — stops everyth... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n// For most cases the symmetric symplectic procedures with prefix 'sym' should be used (default 'sym2').\n// They deliver best results with regard to long-term stability, see links at top.\n// In case you suspect instabil... |
[
{
"role": "user",
"content": "What does `ObjectGui.viewDidClose` do?"
},
{
"role": "assistant",
"content": "This is called when the parent view closes. It releases Returns: this"
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\n Patch.new(\n [ 'help', 'Sample' ], [ Sample.new(\"a11wlk01.wav\", 1.6347258775994),\n 0.46511627906977, 0.17441860465116 ]\n ).play\n```"
},
{
"role": "assi... |
[
{
"role": "user",
"content": "What is `Pbindef`?"
},
{
"role": "assistant",
"content": "Pbindef — incremental event pattern reference definition"
},
{
"role": "user",
"content": "What does `Pbindef.new` do?"
},
{
"role": "assistant",
"content": "store the pattern in the g... |
[
{
"role": "user",
"content": "What does `RedMRCM.new` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "multiple reduction copy machine Arguments: drawFunc — A Function that draws something.; matrices — An array of arrays defining affine transformations. The inner array sho... |
[
{
"role": "user",
"content": "What does `NdefGui.makeButFuncs` do?"
},
{
"role": "assistant",
"content": "not a class var, but the method that inits"
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// increase feedback\n{ FBSineL.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": "What is `LocalBuf`?"
},
{
"role": "assistant",
"content": "LocalBuf — Allocate a buffer local to the synth"
},
{
"role": "user",
"content": "What does `LocalBuf.newFrom` do?"
},
{
"role": "assistant",
"content": "Allocates a new buffer from a... |
[
{
"role": "user",
"content": "Write a kick whose tail uses freeverb. (verb freeverb, room 0.7, damp 0.5, 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 self-contained SuperCollider patch for Nuclear Fallout (a SuperCollider snippet). Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var saw, bpf;\n saw = Saw.ar(\n freq: [60,150],\n mul: LFPulse.kr(\n fr... |
[
{
"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": "Show another SuperCollider example using `Control`."
},
{
"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, 367]... |
[
{
"role": "user",
"content": "What does `Bus.setSynchronous` do?"
},
{
"role": "assistant",
"content": "A list of values for each channel of the control bus. The list of values supplied should not be greater than the number of channels. This command is"
}
] |
[
{
"role": "user",
"content": "What is `DelayL` in SuperCollider?"
},
{
"role": "assistant",
"content": "DelayL — Simple delay line with linear interpolation. Simple delay line with linear interpolation. See also Category: UGens > Delays."
}
] |
[
{
"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{ FBSineL.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 Pbind whose degrees repeat every Pseq cycle. (scale minorPentatonic, seq Pseq, dur 0.2, octave 5, 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": "Show another SuperCollider example using `LinCongN`."
},
{
"role": "assistant",
"content": "```supercollider\n// randomly modulate params\n(\n{ LinCongN.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... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `DC`."
},
{
"role": "assistant",
"content": "```supercollider\n// won't work (the output is 0.5*0.0), which is why we need the DC UGen!\n{ 0.5 }.play\n\n// constantly zero\n{ DC.ar(0.0) }.play;\n\n\n// DC offset; will ... |
[
{
"role": "user",
"content": "What is `ListTrig` in SuperCollider?"
},
{
"role": "assistant",
"content": "ListTrig — Emit a sequence of triggers at specified time offsets The data stored in the [Buffer] atbufnum should be a (single-channel) ordered list of time offsets in seconds. ListTrig will ... |
[
{
"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": "Write a minimal SuperCollider example that uses `ClipNoise`."
},
{
"role": "assistant",
"content": "```supercollider\n{ ClipNoise.ar(0.2) }.play;\n```"
}
] |
[
{
"role": "user",
"content": "What is `NamedControl`?"
},
{
"role": "assistant",
"content": "NamedControl — Named reference to a control"
},
{
"role": "user",
"content": "What does `NamedControl.ar` do?"
},
{
"role": "assistant",
"content": "add a new instance of AudioCon... |
[
{
"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": "How do I put a bell in a reverb at mix 0.45? (verb freeverb2, room 0.7, damp 0.2, mix 0.45, source bell)"
},
{
"role": "assistant",
"content": "A send-style patch: dry signal plus the reverb on the tail:\n\n```supercollider\n// reverb: freeverb2 on a bell\n(\nSynthD... |
[
{
"role": "user",
"content": "Write a complete SuperCollider patch built around `Pwrap` that runs as it is."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\\help_sinegrain,\n { |out = 0, freq = 440, sustain = 0.05|\n var env;\n env = EnvGen.kr(Env.perc(0.01, sustain,... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Balance2`."
},
{
"role": "assistant",
"content": "```supercollider\n// a stereo signal, both channels at 0dB\n{ [SinOsc.ar(440), SinOsc.ar(440)] }.play\n\n// using Balance on a stereo signal with the position paramete... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `SoundIn`."
},
{
"role": "assistant",
"content": "```supercollider\n// world's most expensive patchcord (use headphones to avoid feedback)\n{ SoundIn.ar(0) }.play;\n\n// stereo version\n{ SoundIn.ar([0, 1]) }.play;\n\n... |
[
{
"role": "user",
"content": "What does `EnvelopedPlayer.synthDefArgs` do?"
},
{
"role": "assistant",
"content": "takes a Player as input and plays it through an Env with fused protection"
}
] |
[
{
"role": "user",
"content": "Explain `LinSelectX` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "LinSelectX — Mix one output from many sources The output is mixed from an array of inputs, linearly interpolating from two adjacent channels. Category: UGens > Multichannel > Selec... |
[
{
"role": "user",
"content": "How do I make a kick that starts at 220 Hz and falls to 48 Hz?"
},
{
"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 sweep\n(\nSynthDef(\\kick_synth, { |out = 0... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `MultiplexAnalogIn`."
},
{
"role": "assistant",
"content": "```supercollider\n// modulate frequency of a sine oscillator\n\n(\nSynthDef(\"help-MultiplexAnalogIn\", { |out = 0|\n Out.ar(out,\n SinOsc.ar(MultiplexAna... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\na = { |x| #[440, 720, 801, 1020.2].at(x) }; b = a.cpsmidi; [a.value(3), b.value(3)];\na = Pseries(220, 220, inf).cpsmidi; a.asStream.nextN(12); // overtone series as midinotes\n/... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n(\n{\n\nvar in, fft, dissonance;\n\n//in = SinOsc.ar(MouseX.kr(100,1000),0,0.1);\n//in = Mix(SinOsc.ar([440,MouseX.kr(440,880)],0,0.1)); \nin= SoundIn.ar; \n\nfft = FFT(LocalBuf(2048), in);\n\ndissonance=SensoryDissonanc... |
[
{
"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 does `NodeWatcher.newFrom` do?"
},
{
"role": "assistant",
"content": "Create a new instance listening to the server's address. If there is one present already return that"
}
] |
[
{
"role": "user",
"content": "What is `AllpassN` in SuperCollider?"
},
{
"role": "assistant",
"content": "AllpassN — Schroeder allpass delay line with no interpolation. A Schroeder allpass filter is given by the difference equations Category: UGens > Delays."
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// Compare:\n\n{ WhiteNoise.ar(0.25) }.play;\n\n{ HPZ2.ar(WhiteNoise.ar(0.25)) }.play;\n\n// HPZ2 is useful to detect changes in a signal:\n// see also HPZ1\n(\n{\n var changing... |
[
{
"role": "user",
"content": "What does `ArrayedCollection.series` do?"
},
{
"role": "assistant",
"content": "Fill an ArrayedCollection with an arithmetic series. `Array.series(5, 10,"
}
] |
[
{
"role": "user",
"content": "Write a self-contained SuperCollider patch that uses `Dgeom`. Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\n// example\n\n(\n{\n var a, freq, trig;\n a = Dgeom(1, 1.2, 15);\n trig = Impulse.kr(MouseX.kr(1, 40, 1));\n freq =... |
[
{
"role": "user",
"content": "Explain `PLseq` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "PLseq — dynamic scope Pseq variant Takes Symbol args for later reference by the Streams, which will read from variables in the Environments of their instantiation. See PLx_suite. Catego... |
[
{
"role": "user",
"content": "Write a kick at amp 0.8 with no click. (osc sine, sweep 0.06, decay 0.18, f0 180, 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\n// use input amplitude to control Pulse amplitude - use headphones to prevent feedback.\n{ Pulse.ar(90, 0.3, Amplitude.kr(SoundIn.ar(0)) }.play;\n```"
},
{
"role": "assis... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ LFNoise2.ar(1000, 0.25) }.play;\n\n// modulate frequency\n\n{ LFNoise2.ar(XLine.kr(1000, 10000, 10), 0.25) }.play;\n\n// as frequency modulator\n(\n{ SinOsc.ar(\n LFNoise2.a... |
[
{
"role": "user",
"content": "Show 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 SuperCollider patch that uses `Event` and actually plays. Assume nothing about the session."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\\pm, { |out = 0, freq = 440, amp = 0.1, pan = 0, gate = 1, ratio = 1, index = 1, ar = 0.1, dr = ... |
[
{
"role": "user",
"content": "What does `UScore.addEventsToEmptyRegion` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "(describe method Arguments: events — (describe argument here). Returns: (returnvalue)"
}
] |
[
{
"role": "user",
"content": "What does `TempoClock.play` do?"
},
{
"role": "assistant",
"content": "Plays task (a function) at the next beat, where quant is 1 by default. Shortcut for #-schedAbs; see #-seconds and #-nextTimeOnGrid for further details on time and quant. `t ="
}
] |
[
{
"role": "user",
"content": "Show me a self-contained SuperCollider patch using `PV_BrickWall`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\n\n(\n{\n var in, chain;\n in = WhiteNoise.ar(0.2);\n chain = FFT(LocalBuf(2048), in);\n chain = P... |
[
{
"role": "user",
"content": "Write a self-contained SuperCollider patch that uses `PV_Mul`. Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\n\n(\nSynthDef(\"help-mul\", { |out = 0|\n var inA, chainA, inB, chainB, chain ;\n inA = SinOsc.ar(500, 0, 0... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `CuspL`."
},
{
"role": "assistant",
"content": "```supercollider\n// vary frequency\n{ CuspL.ar(MouseX.kr(20, SampleRate.ir), 1.0, 1.99) * 0.3 }.play(s);\n\n// mouse-controlled params\n{ CuspL.ar(SampleRate.ir/4, Mouse... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `DetectSilence`."
},
{
"role": "assistant",
"content": "```supercollider\n// this frees after the Decay has become quiet enough for a long enough time\n{ var signal = Decay.ar(Impulse.ar(0), 2, PinkNoise.ar(0.2)); Dete... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n(//*********PREPARE**********\np.pop;\n//Any code that needs to access your own environment goes here\np = ProxySpace.push(s);\n~fxLoop.play.fadeTime_(5);\n);\n\n(//*********FXLoop**********\n~fxLoop = {\n var in = Soun... |
[
{
"role": "user",
"content": "What does `StaticSpec.defaultControl` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "datatype specifying a non-modulatable float Arguments: val."
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\ns.bind {\n a = { |freq = 100| SinOsc.ar(freq, LFTri.ar(freq)) * 0.2 }.play;\n s.sync;\n a.set(\\freq, 400);\n}\n```"
},
{
"role": "assistant",
"content": "A clo... |
[
{
"role": "user",
"content": "Explain `RedSmooth2` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "RedSmooth2 — data filter with trend A simple class for filtering values. Double exponential smoothing. Category: Red > redTools."
}
] |
[
{
"role": "user",
"content": "Show another SuperCollider example using `Monitor`."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\ns.scope(16);\n\n{ Out.ar(87, SinOsc.ar(MouseX.kr(40, 10000, 1) * [1, 2, 3], 0, 0.2)) }.play;\nx = Monitor.new;\nx.play(87, 3, 1, 2);\nx.out = 0;\nx.... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\nb = NodeProxy.audio(s, 2);\nb.play; // listen to b\nb.source = { SinOsc.ar([400, 500], 0, 0.1) }; // play something\n\nr = b.record(\"recproxy101.aiff\"); // start recorder (paus... |
[
{
"role": "user",
"content": "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": "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\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": "What is the difference between .ar, .kr and .ir?"
},
{
"role": "assistant",
"content": "The rate method decides how often a UGen is evaluated. `.ar` runs at the audio rate, once per sample, and produces an audio signal. `.kr` runs at the control rate, once per block... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Env`."
},
{
"role": "assistant",
"content": "```supercollider\n// an envelope in a synth\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)... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\nSynthDef(\"help-PulseDivider\", { |out = 0|\n var p, a, b;\n p = Impulse.ar(8);\n a = SinOsc.ar(1200, 0, Decay2.ar(p, 0.005, 0.1));\n b = SinOsc.ar(600, 0, Decay2.ar(PulseDiv... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// an envelope in a synth\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}.play\n);\n// an enve... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Dbrown`."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var a, freq, trig;\n a = Dbrown(0, 15, 1, inf);\n trig = Impulse.kr(MouseX.kr(1, 40, 1));\n freq = Demand.kr(trig, 0, a) * 30 + 340;\n SinO... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\nSynthDef(\"help-LFNoise2\", { arg out=0;\n Out.ar(out,\n LFBrownNoise2.ar(1000, 1, MouseX.kr(0, 5), 0.25)\n )\n}).play;\n);\n\n//use as frequency control\n(\nSynthDef(\"h... |
[
{
"role": "user",
"content": "Explain this SuperCollider code.\n```supercollider\n// play SinOscs silently and wait for granulation envelopes\n\n(\na = Bus.audio(s, 10);\nx = { Splay.ar(In.ar(a, 10) * SinOsc.ar((3..12) * 100, 0, 0.05)) }.play\n);\n\n// send envelope to buses in parallel\n\n(\nz = {\n DXE... |
[
{
"role": "user",
"content": "Write a complete SuperCollider patch built around `Ringz` that runs as it is."
},
{
"role": "assistant",
"content": "```supercollider\na = NodeProxy(s);\na[0] = { |freq = 440, dt=0.1, rate=2| Ringz.ar(Impulse.ar(rate * [1, 1.2]), freq, dt)*0.1 };\na.play;\n(\na[1] =... |
[
{
"role": "user",
"content": "What does `Env.totalDuration` do?"
},
{
"role": "assistant",
"content": "Get the total duration of the envelope. In multi-channel envelopes, this is the duration of the longest"
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\ns.boot;\n(\nz = { // thru\nBAllPass.ar(\n SoundIn.ar([0, 1]),\n MouseX.kr(10, 18000, \\exponential),\n 0.8, // rq\n 0.5); // mul\n}.play)\nz.release;\n\n(\nz = { // like a ba... |
[
{
"role": "user",
"content": "Write a kick at amp 0.8 with a click. (osc sine, sweep 0.06, decay 0.25, f0 180, f1 40, 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 s pitch ... |
[
{
"role": "user",
"content": "Explain `SimpleKDRUnitGui` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "SimpleKDRUnitGui — gui class Category: Libraries > crucial > GuiClasses."
}
] |
[
{
"role": "user",
"content": "Write a kick drum with a 0.5 s decay. (osc saw, sweep 0.06, decay 0.5, f0 220, f1 55, amp 0.6, rev 1)"
},
{
"role": "assistant",
"content": "A kick is a sine with a fast pitch drop and a short amplitude envelope:\n\n```supercollider\n// kick drum: saw oscillator, 0.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.