conversations listlengths 2 6 |
|---|
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n// Handy code for quick class demonstrations.\n// Comparing a few intervals - Just Intonation versus 12-tone Equal Tempered\n\n// Major third (just)\nNdef(\\a, { Saw.ar(freq: [60.midicps, 60.midicps * 5/4], mul: 0.1) }).... |
[
{
"role": "user",
"content": "What does `Date.!=` do?"
},
{
"role": "assistant",
"content": "Test whether two Dates are equal/unequal, based on their rawSeconds. `Date(2016, 11, 4) == Date(2016, 10, 4 +"
}
] |
[
{
"role": "user",
"content": "Write a SuperCollider patch for Feedback resonator. Start by defining the values the patch depends on."
},
{
"role": "assistant",
"content": "```supercollider\n// Resonator, must subtract blockSize for correct tuning\n(\nSynthDef(\"testRes\", {\n \nvar freq = 300, ... |
[
{
"role": "user",
"content": "What does `RedEffectModuleGUI.params` do?"
},
{
"role": "assistant",
"content": "An Array of Associations from module metadata (argument"
}
] |
[
{
"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 `EZRanger` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "EZRanger — A wrapper class for a label, a rangeslider, and numberboxes EZRanger is wrapper class which creates an (optional) StaticText, and a RangeSlider plus a NumberBox. If the pa... |
[
{
"role": "user",
"content": "What does `SimpleNumber.curvelin` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "map the receiver from an assumed curve-exponential input range (inMin..inMax) to a linear output range (outMin..outMax). If the input exceeds the assumed input ... |
[
{
"role": "user",
"content": "Show me a self-contained SuperCollider patch using `IdentityDictionary`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\\help_sinegrain, { |out = 0, freq = 440, sustain = 0.05|\n var env;\n env = EnvGen.kr(Env... |
[
{
"role": "user",
"content": "Write a Pbind whose degrees repeat every Pseq cycle. (scale majorPentatonic, seq Pseq, dur 0.2, octave 4, 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": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\ns.boot;\n\n\n\n// create with cueSoundFile class method\nb = Buffer.cueSoundFile(s, ExampleFiles.apollo11, 0, 1);\nx = { DiskIn.ar(1, b) }.play;\nb.close; // must call close in ... |
[
{
"role": "user",
"content": "What does `SharedBus.releaseBus` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "this will not actually release the bus unless the supposedOwner really is the owner. so the children will try to free it, but only the parent can actually Argume... |
[
{
"role": "user",
"content": "Explain `EnvSpec` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "EnvSpec — datatype specifying an Env Category: Spec, Libraries > crucial > Spec, Envelopes."
}
] |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n(\n{\n~a={SinOsc.ar([22.5, 23], mul: ChaosGen.allSubclasses.choose.ar(rrand(1, 30))* 0.3)};\n~b={SinOsc.ar([22.5, 23], mul: 0.3)};\n~c={SinOsc.ar([22.5, 23]*400, mul: ChaosGen.allSubclasses.choose.ar(rrand(1, 30))* 0.03)... |
[
{
"role": "user",
"content": "Write an Ndef with a tri source and a 800 Hz low-pass. (ugens tri, cutoff 800, lfo 0.8, freq 82.5, 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 th... |
[
{
"role": "user",
"content": "What are you not good at?"
},
{
"role": "assistant",
"content": "Everything outside SuperCollider. I have no audio input, no live data, and my knowledge ends at the documentation snapshot I was trained on — so I can be confidently wrong about Quarks and new UGens."
... |
[
{
"role": "user",
"content": "What is `Crackle` in SuperCollider?"
},
{
"role": "assistant",
"content": "Crackle — Chaotic noise function. A noise generator based on a chaotic function. Category: UGens > Generators > Stochastic."
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Lag3`."
},
{
"role": "assistant",
"content": "```supercollider\n(\n// used to lag pitch\n{\n SinOsc.ar( // sine wave\n Lag3.kr( // lag the modulator\n LFPulse.kr(4, 0, 0.5, 50, 400), // frequency mod... |
[
{
"role": "user",
"content": "Write a self-contained SuperCollider patch that uses `Diwhite`. Define every value it uses."
},
{
"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... |
[
{
"role": "user",
"content": "Explain `SQPusher1` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "SQPusher1 — Squarepusher-inspired breakbeat cutting This cut procedure is derived from some analysis of the manic breaks work of Squarepusher, aka Tom Jenkinson. His innovation was ... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `List`."
},
{
"role": "assistant",
"content": "```supercollider\n// Create a new empty collections with size 3:\nx = Array.new(3);\ny = Array.new(3);\nz = List.new(3);\n\n// Try to add 7 items to the array and list.\n/... |
[
{
"role": "user",
"content": "Write a SuperCollider patch that uses `GrayNoise` and actually plays. Assume nothing about the session."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\"help-GrayNoise\", { |out = 0|\n Out.ar(out,\n GrayNoise.ar(-20.dbamp)\n )\n}).play;\n)... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `NodeControl`."
},
{
"role": "assistant",
"content": "```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 =... |
[
{
"role": "user",
"content": "How do I build a live drone with Ndef at 82.5 Hz? (ugens sine, cutoff 3200, lfo 0.3, 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: sine source through a 3... |
[
{
"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;\nTempo.bpm = 100;\n\nTempo.bpm = 180;\n```"
},
{
"role":... |
[
{
"role": "user",
"content": "How do I make a kick that starts at 220 Hz and falls to 40 Hz? (osc sine, sweep 0.06, decay 0.12, f0 220, 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 ... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `LinLin`."
},
{
"role": "assistant",
"content": "```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... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// modulate frequency\n{ Pulse.ar(XLine.kr(40, 4000, 6), 0.1, 0.2) }.play;\n\n// modulate pulse width\n{ Pulse.ar(200, SinOsc.kr(0.2).range(0.01, 0.99), 0.2) }.play;\n\n// two ba... |
[
{
"role": "user",
"content": "How do I make a kick that starts at 150 Hz and falls to 55 Hz? (osc sine, sweep 0.06, decay 0.35, f0 150, 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// ki... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `Latch`."
},
{
"role": "assistant",
"content": "```supercollider\n{ Blip.ar(LFNoise0.kr(9, 400, 500), 4, 0.2) }.play;\n```"
}
] |
[
{
"role": "user",
"content": "What does `Bus.new` do?"
},
{
"role": "assistant",
"content": "This method does not allocate a bus index, but assumes that you already have allocated the appropriate bus index and can supply it"
}
] |
[
{
"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": "How do I put a pluck in a reverb at mix 0.3? (verb freeverb2, room 0.7, damp 0.5, mix 0.3, source pluck)"
},
{
"role": "assistant",
"content": "`FreeVerb` is in the core library; the room and damp arguments do the work:\n\n```supercollider\n// reverb: freeverb2 on a... |
[
{
"role": "user",
"content": "Explain this SuperCollider code.\n```supercollider\nPdef(\\x).play;\nPdef(\\x).quant = 0; // we don't want quant here.\nPdef(\\x, Pbind(\\degree, Pseq((0..5), inf), \\dur, 0.3)).condition_({ |val, i| i.postln % 6 == 0 });\nPdef(\\x, Pbind(\\degree, Pseq((0..7) + 5.rand, inf), \... |
[
{
"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{ LinCongC.ar(MouseX.kr(20, SampleRate.ir)) * 0.2 }.play(s;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the p... |
[
{
"role": "user",
"content": "What is `DXFanOut` in SuperCollider?"
},
{
"role": "assistant",
"content": "DXFanOut — crossfades signals between out buses according to demand-rate control DXFanOut crossfades signals to a sequence of out buses, which, together with fadeTimes and stepTimes, can be ... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `ControlName`."
},
{
"role": "assistant",
"content": "```supercollider\n(\nd = SynthDef(\\tone, { |out = 0, freq = 200|\n var sig;\n\n freq.spec = ControlSpec(20, 20000);\n sig = SinOsc.ar(freq);\n\n Out.ar(out, si... |
[
{
"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{ FBSineC.ar(SampleRate.ir/4) * 0.2 }.play(s;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis ope... |
[
{
"role": "user",
"content": "Explain `OSCresponderNode` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "OSCresponderNode — client side network responder Category: External Control > OSC."
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```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 click on start and fini... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n//run one line at a time\nf= BBCutBuffer(Platform.resourceDir +/+ \"sounds/break.aiff\",8);\n\nPost << [\\length,f.length, \\beatlength, f.beatlength, \\events, f.eventstarts] << nl;\n\n\nf= BBCutBuffer.array([Platform.re... |
[
{
"role": "user",
"content": "Write an Ndef with a tri source and a 400 Hz low-pass."
},
{
"role": "assistant",
"content": "`Ndef` is a named proxy you can redefine while it is playing:\n\n```supercollider\n// Ndef drone: tri source through a 400 Hz low-pass\n(\nNdef(\\nd_tri_110_400, { |freq = ... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\nSynthDef(\"help-ExpRand\", { |out = 0|\n Out.ar(out,\n FSinOsc.ar(\n ExpRand(100.0, 8000.0),\n 0, Line.kr(0.2, 0, 0.01, doneAction: Done.freeSelf))\n )\n}).add;... |
[
{
"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": "How big are you?"
},
{
"role": "assistant",
"content": "198.42M parameters in total, 63.94M active per token. Eight layers, 768 wide, four experts with top-1 routing, and a 6,400-token vocabulary."
}
] |
[
{
"role": "user",
"content": "What does `StaticSpec.rate` do?"
},
{
"role": "assistant",
"content": "datatype specifying a non-modulatable float"
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `NRand`."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\"help-NRand\", { |out = 0, n = 0|\n Out.ar(out,\n FSinOsc.ar(\n NRand(1200.0, 4000.0, n),\n 0, Line.kr(0.2, 0, 0.01, doneActi... |
[
{
"role": "user",
"content": "Explain this SuperCollider patch.\n```supercollider\n//This is almost exactly the same as kick3.scd, they've been morphed into kik3.scd!\n\n\nSynthDef(\"kik\", { |basefreq = 50, ratio = 7, sweeptime = 0.05, preamp = 1, amp = 1, decay1 = 0.3, decay1L = 0.8, decay2 = 0.15, out|\n... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ Impulse.ar(4, [0, MouseX.kr(0, 1)], 0.2 }.play;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis opened earlier is never cl... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Recorder`."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{ SinOsc.ar(\n SinOsc.ar(\n XLine.kr(1, 100, 5)).exprange(*XLine.kr([20, 800], [7000, 200], 10)\n )\n ) * 0.1\n\n}.play;\ns.record(durati... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `FreqScope`."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\n\n// create a new analyzer\nFreqScope.new(400, 200, 0, server: s);\n\n// basic sine\n{ SinOsc.ar(2000, 0, 0.25) }.play(s);\n\n// random saw... |
[
{
"role": "user",
"content": "How do I build a live drone with Ndef at 220 Hz? (ugens saw, cutoff 800, lfo 0.3, freq 220, amp 0.12)"
},
{
"role": "assistant",
"content": "Use `Ndef` when the patch has to change without stopping:\n\n```supercollider\n// Ndef drone: saw source through a 800 Hz low... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n{ BlitB3Tri.ar(XLine.kr(1000, 20, 10)) }.play;\n\n//unfortunately, aliasing returns at higher frequencies (over 5000Hz or so) with a vengence\n{ BlitB3Tri.ar(MouseX.kr(20,8000,'exponential').poll,0.99,MouseY.kr(0.001,0.99... |
[
{
"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": "Write a kick at amp 0.6 with a click. (osc fm, sweep 0.06, decay 0.18, f0 220, f1 40, 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: 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// hear the difference, LinPan having a slight drop in the middle...\n{ LinPan2.ar(SinOsc.ar(440), Line.kr(-1, 1, 5)) }.play\n\n// ... whereas Pan2 is more smooth\n{ Pan2.ar(SinO... |
[
{
"role": "user",
"content": "What is `Dictionary`?"
},
{
"role": "assistant",
"content": "Dictionary — associative collection mapping keys to values"
},
{
"role": "user",
"content": "What does `Dictionary.new` do?"
},
{
"role": "assistant",
"content": "Creates a Dictiona... |
[
{
"role": "user",
"content": "Write a complete SuperCollider patch built around `NamedControl` that runs as it is."
},
{
"role": "assistant",
"content": "```supercollider\n// compare this:\n(\na = {\n var x, y;\n x = NamedControl.kr(\\freq, 440).lag(3.5);\n y = NamedControl.kr(\\freq, 4... |
[
{
"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": "What does `PlayerSocket.rate` do?"
},
{
"role": "assistant",
"content": "a player that can play other players using a cross-faded and fuse-protected socket"
}
] |
[
{
"role": "user",
"content": "I made a synth and I hear nothing. Where do I start?"
},
{
"role": "assistant",
"content": "Start with the node tree, not the code: evaluate `s.plotTree`. If your Synth is not there, it never started or it already freed itself; if it is there, the problem is in the ... |
[
{
"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": "Write a minimal SuperCollider example that uses `SelectX`."
},
{
"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 SelectX.ar(MouseX.kr(0, 1) * a.size, a) * 0.2\n}.play;... |
[
{
"role": "user",
"content": "Add freeverb2 to a bell patch at room 0.7."
},
{
"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(\nSynthDef(\\reverb_synth, { |out = 0, freq = 330, amp = 0.2|\n var... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `PinkNoise`."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\"help-PinkNoise\", { |out = 0|\n Out.ar(out,\n PinkNoise.ar(0.4)\n )\n}).play;\n)\n```"
}
] |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\nb= Buffer.read(s,\"sounds/break\",20000,10000);\n\n//gradual erosion\n(\nSynthDef(\"help-sortbuf\",{arg bufnum;\nOut.ar(0,\nPan2.ar( \nSortBuf.ar(bufnum,LFNoise0.kr(5,50000,60000),0)\n,0.0))\n}).play(s,[\\bufnum, b.bufnum... |
[
{
"role": "user",
"content": "Write a GrainBuf synth at 6 grains per second. (rate 6, dur 0.07, interp 4, mode sweep, 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": "What does `HistoryGui.filters` do?"
},
{
"role": "assistant",
"content": "keys and string fragments to filter for. e.g. ['all', \"+\"] gets lines from all sources that contain the string"
}
] |
[
{
"role": "user",
"content": "Show another SuperCollider example using `FBSineC`."
},
{
"role": "assistant",
"content": "```supercollider\n// increase feedback\n{ FBSineC.ar(SampleRate.ir, 1, Line.kr(0.01, 4, 10), 1, 0.1) * 0.2 }.play(s);\n```"
}
] |
[
{
"role": "user",
"content": "What is `RedOscillator` in SuperCollider?"
},
{
"role": "assistant",
"content": "RedOscillator — coupled oscillator See https://www.complexity-explorables.org/explorables/ride-my-kuramotocycle/ Category: Red > redUniverse."
}
] |
[
{
"role": "user",
"content": "What does `MxQuery.set` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "jQuery style queries for selecting objects and performing bulk operations on them Arguments: selector; value."
}
] |
[
{
"role": "user",
"content": "What is `List`?"
},
{
"role": "assistant",
"content": "List — list of items of variable size"
},
{
"role": "user",
"content": "What does `List.new` do?"
},
{
"role": "assistant",
"content": "Creates a List with the initial capacity given by s... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n{ CheckBadValues.kr(SinOsc.ar); 0 }.play // nothing wrong here\n\n{ CheckBadValues.kr(1 / 0, 1).poll; 0 }.play // check infinity\n\nx = { |test = -1| CheckBadValues.kr(test); 0 }.play // check NaN\nx.set(\\test, -1.sqrt);... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Limiter`."
},
{
"role": "assistant",
"content": "```supercollider\n(\n// example signal to process\n{\n var z;\n z = Decay2.ar(\n Impulse.ar(8, LFSaw.kr(0.25, -0.6, 0.7)),\n 0.001, 0.3, FSinOsc.ar(500));\n z ... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n(\n{\n var freqs = [200, 600, 400, 450, 150, 20, 800];\n var amps = Saw.ar(freq: [2,3, 5]).range(1, 0.5, 0.3, 0.8);\n var snd = LFTri.ar(freq: freqs, mul: amps);\n Mix.ar(snd)\n}.play;\n)\n```"
},
{
"role": "... |
[
{
"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": "What does `MIDIGatePlayer.new` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "converts monophonic MIDI note on/off to a control rate gate Arguments: spec."
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Peak`."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n SinOsc.ar(\n Peak.ar(Dust.ar(20), Impulse.ar(0.4)) * 500 + 200,\n 0, 0.2\n )\n\n}.play;\n);\n\n// follow a sine lfo, reset rate contro... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Integrator`."
},
{
"role": "assistant",
"content": "```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)... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `LFClipNoise`."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\"help-LFClipNoise\", { |out = 0|\n Out.ar(out,\n LFClipNoise.ar(1000, 0.25)\n )\n}).play;\n);\n\n// modulate frequency\n(\nSynth... |
[
{
"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": "What does this SuperCollider code do?\n```supercollider\n(\ns.waitForBoot {\n // Open a plotTree window with a refresh rate of 2 seconds:\n s.plotTree(2);\n\n // Define and play a repeating pattern that generates a new synth every 0.5 seconds:\n x = Pn((dur: 0.5, midinote: ... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n(\n\n{\n var input, kernel;\n\n input = SoundIn.ar(0);\n kernel = Mix.ar(LFSaw.ar([300, 500, 800, 1000] * MouseX.kr(1.0, 2.0), 0, 1.0));\n\n // must have power of two framesize\n Convolution.ar(input, kernel, 1024, 0... |
[
{
"role": "user",
"content": "What is `Bus`?"
},
{
"role": "assistant",
"content": "Bus — Representation of a bus on the server"
},
{
"role": "user",
"content": "What does `Bus.control` do?"
},
{
"role": "assistant",
"content": "Allocate a control bus on the server."
},... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\np = Pmono(\\default, \\dur, 0.2, \\freq, Pwhite(1, 8) * 100).play\n\np.stop\n\n// multi channel expansion is supported:\np = Pmono(\\default, \\dur, 0.2, \\freq, Pwhite(1, 8) * 100, \\detune, [0, 2, 5, 1]).play\n\np.stop\... |
[
{
"role": "user",
"content": "What does `LinTrans.-` do?"
},
{
"role": "assistant",
"content": "subtraciton between linear transformations. `a ="
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\n// used to lag pitch\n{\n SinOsc.ar( // sine wave\n VarLag.kr( // lag the modulator\n LFPulse.kr(1... |
[
{
"role": "user",
"content": "Write a complete SuperCollider patch built around `Resonz` that runs as it is."
},
{
"role": "assistant",
"content": "```supercollider\n// 1st, evaluate a synthdef\n(\nSynthDef(\"pitchFromNoise\", { arg out = 0;\n Out.ar(\n out,\n Resonz.ar(\n WhiteNoise... |
[
{
"role": "user",
"content": "Explain `RedGrain` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "RedGrain — granular synthesis Language side granulator built upon Task. Category: Red > redGrain."
}
] |
[
{
"role": "user",
"content": "Write a self-contained SuperCollider patch that uses `Timer`. Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\n// using timer to modulate sine frequency: the slower the trigger is the higher the frequency\n(\n{ var trig;\n trig =... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\n{\n var a;\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": "ass... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `PV_Mul`."
},
{
"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.5);\n inB = SinOsc.ar(Line.kr(... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `ControlName`."
},
{
"role": "assistant",
"content": "```supercollider\n(\nd = SynthDef(\\tone, { |out = 0, freq = 200|\n var sig;\n\n freq.spec = ControlSpec(20, 20000);\n sig = SinOsc.ar(freq);\n\n Out.ar(out, si... |
[
{
"role": "user",
"content": "What does `FOS.ar` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "First order filter section. Arguments: in — Signal input.; a0 — See formula above.; a1 — See formula above.; b1 — See formula above.; mul; add."
}
] |
[
{
"role": "user",
"content": "What does `RedBitStream.put` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Write a value at current position and advance the position by one Arguments: item — Value 0 or 1.."
}
] |
[
{
"role": "user",
"content": "What is `Server`?"
},
{
"role": "assistant",
"content": "Server — Object representing a server application"
},
{
"role": "user",
"content": "What does `Server.new` do?"
},
{
"role": "assistant",
"content": "Create a new Server instance."
},... |
[
{
"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": "Write a minimal SuperCollider example that uses `Convolution`."
},
{
"role": "assistant",
"content": "```supercollider\n(\n\n{\n var input, kernel;\n\n input = SoundIn.ar(0);\n kernel = Mix.ar(LFSaw.ar([300, 500, 800, 1000] * MouseX.kr(1.0, 2.0), 0, 1.0));\n\n /... |
[
{
"role": "user",
"content": "What does `ControlPrototypes.define` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Keys are either symbols or classes, the values are functions that return arrays of prototypes. Patch simply selects the first in the list. Other methods of C... |
[
{
"role": "user",
"content": "Explain `UGen` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "UGen — Abstract superclass of all unit generators UGens represent calculations with signals. They are the basic building blocks of synth definitions on the server, and are used to genera... |
[
{
"role": "user",
"content": "Write a Pbind whose degrees repeat every Pseq cycle. (scale minorPentatonic, seq Pseq, dur 0.3, octave 5, instr pluck, root 0)"
},
{
"role": "assistant",
"content": "`Pbind` sequences an Event per beat, and `\\degree` + `\\scale` does the pitch:\n\n```supercollider\... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.