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(\n{\n EnvGen.kr(\n Env.new([0.001, 1, 0.5, 0], [0.01, 0.3, 1], -4, 2, nil),\n Impulse.kr(10)\n ) * SinOsc.ar(440, 0, 0.1)\n}.play;\n);\n\n(\n{\n EnvGen.kr... |
[
{
"role": "user",
"content": "What does `PlayerSocket.prepareChildrenToBundle` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "a player that can play other players using a cross-faded and fuse-protected socket Arguments: bundle."
}
] |
[
{
"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, freq, trig;\n a = Dibrown(0, 15, 1, inf);\n trig = Impulse.kr(MouseX.kr(1, 40, 1));\n freq = Demand.kr(trig, 0, a) * 30 + 340;\n SinOsc.ar(freq) * 0.1\n\n}.pla... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\nPsloth {\n var seed, repeats;\n\n *new { arg seed, repeats=1;\n ^super.newCopyArgs(seed, repeats);\n }\n\n storeArgs{^[seed, repeats]}\n\n embedInStream { arg inval;\n var size=seed.size;\n ... |
[
{
"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 GrainBuf synth at 20 grains per second. (rate 20, dur 0.15, 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.... |
[
{
"role": "user",
"content": "Explain `PLshufn` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "PLshufn — dynamic scope Pshufn variant Takes Symbol args for later reference by the Streams, which will read from variables in the Environments of their instantiation. See PLx_suite. ... |
[
{
"role": "user",
"content": "Show me a self-contained SuperCollider patch using `PulseDivider`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\nSynthDef(\"help-PulseDivider\", { |out = 0|\n var p, a, b;\n p = Impulse.ar(8);\n a = SinOsc.ar(1200, 0, De... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```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 controlled by mouse x\n(\n{\n ... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n// where did I leave my keys?\n(\nvar n = 30, m = 5;\nNdef.clear(3);\nNdef.ar(\\x, n);\nNdef(\\y, { Splay.ar(Ndef.ar(\\x, m, LFNoise1.kr(1/m).range(0, n - m - 1))).clip2 * 0.5 }).play; \nNdef(\\x, { \n { \n var a = N... |
[
{
"role": "user",
"content": "Explain `FreeSelf` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "FreeSelf — When triggered, free enclosing synth. Free enclosing synth when input signal crosses from non-positive to positive. Category: UGens > Synth control."
}
] |
[
{
"role": "user",
"content": "What is `PV_Copy` in SuperCollider?"
},
{
"role": "assistant",
"content": "PV_Copy — Copy an FFT buffer Copies the spectral frame in `bufferA` to `bufferB`. This allows for parallel processing of spectral data without the need for multiple FFT UGens. Further it allo... |
[
{
"role": "user",
"content": "Explain `InspButton` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "InspButton — displays an object by its name, when clicked the object is inspected using Insp This is a hyper-link button for use in debugging views. Clicking on the button calls .i... |
[
{
"role": "user",
"content": "What is `RedDiskInPlayer` in SuperCollider?"
},
{
"role": "assistant",
"content": "RedDiskInPlayer — simple GUI for soundfile playback from disk Uses RedDiskInSampler to stream soundfiles from disk. Use it to play back long soundfiles. Category: Red > redSampler."
... |
[
{
"role": "user",
"content": "What does `MAbstractElement.parent` do?"
},
{
"role": "assistant",
"content": "returns the parent group of the element in the `MKtl` elements hierarchical"
}
] |
[
{
"role": "user",
"content": "How do I make a kick that starts at 220 Hz and falls to 48 Hz? (osc saw, sweep 0.06, decay 0.5, f0 220, f1 48, amp 0.6, 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": "Explain `PatchIn` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "PatchIn — manages a Player's input when connecting to other Players These objects hold information about a Player's inputs and outputs. They are used to make connections to other Play... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n//try passing a signal through the hair cell\nx = { Meddis.ar(SinOsc.ar(440)) }.play;\nx.free;\n\n//recursive hair cell compression\n{ Meddis.ar(Meddis.ar(SoundIn.ar) }.play;\n``... |
[
{
"role": "user",
"content": "How do I granulate a sample with 0.1 s grains? (rate 10, dur 0.1, interp 2, mode sweep, rev 0)"
},
{
"role": "assistant",
"content": "`GrainBuf` needs a buffer, a trigger and a grain duration:\n\n```supercollider\n// granular synth with GrainBuf\n(\ns.waitForBoot {\... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `StandardL`."
},
{
"role": "assistant",
"content": "```supercollider\n// vary frequency\n{ StandardL.ar(MouseX.kr(20, SampleRate.ir)) * 0.3 }.play(s);\n```"
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```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))\n )\n}).add;\n);\n\n(\... |
[
{
"role": "user",
"content": "What is `Annotations` in SuperCollider?"
},
{
"role": "assistant",
"content": "Annotations — stores names and notations for Nodes, identifying the Node's owner and its purpose Helps in debugging to identify Synths and Groups by naming them. For example a Player can ... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\n// time warped analog bubbles, time scale is mouse x position\n{\n\n Bend.time(MouseX.kr(0.02, 20, 1), {\n var f = LFSaw.kr(0.4, 0, 24, LFSaw.kr([8,7.23], 0, 3, 80)).midic... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `LinLin`."
},
{
"role": "assistant",
"content": "```supercollider\n// examples:\n\n(\n{\n var mod = SinOsc.kr(Line.kr(1, 10, 10));\n SinOsc.ar(LinLin.kr(mod, -1, 1, 100, 900)) * 0.1\n}.play;\n);\n\n// modulating dest... |
[
{
"role": "user",
"content": "What does `SetResetFF.ar` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Set-reset flip flop. Arguments: trig — The trigger that sets output to 1. Trigger can be any signal. A trigger happens when the signal changes from non-positive to posi... |
[
{
"role": "user",
"content": "Write a kick drum with a 0.12 s decay. (osc fm, sweep 0.06, decay 0.12, f0 220, 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: fm oscillator, 0.... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n(\nNdef(\\birdy, {arg freq=1500, amp=0.5, rate=10;\n var osc, son, convIn, rand;\n osc=LFCub;\n rand = LFNoise1.ar(rate);\n convIn=LinCongN.ar(rate);\n son = osc.ar(Convolution.ar(convIn,convIn));\n freq = Latch.kr... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `MoogFF`."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\n// Play it with the mouse...\nx = { MoogFF.ar(WhiteNoise.ar(01.1), MouseY.kr(100, 10000, 1), MouseX.kr(0, 4)) }.play(s);\nx.free;\n\n// Mmmm, ... |
[
{
"role": "user",
"content": "What is `PbindProxy`?"
},
{
"role": "assistant",
"content": "PbindProxy — incremental event pattern reference"
},
{
"role": "user",
"content": "What does `PbindProxy.new` do?"
},
{
"role": "assistant",
"content": "Return a new instance of Pbi... |
[
{
"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 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": "Write a complete SuperCollider patch built around `LastValue` that runs as it is."
},
{
"role": "assistant",
"content": "```supercollider\nd = { |freq = 440| SinOsc.ar(LastValue.ar(freq, 20), 0, 0.2) }.play;\n\nd.set(\\freq, 400);\nd.set(\\freq, 200);\nd.set(\\freq,... |
[
{
"role": "user",
"content": "What is `LFClipNoise` in SuperCollider?"
},
{
"role": "assistant",
"content": "LFClipNoise — Clipped noise Randomly generates the values -1 or +1 at a rate given by the nearest integer division of the sample rate by the `freq` argument. It is probably pretty hard on... |
[
{
"role": "user",
"content": "What is `LineLayout` in SuperCollider?"
},
{
"role": "assistant",
"content": "LineLayout — Superclass of layouts that distribute views in a line This is an abstract superclass of HLayout and VLayout which distribute views in a horizontal or vertical line, respective... |
[
{
"role": "user",
"content": "Give me a Pbind with fm voices and a 0.4 rhythm. (scale majorPentatonic, seq Prand, dur 0.4, octave 6, instr fm, root 0)"
},
{
"role": "assistant",
"content": "Put the scale and the degree pattern in the `Pbind` and it will pick notes for you:\n\n```supercollider\n(... |
[
{
"role": "user",
"content": "What does `List.foldAt` do?"
},
{
"role": "assistant",
"content": "Similar to #-at, but guarantees that any value for index is valid by reflecting values outside the collection's bounds. Values greater than `size - 1` are reflected back toward lower indices. Similar... |
[
{
"role": "user",
"content": "What does `ArrayedCollection.insert` do?"
},
{
"role": "assistant",
"content": "Inserts the item into the contents of the receiver at the specified index, which is an integer starting from 0. This method may return a new ArrayedCollection. For this reason, you shoul... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\na = NodeProxy.new.play;\na.source = { RLPF.ar(\\in.ar(0!2), [4600, 7000], 0.1) };\nb = NodeProxy.new.source_ { Impulse.ar([5, 7] / 2 };\na <<> b;\n```"
},
{
"role": "assi... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ Out.ar(87, SinOsc.ar(MouseX.kr(340, 1000, 1) * [1, 2, 3], 0, 0.2)) }.play;\nx = Monitor.new.play(87, 3, 0, fadeTime: 3;\nx.vol = 0.3;\nx.stop;\n```"
},
{
"role": "assis... |
[
{
"role": "user",
"content": "Write a GrainBuf synth at 6 grains per second. (rate 6, dur 0.2, interp 2, mode sweep, 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.... |
[
{
"role": "user",
"content": "What does `EventSource.hold` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Implementation of Functional Reactive Programming. Arguments: initialValue — The current ('now') value for the returned FPSignal.. Returns: An FPSignal that holds th... |
[
{
"role": "user",
"content": "Explain this SuperCollider patch.\n```supercollider\n// NTMI.zoom sets all the influx'es inScalers AND RandomOrbit's excursion from current state.\n\nNTMI.zoom = NTMI.zoom?1;\n\n// tune this for jitter on zoom pot on NTMI\nSpec.add(\\zoom, [0, 1, \\lin, 0.025]);\n\nNTMI.setZoom... |
[
{
"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 is `BinaryOpUGen`?"
},
{
"role": "assistant",
"content": "BinaryOpUGen — Apply a binary operation to the values of an input UGen"
},
{
"role": "user",
"content": "What does `BinaryOpUGen.new` do?"
},
{
"role": "assistant",
"content": "re... |
[
{
"role": "user",
"content": "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": "Write a GrainBuf synth at 16 grains per second. (rate 16, dur 0.15, interp 2, mode noise1, 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(... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// play around\n(\n{\n var input, numsamp, power;\n numsamp = 500;\n input = SoundIn.ar;\n power = MouseX.kr(0.1, 4);\n\n (RunningSum.ar(input ** power, numsamp)/n... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\nb.free;\nb = Buffer.read(s, ExampleFiles.apollo11);\n{\n var pointer = Phasor.ar(0, SampleDur.ir / BufDur.ir(b) * XLine.kr(1, 0.25, 20));\n var sound = Warp1.ar(1, b, pointe... |
[
{
"role": "user",
"content": "What does `RedObject.gravityForce` do?"
},
{
"role": "assistant",
"content": "Returns a scalar value representing the gravity force from another object within this"
}
] |
[
{
"role": "user",
"content": "How do I make a kick that starts at 150 Hz and falls to 48 Hz? (osc saw, sweep 0.06, decay 0.12, f0 150, f1 48, amp 0.8, rev 1)"
},
{
"role": "assistant",
"content": "Start with a swept sine, then shorten the decay to taste:\n\n```supercollider\n// kick drum: saw os... |
[
{
"role": "user",
"content": "What does `View.globalKeyUpAction` do?"
},
{
"role": "assistant",
"content": "A settable class variable containing an object (e.g. an instance of Function or FunctionList) which is evaluated (i.e. Object#-value#value method is called on it) whenever a key is release... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n// where did I leave my keys?\n(\nvar n = 30, m = 5;\nNdef.clear(3);\nNdef.ar(\\x, n);\nNdef(\\y, { Splay.ar(Ndef.ar(\\x, m, LFNoise1.kr(1/m).range(0, n - m - 1))).clip2 * 0.5 }).play; \nNdef(\\x, { \n { \n var a = N... |
[
{
"role": "user",
"content": "Write a self-contained SuperCollider patch that uses `Ndef`. Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\nNdef(\\sound, { |freq = 56, numHarm = 10| Blip.ar(freq, numHarm, 30) * 0.2 }).play;\nNdef(\\sound).set(\\freq, 15);\nNde... |
[
{
"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 Lag2.kr( // lag the modulator\n LFPulse.kr(4, 0, 0.5, 50, 400), // frequency modulator\n Line.kr(0, ... |
[
{
"role": "user",
"content": "What does `SFormant.new` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "create a new formant instrument. the server must be running before starting. there are only two channels Arguments: target — if CODEnil then the localhost server's defau... |
[
{
"role": "user",
"content": "What does `Function.getToFloatArray` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Stream the function audio values to the client using a series of getn messages and put the results into a Arguments: duration — Amount of data to record in s... |
[
{
"role": "user",
"content": "What does `IdentityDictionary.new` do?"
},
{
"role": "assistant",
"content": "The #-parent and #-proto instance variables allow additional IdentityDictionary's to provide default values. The precedence order for determining the value of a key is the IdentityDictiona... |
[
{
"role": "user",
"content": "Explain `ServerGui` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "ServerGui — an alternate small server view This is more compact and conforms to the .gui convention in that it can be placed on any window or view. Category: Libraries > crucial > G... |
[
{
"role": "user",
"content": "What is `DXEnvFanOut` in SuperCollider?"
},
{
"role": "assistant",
"content": "DXEnvFanOut — sends crossfade envelopes to out buses according to demand-rate control DXEnvFanOut sends multichannel envelopes, which are used by DXMix / DXMixIn / DXFan / DXFanOut implic... |
[
{
"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": "What does `U.rate` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "(describe method Arguments: new — (describe argument here). Returns: (returnvalue)"
}
] |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n(\nPdef(\\zed, \n Pbind(\n \\osc, Pseq([SinOsc, LFSaw],inf),\n \\instrument, Prout({ arg ev;\n SynthDef(\\zed, { arg out=0, gate=1, amp=0.1, pan=0, freq=200;\n var sig;\n ... |
[
{
"role": "user",
"content": "Give me a granular patch with noise grain position and interp 4. (rate 6, dur 0.07, interp 4, 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 w... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `SharedIn`."
},
{
"role": "assistant",
"content": "```supercollider\n(\n// only works with the internal server\ns = Server.internal;\ns.boot;\n);\n\n(\nSynthDef(\"help-SharedIn1\", {\n Out.ar(0, SinOsc.ar(Lag.kr(Share... |
[
{
"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": "Write a SuperCollider patch that uses `Routine` and actually plays. Assume nothing about the session."
},
{
"role": "assistant",
"content": "```supercollider\n// SynthDefs on the fly\ns.boot;\n(\nt = TempoClock.new;\nr = Routine.new({\n 10.do({\n // could be don... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ Out.ar(87, SinOsc.ar(MouseX.kr(340, 1000, 1) * [1, 2, 3], 0, 0.2)) }.play;\nx = Monitor.new.play(87, 3, 0, fadeTime: 3;\nx.stop;\nx.play;\n```"
},
{
"role": "assistant"... |
[
{
"role": "user",
"content": "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": "Write a minimal SuperCollider example that uses `MouseX`."
},
{
"role": "assistant",
"content": "```supercollider\n{ SinOsc.ar(MouseX.kr(40, 10000, 1), 0, 0.1) }.play;\n{ SinOsc.ar(MouseX.kr(500, 10000, 1).poll, 0, 0.1) }.play;\n```"
}
] |
[
{
"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": "How do I play a random minorPentatonic scale at octave 6? (scale minorPentatonic, seq Pwalk, dur 0.3, octave 6, instr fm, root 0)"
},
{
"role": "assistant",
"content": "The pattern is the composition here; `\\strum` spreads the chord:\n\n```supercollider\n(\nSynthDe... |
[
{
"role": "user",
"content": "What is `AbstractServerAction`?"
},
{
"role": "assistant",
"content": "AbstractServerAction — register actions to be taken for a server"
},
{
"role": "user",
"content": "What does `AbstractServerAction.functionSelector` do?"
},
{
"role": "assista... |
[
{
"role": "user",
"content": "What does `Lag2.ar` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Exponential lag Arguments: in — The input signal.; lagTime — 60 dB lag time in seconds.; mul — Output will be multiplied by this value.; add — This value will be added to the... |
[
{
"role": "user",
"content": "Write an Ndef at 110 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: saw source through a 200 Hz low-pass\n(\nNdef(\\nd_saw_110_200, { |freq = 11... |
[
{
"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).exprange(440, 6600), 0, 0.5 * 0.1 }.play;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis opened ... |
[
{
"role": "user",
"content": "Explain `ServerLogReceivedEvent` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "ServerLogReceivedEvent — internal usage Category: Debugging."
}
] |
[
{
"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": "Write a SuperCollider patch that uses `DigitalOut` and actually plays. Assume nothing about the session."
},
{
"role": "assistant",
"content": "```supercollider\n// write a sine oscillator's output to a pin\n\n(\nSynthDef(\"help-DigitalOut\", { |out = 0|\n Digita... |
[
{
"role": "user",
"content": "Write a complete SuperCollider patch built around `Pseq` 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": "What is `Rest`?"
},
{
"role": "assistant",
"content": "Rest — Represents a rest in event patterns"
},
{
"role": "user",
"content": "What does `Rest.new` do?"
},
{
"role": "assistant",
"content": "Create an instance of Rest, with a value to be... |
[
{
"role": "user",
"content": "How do I make a kick that starts at 180 Hz and falls to 40 Hz? (osc saw, sweep 0.06, decay 0.25, f0 180, f1 40, amp 0.6, rev 1)"
},
{
"role": "assistant",
"content": "The pitch envelope is what makes it read as a drum, not the oscillator:\n\n```supercollider\n// kic... |
[
{
"role": "user",
"content": "Give me a granular patch with sweep grain position and interp 2. (rate 28, dur 0.2, 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": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\n{\n var env = Env([0.0, 0.5, 0.0, 1.0, 0.9, 0.0], [0.05, 0.1, 0.01, 1.0, 1.5], -4);\n var envgen = EnvGen.ar(env, doneAction: Done.freeSelf);\n env.plot;\n SinOsc.ar(\n ... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `EnvGen`."
},
{
"role": "assistant",
"content": "```supercollider\n{ PinkNoise.ar(EnvGen.kr(Env.perc, doneAction: Done.freeSelf)) }.play\n```"
}
] |
[
{
"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 self-contained SuperCollider patch that uses `MouseX`. Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\n(\nb = Bus.control(s, 9); // nine channel control rate\nb.setn([244, 737, 20, 271, 382, 172, 4, 2399, 251]);\n{\n var... |
[
{
"role": "user",
"content": "Show me a self-contained SuperCollider patch using `PulseDivider`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\nSynthDef(\"help-PulseDivider\", { |out = 0|\n var p, a, b;\n p = Impulse.ar(8);\n a = SinOsc.ar(1200, 0, De... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n// modulating the frequency\n\n{ Saw.ar(XLine.kr(40, 4000, 6), 0.2) }.play;\n\n// two band limited sawtooth waves through a resonant low pass filter\n\n{ RLPF.ar(Saw.ar([100, 250], 0.1), XLine.kr(8000, 400, 5), 0.05) }.pl... |
[
{
"role": "user",
"content": "Give me a Pbind with fm voices and a 0.2 rhythm. (scale minorPentatonic, seq Pshuf, dur 0.2, octave 5, instr fm, root 0)"
},
{
"role": "assistant",
"content": "`Pbind` sequences an Event per beat, and `\\degree` + `\\scale` does the pitch:\n\n```supercollider\n(\nSy... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Dust2`."
},
{
"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\", { |out = 0|\n Out.ar(o... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Ref`."
},
{
"role": "assistant",
"content": "```supercollider\n{ Klank.ar(`[[800, 1071, 1153, 1723], nil, [1, 1, 1, 1]], Impulse.ar(2, 0, 0.1)) }.play;\n```"
}
] |
[
{
"role": "user",
"content": "What is the difference between a Synth and a SynthDef?"
},
{
"role": "assistant",
"content": "A SynthDef is a definition: a compiled UGen graph with named controls, registered on the server once. A Synth is one running instance of that definition. You create the def... |
[
{
"role": "user",
"content": "What is `Pconst` in SuperCollider?"
},
{
"role": "assistant",
"content": "Pconst — constrain the sum of a value pattern Similar to Pfindur, but works with the value directly. Category: Streams-Patterns-Events > Patterns > Repetition."
}
] |
[
{
"role": "user",
"content": "What does `Instr.numChannels` do?"
},
{
"role": "assistant",
"content": "If the Instr has an out spec then it will determine the numChannels. Otherwise its assumed to be the default Returns: Integer"
}
] |
[
{
"role": "user",
"content": "How do I pan notes around the stereo field in a pattern?"
},
{
"role": "assistant",
"content": "Put `\\pan` in the Pbind: the default instrument understands it and passes it to Pan2.\n\n```supercollider\n(\nPbind(\n \\scale, Scale.minorPentatonic,\n \\degree, ... |
[
{
"role": "user",
"content": "Write a GrainBuf synth at 20 grains per second. (rate 20, dur 0.04, 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(\... |
[
{
"role": "user",
"content": "Write a Pbind whose degrees repeat every Pseq cycle. (scale minorPentatonic, seq Pseq, dur 0.4, octave 5, instr pluck, root 0)"
},
{
"role": "assistant",
"content": "Put the scale and the degree pattern in the `Pbind` and it will pick notes for you:\n\n```supercolli... |
[
{
"role": "user",
"content": "Give me a sine kick with a 0.06 s pitch sweep. (osc sine, sweep 0.06, decay 0.35, f0 150, 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... |
[
{
"role": "user",
"content": "What does `MxInletApp.<<` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Backwards style connecting of an outlet to this inlet. It is usually clearer to write inlet >> Arguments: outlet — an MxOutletApp or MxQuery. Returns: the outlet"
}
] |
[
{
"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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.