conversations listlengths 2 6 |
|---|
[
{
"role": "user",
"content": "What does `Integrator.ar` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "A leaky integrator. Arguments: in — The input signal.; coef — Leak coefficient.; mul — Output will be multiplied by this value.; add — This value will be added to the o... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `ReplaceOut`."
},
{
"role": "assistant",
"content": "```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... |
[
{
"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": "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//code that utilizes the glitch.\n//warning! extremely loud.\n//note: might not sound the same on all soundcards\n(\n{GlitchHPF.ar(\n BrownNoise.ar(1.dup),\n 0.5,\n Saw.kr(1,... |
[
{
"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": "What does `AbstractConsole.addToLayout` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "abstract parent class for the console widgets Arguments: moreFunc."
}
] |
[
{
"role": "user",
"content": "Show another SuperCollider example using `LinCongN`."
},
{
"role": "assistant",
"content": "```supercollider\n// randomly modulate params\n(\n{ LinCongN.ar(\n LFNoise2.kr(1, 1e4, 1e4),\n LFNoise2.kr(0.1, 0.5, 1.4),\n LFNoise2.kr(0.1, 0.1, 0.1),\n LFNoise2.kr(0.1... |
[
{
"role": "user",
"content": "Explain this code:\n```supercollider\n~pad = Synth(\\pad, [\\freq, 165]);\n~pad.set(\\gate, 0);\n```"
},
{
"role": "assistant",
"content": "It starts a sustained synth and then releases it.\n\n`Synth(\\pad, [\\freq, 165])` creates an instance of a SynthDef that take... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Condition`."
},
{
"role": "assistant",
"content": "```supercollider\n(\nc = Condition.new(false);\n\nRoutine {\n 1.wait;\n \"waited for 1 second\".postln;\n 1.wait;\n \"waited for another second, now waiting for y... |
[
{
"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": "Give me a complete SuperCollider patch for (thor magnusson) (2006) An instrumentalist inside a synthdef: bind everything it needs before it is used."
},
{
"role": "assistant",
"content": "```supercollider\n// (thor magnusson) (2006)\n\n// An instrumentalist inside a... |
[
{
"role": "user",
"content": "What does `KeyResponder.++` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "combines KeyCodeResponder and UnicodeResponder Arguments: that."
}
] |
[
{
"role": "user",
"content": "What is `Harmonics`?"
},
{
"role": "assistant",
"content": "Harmonics — Convenient factory for filling buffers with harmonics on the server"
},
{
"role": "user",
"content": "What does `Harmonics.new` do?"
},
{
"role": "assistant",
"content": ... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```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 list has been modi... |
[
{
"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.step([0, 3, 5, 2, 7, 3, 0, 3, 4, 0], [0.5, 0.1, 0.2, 1.0, 1.5, 2, 0.2, 0.1, 0.2, 0.1]);\n var envgen = EnvGen.kr(env);\n var freq = (envgen + 60).midicps;... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `RunningMin`."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n SinOsc.ar(\n RunningMin.ar(Dust.ar(20), Impulse.ar(0.4)) * 500 + 200,\n 0, 0.2\n )\n\n}.play;\n);\n\n// follow a sine lfo, reset... |
[
{
"role": "user",
"content": "Write a SuperCollider patch for Using sine waves to generate a saw waveform. Start by defining the values the patch depends on."
},
{
"role": "assistant",
"content": "```supercollider\nq={|f,e|a=Array.fill(e,{|j|e-j}).reverse;(Mix.ar(a.collect{|x|SinOsc.ar(f*x,0,1/x... |
[
{
"role": "user",
"content": "Give me a complete SuperCollider patch for (thor magnusson) (2006) An instrumentalist inside a synthdef: bind everything it needs before it is used."
},
{
"role": "assistant",
"content": "```supercollider\n// (thor magnusson) (2006)\n\n// An instrumentalist inside a... |
[
{
"role": "user",
"content": "Show me a self-contained SuperCollider patch using `Buffer`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\n(\nb = Buffer.alloc(s, 512, 1);\nb.sine1(1.0 / [1, 2, 3, 4], true, true, true);\nx = { Osc.ar(b, 200, 0, 0.... |
[
{
"role": "user",
"content": "Show me a self-contained SuperCollider patch using `Dstutter`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var freq, trig;\n var in = Dseq([1, 2, 3], inf);\n var rep = Dstutter(Diwhite(2, 8, inf), in);\n trig =... |
[
{
"role": "user",
"content": "What is `Buffer`?"
},
{
"role": "assistant",
"content": "Buffer — Client-side representation of a buffer on a server"
},
{
"role": "user",
"content": "What does `Buffer.alloc` do?"
},
{
"role": "assistant",
"content": "Create and return a Buf... |
[
{
"role": "user",
"content": "How do I build a live drone with Ndef at 165 Hz? (ugens saw, cutoff 200, lfo 0.3, freq 165, 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... |
[
{
"role": "user",
"content": "Give me an Ndef with an LFO at 0.1 Hz. (ugens tri, cutoff 3200, lfo 0.1, freq 220, 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 through a 3200 Hz ... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\nx = { |gate = 1| BrownNoise.ar(0.5) * EnvGen.kr(Env.cutoff(1), gate, doneAction: Done.freeSelf) }.play;\nx.release(5; // override the Env's specified 1 second release time\n```"
... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// randomly modulate all params\n(\n{ LatoocarfianN.ar(\n SampleRate.ir/4,\n LFNoise2.kr(2, 1.5, 1.5),\n LFNoise2.kr(2, 1.5, 1.5),\n LFNoise2.kr(2, 0.5, 1.5),\n LFNoise2.kr(... |
[
{
"role": "user",
"content": "What does `TempoPlayer.freeResourcesToBundle` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "a control rate player that plays the TempoBus [which is the current Tempo] Arguments: bundle."
}
] |
[
{
"role": "user",
"content": "How do I build a live drone with Ndef at 165 Hz? (ugens blip, cutoff 200, lfo 0.8, freq 165, amp 0.12)"
},
{
"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 200 ... |
[
{
"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 is `PLatch` in SuperCollider?"
},
{
"role": "assistant",
"content": "PLatch — UGenPatterns quark library Based on Latch Category: Streams-Patterns-Events > UGenPatterns > Modifiers."
}
] |
[
{
"role": "user",
"content": "Explain `TChoose` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "TChoose — Randomly select one of several inputs An output is selected randomly on receiving a trigger from an array of inputs. Category: UGens > Triggers, UGens > Random."
}
] |
[
{
"role": "user",
"content": "How do I put reverb on everything?"
},
{
"role": "assistant",
"content": "Send it: one private bus, one FreeVerb instance reading it, and every instrument writing dry to the master and wet to the bus.\n\n```supercollider\n~verb = Bus.audio(s, 2);\nSynthDef(\\verb, {... |
[
{
"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": "Show me a self-contained SuperCollider patch using `GVerb`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\n(\n// CAUTION: THE FOLLOWING CAN BE EXTREMELY LOUD\n// set the following variable to true if you want to run this cod... |
[
{
"role": "user",
"content": "What is the difference between Env and EnvGen?"
},
{
"role": "assistant",
"content": "Env is a language-side description: a list of levels, times and a curve, e.g. `Env.perc(0.01, 1)` or `Env.adsr(0.01, 0.1, 0.5, 0.8)`. EnvGen is the UGen that plays it on the server... |
[
{
"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{ LatoocarfianL.ar(MouseX.kr(20, SampleRate.ir)) * 0.2 }.play(s;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: ... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\nNdef(\\maus, { MouseX.kr });\nNdef(\\haus, { Blip.ar(Ndef.kr(\\maus) * 70) }).play;\nNdef(\\haus).reshaping = \\elastic;\nNdef(\\maus).reshaping = \\elastic;\nNdef(\\maus, { LFNo... |
[
{
"role": "user",
"content": "What are the arguments of PlayBuf.ar?"
},
{
"role": "assistant",
"content": "`PlayBuf.ar(numChannels, bufnum, rate, trigger, startPos, loop)`. numChannels must match what is in the buffer, or you get a channel mismatch; bufnum is the Buffer's integer number; rate is... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ MoogLadder.ar(Mix(LFSaw.ar([120, 180], 0, 0.33)), LinExp.kr(LFCub.kr(0.1, 0.5*pi), -1, 1, 180, 8500), 0.75.dup }.play\n```"
},
{
"role": "assistant",
"content": "A ... |
[
{
"role": "user",
"content": "Give me an Ndef with an LFO at 0.1 Hz. (ugens blip, cutoff 3200, lfo 0.1, freq 110, 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: blip source through a 3200 H... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\n{\n var f, sf, g;\n sf = LFNoise0.ar(MouseX.kr(1, 100, 1));\n g = MouseY.kr(0.1, 10, 1);\n f = Ball.ar(sf, g, 0.01, 0.01);\n f = f * 140 + 500;\n SinOsc.ar(f, 0, 0.2)\n}... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\ns.boot;\n\nb = Buffer.alloc(s, 100);\nb.zero;\nb.set(33, 1.034);\n// This should detect the 33rd value as the highest...\nx = {BufMax.kr(b).poll}.play;\n\n// ...until we set a ne... |
[
{
"role": "user",
"content": "What does `Server.sendMsgSync` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Send the following message to the server and wait until it has completed before resuming the Arguments: condition — an optional instance of Condition used for eval... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `DelayN`."
},
{
"role": "assistant",
"content": "```supercollider\n(\n// Dust randomly triggers Decay to create an exponential\n// decay envelope for the WhiteNoise input source\n{\nz = Decay.ar(Dust.ar(1, 0.5), 0.3, W... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// randomly modulate all params\n(\n{ LatoocarfianC.ar(\n SampleRate.ir/4,\n LFNoise2.kr(2, 1.5, 1.5),\n LFNoise2.kr(2, 1.5, 1.5),\n LFNoise2.kr(2, 0.5, 1.5),\n LFNoise2.kr(... |
[
{
"role": "user",
"content": "How do I granulate a sample with 0.2 s grains? (rate 6, dur 0.2, interp 4, 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(\ns... |
[
{
"role": "user",
"content": "Write a granular texture in SuperCollider."
},
{
"role": "assistant",
"content": "Read a sound file into a buffer, then trigger grains from it. Grain density is the Impulse rate and\ngrain length is dur; keep the density times the length under maxGrains or raise it.... |
[
{
"role": "user",
"content": "Write a Pbind in minorPentatonic using Pseq for the degrees. (scale minorPentatonic, seq Pseq, dur 0.3, octave 5, instr sine, root 0)"
},
{
"role": "assistant",
"content": "`Pbind` sequences an Event per beat, and `\\degree` + `\\scale` does the pitch:\n\n```superco... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n// given a UGen graph ...\n(\n{ Splay.ar(SinOsc.ar({ exprand(300.0, 10000.0) } ! 17, 0, { 1.0.rand } ! 17)) * 0.1 }.play\n);\n\n// ... all existing UGen inputs can be replaced or modified with an arbitrary function\n// e.... |
[
{
"role": "user",
"content": "Write a self-contained SuperCollider patch that uses `Node`. Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\n(\nx = SynthDef(\"help-node-set\", { |freq = 440, out = 0|\n Out.ar(out, SinOsc.ar(freq, 0, 0.1))\n}).play\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": "What does `RedLTurtle.preCommandAction` do?"
},
{
"role": "assistant",
"content": "A general Function that gets evaluated right before each command (character in the production array). Arguments passed in to function: depth, depthLength,"
}
] |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n(\nc=13;a=Array.fib(64,0,1);b=Array.fill(size:c,function:{arg i;a[i]%12});\np=1/(21-c);Pdef(\\x,Pbind(\\dur,p,\\degree,Pseq(b,1,0)));\nr=Array.fill(c,{arg i;Pbindf(Pdef(\\x),\\mtranspose,1-b[i]);});\nPseq(r,(1/p)).play;\... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n// given a UGen graph:\n(\n{\nSplay.ar(SinOsc.ar({ exprand(300.0, 10000.0) } ! 17, 0, { 1.0.rand } ! 17)) * 0.1 \n}.play\n);\n\n// É all existing UGen inputs can be replaced or modified with an arbitrary function (here w... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\nSynthDef(\"help-LFNoise0\", { arg out=0;\n Out.ar(out,\n LFBrownNoise0.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 `FoaEncoderMatrix.dim` do?"
},
{
"role": "assistant",
"content": "Answers the number of encoder dimensions: 2D or"
}
] |
[
{
"role": "user",
"content": "Add combn to a kick patch at room 0.85."
},
{
"role": "assistant",
"content": "Put the reverb inside the `SynthDef` so it is part of the voice:\n\n```supercollider\n// reverb: combn on a kick\n(\nSynthDef(\\reverb_synth, { |out = 0, freq = 330, amp = 0.2|\n var e... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `QuadN`."
},
{
"role": "assistant",
"content": "```supercollider\n// default params\n{ QuadN.ar(SampleRate.ir/4) * 0.2 }.play(s);\n```"
}
] |
[
{
"role": "user",
"content": "Explain this SuperCollider code.\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 between cueing\n// now use like named instance m... |
[
{
"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 LinCongN.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": "Write a minimal SuperCollider example that uses `Env`."
},
{
"role": "assistant",
"content": "```supercollider\n// an envelope in a synth\n(\n{\n var env = Env([0, 1, 0.5, 1, 0], [0.01, 0.5, 0.02, 0.5]);\n SinOsc.ar(470) * EnvGen.kr(env, doneAction: Done.freeSelf)... |
[
{
"role": "user",
"content": "Show me a self-contained SuperCollider patch using `Convolution2L`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\n// next example\n\nb = Buffer.read(s, ExampleFiles.child);\n\n(\n{\n var input = SoundIn.ar(0);\n var frame... |
[
{
"role": "user",
"content": "Write a complete SuperCollider patch built around `LFPulse` that runs as it is."
},
{
"role": "assistant",
"content": "```supercollider\n4.insp;\n[1,2,3].insp;\nPageLayout.insp;\nSynthDef(\"yawn\",{ arg freq=100;\n Out.ar(0,Saw.ar * LFPulse.kr(3))\n}).insp;\n```"... |
[
{
"role": "user",
"content": "What does `MKtl.specs` do?"
},
{
"role": "assistant",
"content": "a local dict for special specs to use with this MKtl's elements or groups."
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `HilbertFIR`."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\ns.scope;\na = { HilbertFIR.ar(SinOsc.ar(100) * -20.dbamp, LocalBuf(2048)) }.play;\na.release;\n```"
}
] |
[
{
"role": "user",
"content": "Write a kick at amp 0.8 with no click. (osc saw, sweep 0.06, decay 0.35, f0 180, f1 55, amp 0.8, 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: saw oscillator, ... |
[
{
"role": "user",
"content": "Write a SuperCollider patch that uses `NodeProxy` and actually plays. Assume nothing about the session."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\n\na = NodeProxy.new.play; // play to hardware output.\na.fadeTime = 2; // fadeTime specifies cro... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `QuadN`."
},
{
"role": "assistant",
"content": "```supercollider\n// default params\n{ QuadN.ar(SampleRate.ir/4) * 0.2 }.play(s);\n```"
}
] |
[
{
"role": "user",
"content": "What does `SparseArray.put` do?"
},
{
"role": "assistant",
"content": "Put a value at the desired index. This works just like all ArrayedCollection types. Behind the scenes the class will ensure the compact representation (deciding whether to store the value explici... |
[
{
"role": "user",
"content": "Explain `Pcollect` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "Pcollect — Apply a function to a pattern Modifies each value by passing it to the function. This is the pattern library's equivalent of Collection#-collect. Category: Streams-Pattern... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ Lorenz2DC.ar(8800, 16000) }.play(s);\n\n// randomly modulate params\n(\n{ Lorenz2DC.ar(\n 110, 22050,\n LFNoise2.kr(1, 2, 10),\n 20,\n LFNoise2.kr(1, 1.5, 2),\n 0.01\n) * ... |
[
{
"role": "user",
"content": "Give me a kick with damping 0.5 on the reverb."
},
{
"role": "assistant",
"content": "A send-style patch: dry signal plus the reverb on the tail:\n\n```supercollider\n// reverb: freeverb2 on a kick\n(\nSynthDef(\\reverb_synth, { |out = 0, freq = 330, amp = 0.2|\n ... |
[
{
"role": "user",
"content": "Write an Ndef at 165 Hz I can retune while it plays. (ugens sine, cutoff 2400, lfo 0.1, freq 165, 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: sine source th... |
[
{
"role": "user",
"content": "What does `AbstractSFP.secs2beats` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "base class for SoundFilePlayer classes Arguments: secs."
}
] |
[
{
"role": "user",
"content": "Explain `MIDIFuncBothCAMessageMatcher` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "MIDIFuncBothCAMessageMatcher — Matches incoming MIDI messages to responder funcs based on message channel and source This is used by MIDIMessageDispatcher to matc... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{SineShaper.ar(SinOsc.ar([400, 404], 0, 0.2), MouseX.kr(0, 1))}.play\n\n{SineShaper.ar(SoundIn.ar, MouseX.kr(0, 1)}.play\n```"
},
{
"role": "assistant",
"content": "A... |
[
{
"role": "user",
"content": "What is `PV_ChainUGen`?"
},
{
"role": "assistant",
"content": "PV_ChainUGen — Base class for UGens that operate on FFT chains"
},
{
"role": "user",
"content": "What does `PV_ChainUGen.fftSize` do?"
},
{
"role": "assistant",
"content": "Return... |
[
{
"role": "user",
"content": "Write a self-contained SuperCollider patch for danger loud click. Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\n// proceed with caution. start at min volume, and not with your expensive speakers.\n\nfork{b=Buffer.alloc(s,512,1)... |
[
{
"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 is the difference between ~foo and a local variable?"
},
{
"role": "assistant",
"content": "`var foo` is a local: it exists only inside the function or file block that declares it. `~foo` is an environment variable: it lives in the current Environment, survives... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n// We'll hear the sawtooth wave when the two sine oscillators are both in the region x = 0.0 to 0.5, y = 0.5 to 1.0\n(\n{\n InRect.ar(\n SinOsc.ar(1), SinOsc.ar(1.3), Rect(0, 0.5, 0.5, 0.5)\n ) * LFSaw.ar(44, 0, 0.1)... |
[
{
"role": "user",
"content": "Give me an Ndef with an LFO at 0.3 Hz. (ugens tri, cutoff 800, lfo 0.3, freq 82.5, amp 0.12)"
},
{
"role": "assistant",
"content": "Use `Ndef` when the patch has to change without stopping:\n\n```supercollider\n// Ndef drone: tri source through a 800 Hz low-pass\n(\... |
[
{
"role": "user",
"content": "Show me a self-contained SuperCollider patch using `Dreset`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var a, freq;\n a = Dreset(Dseries(0, 2, inf), Drand([0, 0, 0, 1], inf));\n freq = Duty.kr(1/MouseX.kr(1, 4... |
[
{
"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\ns.boot;\nb = Buffer.alloc(s, s.sampleRate);\n(\n{\n MultiTap.ar(`[0.1, 0.2, 0.3, 0.4], `[0.1, 0.2, 0.4, 0.8],\n Decay.ar(Dust.ar(2), 0.1, PinkNoise.ar), bufnum: b.bufnum)\n}.... |
[
{
"role": "user",
"content": "What does `TrigSpec.defaultControl` do?"
},
{
"role": "assistant",
"content": "datatype specifying a 'trig' rate input or output"
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// note different syntax in these two examples\n{ if(LFNoise1.kr(1.0, 0.5, 0.5), SinOsc.ar, Saw.ar) * 0.1 }.play;\n\n{ Trig1.ar(Dust.ar(3), 0.2).lag(0.1).if(FSinOsc.ar(440), FSin... |
[
{
"role": "user",
"content": "Explain `SmoothDecimator` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "SmoothDecimator — Smooth samplerate and bitrate reduction Decimates (reduces the effective sample rate). Category: UGens > Filters."
}
] |
[
{
"role": "user",
"content": "What does `View.mouseMove` do?"
},
{
"role": "assistant",
"content": "Handles response to mouse pointer moving after a mouse button has been pressed on the view. Evaluates #-mouseMoveAction. See #Mouse actions for explanation of"
}
] |
[
{
"role": "user",
"content": "What does `Class.instVarNames` do?"
},
{
"role": "assistant",
"content": "An Array of the names of the instance variables for this"
}
] |
[
{
"role": "user",
"content": "What does `QPalette.buttonText` do?"
},
{
"role": "assistant",
"content": "Convenience method to get or set the color for the 'buttonText'"
}
] |
[
{
"role": "user",
"content": "What is `PSVsect` in SuperCollider?"
},
{
"role": "assistant",
"content": "PSVsect — Sieve pattern for intersection of integer generators with point output Pattern for intersection of integer generators with point output. Corresponds to Sieve's methods Sieve#*sect a... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\n var freq;\n\n freq = StreamKrDur(\n Pbrown(40,100,100,inf),\n `[ 1,2, 0.25], // an array\n 0.05);\n\n Tempo.bpm = 100; // times are in beats\n Patch... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `NamedControl`."
},
{
"role": "assistant",
"content": "```supercollider\n// use NamedControl to create a number of multichannel controls:\n\na = { SinOsc.ar(NamedControl.kr(\\freq, [300, 330, 370], [1, 0.3, 0.02])).sum... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// create a window for a given Ndef\nNdef(\\sound).edit\n(\nNdef(\\sound, { |freq = 440, rate = 2|\n SinOsc.ar(freq * [1, 1.625]) * SinOsc.kr(rate).max(0) * 0.2\n}).play;\n);\n\... |
[
{
"role": "user",
"content": "Write a Pbind in minorPentatonic using Pwalk for the degrees. (scale minorPentatonic, seq Pwalk, 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```sup... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n// a stereo signal, both channels at 0dB\n{ [SinOsc.ar(440), SinOsc.ar(440)] }.play\n\n// using Balance on a stereo signal with the position parameter at 0, effectively the same sound but both channels at -3dB\n{ Balance2... |
[
{
"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 code do?\n```supercollider\na = Scheduler(SystemClock);\n\na.sched(3, { \"now it is 3 seconds.\".postln; nil });\na.sched(5, { \"now it is 5 seconds.\".postln; nil });\na.sched(1, { \"now it is 1 second.\".postln; nil });\n\na.advance(0.5);\na.advan... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ OnePole.ar(WhiteNoise.ar(0.5), 0.95) }.play\n\n{ OnePole.ar(WhiteNoise.ar(0.5), -0.95) }.play\n\n{ OnePole.ar(WhiteNoise.ar(0.5), Line.kr(-0.99, 0.99, 10) }.play\n```"
},
{... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.