conversations listlengths 2 6 |
|---|
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// as a frequency control\n{ SinOsc.ar(StandardN.ar(40, MouseX.kr(0.9, 4))*800+900)*0.4 }.play(s;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is mis... |
[
{
"role": "user",
"content": "Explain `Dswitch` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "Dswitch — Demand rate generator for embedding different inputs Demand rate generator for embedding different inputs. In difference to Dswitch1, Dswitch embeds all items of an input de... |
[
{
"role": "user",
"content": "Write a SuperCollider patch that uses `TWChoose` and actually plays. Assume nothing about the session."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var a;\n a = [\n SinOsc.ar,\n Saw.ar,\n Pulse.ar\n ];\n TWChoose.ar(Dust.ar(Mo... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// result of BufRd is used as index for the next BufRd\n// needs Buffer c prepared above\n\n(\ny = {\n GFIS.ar(\n { |x| BufRd.ar(1, c, c.numFrames * x) },\n (LFDNoise3.ar(... |
[
{
"role": "user",
"content": "Explain this SuperCollider code.\n```supercollider\n(\n#a, c = { TaskProxy.new } ! 2;\na.source = { \"one\".postln; 1.wait; \"two\".postln };\nc.source = { var z; z = Synth(\\default); 0.5.wait; z.release };\nr = Task {\n \"counting...\".postln;\n 2.wait;\n a.embedInStream;\... |
[
{
"role": "user",
"content": "Explain `TempoBus` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "TempoBus — maintains a control Bus on the server with the current Tempo A Bus whose value is set by a Tempo. It can be used as a multiplier in any Synth on the Server that needs to k... |
[
{
"role": "user",
"content": "What does doneAction do?"
},
{
"role": "assistant",
"content": "It tells the server what to do to the enclosing Synth when the UGen finishes. The one that matters most is `doneAction: 2`, which frees the Synth: that is how a percussive sound cleans itself up instead... |
[
{
"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": "Explain `PV_Cutoff` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "PV_Cutoff — zero bins with interpolation Clears bins above or below a cutoff point. Interpolate. Category: UGens > FFT."
}
] |
[
{
"role": "user",
"content": "Give me a bell with damping 0.5 on the reverb."
},
{
"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 bell\n(\nSynthDef(\\reverb_synth, { |out = 0, freq = 330,... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `OneZero`."
},
{
"role": "assistant",
"content": "```supercollider\n{ OneZero.ar(WhiteNoise.ar(0.5), 0.5) }.play\n\n{ OneZero.ar(WhiteNoise.ar(0.5), -0.5) }.play\n\n{ OneZero.ar(WhiteNoise.ar(0.5), Line.kr(-0.5, 0.5, 1... |
[
{
"role": "user",
"content": "Write a kick at amp 0.8 with a click. (osc sine, sweep 0.06, decay 0.35, f0 150, f1 55, amp 0.8, 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: sine oscillator,... |
[
{
"role": "user",
"content": "What does `EnvironmentRedirect.localRemoveAt` do?"
},
{
"role": "assistant",
"content": "Like `removeAt`, but without calling the dispatch"
}
] |
[
{
"role": "user",
"content": "What does `KrNumberEditor.instrArgFromControl` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "a number box and slider for editing a float value [\\kr rate] Arguments: control."
}
] |
[
{
"role": "user",
"content": "Write a complete SuperCollider patch built around `Dust2` that runs as it is."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\"help-Dust2\", { |out = 0|\n Out.ar(out,\n Dust2.ar(200, 0.5)\n )\n}).play;\n);\n\n(\nSynthDef(\"help-Dust2\", { ... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `List`."
},
{
"role": "assistant",
"content": "```supercollider\n(\n// Create a new empty List with size: 3\nx = List.new(3);\n\nx.postln; // -> List[ ]\n\n// Add numbers 0 to 4 to the List\n5.do({ |i| x.add(i) });\n\n// The ... |
[
{
"role": "user",
"content": "What does `DigitalIn.kr` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Read data from a digital input Arguments: digitalPin — Digital pin number to read. Pin numbers begin at 0. This value cannot be modulated.; mul; add."
}
] |
[
{
"role": "user",
"content": "What is `NLFiltN` in SuperCollider?"
},
{
"role": "assistant",
"content": "NLFiltN — Non-linear Filter Implements the filter `Y{n} =a Y{n-1} + b Y{n-2} + d Y^2{n-l} + X{n} - c` described in Dobson and sigmoid clipping. This filter is inherently unstable, so pick som... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// default params\n{ QuadL.ar(SampleRate.ir/4) * 0.2 }.play(s;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis opened earlie... |
[
{
"role": "user",
"content": "Explain `MIDIMKtlDevice` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "MIDIMKtlDevice — The Modality class for creating and accessing external midi controllers MIDIMKtlDevice provides an internal interface for MIDI controllers you can connect to y... |
[
{
"role": "user",
"content": "Write a kick drum with a 0.25 s decay."
},
{
"role": "assistant",
"content": "The pitch envelope is what makes it read as a drum, not the oscillator:\n\n```supercollider\n// kick drum: sine oscillator, 0.06 s pitch sweep\n(\nSynthDef(\\kick_synth, { |out = 0, amp = ... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\ns=Server.default;\n\na= CutProcStream(BBCutProc11.new);\n\n//no offsets set (usually this would be decided by cut synthesisers\n10.do {a.next(Event.default).postln};\n\na= CutProcStream(RecursiveCutProc1.new);\n\n//offset... |
[
{
"role": "user",
"content": "What does `TDuty.ar` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Demand results as trigger from demand rate UGens. Arguments: dur — Time values. Can be a demand UGen or any signal. The next trigger value is acquired after duration.; reset... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\ns.boot\n{ SinOsc.ar([330, 440], 0, 0.4) }.play;\nStethoscope(s, 2;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis opened ea... |
[
{
"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 `FoaAr` in SuperCollider?"
},
{
"role": "assistant",
"content": "FoaAr — First Order Ambisonic (FOA) Soundfield Reactive Admittance Vector Return the Reactive Admittance Vector, Ar, of a first order ambisonic (B-format) signal. Category: Libraries > Ambisoni... |
[
{
"role": "user",
"content": "Explain this SuperCollider patch.\n```supercollider\n//spinning box / cube\n//after Shiffman https://codingtrain.github.io/website-archive/CodingChallenges/112-3d-rendering.html\n\n(\nvar width= 640, height= 480, w,\ntheta= 0, speed= 0.01, box;\n\nw= RedWindow(\"3Dbox\", Rect(1... |
[
{
"role": "user",
"content": "Write a granular texture, dry. (rate 14, dur 0.15, interp 2, mode noise, rev 0)"
},
{
"role": "assistant",
"content": "A working granular patch, with the buffer loaded before the synth starts:\n\n```supercollider\n// granular synth with GrainBuf\n(\ns.waitForBoot {\... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n{ BlitB3Square.ar(XLine.kr(1000, 20, 10)) }.play;\n\n{ BlitB3Square.ar(MouseX.kr(20,1000,'exponential'),MouseY.kr(0.001,0.999)) }.play;\n\n//comparison\n//blit version is cheaper, but aliases once pushed over 4000 or so a... |
[
{
"role": "user",
"content": "Write a self-contained SuperCollider patch for nothing much ). Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{|atk=0.05,dur=10,freq=50,amp=0.8|\n PMOsc.ar(\n Line.kr(1,2,dur,freq),\n LFNoise2.kr([1,2]).range(1,2)*freq... |
[
{
"role": "user",
"content": "What does `Editor.set` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "holds a value that can be edited with a GUI, saves as the value Arguments: val."
}
] |
[
{
"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": "What does `JITGui.getState` do?"
},
{
"role": "assistant",
"content": "ask the object for all aspects of its current state that will be"
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Dgeom`."
},
{
"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 = Demand.kr(trig, 0, a) * 30 + 340... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n(\nSynthDef(\"ReplaceOutHelp\", { |out = 0, freq = 440|\n var source;\n source = SinOsc.ar(freq, 0, 0.1);\n\n // write to the bus, replacing previous contents\n ReplaceOut.ar(out, source);\n\n}).add;\n);\n\n// e... |
[
{
"role": "user",
"content": "What does `EnvirGui.new` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "create a new EnvirGui NdefParamGui `// simple Arguments: object — the envir to display; numItems — the number of items to display. If an envir is given, and no num, num ... |
[
{
"role": "user",
"content": "Explain `EaseInOutExpo` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "EaseInOutExpo — Exponential ease-in/out Easing equation for an exponential (2^t) ease-in/out, accelerating until halfway, then decelerating. Category: Ease."
}
] |
[
{
"role": "user",
"content": "Show me a self-contained SuperCollider patch using `Unpack1FFT`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\n// Let's extract the DC component - i.e. the magnitude at binindex zero.\n(\n{\n var sig, chain, stream, window... |
[
{
"role": "user",
"content": "Write a Pbind in minorPentatonic using Prand for the degrees."
},
{
"role": "assistant",
"content": "`Pbind` sequences an Event per beat, and `\\degree` + `\\scale` does the pitch:\n\n```supercollider\n(\nSynthDef(\\pluck, { |out = 0, freq = 440, amp = 0.2|\n var... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `PV_MagSquared`."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\n\n(\nb = Buffer.alloc(s, 2048, 1);\nc = Buffer.read(s, ExampleFiles.child);\n);\n\n(\nSynthDef(\"help-magSquared\", { |out = 0, bufnum ... |
[
{
"role": "user",
"content": "Explain `AverageOutput` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "AverageOutput — calculates mean average of audio or control rate signal The mean average output since the last received trigger. Category: UGens > Analysis."
}
] |
[
{
"role": "user",
"content": "Give me an Ndef with an LFO at 0.8 Hz. (ugens tri, cutoff 200, lfo 0.8, freq 220, amp 0.12)"
},
{
"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 200 Hz low-pass\... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `PV_RandComb`."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\nc = Buffer.read(s, ExampleFiles.child);\n\n(\nSynthDef(\"help-randcomb\", { |out = 0|\n var sig, chain;\n sig = WhiteNoise.ar(0.8);\n ... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `LFDNoise0`."
},
{
"role": "assistant",
"content": "```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\... |
[
{
"role": "user",
"content": "Write a complete SuperCollider patch built around `ArrayedCollection` that runs as it is."
},
{
"role": "assistant",
"content": "```supercollider\n(\nvar pitches = [43.0, 55.0, 58.86, 57.42, 67.0];\nfork {\n pitches.size.do{ |i|\n {\n var freq = pitches[i]... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `BrownNoise`."
},
{
"role": "assistant",
"content": "```supercollider\n{ SinOsc.ar(BrownNoise.ar(100, 200)) * 0.1 }.play;\n```"
}
] |
[
{
"role": "user",
"content": "What does `View.defaultKeyDownAction` do?"
},
{
"role": "assistant",
"content": "The method called when a key is pressed and #-keyDownAction is nil. Subclass it to define your own functionality on key presses. See #Key actions for explanation of arguments. The retur... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `FSinOsc`."
},
{
"role": "assistant",
"content": "```supercollider\n{ FSinOsc.ar(800) * 0.2 }.play;\n\n{ FSinOsc.ar(XLine.kr(200, 4000, 1)) * 0.2 }.play;\n\n// loses amplitude towards the end\n{ FSinOsc.ar(FSinOsc.ar(X... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `ProxySynthDef`."
},
{
"role": "assistant",
"content": "```supercollider\na = ProxySynthDef(\"xtest\", { SinOsc.ar(400) * 0.1 });\n\na.add;\n\nx = Synth(\"xtest\");\nx.release;\n\n\n/*\n\n if the resulting number of c... |
[
{
"role": "user",
"content": "Write a SuperCollider patch that uses `Dseries` and actually plays. Assume nothing about the session."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var a, freq, trig;\n a = Dseries(0, 1, 15);\n trig = Impulse.kr(MouseX.kr(1, 40, 1));\n freq = D... |
[
{
"role": "user",
"content": "What does `Server.makeBundle` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "The Function `func` is evaluated, and all OSC messages generated by it are deferred and added to a Arguments: time — If set to nil or a number the bundle will be au... |
[
{
"role": "user",
"content": "Write a granular texture, through a reverb. (rate 28, dur 0.07, interp 4, mode noise, 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.waitF... |
[
{
"role": "user",
"content": "What is `CutTape` in SuperCollider?"
},
{
"role": "assistant",
"content": "CutTape — BBCut2 tape slow effect CutTape adds a tape slow effect to a BBCut2 block. Category: Libraries > BBCut > Cut FX."
}
] |
[
{
"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": "Explain `Dbufrd` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "Dbufrd — Buffer read demand ugen Category: UGens > Buffer, UGens > Demand."
}
] |
[
{
"role": "user",
"content": "What does `Harmonics.rand2` do?"
},
{
"role": "assistant",
"content": "Convenient factory for filling buffers with harmonics on the server"
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `DigitalIO`."
},
{
"role": "assistant",
"content": "```supercollider\n// write a sine oscillator's output to a pin, and read the pin value at other times\n\n(\nSynthDef(\"help-DigitalIO\", { |out = 0|\n DigitalIO.ar... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// modulate frequency of a sine oscillator\n\n(\nSynthDef(\"help-MultiplexAnalogIn\", { |out = 0|\n Out.ar(out,\n SinOsc.ar(MultiplexAnalogIn.ar(0, 1).exprange(200, 5000), 0,... |
[
{
"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 `SequenceableCollection`?"
},
{
"role": "assistant",
"content": "SequenceableCollection — Abstract superclass of indexable collections"
},
{
"role": "user",
"content": "What does `SequenceableCollection.series` do?"
},
{
"role": "assistan... |
[
{
"role": "user",
"content": "Explain this SuperCollider code.\n```supercollider\n// for Nil: return the argument unmodified (an event).\nnil.transformEvent((x: 8));\n// for Dictionary (and thus for Event): add to the argument.\n(y: 100, z: 1).transformEvent((x: 8));\n// for Association: add the association... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n(\ns = Server.local;\nServer.default = s;\ns.boot;\n);\n \n \n// definition for future reference in arbitrary Environments\n\np = PLbrown(\\lo, \\hi, \\step);\n\n\n// prepare current Environment\n// PLseq repeats ar... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// RMS Power\n(\n{\n var input, numsamp;\n\n input = LFSaw.ar;\n numsamp = 30;\n\n (RunningSum.ar(input.squared, numsamp) / numsamp).sqrt\n}.play\n```"
},
{
"... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `AbstractFunction`."
},
{
"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; a.asStream.nextN(12);\n{ a = LFNo... |
[
{
"role": "user",
"content": "Give me a granular patch with noise grain position and interp 4. (rate 14, dur 0.07, interp 4, mode noise, rev 1)"
},
{
"role": "assistant",
"content": "A working granular patch, with the buffer loaded before the synth starts:\n\n```supercollider\n// granular synth ... |
[
{
"role": "user",
"content": "What does `ScopeOut.ar` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "FIXME: ScopeOut purpose. Arguments: inputArray — FIXME: explain parameter inputArray.; bufnum — FIXME: explain parameter bufnum.."
}
] |
[
{
"role": "user",
"content": "Explain this SuperCollider patch.\n```supercollider\n// (thor magnusson) (2006)\n\n// An instrumentalist inside a synthdef.\n\n(\nSynthDef(\\drummer, { arg out=0, tempo=4;\n var snare, base, hihat;\n tempo = Impulse.ar(tempo); // for a drunk drummer replace Impulse with Dust ... |
[
{
"role": "user",
"content": "Write a SuperCollider patch that uses `SoundIn` and actually plays. Assume nothing about the session."
},
{
"role": "assistant",
"content": "```supercollider\nu = Server(\\scau, NetAddr(\"127.0.0.1\", 9989)); // Change the port from 9989 to the right one for you\nu.... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n// check blockSize before (or reset blockSize in examples)\n\n(\nif (s.options.blockSize != 64) {\n s.options.blockSize = 64;\n s.quit.reboot;\n}\n);\n\n// With divisions we must avoid division by zero resp. blowup, her... |
[
{
"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": "What does this SuperCollider code do?\n```supercollider\na = AllGui.new;\n // test adding things that should show up: \na = 12;\nz = 42;\n~bar = 345;\n~foo = 345;\nTdef(\\a); \nTdef(\\b); \nPdef(\\a);\nPdef(\\b);\nPdefn(\\trala);\nPdefn(\\hopsa);\nNdef(\\a);\nNdef(\\b);\n /... |
[
{
"role": "user",
"content": "Write a complete SuperCollider patch built around `SelectXFocus` that runs as it is."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var a;\n a = [\n Saw.ar(LFSaw.kr(3 * [1, 1.01], 0, 100, 230)),\n SinOsc.ar,\n Pulse.ar(LFPulse.kr(3 ... |
[
{
"role": "user",
"content": "Write a kick drum with a 0.35 s decay. (osc fm, sweep 0.06, decay 0.35, f0 220, f1 55, amp 0.8, 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.... |
[
{
"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": "Give me a granular patch with sweep grain position and interp 2. (rate 16, dur 0.1, interp 2, mode sweep, rev 1)"
},
{
"role": "assistant",
"content": "Granulation is `GrainBuf` plus a trigger rate; the position can move:\n\n```supercollider\n// granular synth with ... |
[
{
"role": "user",
"content": "How do I make a kick that starts at 150 Hz and falls to 40 Hz? (osc fm, sweep 0.06, decay 0.35, f0 150, 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 osci... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ Lorenz2DL.ar(11025, 44100) }.play(s);\n\n// randomly modulate params\n(\n{ Lorenz2DL.ar(\n 11025, 44100,\n LFNoise0.kr(1, 2, 10),\n 20,\n LFNoise0.kr(1, 1.5, 2),\n 0.02\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": "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": "What is `OscN` in SuperCollider?"
},
{
"role": "assistant",
"content": "OscN — Noninterpolating wavetable oscillator. Noninterpolating wavetable lookup oscillator with frequency and phase modulation inputs. It is usually better to use the interpolating oscillator Os... |
[
{
"role": "user",
"content": "What is `BSplineGui` in SuperCollider?"
},
{
"role": "assistant",
"content": "BSplineGui — display and interface for a BSpline (put long description here) Category: Splines > GuiClasses."
}
] |
[
{
"role": "user",
"content": "Explain `TIRand` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "TIRand — Triggered integer random number generator. Generates a random integer value in uniform distribution from `lo` to `hi` each time the trigger signal changes from nonpositive to ... |
[
{
"role": "user",
"content": "What does `RedWorld.surroundings` do?"
},
{
"role": "assistant",
"content": "An Array containing arrays with a size that matches the current world dimensions. Only useful when working with discrete worlds. e.g. cellular"
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Stethoscope`."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot\n{ SinOsc.ar([330, 440], 0, 0.4) }.play;\nStethoscope(s, 2);\n```"
}
] |
[
{
"role": "user",
"content": "What does `AbstractFunction.blend` do?"
},
{
"role": "assistant",
"content": "An object which responds to a set of messages that represent mathematical functions"
}
] |
[
{
"role": "user",
"content": "Write an Ndef at 82.5 Hz I can retune while it plays."
},
{
"role": "assistant",
"content": "`Ndef` is a named proxy you can redefine while it is playing:\n\n```supercollider\n// Ndef drone: blip source through a 3200 Hz low-pass\n(\nNdef(\\nd_blip_82_3200, { |freq ... |
[
{
"role": "user",
"content": "How do I make a kick that starts at 220 Hz and falls to 55 Hz? (osc fm, sweep 0.06, decay 0.18, f0 220, f1 55, 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... |
[
{
"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": "Show me a self-contained SuperCollider patch using `AnalogIn`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\n// modulate frequency of a sine oscillator\n\n(\nSynthDef(\"help-AnalogIn\", { |out = 0|\n Out.ar(out,\n SinOs... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\nx = {\n // A collection of different tones:\n var son = SinOsc.ar((100, 100.3 .. 110));\n var val = ArrayMin.ar(son).at(0);\n val = LeakDC.ar(val); // the operation tends ... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `InFeedback`."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\"help-InFeedback\", { |out = 0, in = 0|\n Out.ar(out,\n InFeedback.ar(in, 1)\n );\n}).add;\nSynthDef(\"help-SinOsc\", { |out = 0, freq =... |
[
{
"role": "user",
"content": "What does `Point.rho` do?"
},
{
"role": "assistant",
"content": "Return the polar coordinate radius of the"
}
] |
[
{
"role": "user",
"content": "Explain this SuperCollider code.\n```supercollider\nq = Pbind(\\freq, 300, \\dur, Pn(0.3, 2));\nq.trace.play;\n\n// Sound-wise ineffective modification of the incoming stream\np = Pbind(\\degree, 6) <> q;\np.trace.play;\n\n// Instead\np = Pbind(\\degree, 6) <> Pfunc { |ev| ev.f... |
[
{
"role": "user",
"content": "Give me a saw kick with a 0.06 s pitch sweep. (osc saw, sweep 0.06, decay 0.25, f0 180, f1 55, 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: saw oscil... |
[
{
"role": "user",
"content": "What does `AbstractMessageMatcher.value` do?"
},
{
"role": "assistant",
"content": "Evaluate an incoming message to see if it matches. Subclasses should override this message to take appropriate arguments. If a match is found, this method should call value on this o... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// Play it with the mouse\n{DFM1.ar(PinkNoise.ar(mul: 0.5), MouseX.kr(80, 5000, 'exponential'), MouseY.kr(0.1, 1.2))}.play;\n\n// Throbby bass\n{DFM1.ar(Pulse.ar(100, mul:0.4) + ... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\ns.boot;\n\n// The mul and add arguments of SinOsc themselves use MulAdd!\n// These two examples will create precisely the same synth graph:\nx = { SinOsc.ar(440, 0, 0.1, 0.05) }.play(s);\nx.trace; // You should see a \"Mu... |
[
{
"role": "user",
"content": "What does `PatternProxy.default` do?"
},
{
"role": "assistant",
"content": "a default source, if none is given. the default is 1.0 (it is not 0.0 in order to make it safe for"
}
] |
[
{
"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": "Give me a sine kick with a 0.06 s pitch sweep. (osc sine, sweep 0.06, decay 0.25, f0 150, f1 40, amp 0.6, 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: sine os... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.