conversations listlengths 2 6 |
|---|
[
{
"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": "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 `IFFT`."
},
{
"role": "assistant",
"content": "```supercollider\n// without any modification, convert FFT chain (frequency domain signal) back to audio (time domain signal)\n(\n{ var in, chain;\n in = WhiteNoise.a... |
[
{
"role": "user",
"content": "Show me a self-contained SuperCollider patch using `BufRd`: bind everything it needs first."
},
{
"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) * ra... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// randomly modulate params\n(\n{ 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)\n) * 0.2 }.play(s);\... |
[
{
"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": "Write a SuperCollider patch that uses `Dibrown` and actually plays. Assume nothing about the session."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var a, freq, trig;\n a = Dibrown(0, 15, 1, inf);\n trig = Impulse.kr(MouseX.kr(1, 40, 1));\n fre... |
[
{
"role": "user",
"content": "Give me a granular patch with noise1 grain position and interp 4. (rate 6, dur 0.15, interp 4, 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\... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Harmonics`."
},
{
"role": "assistant",
"content": "```supercollider\na.ramp(1.0, 1.0); // returns a harmonic series\n\nb = Buffer.alloc(s, 512, 1);\n// harmonic series for freqs, ramp down for amps\nb.sine2(a.ramp(1.... |
[
{
"role": "user",
"content": "Write a bell in SuperCollider."
},
{
"role": "assistant",
"content": "A bell is a set of inharmonic partials with a long percussive decay. The ratios below are the\nclassic bell ones; the envelope frees the Synth when it ends.\n\n```supercollider\n(\nSynthDef(\\bell... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\n Instr(\\helpTempoPlayer,{\n Impulse.ar( Tempo.kr )\n });\n\n Patch(\\helpTempoPlayer).play(atTime:1)\n```"
},
{
"role": "assistant",
"content": "A closing b... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `QuadN`."
},
{
"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 QuadN.ar(SampleRate.ir/4, r.neg, r, 0, 0.1) * 0... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n(\nSynthDef(\\bird,{\n var sig, freqenv, env, trig;\n trig = Dust.ar(2);\n env = EnvGen.ar(Env.perc(0.01,0.4,0.8,-8), trig, doneAction: 2);\n freqenv = EnvGen.ar(Env([Rand(1000,3000), Rand(3000,6000), Rand(1000,2000)... |
[
{
"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": "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(240, 1000, 1) * [1, 2, 3], 0, 0.2)) }.play; // play three sine tone on channels 87, 88, and 89\nx = Monitor.new; // create a new monitor\nx.play(... |
[
{
"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": "What can you help with?"
},
{
"role": "assistant",
"content": "SuperCollider. I can write a SynthDef or a Pbind, explain a class or a UGen, read a patch back, and diagnose one that fails to compile. That is the whole of my training."
}
] |
[
{
"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 `View.dragLabel` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Sets or gets the text displayed by the mouse pointer during the drag&drop operation. It is expected to be set while handling the beginning of the operation, i.e. in #-... |
[
{
"role": "user",
"content": "What is `MIDIIn` in SuperCollider?"
},
{
"role": "assistant",
"content": "MIDIIn — receive MIDI messages This document explains technical details of the MIDI hardware interface class, MIDIIn. Category: External Control > MIDI."
}
] |
[
{
"role": "user",
"content": "What is `PLatoocarfianN` in SuperCollider?"
},
{
"role": "assistant",
"content": "PLatoocarfianN — UGenPatterns quark library Latoocarfian. Category: Streams-Patterns-Events > UGenPatterns > Generators."
}
] |
[
{
"role": "user",
"content": "What is `DXMix` in SuperCollider?"
},
{
"role": "assistant",
"content": "DXMix — crossfades between signals according to demand-rate control DXMix crossfades between signals according to a sequence of indices, which, together with fadeTimes and stepTimes, can be pas... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Ddup`."
},
{
"role": "assistant",
"content": "```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 =... |
[
{
"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": "Explain `AbstractPlayerGui` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "AbstractPlayerGui — base class for all Player guis This is the parent class for all gui classes of AbstractPlayer subclasses. Category: Libraries > crucial > GuiClasses, Lib... |
[
{
"role": "user",
"content": "What does `Char.isPrint` do?"
},
{
"role": "assistant",
"content": "ASCII character Returns: whether the char is printable."
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `FBSineL`."
},
{
"role": "assistant",
"content": "```supercollider\n// default initial params\n{ FBSineL.ar(SampleRate.ir/4) * 0.2 }.play(s);\n```"
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```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": "assistant... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\nVowel(); // defaults to A bass\nVowel(\\a, \\bass); \nVowel(\\e, \\tenor); \nVowel(\\i, \\counterTenor); \nVowel(\\o, \\alto); \nVowel(\\u, \\soprano); \n\n{Formants.ar(100, Vowe... |
[
{
"role": "user",
"content": "Add freeverb to a kick patch at room 0.7. (verb freeverb, room 0.7, damp 0.5, mix 0.3, source kick)"
},
{
"role": "assistant",
"content": "Put the reverb inside the `SynthDef` so it is part of the voice:\n\n```supercollider\n// reverb: freeverb on a kick\n(\nSynthDe... |
[
{
"role": "user",
"content": "What does `SynthDesc.outputs` do?"
},
{
"role": "assistant",
"content": "Description of a synth definition Returns: an array of IODesc that describes the available outputs."
}
] |
[
{
"role": "user",
"content": "What is `BLowPass` in SuperCollider?"
},
{
"role": "assistant",
"content": "BLowPass — 12db/oct rolloff - 2nd order resonant Low Pass Filter The B equalization suite is based on the Second Order Section (SOS) biquad UGen. Category: UGens > Filters > BEQSuite."
}
] |
[
{
"role": "user",
"content": "Show me a self-contained SuperCollider patch using `CoinGate`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\n(\na = SynthDef(\"help-TCoin\", { |out = 0, prob = 0.5|\n var trig;\n trig = CoinGate.kr(prob, Impulse.kr(10));\... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// vary frequency\n{ StandardL.ar(MouseX.kr(20, SampleRate.ir)) * 0.3 }.play(s;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthe... |
[
{
"role": "user",
"content": "Give me an Ndef with an LFO at 0.1 Hz. (ugens saw, cutoff 3200, lfo 0.1, freq 55, 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: saw source through a 3200 Hz l... |
[
{
"role": "user",
"content": "What does `Coyote.kr` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "an amplitude tracking based onset detector Arguments: in — Signal input.; trackFall — 60dB convergence time for the initial amplitude tracker.; slowLag — Lag time for the s... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `Pmulp`."
},
{
"role": "assistant",
"content": "```supercollider\n// sound example\n(\nSynthDef(\\sinegrain,\n { |out = 0, freq = 440, sustain = 0.02|\n var env;\n env = EnvGen.kr(Env.perc(0.001, sustain), 1, doneActio... |
[
{
"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": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```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];\na.release;\n```"
... |
[
{
"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": "What does this SuperCollider patch do?\n```supercollider\n(\nf = ();\nf.beatAndBar = {\n var t = currentEnvironment.clock; // t= TempoClock.new;\n var text = \"xB: \";\n\n var nBeatsPerBar = { arg n, beats, clock;\n var nBpb = clock.beatsPerBar * n;\n \"\" ++ n ++ te... |
[
{
"role": "user",
"content": "How do I put a pluck in a reverb at mix 0.45? (verb gverb, room 0.85, damp 0.2, mix 0.45, source pluck)"
},
{
"role": "assistant",
"content": "Put the reverb inside the `SynthDef` so it is part of the voice:\n\n```supercollider\n// reverb: gverb on a pluck\n(\nSynth... |
[
{
"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": "Show me a self-contained SuperCollider patch using `Pulse`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\nSynthDef(\\harpsi, { |outbus = 0, freq = 440, amp = 0.1, gate = 1|\n var out;\n out = EnvGen.ar(Env.adsr, gate, don... |
[
{
"role": "user",
"content": "What does `SoundFileView.gridOffset` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Sets the grid Arguments: Grid blocks are offset by this value (in seconds).."
}
] |
[
{
"role": "user",
"content": "Write a kick at amp 0.6 with a click. (osc fm, sweep 0.06, decay 0.25, f0 220, f1 40, amp 0.6, rev 1)"
},
{
"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 swee... |
[
{
"role": "user",
"content": "What does `Function.valueEnvir` do?"
},
{
"role": "assistant",
"content": "As value above. Unsupplied argument names are looked up in the current Environment."
}
] |
[
{
"role": "user",
"content": "Write a kick at amp 0.6 with no click. (osc fm, sweep 0.06, decay 0.5, f0 180, f1 40, 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.0... |
[
{
"role": "user",
"content": "What does `List.permute` do?"
},
{
"role": "assistant",
"content": "Returns a new List whose elements are the nthPermutation of the elements of the receiver. The receiver is unchanged."
}
] |
[
{
"role": "user",
"content": "Write a self-contained SuperCollider patch for reverbio (a SuperCollider snippet). Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\"reverb\", {arg freq=440, release=0.1;\n var in, s1,out, mod1, depth, mfreq;\n s1 =... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `Duty`."
},
{
"role": "assistant",
"content": "```supercollider\n(\n {\n var freq;\n freq = Duty.kr(\n Dseq([0.2, 0.3, 0.4, Dseq([1, 1, 1, 2, 1, 2], inf)]) / 2,\n Dust.kr(1), // control rate reset\n ... |
[
{
"role": "user",
"content": "What is `BBCut2` in SuperCollider?"
},
{
"role": "assistant",
"content": "BBCut2 — splices and reassembles audio This help file is for the BBCut2 class. For an overview of the BBCut2 library, see BBCut . Category: Libraries > BBCut > Core."
}
] |
[
{
"role": "user",
"content": "Write a Pbind in minorPentatonic using Pwalk for the degrees."
},
{
"role": "assistant",
"content": "Put the scale and the degree pattern in the `Pbind` and it will pick notes for you:\n\n```supercollider\n(\nSynthDef(\\sine_pad, { |out = 0, freq = 440, amp = 0.2|\n... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `GbmanN`."
},
{
"role": "assistant",
"content": "```supercollider\n// default initial params\n{ GbmanN.ar(MouseX.kr(20, SampleRate.ir)) * 0.1 }.play(s);\n\n// change initial params\n{ GbmanN.ar(MouseX.kr(20, SampleRate... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ LFPulse.ar(XLine.kr(1, 200, 10), 0, 0.2, 0.1 }.play;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis opened earlier is nev... |
[
{
"role": "user",
"content": "What does `AbstractPlayer.annotate` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "the base class for all Players : a playable object Arguments: thing; note."
}
] |
[
{
"role": "user",
"content": "Explain `LPCAnalyzer` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "LPCAnalyzer — Live Linear Predictive Coding Analysis and Resynthesis Linear predictive coding analysis on any arbitrary input signal. The spectrum of the input signal is modeled, ... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ BrownNoise.ar(0.1) }.play;\n{ WhiteNoise.ar(0.1 }.play;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis opened earlier is ... |
[
{
"role": "user",
"content": "How do I play a random majorPentatonic scale at octave 4? (scale majorPentatonic, seq Pshuf, dur 0.25, octave 4, instr sine, root 0)"
},
{
"role": "assistant",
"content": "The pattern is the composition here; `\\strum` spreads the chord:\n\n```supercollider\n(\nSynt... |
[
{
"role": "user",
"content": "Write a self-contained SuperCollider patch that uses `ControlSpec`. Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\n// ControlSpec-map can also be used to map ugens\n(\nvar spec;\nspec = [100, 18000, \\exp].asSpec;\n{\n var freq... |
[
{
"role": "user",
"content": "Write a kick drum with a 0.25 s decay. (osc fm, sweep 0.06, decay 0.25, f0 180, f1 48, amp 0.8, 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: fm oscillator, 0.... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n// crossfading a mono source between two outs\n\n(\nx = {\n DXFan.ar(\n Dseq([0, 1], inf),\n PinkNoise.ar(0.05),\n fadeTime: 1\n )\n}.play\n);\n\nx.release\n\n\n// Crossfading a stereo source between two outs,\... |
[
{
"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": "Write a granular texture, through a reverb. (rate 14, dur 0.07, interp 2, mode noise1, rev 1)"
},
{
"role": "assistant",
"content": "Granulation is `GrainBuf` plus a trigger rate; the position can move:\n\n```supercollider\n// granular synth with GrainBuf\n(\ns.wait... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `LinSelectX`."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var a;\n a = [\n SinOsc.ar,\n Saw.ar(300),\n Pulse.ar(230)\n ];\n\n LinSelectX.ar(MouseX.kr(0, 1) * a.size, a) * 0.2\n}... |
[
{
"role": "user",
"content": "Write a complete SuperCollider patch built around `ReplaceOut` that runs as it is."
},
{
"role": "assistant",
"content": "```supercollider\n(\n// define a control\nSynthDef(\"line\", { arg i_bus=10, i_start=1000, i_end=500, i_time=1;\n ReplaceOut.kr(i_bus, Line.kr(... |
[
{
"role": "user",
"content": "Explain this code:\n```supercollider\nx = { |freq = 440, amp = 0.2| SinOsc.ar(freq) * amp }.play;\nx.set(\\freq, 660);\n```"
},
{
"role": "assistant",
"content": "Starts an anonymous synth with two controls, then changes one of them while it plays.\n\nThe `|freq = 4... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\na = {LFTri.ar(100+(1000*Maths2.ar(MouseX.kr, MouseY.kr, SinOsc.ar(0.2, 0).range(0,1), 1-MouseButton.kr(lag:0.001))[0]), 0, 0.1}.play\n```"
},
{
"role": "assistant",
"... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Monitor`."
},
{
"role": "assistant",
"content": "```supercollider\n{ Out.ar(87, SinOsc.ar(MouseX.kr(240, 1000, 1) * [1, 2, 3], 0, 0.2)) }.play; // play three sine tone on channels 87, 88, and 89\nx = Monitor.new; // c... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `AbstractFunction`."
},
{
"role": "assistant",
"content": "```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); // o... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `Paddp`."
},
{
"role": "assistant",
"content": "```supercollider\n// sound example\n(\nSynthDef(\\sinegrain,\n { |out = 0, freq = 440, sustain = 0.02|\n var env;\n env = EnvGen.kr(Env.perc(0.001, sustain), 1, doneActio... |
[
{
"role": "user",
"content": "What is `IODesc` in SuperCollider?"
},
{
"role": "assistant",
"content": "IODesc — Description of SynthDesc input or output IODesc describes an input or output of a SynthDesc, as returned by SynthDesc#-outputs and SynthDesc#-inputs Category: Server > Nodes."
}
] |
[
{
"role": "user",
"content": "What is `Dwhite` in SuperCollider?"
},
{
"role": "assistant",
"content": "Dwhite — Demand rate white noise random generator. Dwhite returns numbers in the continuous range between `lo` and `hi` . Category: UGens > Demand."
}
] |
[
{
"role": "user",
"content": "What does `Env.delay` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Returns a new Env based on the receiver in which the start value will be held for delay number of Arguments: delay — The amount of time to delay the start of the envelope..... |
[
{
"role": "user",
"content": "What does `LorenzTrig.ar` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "lorenz chaotic trigger generator Arguments: minfreq — minimum frequency in Hertz; maxfreq — maximum frequency in Hertz; s, r, b — equation variables; h — integration ti... |
[
{
"role": "user",
"content": "Write a Pbind whose degrees repeat every Pseq cycle. (scale minorPentatonic, 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 minimal SuperCollider example that uses `IFFT`."
},
{
"role": "assistant",
"content": "```supercollider\n// without any modification, convert FFT chain (frequency domain signal) back to audio (time domain signal)\n(\n{ var in, chain;\n in = WhiteNoise.a... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// as frequency control...\n(\n{\nSinOsc.ar(\n LinCongC.ar(\n 40,\n LFNoise2.kr(0.1, 0.1, 1),\n LFNoise2.kr(0.1, 0.1, 0.1),\n LFNoise2.kr(0.1),\n 0, 500, 600\n )... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ SinOsc.ar(BrownNoise.ar(100, 200) * 0.1 }.play;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis opened earlier is never cl... |
[
{
"role": "user",
"content": "Write a kick at amp 0.8 with no click. (osc fm, sweep 0.06, decay 0.5, f0 150, f1 40, amp 0.8, rev 0)"
},
{
"role": "assistant",
"content": "The pitch envelope is what makes it read as a drum, not the oscillator:\n\n```supercollider\n// kick drum: fm oscillator, 0.0... |
[
{
"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).range(440, 660), 0, 0.5 * 0.1 }.play;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis opened earl... |
[
{
"role": "user",
"content": "How do I build a live drone with Ndef at 110 Hz? (ugens blip, cutoff 3200, 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: blip source through a 3200 Hz... |
[
{
"role": "user",
"content": "Explain `PulseCount` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "PulseCount — Pulse counter. Each trigger increments a counter which is output as a signal. Category: UGens > Triggers."
}
] |
[
{
"role": "user",
"content": "What does `FrameCompare.kr` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "calculates spectral MSE distance of two fft chains Arguments: buffer1 — FFT chain1; buffer2 — FFT chain2; wAmount — Influence of the weight matrix (should be between ... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\nSynthDef(\\pluck, {|freq = 440, dur = 1|\nvar klang,note;\ndur = dur * 2;\nnote = freq.cpsmidi;\nnote = note + (LFNoise2.ar(20).range(-1,1) * (1/8));\nklang = SinOsc.ar((note * [1,1.002]).midicps, phase: VarSaw.ar(note.m... |
[
{
"role": "user",
"content": "Explain `VOsc3` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "VOsc3 — Three variable wavetable oscillators. A wavetable lookup oscillator which can be swept smoothly across wavetables. Fractional values of table will interpolate between two adjace... |
[
{
"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": "Write an Ndef at 82.5 Hz I can retune while it plays. (ugens saw, cutoff 2400, lfo 0.1, freq 82.5, 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... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Impulse`."
},
{
"role": "assistant",
"content": "```supercollider\n{ Impulse.ar(800, 0.0, 0.5, 0) }.play\n\n{ Impulse.ar(XLine.kr(800, 100, 5), 0.0, 0.5, 0) }.play\n```"
}
] |
[
{
"role": "user",
"content": "What does `Pswitch.new` do?"
},
{
"role": "assistant",
"content": "Pswitch chooses elements from the list by a stream of indices (which) and embeds them in the stream. If the element is itself a pattern, it first completely embeds it before looking for the next"
}... |
[
{
"role": "user",
"content": "What is `Pdefn`?"
},
{
"role": "assistant",
"content": "Pdefn — non event stream reference definition"
},
{
"role": "user",
"content": "What does `Pdefn.all` do?"
},
{
"role": "assistant",
"content": "A global IdentityDictionary with all prox... |
[
{
"role": "user",
"content": "What does `SimpleNumber.ellint2` do?"
},
{
"role": "assistant",
"content": "Returns the incomplete elliptic integral of the second kind, Legendre form. Requires `-1 <= k <="
}
] |
[
{
"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": "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": "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": "What is the difference between TempoClock and SystemClock?"
},
{
"role": "assistant",
"content": "SystemClock runs in real time and is what `.wait` uses by default. TempoClock runs in beats and has a tempo, so it can be changed while things are playing and Patterns ... |
[
{
"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": "Show me a self-contained SuperCollider patch using `Dswitch`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\n(\n {\n var d, trig;\n d = Dswitch([\n Dwhite(3, 4, 2),\n Dwhite(0, 1, 2),\n Dseq([1, 1, 1, 0... |
[
{
"role": "user",
"content": "Write a SuperCollider patch that uses `Pan2` and actually plays. Assume nothing about the session."
},
{
"role": "assistant",
"content": "```supercollider\ng = Group.new;\n\n// make 4 synths in g\n// 1.0.rand2 returns a random number from -1 to 1.\n4.do({ { arg amp ... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Rand`."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\"help-Rand\", { |out = 0|\n Out.ar(out,\n FSinOsc.ar(\n Rand(200.0, 400.0),\n 0, Line.kr(0.2, 0, 1, doneAction: Done.freeSelf)... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.