conversations listlengths 2 6 |
|---|
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `TIRand`."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\"help-TIRand\", {\n var trig, outBus;\n trig = Dust.kr(10);\n outBus = TIRand.kr(0, 1, trig); // play on random channel between 0 and 1... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\n{\n# x,y,z = RosslerL.ar(MouseX.kr(1, 200));\nPan2.ar(Pulse.ar(x.range(100,1000), y.range(0,1), 0.3), z)\n}.play(s)\n```"
},
{
"role": "assistant",
"content": "A c... |
[
{
"role": "user",
"content": "Explain this code:\n```supercollider\n~buf = Buffer.read(s, \"C:/sounds/break.wav\");\nPlayBuf.ar(1, ~buf, BufRateScale.kr(~buf), loop: 1);\n```"
},
{
"role": "assistant",
"content": "Loads a sound file into server memory, then plays it in a loop at the file's origi... |
[
{
"role": "user",
"content": "Are you a general assistant?"
},
{
"role": "assistant",
"content": "No. I am sc-mind, a 198M model trained on SuperCollider. Ask me about SynthDefs, UGens, Patterns, Ndef, sclang and scsynth; outside that I have little to offer."
}
] |
[
{
"role": "user",
"content": "Explain `PLgeom` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "PLgeom — dynamic scope Pgeom variant Takes Symbol args for later reference by the Streams, which will read from variables in the Environments of their instantiation. See PLx_suite. Cat... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Timer`."
},
{
"role": "assistant",
"content": "```supercollider\n// using timer to modulate sine frequency: the slower the trigger is the higher the frequency\n(\n{ var trig;\n trig = Impulse.kr(MouseX.kr(0.5, 20, 1)... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `LFDNoise3`."
},
{
"role": "assistant",
"content": "```supercollider\n// try wiggling mouse quickly:\n// LFNoise2 overshoots when going from high to low freqs, LFDNoise changes smoothly.\n\n{ SinOsc.ar(LFNoise2.ar(Mou... |
[
{
"role": "user",
"content": "Write a granular texture, through a reverb."
},
{
"role": "assistant",
"content": "Granulation is `GrainBuf` plus a trigger rate; the position can move:\n\n```supercollider\n// granular synth with GrainBuf\n(\ns.waitForBoot {\n var buf = Buffer.read(s, Platform.r... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\n// use input amplitude to control SinOsc frequency - use headphones to prevent feedback.\n{\n SinOsc.ar(\n Amplitude.kr(\n SoundIn.ar(0),\... |
[
{
"role": "user",
"content": "Write a SuperCollider patch for Very quick-and-dirty hack to show stereo phase. Start by defining the values the patch depends on."
},
{
"role": "assistant",
"content": "```supercollider\n(\nb = Bus.audio(s, 2);\na = { |inbus = 0|\n var sig = In.ar(inbus, 2);\n //... |
[
{
"role": "user",
"content": "Write a self-contained SuperCollider patch that uses `InFeedback`. Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\"help-InFeedback\", { |out = 0, in = 0|\n var input, sound;\n input = InFeedback.ar(in, 1);\n ... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `Scale`."
},
{
"role": "assistant",
"content": "```supercollider\n(\nr = {\n var scale = Scale.choose.postln;\n SinOsc.ar(\n (\n DegreeToKey.kr(\n scale.as(LocalBuf),\n MouseX.kr(0, 15), // mouse index... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n(\n{\n var time = 0.23;\n var freq = (55).midicps;\n var a = VarSaw.ar(freq/2, width: XLine.ar(0.5,1,time)).range(0,XLine.ar(0.666,1/666,time));\n var tone = SinOsc.ar(freq).fold(-0.23*a,a) * EnvGen.ar(Env([1,0],[tim... |
[
{
"role": "user",
"content": "Show me a self-contained SuperCollider patch using `Rand`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```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.... |
[
{
"role": "user",
"content": "What does `Date.resolve` do?"
},
{
"role": "assistant",
"content": "Resolve any inconsistencies in the Date object, updating all the fields (in particular `dayOfWeek` and `rawSeconds`) as necessary. If the instance properties (`year`, `month`, `day`, `hour`, `minute... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ SinOsc.ar(500 + LFPulse.ar(4).bipolar(40), 0, 0.5 * 0.1 }.play;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis opened ear... |
[
{
"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 SuperCollider patch for Detune idea is from James Harkins. Start by defining the values the patch depends on."
},
{
"role": "assistant",
"content": "```supercollider\n(\na = {\n |freq = 40, wid = 0.5|\n Mix(LFPulse.ar(freq *((Array.fill(40, Pxrand((1, 2..2... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n(\ns = Server.local;\nServer.default = s;\ns.boot;\n);\n\n(\n// PLseq not used as proxy, only taken as it defaults to repeats = inf\n\np = Pbind(\n \\midinote, PLseq([PLser(\\a, \\r), 60, 61]),\n \\dur, 0.2\n);\n\n/... |
[
{
"role": "user",
"content": "What is `IdentitySet`?"
},
{
"role": "assistant",
"content": "IdentitySet — a set according to identity"
},
{
"role": "user",
"content": "What does `IdentitySet.add` do?"
},
{
"role": "assistant",
"content": "Add anObject to the IdentitySet. ... |
[
{
"role": "user",
"content": "What is `WrapSummer` in SuperCollider?"
},
{
"role": "assistant",
"content": "WrapSummer — Pulse counter with floating point steps WrapSummer, based on Stepper, but allowing floats as inputs, so that you can increment a sum with each step. WrapSummer differs from Su... |
[
{
"role": "user",
"content": "What is `Event`?"
},
{
"role": "assistant",
"content": "Event — an environment that represents an action"
},
{
"role": "user",
"content": "What does `Event.parentEvents` do?"
},
{
"role": "assistant",
"content": "An extendible IdentityDiction... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{var n= 1024; WaveletDaub.ar(SoundIn.ar, n, MouseX.kr(0,n))}.play\n\n{var n= 1024; WaveletDaub.ar(Saw.ar(MouseY.kr(50,10000, 'exponential'),0.5), n, MouseX.kr(0,n)}.play\n```"
... |
[
{
"role": "user",
"content": "How do I play a random minorPentatonic scale at octave 6? (scale minorPentatonic, seq Pshuf, dur 0.2, octave 6, instr pluck, root 0)"
},
{
"role": "assistant",
"content": "`Pbind` sequences an Event per beat, and `\\degree` + `\\scale` does the pitch:\n\n```supercol... |
[
{
"role": "user",
"content": "Give me a granular patch with noise grain position and interp 2. (rate 14, dur 0.2, interp 2, 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(... |
[
{
"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 `VSFP` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "VSFP — Varispeed sound file player Varispeed sound file player. This is for playing long soundfiles from disk. This is not a sample player. Category: Libraries > crucial > Players, Libra... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\nb = Buffer.read(s, ExampleFiles.child);\n\n{ BufRd.ar(1, b, Sweep.ar(Impulse.ar(BufDur.kr(b).reciprocal), BufSampleRate.kr(b)) }.play;\n\nb.free\n```"
},
{
"role": "assis... |
[
{
"role": "user",
"content": "Write a granular texture, dry. (rate 6, 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 {\n var buf = B... |
[
{
"role": "user",
"content": "What does `EnvelopeView.defaultReceiveDrag` do?"
},
{
"role": "assistant",
"content": "If the drag data is of the acceptable form (see #-defaultCanReceiveDrag above), sets #-value using that"
}
] |
[
{
"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": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\ns.boot;\n\n(\n{\n var in, chain;\n in = WhiteNoise.ar(0.2);\n chain = FFT(LocalBuf(2048), in);\n chain = PV_BrickWall(chain, SinOsc.kr(0.1));\n IFFT(chain);\n}.play\n```"
... |
[
{
"role": "user",
"content": "What can you do?"
},
{
"role": "assistant",
"content": "Write and explain SuperCollider: SynthDefs, UGens, Patterns, Ndef, buses and envelopes, and tell you why a patch is silent or will not compile. I am 198M parameters, so I am narrow on purpose."
}
] |
[
{
"role": "user",
"content": "Write a bell whose tail uses freeverb."
},
{
"role": "assistant",
"content": "A send-style patch: dry signal plus the reverb on the tail:\n\n```supercollider\n// reverb: freeverb on a bell\n(\nSynthDef(\\reverb_synth, { |out = 0, freq = 330, amp = 0.2|\n var env ... |
[
{
"role": "user",
"content": "What does `FoaEncoderMatrix.newPanto` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Pantophonic (2D) regular polygon Arguments: numChans — number of input channel feeds; orientation — `'flat'` or `'point'`."
}
] |
[
{
"role": "user",
"content": "Write a granular texture, through a reverb. (rate 16, dur 0.04, interp 4, mode noise, rev 1)"
},
{
"role": "assistant",
"content": "`GrainBuf` needs a buffer, a trigger and a grain duration:\n\n```supercollider\n// granular synth with GrainBuf\n(\ns.waitForBoot {\n ... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `BRF`."
},
{
"role": "assistant",
"content": "```supercollider\n{ BRF.ar(Saw.ar(200, 0.1), FSinOsc.kr(XLine.kr(0.7, 300, 20), 0, 3800, 4000), 0.3) }.play;\n\n{ BRF.ar(Saw.ar(200, 0.5), MouseX.kr(100, 10000, 1), 0.3) }.... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Dseries`."
},
{
"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 = Demand.kr(trig, 0, a) * 30 + 340;\n SinOsc.... |
[
{
"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": "Give me a saw kick with a 0.06 s pitch sweep. (osc saw, sweep 0.06, decay 0.12, f0 220, f1 48, 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: saw oscillator, 0.06 s ... |
[
{
"role": "user",
"content": "How do I put a pluck in a reverb at mix 0.3? (verb freeverb2, room 0.85, damp 0.5, mix 0.3, source pluck)"
},
{
"role": "assistant",
"content": "Put the reverb inside the `SynthDef` so it is part of the voice:\n\n```supercollider\n// reverb: freeverb2 on a pluck\n(\... |
[
{
"role": "user",
"content": "What does `Clothesline.new` do?"
},
{
"role": "assistant",
"content": "Return a new instance. Instances can share the same code files. The current environment is captured now and can be accessed from the code"
}
] |
[
{
"role": "user",
"content": "Give me a Pbind with fm voices and a 0.2 rhythm. (scale minorPentatonic, seq Prand, dur 0.2, octave 4, 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": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{Formants.ar(100, Vowel([\\e, \\o], [\\bass])) * 0.1 }.play\n{Formants.ar(100, Vowel(\\e, [\\bass,\\alto])) * 0.1 }.play\n{Formants.ar(100, Vowel([\\e, \\o], [\\bass,\\alto]) * 0... |
[
{
"role": "user",
"content": "How do I play a random minorPentatonic scale at octave 4? (scale minorPentatonic, seq Pseq, dur 0.25, octave 4, 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```superco... |
[
{
"role": "user",
"content": "SC can't open or read files?"
},
{
"role": "assistant",
"content": "SuperCollider forum — SC can't open or read files\n\nIt looks as though it’s finally working!\n\nI moved the file to a folder I created in the user support directory for SuperCollider and then chang... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\ns.boot\n\n{ Ringz.ar(PinkNoise.ar([0.1, 0.2]).scope(\\pink), 2000, 1, 0.25 }.play; // multichannel works\ns.scope; // can still separately scope the output of the server\n```"
... |
[
{
"role": "user",
"content": "What does `ObjectGui.guiBody` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "When implementing subclasses this is the primary and often the only method that needs to be implemented. The ObjectGui parent class takes care of setting up all win... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{\nvar a, b, t = Impulse.kr(2);\na = { Dseq([1, 2, 3, 4, 5], inf) } * 100;\nb = a + 1;\nDemand.kr(t, 0, [a, b]).poll(t\n}.play\n```"
},
{
"role": "assistant",
"conten... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// next example\n\nb = Buffer.read(s, ExampleFiles.child);\n\n(\n{\n var input = SoundIn.ar(0);\n var framesize = 2048; // must have power of two\n Convolution2L.ar(input, b, ... |
[
{
"role": "user",
"content": "What is `ParGroup`?"
},
{
"role": "assistant",
"content": "ParGroup — Client-side representation of a parallel group node on the server"
},
{
"role": "user",
"content": "What does `ParGroup.basicNew` 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// 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)); DetectSilence.ar(signal, doneAction: D... |
[
{
"role": "user",
"content": "Which keys does a Pbind understand?"
},
{
"role": "assistant",
"content": "The ones you use constantly are \\instrument (a SynthDef name), \\dur (seconds), \\degree (scale degree), \\midinote, \\freq, \\amp, \\legato (note length as a fraction of \\dur), and \\scale... |
[
{
"role": "user",
"content": "Write a self-contained SuperCollider patch for Nuclear Fallout (a SuperCollider snippet). Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var saw, bpf;\n saw = Saw.ar(\n freq: [60,150],\n mul: LFPulse.kr(\n fr... |
[
{
"role": "user",
"content": "Explain this SuperCollider code.\n```supercollider\n// ZoomH2 records two stereo .wav files:\n// SRxxxF.wav\n// SRxxxR.wav\n// correct input for FoaEncoderMatrix.newZoomH2 is:\n\n~in = [ SRxxxR[0], SRxxxR[1], SRxxxF[0], SRxxxF[1] ]\n```"
},
{
"role": "assist... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// constant source (72), max deviation +/- 3\n// no repetition within 5 pitches\n\n(\nx = {\n var trig = Impulse.ar(5);\n var midi = Demand.ar(trig, 0, DIdev(72, 2, -1, 2));\n ... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `LinCongN`."
},
{
"role": "assistant",
"content": "```supercollider\n// default initial params\n{ LinCongN.ar(MouseX.kr(20, SampleRate.ir)) * 0.2 }.play(s);\n```"
}
] |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n(\n//var board= CytonSerial(\"/dev/tty.usbserial-DM00DRM0\", initAction: {|b| b.start});\nvar board= SyntheticData(initAction: {|b| b.start});\n~board= board;\n);\n\n~board.accelAction= {|xyz| xyz.postln}; //start postin... |
[
{
"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": "What does this SuperCollider patch do?\n```supercollider\nb = Buffer.read(s, Platform.resourceDir +/+ \"sounds/a11wlk01.wav\");\n\n// This is very cool!\n\n(\n{\n Spring.ar(PlayBuf.ar(1, b, loop: 1)*Saw.ar(4));\n}.play;\n)\n```"
},
{
"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{ SinOsc.ar(\n SinOsc.ar(\n XLine.kr(1, 100, 5)).exprange(*XLine.kr([20, 800], [7000, 200], 10)\n )\n ) * 0.1\n\n}.play;\ns.record(duration: 10);\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 this SuperCollider patch do?\n```supercollider\n{h={|f|1-LFTri.ar(f)};l={|s,e|Line.ar(s,e,1200,1,0,2)};FreeVerb.ar(h.(l.(147,5147))*h.(l.(1117,17))*h.(100)*h.([55,55.1])*0.05,0.7,1)}.play\n\n//Explanation of this piece - http://schemawound.com/post/40100438722/11-13-... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `LorenzL`."
},
{
"role": "assistant",
"content": "```supercollider\n// vary frequency\n{ LorenzL.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{ Gbman2DC.ar(MouseX.kr(20, SampleRate.ir*0.25), MouseX.kr(80, SampleRate.ir), 0.1) }.play(s);\n\n{ Gbman2DC.ar(11025, 22050, -0.7, -2.7, 0.1) }.play(s);\n\n{ Gbman2DC.ar(2200, 8... |
[
{
"role": "user",
"content": "How should I organise a SuperCollider project on disk?"
},
{
"role": "assistant",
"content": "One folder per piece, with a fixed shape:\n\n```text\nmy-piece/\n synthdefs.scd // only SynthDef(...).add, loaded first\n material.scd // buffers, samples, scales\n ... |
[
{
"role": "user",
"content": "When should I use a Pattern instead of writing Synth code by hand?"
},
{
"role": "assistant",
"content": "Use a Pattern when what you want to express is a sequence over time — notes, durations, amplitudes, parameters — rather than a signal. A Pbind describes events,... |
[
{
"role": "user",
"content": "Write a self-contained SuperCollider patch that uses `ControlSpec`. Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\n// ControlSpec-map can also be used to map ugens\n(\nvar spec;\nspec = [100, 18000, \\exp].asSpec;\n{\n var freq... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Pause`."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\n\nSynthDef(\\a, { Out.ar(0, SinOsc.ar(800, 0, 0.2)) }).add;\n\nSynthDef(\\b, { |gate = 1| Out.ar(1, PinkNoise.ar(0.3)); Pause.kr(gate, 1001) })... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `LPZ1`."
},
{
"role": "assistant",
"content": "```supercollider\n// Compare:\n\n{ WhiteNoise.ar(0.25) }.play;\n\n{ LPZ1.ar(WhiteNoise.ar(0.25)) }.play;\n```"
}
] |
[
{
"role": "user",
"content": "What is `Node`?"
},
{
"role": "assistant",
"content": "Node — Abstract superclass of Synth and Group"
},
{
"role": "user",
"content": "What does `Node.free` do?"
},
{
"role": "assistant",
"content": "Stop this Node and free it from its parent... |
[
{
"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": "Show another SuperCollider example using `Compander`."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var z;\n\n // signal (clean)\n z = Decay2.ar(\n Impulse.ar(8, 0, LFSaw.kr(0.3, 1, -0.3, 0.3)),\n 0.001,\n 0.3\n )\n * Mix.ar(Pulse.ar(... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `Scale`."
},
{
"role": "assistant",
"content": "```supercollider\n(\nr = {\n var scale = Scale.choose.postln;\n SinOsc.ar(\n (\n DegreeToKey.kr(\n scale.as(LocalBuf),\n MouseX.kr(0, 15), // mouse index... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `Monitor`."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\ns.scope(16);\n\n{ Out.ar(87, SinOsc.ar(MouseX.kr(40, 10000, 1) * [1, 2, 3], 0, 0.2)) }.play;\nx = Monitor.new;\nx.play(87, 3, 1, 2);\nx.out = 0;\nx.... |
[
{
"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": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\ns.boot;\ns.scope;\na = { HilbertFIR.ar(SinOsc.ar(100) * -20.dbamp, LocalBuf(2048) }.play;\na.release;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```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(XLine.kr(4, 401, 8), 0.0, 200... |
[
{
"role": "user",
"content": "What is `LagIn` in SuperCollider?"
},
{
"role": "assistant",
"content": "LagIn — Read a control signal from a bus with a lag Read a control signal from a bus with a lag. Category: UGens > InOut."
}
] |
[
{
"role": "user",
"content": "Give me a saw kick with a 0.06 s pitch sweep. (osc saw, sweep 0.06, decay 0.25, 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: saw oscillator, 0.06 s ... |
[
{
"role": "user",
"content": "Explain `FoaMagWr` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "FoaMagWr — First Order Ambisonic (FOA) Magnitude of Soundfield Reactive Energy Vector Return the Magnitude of Reactive Energy Vector, ||Wr||, of a first order ambisonic (B-format) si... |
[
{
"role": "user",
"content": "Write an Ndef at 110 Hz I can retune while it plays. (ugens blip, cutoff 2400, lfo 0.8, 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 th... |
[
{
"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{ FBSineC.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": "How do I granulate a sample with 0.2 s grains? (rate 16, dur 0.2, interp 4, 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 `ServerLog.filterBySynthDef` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "records OSC traffic to and from a Server and displays this in a browseable searchable interface Arguments: defName. Returns: (returnvalue)"
}
] |
[
{
"role": "user",
"content": "Write a SuperCollider patch for We all could use a little more that runs as it is, with nothing assumed about the session."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\\cowbell, {\n | out=0, amp=0.3, gate=1, fund_freq=540, pan=0.0 |\n ... |
[
{
"role": "user",
"content": "What is `PV_MagBelow` in SuperCollider?"
},
{
"role": "assistant",
"content": "PV_MagBelow — Pass bins below a threshold. Passes only bins whose magnitude is below a threshold. Category: UGens > FFT."
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `SortedList`."
},
{
"role": "assistant",
"content": "```supercollider\nt = SortedList.new(8, {|a,b| a.first < b.first });\nt.add([10, \"last\"]);\nt.add([1, \"first\"]);\nt.postln;\n```"
}
] |
[
{
"role": "user",
"content": "What does `IBVArecorder.prepare` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "create and open the file and write a Arguments: path — output file."
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Diwhite`."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var a, freq, trig;\n a = Diwhite(0, 15, inf);\n trig = Impulse.kr(MouseX.kr(1, 40, 1));\n freq = Demand.kr(trig, 0, a) * 30 + 340;\n SinOs... |
[
{
"role": "user",
"content": "What does `DelayL.ar` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Simple delay line with linear interpolation. Arguments: in — The input signal.; maxdelaytime — The maximum delay time in seconds. used to initialize the delay buffer size.;... |
[
{
"role": "user",
"content": "Explain `EnvGen` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "EnvGen — Envelope generator Plays back break point envelopes. The envelopes are instances of the Category: UGens > Envelopes."
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `WrapIndex`."
},
{
"role": "assistant",
"content": "```supercollider\n// indexing into a table\n(\n{\n var buf = LocalBuf.newFrom([200, 300, 400, 500, 600, 800]);\n var freq = WrapIndex.kr(buf, MouseX.kr(0, BufFrames... |
[
{
"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": "How do I make a kick that starts at 150 Hz and falls to 40 Hz? (osc sine, sweep 0.06, decay 0.12, f0 150, f1 40, amp 0.6, rev 1)"
},
{
"role": "assistant",
"content": "A kick is a sine with a fast pitch drop and a short amplitude envelope:\n\n```supercollider\n// ki... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Dust`."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\"help-Dust\", { |out = 0|\n Out.ar(out,\n Dust.ar(200, 0.5)\n )\n}).play;\n);\n\n(\nSynthDef(\"help-Dust\", { |out = 0|\n Out.ar(out,\... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n//Chaos engine hum\n(\n{\n SinOsc.ar(10 + (50 * SinOsc.kr([50, 51], 0, SinOsc.kr(101, Saw.kr(0.12345, 678, 9), 0.2, 0.8), Pulse.kr([25, 25.5], 0.25, 0.125, -0.25))), 0, 0.5, 0);\n}.play();\n)\n```"
},
{
"role": ... |
[
{
"role": "user",
"content": "What are the arguments of Pan2?"
},
{
"role": "assistant",
"content": "`Pan2.ar(in, pos, level)` — in is the mono signal, pos is -1 (left) to 1 (right) with 0 in the middle, and level scales the output. It is equal-power, so a centred signal is -3 dB per channel rat... |
[
{
"role": "user",
"content": "What is `SetResetFF` in SuperCollider?"
},
{
"role": "assistant",
"content": "SetResetFF — Set-reset flip flop. Output is set to 1.0 upon receiving a trigger in the trig input, and to 0.0 upon receiving a trigger in the reset input. Once the flip flop is set to zero... |
[
{
"role": "user",
"content": "What is `RedLFSR4` in SuperCollider?"
},
{
"role": "assistant",
"content": "RedLFSR4 — 4-bit linear feedback shift register 4-bit fibonacci LFSR. see https://en.wikipedia.org/wiki/Linear_feedback_shift_register Category: Red > redUGens."
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.