conversations listlengths 2 6 |
|---|
[
{
"role": "user",
"content": "Explain this SuperCollider code.\n```supercollider\n// larger pitch range and lookBack in upper voice \n// as with most patterns, no automatic array expansion of pattern arguments\n\n(\n~src = Pseg(Pseq([65, 85], inf), 5, \\sin).round;\n\np = Pbind(\n \\dur, 1/7,\n \\midinote... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\nd = { |gate = 1| { BrownNoise.ar }.dup * EnvGen.kr(Env.asr, gate, doneAction: Done.freeSelf) }.play;\nd.release(3;\n```"
},
{
"role": "assistant",
"content": "A closi... |
[
{
"role": "user",
"content": "What does `AmpComp.ar` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Basic psychoacoustic amplitude compensation. Arguments: freq — Input frequency value. For freq == root, the output is 1.0.; root — Root freq relative to which the curve is... |
[
{
"role": "user",
"content": "Explain `Node` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "Node — Abstract superclass of Synth and Group This class is the abstract super class of Synth and Group, which represent synth and group nodes on the server. Node objects are not made ex... |
[
{
"role": "user",
"content": "How do I put a pluck in a reverb at mix 0.45?"
},
{
"role": "assistant",
"content": "A send-style patch: dry signal plus the reverb on the tail:\n\n```supercollider\n// reverb: freeverb2 on a pluck\n(\nSynthDef(\\reverb_synth, { |out = 0, freq = 330, amp = 0.2|\n ... |
[
{
"role": "user",
"content": "Explain this SuperCollider code:\n```supercollider\n{ SinOsc.ar(440) * EnvGen.kr(Env.perc(0.01, 1), doneAction: 2) }.play;\n```"
},
{
"role": "assistant",
"content": "It plays a 440 Hz sine with a percussive envelope, and the Synth frees itself when the envelope\nen... |
[
{
"role": "user",
"content": "What does `IdentityDictionary.insertParent` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Inserts a dictionary into the chain of parents of the receiver (rather than replacing the Arguments: newParent — The dictionary that is added to the p... |
[
{
"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 self-contained SuperCollider patch that uses `PV_Mul`. Define every value it uses."
},
{
"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... |
[
{
"role": "user",
"content": "What does `GUI.initClass` do?"
},
{
"role": "assistant",
"content": "Sets the `skin` to default values on compile. `fontSpecs: [\"Helvetica\","
}
] |
[
{
"role": "user",
"content": "What does `IBVAfile.convert` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "convert file from binary to Arguments: path — input binary file; outPath — optional output text file path. if nil then `path++\"CONVERTED.txt\"` will be used.."
}
... |
[
{
"role": "user",
"content": "Explain `MultiTrackAudioSpec` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "MultiTrackAudioSpec — datatype specifying multiple 'audio' rate tracks Where a multi-channel audio format like Ambisonics is considered to be a single output (albeit with ... |
[
{
"role": "user",
"content": "Explain `TWindex` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "TWindex — Triggered windex. When triggered, returns a random index value based on array as a list of probabilities. By default the list of probabilities should sum to 1.0, when the no... |
[
{
"role": "user",
"content": "Write a GrainBuf synth at 10 grains per second. (rate 10, dur 0.15, interp 4, mode sweep, rev 1)"
},
{
"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": "What does `IdentityBag.add` do?"
},
{
"role": "assistant",
"content": "Add anObject to the Bag. A Bag may contain multiple entries of the same object. `IdentityBag[1, 2,"
}
] |
[
{
"role": "user",
"content": "What is `BinaryOpStream` in SuperCollider?"
},
{
"role": "assistant",
"content": "BinaryOpStream — two streams combined by a binary operator A BinaryOpStream is created as a result of a binary math operation on a pair of Streams. It is defined to respond to next by ... |
[
{
"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": "Give me an Ndef with an LFO at 0.8 Hz. (ugens blip, cutoff 400, lfo 0.8, freq 165, amp 0.12)"
},
{
"role": "assistant",
"content": "Use `Ndef` when the patch has to change without stopping:\n\n```supercollider\n// Ndef drone: blip source through a 400 Hz low-pass\n(... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n// proceed with caution. start at min volume, and not with your expensive speakers.\n\nfork{b=Buffer.alloc(s,512,1);inf.do{b.cheby({[1,0].choose}!2);{(Shaper.ar(b,SinOsc.ar(55,0,Line.kr(1,0,2,1,0,2))))!2}.play;0.1.wait;}... |
[
{
"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": "What does `Sieve.segmentGreaterEqual` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Returns a new Sieve of mode 'points' with Integers greater than or equal Arguments: lo — Integer.."
}
] |
[
{
"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 does this SuperCollider patch do?\n```supercollider\n(// * //watch the postWindow\na=[\"m\",\"x\",\"f\",\"k\",\"d\",\"p\"];\nx=Array;\ny=x.newClear(6);\n~mxfkdp=Task({\n inf.do({y.put(x.series(6,0,1).choose,a.scramble).postln;\n 0.03.wait;})}).play;\nm=fork({inf.do({\n ... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// modulate frequency and index multiplier\n{ FBSineN.ar(LFNoise2.kr(1, 1e4, 1e4), LFNoise2.kr(1, 16, 17), 1, 1.005, 0.7) * 0.2 }.play(s;\n```"
},
{
"role": "assistant",
... |
[
{
"role": "user",
"content": "What does `EventStreamPlayer.stop` do?"
},
{
"role": "assistant",
"content": "Stop playing now. (Pause and stop have the same"
}
] |
[
{
"role": "user",
"content": "Show another SuperCollider example using `Pmulp`."
},
{
"role": "assistant",
"content": "```supercollider\n// sound example\n(\nSynthDef(\\sinegrain,\n { |out = 0, freq = 440, sustain = 0.02|\n var env;\n env = EnvGen.kr(Env.perc(0.001, sustain), 1, doneActio... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Crackle`."
},
{
"role": "assistant",
"content": "```supercollider\n{ Crackle.ar(1.95, 0.5) }.play;\n\n// modulate chaos parameter\n{ Crackle.ar(Line.kr(1.0, 2.0, 3), 0.5, 0.5) }.play;\n```"
}
] |
[
{
"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": "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": "What does this SuperCollider code do?\n```supercollider\n// try wiggling the mouse quickly;\n// LFNoise frequently seems stuck, LFDNoise changes smoothly.\n\n{ LFClipNoise.ar(MouseX.kr(0.1, 1000, 1), 0.1) }.play\n\n{ LFDClipNoise.ar(MouseX.kr(0.1, 1000, 1), 0.1) }.play\n\n// si... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Duty`."
},
{
"role": "assistant",
"content": "```supercollider\n(\n {\n var freq;\n freq = Duty.kr(\n Drand([0.01, 0.2, 0.4], inf), // demand ugen as durations\n 0,\n Dseq([204, 400, 201, 5... |
[
{
"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": "What is `HS` in SuperCollider?"
},
{
"role": "assistant",
"content": "HS — object for use of synth values in the language by event patterns To be used in connection with PHS / PHSuse to play event patterns using synth values. Holds a singular synth definition, keeps... |
[
{
"role": "user",
"content": "Write a self-contained SuperCollider patch that uses `Dwhite`. Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var a, freq, trig;\n a = Dwhite(0, 15, inf);\n trig = Impulse.kr(MouseX.kr(1, 40, 1));\n freq = Demand.kr(t... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `NodeProxy`."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\n\na = NodeProxy.new.play; // play to hardware output.\na.fadeTime = 2; // fadeTime specifies crossfade\n// set the source\na.source = { Sin... |
[
{
"role": "user",
"content": "What is `OpenBCI` in SuperCollider?"
},
{
"role": "assistant",
"content": "OpenBCI — Abstract class for OpenBCI communication for more information about the biosensing hardware see https://openbci.com Category: External Control."
}
] |
[
{
"role": "user",
"content": "What does `PV_MagClip.new` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Clip bins to a threshold. Arguments: buffer — FFT buffer.; threshold — Magnitude threshold.."
}
] |
[
{
"role": "user",
"content": "Write a complete SuperCollider patch built around `MultiTap` that runs as it is."
},
{
"role": "assistant",
"content": "```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(Dus... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ LFNoise1.ar(1000, 0.25) }.play;\n\n// modulate frequency\n\n{ LFNoise1.ar(XLine.kr(1000, 10000, 10), 0.25) }.play;\n\n// as frequency modulator\n(\n{ SinOsc.ar(\n LFNoise1.a... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\nSynthDef(\"help-GrayNoise\", { |out = 0|\n Out.ar(out,\n GrayNoise.ar(-20.dbamp)\n )\n}).play;\n```"
},
{
"role": "assistant",
"content": "A closing bracket i... |
[
{
"role": "user",
"content": "Explain this SuperCollider patch.\n```supercollider\n// =========================\n// extra demos for \\glockenspiel\n// =========================\n\n(\n// made by Diya Menon\n// demo\nPbindef(\\dmglockenspiel,\n \\instrument, \"glockenspiel\",\n \\midinote, Pseq([\n ... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Dshuf`."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var a, freq, trig;\n a = Dseq([Dshuf([1, 3, 2, 7, 8.5], 3)], inf);\n trig = Impulse.kr(MouseX.kr(1, 40, 1));\n freq = Demand.kr(trig, 0, a) *... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\na = {LFTri.ar(100+(1000*Maths2.ar(MouseX.kr, MouseY.kr, 0.2, 1, 0, 1, LFPulse.ar(2))[0]), 0, 0.1}.play\n```"
},
{
"role": "assistant",
"content": "A closing bracket i... |
[
{
"role": "user",
"content": "Give me a complete SuperCollider patch for Nested ifs in a SynthDef: bind everything it needs before it is used."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\nvar noise, out;\nnoise = LFNoise0.kr(8);\n\nout = if( noise > 0.0,\n if(noise > 0.5, \n ... |
[
{
"role": "user",
"content": "What does `TraerAttraction.getOneEnd` do?"
},
{
"role": "assistant",
"content": "Return the particles being attracting or repelling each Returns: a LINKClasses/TraerParticle"
}
] |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n(\nf = ();\nf.beatAndBar = {\n var t = currentEnvironment.clock; // t= TempoClock.new;\n var text = \"xB: \";\n\n var nBeatsPerBar = { arg n, beats, clock;\n var nBpb = clock.beatsPerBar * n;\n \"\" ++ n ++ te... |
[
{
"role": "user",
"content": "Explain `LinCongC` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "LinCongC — Linear congruential chaotic generator A cubic-interpolating sound generator based on the difference equation: Category: UGens > Generators > Chaotic."
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ LFNoise0.ar(1000, 0.25) }.play;\n\n// modulate frequency\n\n{ LFNoise0.ar(XLine.kr(1000, 10000, 10), 0.25) }.play;\n\n// as frequency modulator\n(\n{ SinOsc.ar(\n LFNoise0.a... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Ndef`."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\n\nNdef(\\a).play; // play to hardware output.\nNdef(\\a).fadeTime = 2; // fadeTime specifies crossfade\n// set the source\nNdef(\\a, { SinOsc.ar... |
[
{
"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": "Show another SuperCollider example using `Paddp`."
},
{
"role": "assistant",
"content": "```supercollider\n// sound example\n(\nSynthDef(\\sinegrain,\n { |out = 0, freq = 440, sustain = 0.02|\n var env;\n env = EnvGen.kr(Env.perc(0.001, sustain), 1, doneActio... |
[
{
"role": "user",
"content": "Give me a complete SuperCollider patch for Spring saw: bind everything it needs before it is used."
},
{
"role": "assistant",
"content": "```supercollider\nb = Buffer.read(s, Platform.resourceDir +/+ \"sounds/a11wlk01.wav\");\n\n// This is very cool!\n\n(\n{\n Spri... |
[
{
"role": "user",
"content": "Show me a self-contained SuperCollider patch using `Dshuf`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var a, freq, trig;\n a = Dseq([Dshuf([1, 3, 2, 7, 8.5], 3)], inf);\n trig = Impulse.kr(MouseX.kr(1, 40, 1))... |
[
{
"role": "user",
"content": "How do I granulate a sample with 0.15 s grains? (rate 28, dur 0.15, interp 4, mode noise, 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": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\n{\n SinOsc.ar(\n RunningMax.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(\... |
[
{
"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": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\nSynthDef(\"mini\",{\n Out.ar( 0,\n Instr.ar(\"minimoog.two\", SinOsc.kr(1.0).range(300,500) )\n )\n}).send(s;\n```"
},
{
"role": "assistant",
"content": "A closi... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```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, WhiteNoise.ar);\nDelayC.ar(z, 0.2, 0.2, 1, z); // input is mixed with d... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n(\nNdef(\\bitshift, {\n var t = PulseCount.ar(Impulse.ar(8e3));\n var sig = HPF.ar(\n ( \n ((t * 15) & (t >> 5)) |\n ((t * 5) & (t >> [3, 4])) |\n ((t * 2) & (t >> 9)) |\n ... |
[
{
"role": "user",
"content": "What does `SimpleNumber.ibetaCInvA` do?"
},
{
"role": "assistant",
"content": "Returns a value `a` such that: `q = ibetaC(a, b, x)`. Requires `b` > 0, 0 < `x` < 1, and 0 <= `q` <="
}
] |
[
{
"role": "user",
"content": "Add combn to a pluck patch at room 0.85."
},
{
"role": "assistant",
"content": "A send-style patch: dry signal plus the reverb on the tail:\n\n```supercollider\n// reverb: combn on a pluck\n(\nSynthDef(\\reverb_synth, { |out = 0, freq = 330, amp = 0.2|\n var env ... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `BusPlug`."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\nz = Bus.control(s, 16);\nz.setn({ |i| (i * 5).nthPrime } ! 16 * 5 + 100);\na = BusPlug.for(z);\n{ Splay.ar(SinOsc.ar(a.kr(3, MouseX.kr(0, 25)... |
[
{
"role": "user",
"content": "Explain this SuperCollider code.\n```supercollider\n// wait\n\n(\nvar r;\nr = Routine {\n 10.do({ |a|\n a.postln;\n // Often you might see Wait being used to pause a routine\n // This waits for one second between each number\n 1.wait;\n });\n // Wait half second ... |
[
{
"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": "What does `LinuxPlatform.runInTerminalCmd` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "get or set the preferred command to invoke a terminal emulator when performing String#-runInTerminal. If `nil` (which is the default), sclang will sear... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ LorenzTrig.ar(11025, 44100) }.play(s);\n\n// randomly modulate params\n(\n{ LorenzTrig.ar(\n 11025, 44100,\n LFNoise0.kr(1, 2, 10),\n 20,\n LFNoise0.kr(1, 1.5, 2),\n 0.02\... |
[
{
"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": "Explain this SuperCollider code.\n```supercollider\n// a Function passed to loopFunc is applied to all items of the looping\n\n(\n~lookBack = 0;\n\np = Pbind(\n \\dur, Pn(Pshuf([1, 1, 2]/6)),\n \\midinote, PSloop(\n Prand((60..80), inf),\n bufSize: 10,\n lookBack: { ... |
[
{
"role": "user",
"content": "Give me a complete SuperCollider patch for little experiment with periodicity: bind everything it needs before it is used."
},
{
"role": "assistant",
"content": "```supercollider\n/* An little experiment with periodicity. \n Maybe there can be some sync artifac... |
[
{
"role": "user",
"content": "What does `AbstractFunction.lcm` do?"
},
{
"role": "assistant",
"content": "`a = { |min, max| rrand(min, max).postln"
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// turn on and off a sine oscillator\n\n(\nSynthDef(\"help-DigitalIn\", { |out = 0|\n Out.ar(out,\n SinOsc.ar(500, 0, 0.1 * DigitalIn.ar(0))\n )\n}).play;\n```"
},
{
... |
[
{
"role": "user",
"content": "How do I play a random minorPentatonic scale at octave 4? (scale minorPentatonic, seq Prand, dur 0.25, octave 4, instr pluck, root 0)"
},
{
"role": "assistant",
"content": "The pattern is the composition here; `\\strum` spreads the chord:\n\n```supercollider\n(\nSyn... |
[
{
"role": "user",
"content": "Explain `Perlin3` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "Perlin3 — 3D Perlin Noise Perlin noise is a type of gradient noise devised by Ken Perlin, and commonly used to add texture to objects rendered in computer graphics. It is deterministi... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\ns.boot;\n(\nz = {\n BLowPass4.ar(\n SoundIn.ar([0, 1]),\n MouseX.kr(10, 20000, \\exponential), // cutoff freq.\n MouseY.kr(0.1, 1.0, \\linear), // rq - compensate for 2... |
[
{
"role": "user",
"content": "Explain `BBCutProc` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "BBCutProc — Base class for cutting procedures in BBCut2 An essential base class for the BBCut library. derive from this respecting the interface to create your own cut procedures. T... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```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, WhiteNoise.ar);\nDelayN.ar(z, 0.2, 0.2, 1, z); // input is mixed with d... |
[
{
"role": "user",
"content": "Write a Pbind in majorPentatonic using Pwalk for the degrees. (scale majorPentatonic, seq Pwalk, dur 0.25, octave 5, instr sine, root 0)"
},
{
"role": "assistant",
"content": "Put the scale and the degree pattern in the `Pbind` and it will pick notes for you:\n\n```... |
[
{
"role": "user",
"content": "What is `StreamKrDurGui` in SuperCollider?"
},
{
"role": "assistant",
"content": "StreamKrDurGui — gui class Category: Libraries > crucial > GuiClasses."
}
] |
[
{
"role": "user",
"content": "What is `Wrap` in SuperCollider?"
},
{
"role": "assistant",
"content": "Wrap — Wrap a signal outside given thresholds. This differs from the BinaryOpUGen Methods#wrap2#wrap2 in that it allows one to set both low and high thresholds. Category: UGens > Maths."
}
] |
[
{
"role": "user",
"content": "Give me a granular patch with noise grain position and interp 2. (rate 14, dur 0.1, 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 w... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n// loopFunc also takes a pattern of Functions, in this case\n// the arg loopFuncPerItem decides if next Functions are polled per item or per loop.\n\n(\n~lookBack = 0;\n~loopFuncPerItem = true; // or 1\n\np = Pbind(\n \... |
[
{
"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 is `SynthDesc`?"
},
{
"role": "assistant",
"content": "SynthDesc — Description of a synth definition"
},
{
"role": "user",
"content": "What does `SynthDesc.read` do?"
},
{
"role": "assistant",
"content": "Adds all synthDescs in a path to... |
[
{
"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": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ Latoocarfian2DL.ar(MouseX.kr(20, SampleRate.ir * 0.5), MouseX.kr(40, SampleRate.ir), mul:0.2) }.play(s);\n\n\n(\n{ Latoocarfian2DL.ar(\n SampleRate.ir/4,\n SampleRate.ir,\n ... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `LFPulse`."
},
{
"role": "assistant",
"content": "```supercollider\n{ LFPulse.ar(50) * 0.1 }.play;\n```"
}
] |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n// server has hardwareBufferSize 512 for this example.\ns.options.hardwareBufferSize = 512; s.reboot;\n// do something that sends messages with server latency\nPbind(\\degree, Pbrown(-14, 14, 3), \\dur, 1/8).play;\ns.late... |
[
{
"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": "Explain `RedRLE` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "RedRLE — run-length compression/decompression See http://en.wikipedia.org/wiki/Run-length_encoding Category: Red > redTools."
}
] |
[
{
"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": "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": "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": "Write a granular texture, dry. (rate 14, 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.waitForBoot {\... |
[
{
"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": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// compares a 441 Hz sine tone derived from sample rate (44100 * 0.01, left)\n// with a 440 Hz tone (right), resulting in a 1 Hz beating\n(\n{\n var freq;\n freq = [SampleRate.... |
[
{
"role": "user",
"content": "Write a SuperCollider patch that uses `EnvGen` and actually plays. Assume nothing about the session."
},
{
"role": "assistant",
"content": "```supercollider\n// as amplitude envelope\n(\n{\n var env = Env([0, 1, 0.5, 1, 0], [0.01, 0.5, 0.02, 0.5]);\n SinOsc.ar(470... |
[
{
"role": "user",
"content": "What is `NTube` in SuperCollider?"
},
{
"role": "assistant",
"content": "NTube — physical modeling simulation; N tubes Physical model; N tube sections with N-1 scattering junctions inbetween; relative areas determine k for each junction, where each junction has its ... |
[
{
"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.35, f0 220, f1 40, 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// ki... |
[
{
"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": "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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.