conversations listlengths 2 6 |
|---|
[
{
"role": "user",
"content": "What does `Poll.ar` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Print the current output value of a UGen Arguments: trig — a non-positive to positive transition telling Poll to return a value; in — the signal you want to poll; label — a s... |
[
{
"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": "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": "What does `Array.containsSeqColl` do?"
},
{
"role": "assistant",
"content": "Returns true if the receiver Array contains any instance of SequenceableCollection `[1, 2, 3,"
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// modulate frequency of a sine oscillator\n\n(\nSynthDef(\"help-MultiplexAnalogIn\", { |out = 0|\n Out.ar(out,\n SinOsc.ar(MultiplexAnalogIn.ar(0, 1).exprange(200, 5000), 0,... |
[
{
"role": "user",
"content": "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 = Diwhite(0, 15, 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}.play;\... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\ns.bind {\n a = { |freq = 100| SinOsc.ar(freq, LFTri.ar(freq)) * 0.2 }.play;\n s.sync;\n a.set(\\freq, 400);\n}\n```"
},
{
"role": "assistant",
"content": "A clo... |
[
{
"role": "user",
"content": "What is the difference between \\degree, \\midinote and \\freq in a Pbind?"
},
{
"role": "assistant",
"content": "`\\freq` is the frequency in Hz and is used as-is. `\\midinote` is a MIDI note number, converted to frequency by the default instrument. `\\degree` is a... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ Gbman2DL.ar(MouseX.kr(20, SampleRate.ir*0.25), MouseX.kr(80, SampleRate.ir), 0.1) }.play(s);\n\n{ Gbman2DL.ar(11025, 22050, -0.7, -2.7, 0.1) }.play(s);\n\n{ Gbman2DL.ar(2200, 8... |
[
{
"role": "user",
"content": "What is `Condition`?"
},
{
"role": "assistant",
"content": "Condition — Block the execution of a thread"
},
{
"role": "user",
"content": "What does `Condition.new` do?"
},
{
"role": "assistant",
"content": "Create a new instance, set the test... |
[
{
"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 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// 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": "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": "Write a minimal SuperCollider example that uses `EnvGate`."
},
{
"role": "assistant",
"content": "```supercollider\na = { LPF.ar(Saw.ar(200), 600) * EnvGate.new }.play;\na.set(\\fadeTime, 2);\na.release;\n\n// the same as:\na.set(\\gate, 0);\n\n// several env gates ... |
[
{
"role": "user",
"content": "Write a granular texture, dry. (rate 20, dur 0.15, interp 2, mode noise, rev 0)"
},
{
"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 ... |
[
{
"role": "user",
"content": "How do I make a kick that starts at 150 Hz and falls to 48 Hz? (osc sine, sweep 0.06, decay 0.12, f0 150, f1 48, amp 0.6, 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": "Write a GrainBuf synth at 16 grains per second. (rate 16, dur 0.15, interp 4, mode noise, rev 0)"
},
{
"role": "assistant",
"content": "Granulation is `GrainBuf` plus a trigger rate; the position can move:\n\n```supercollider\n// granular synth with GrainBuf\n(\ns.w... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `QuadL`."
},
{
"role": "assistant",
"content": "```supercollider\n// default params\n{ QuadL.ar(SampleRate.ir/4) * 0.2 }.play(s);\n```"
}
] |
[
{
"role": "user",
"content": "Write a self-contained SuperCollider patch for reverbio (a SuperCollider snippet). Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\"reverb\", {arg freq=440, release=0.1;\n var in, s1,out, mod1, depth, mfreq;\n s1 =... |
[
{
"role": "user",
"content": "Give me a Pbind with pluck voices and a 0.3 rhythm. (scale minorPentatonic, seq Prand, dur 0.3, octave 5, instr pluck, root 0)"
},
{
"role": "assistant",
"content": "`Pbind` sequences an Event per beat, and `\\degree` + `\\scale` does the pitch:\n\n```supercollider\... |
[
{
"role": "user",
"content": "I get \"Message 'ar' not understood\". Why?"
},
{
"role": "assistant",
"content": "You called a rate method on something that is not a UGen. `Env.ar(...)` and `Buffer.ar(...)` are the classic cases: Env is a language-side description and is played by `EnvGen.ar(env,... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `LinCongL`."
},
{
"role": "assistant",
"content": "```supercollider\n// randomly modulate params\n(\n{ LinCongL.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": "Write a complete SuperCollider patch built around `LinRand` that runs as it is."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\"help-LinRand\", { |out = 0, minmax = 1|\n Out.ar(out,\n FSinOsc.ar(\n LinRand(200.0, 10000.0, minmax),\n ... |
[
{
"role": "user",
"content": "What does `OSCBundle.send` do?"
},
{
"role": "assistant",
"content": "Send the bundle to a server. If preparation messages are given, they are sent, the process waits for their reception abd then sends the"
}
] |
[
{
"role": "user",
"content": "What is `NamedControl`?"
},
{
"role": "assistant",
"content": "NamedControl — Named reference to a control"
},
{
"role": "user",
"content": "What does `NamedControl.ar` do?"
},
{
"role": "assistant",
"content": "add a new instance of AudioCon... |
[
{
"role": "user",
"content": "Do you know other programming languages?"
},
{
"role": "assistant",
"content": "Only as far as SuperCollider needs them. I am sc-mind, a 198M model trained on SuperCollider; I can read its sclang syntax and explain it, and that is the limit of what I was trained to ... |
[
{
"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 `ZArchive` in SuperCollider?"
},
{
"role": "assistant",
"content": "ZArchive — Compressed binary file format for saving large datasets and SuperCollider objects A compressed binary safe archive format. Supports very large file sizes and is fairly fast. Categ... |
[
{
"role": "user",
"content": "What is `SplineMapper` in SuperCollider?"
},
{
"role": "assistant",
"content": "SplineMapper — Use a spline as a mapping function. Interprets a spline as a mapping function for wave shaping or transfer functions. Category: Splines."
}
] |
[
{
"role": "user",
"content": "Write a self-contained SuperCollider patch for simple smooth arp. Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\n(\ns.boot;\n);\n\n(\nSynthDef(\\smooth, { |freq = 440, sustain = 1, amp = 0.5|\n var sig;\n sig = SinOsc.ar(f... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `TwoPole`."
},
{
"role": "assistant",
"content": "```supercollider\n{ TwoPole.ar(WhiteNoise.ar(0.005), 2000, 0.95) }.play\n\n{ TwoPole.ar(WhiteNoise.ar(0.005), XLine.kr(800, 8000, 8), 0.95) }.play\n\n{ TwoPole.ar(White... |
[
{
"role": "user",
"content": "My sustained synth never stops, even when I set the gate to 0."
},
{
"role": "assistant",
"content": "A sustained EnvGen only releases when the gate goes from positive to non-positive *after* the envelope has started, and the Synth only disappears if that EnvGen has... |
[
{
"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": "Write an Ndef at 82.5 Hz I can retune while it plays. (ugens blip, 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: blip source through a 80... |
[
{
"role": "user",
"content": "Give me a Pbind with pluck voices and a 0.4 rhythm. (scale minorPentatonic, seq Pseq, dur 0.4, octave 6, instr pluck, root 0)"
},
{
"role": "assistant",
"content": "The pattern is the composition here; `\\strum` spreads the chord:\n\n```supercollider\n(\nSynthDef(\\... |
[
{
"role": "user",
"content": "Write a kick drum with a 0.35 s decay. (osc saw, sweep 0.06, decay 0.35, f0 150, f1 48, amp 0.8, rev 1)"
},
{
"role": "assistant",
"content": "A kick is a sine with a fast pitch drop and a short amplitude envelope:\n\n```supercollider\n// kick drum: saw oscillator, ... |
[
{
"role": "user",
"content": "What does `TraerAttraction.getMinimumDistance` do?"
},
{
"role": "assistant",
"content": "Get the minimum distance, which limits how strong the force can get close Returns: a LINKClasses/Float"
}
] |
[
{
"role": "user",
"content": "Write a SuperCollider patch that uses `GrayNoise` and actually plays. Assume nothing about the session."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\"help-GrayNoise\", { |out = 0|\n Out.ar(out,\n GrayNoise.ar(-20.dbamp)\n )\n}).play;\n)... |
[
{
"role": "user",
"content": "Give me a granular patch with noise grain position and interp 2. (rate 28, dur 0.2, 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// Periphonic (3D) decoder with eight channels arranged in a bi-rectangle:\n// [ [ 30, 0 ], [ -30, 0 ], [ 90, 35.3 ], [ -90, 35.3 ],\n// [ -150, -0 ], [ 150, -0 ], [ -90, -35.3 ], [ 90, -35.3 ] ]\n\n// specify 1/2 the d... |
[
{
"role": "user",
"content": "What does `Fomus.fileName` do?"
},
{
"role": "assistant",
"content": "Base filename, suffix will be added. Default is"
}
] |
[
{
"role": "user",
"content": "Write an Ndef with a sine source and a 800 Hz low-pass."
},
{
"role": "assistant",
"content": "`Ndef` holds the synth and the environment, so you can edit it live:\n\n```supercollider\n// Ndef drone: sine source through a 800 Hz low-pass\n(\nNdef(\\nd_sine_165_800, ... |
[
{
"role": "user",
"content": "What does `UScoreEditor.cutEventsStart` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "(describe method Arguments: events — (describe argument here); pos — (describe argument here); isFolder — (describe argument here); removeFadeIn — (descri... |
[
{
"role": "user",
"content": "What is `IdentityBag`?"
},
{
"role": "assistant",
"content": "IdentityBag — A Bag according to identity"
},
{
"role": "user",
"content": "What does `IdentityBag.add` do?"
},
{
"role": "assistant",
"content": "Add anObject to the Bag. A Bag ma... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `Array`."
},
{
"role": "assistant",
"content": "```supercollider\n(\nx = {\n SinOsc.ar([0.1, 0.2], 0).poll * 0.1\n}.play;\n);\nx.trace; // By tracing the Synth you can see the two Poll units we created\nx.free\n```"
}
] |
[
{
"role": "user",
"content": "Write a granular texture, through a reverb. (rate 6, dur 0.15, interp 2, mode noise, rev 1)"
},
{
"role": "assistant",
"content": "Granulation is `GrainBuf` plus a trigger rate; the position can move:\n\n```supercollider\n// granular synth with GrainBuf\n(\ns.waitFo... |
[
{
"role": "user",
"content": "What does `List.mirror1` do?"
},
{
"role": "assistant",
"content": "Return a new List which is the receiver made into a palindrome with the last element removed. This is useful if the list will be repeated cyclically, the first element will not get played twice. The... |
[
{
"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": "Write a GrainBuf synth at 16 grains per second. (rate 16, dur 0.1, interp 2, mode noise, rev 1)"
},
{
"role": "assistant",
"content": "A working granular patch, with the buffer loaded before the synth starts:\n\n```supercollider\n// granular synth with GrainBuf\n(\n... |
[
{
"role": "user",
"content": "Write a kick drum with a 0.35 s decay. (osc sine, sweep 0.06, decay 0.35, f0 220, f1 48, amp 0.8, rev 0)"
},
{
"role": "assistant",
"content": "Start with a swept sine, then shorten the decay to taste:\n\n```supercollider\n// kick drum: sine oscillator, 0.06 s pitch... |
[
{
"role": "user",
"content": "What is SuperCollider?"
},
{
"role": "assistant",
"content": "SuperCollider is a platform for audio synthesis and algorithmic composition, written in C++ and SuperCollider. It splits into a language client (sclang) that runs your code and builds UGen graphs, and an ... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `SelectXFocus`."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var a;\n a = [\n Saw.ar(LFSaw.kr(3 * [1, 1.01], 0, 100, 230)),\n SinOsc.ar,\n Pulse.ar(LFPulse.kr(3 * [1, 1.02], 0, 0.4, 100, 23... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Formant`."
},
{
"role": "assistant",
"content": "```supercollider\n// modulate fundamental frequency, formant freq stays constant\n{ Formant.ar(XLine.kr(400, 1000, 8), 2000, 800, 0.125) }.play\n\n// modulate formant f... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n(\n//Its not the spline that loops (that would be a loop in 2 dimensional space) but the SplineGen that is set to loop.\n\n// the spline does NOT loop,\nb = BSpline( Array.fill(16,{ arg i; [ i * 0.25,1.0.rand ] }), 3.0,fa... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `MouseY`."
},
{
"role": "assistant",
"content": "```supercollider\n{ SinOsc.ar(MouseY.kr(40, 10000, 1), 0, 0.1) }.play;\n```"
}
] |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n//try passing a signal through the hair cell; it won't come out like a pure sine, more like an impulse train stimulated by that input\n{ Pan2.ar(HairCell.ar(SinOsc.ar(440)),0.0) }.play;\n\n//modulation effects\n{ Pan2.ar(... |
[
{
"role": "user",
"content": "Explain `DPW4Saw` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "DPW4Saw — Sawtooth via 4th order differerentiated polynomial waveform Differentiated polynomial waveforms described in their technicalities here: Vesa Valimaki, Juhan Nam, Julius O. S... |
[
{
"role": "user",
"content": "Explain `PlayerEffectSocket` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "PlayerEffectSocket — a socket that can play players that are effects (have inputs) hot swappable effects layer Category: Libraries > crucial > Players."
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `GbmanL`."
},
{
"role": "assistant",
"content": "```supercollider\n// default initial params\n{ GbmanL.ar(MouseX.kr(20, SampleRate.ir)) * 0.1 }.play(s);\n\n// different initial params\n{ GbmanL.ar(MouseX.kr(20, SampleR... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\n{\n 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([80, 81], 0.3))\n}.play;\n```"
},
{
"role": "assista... |
[
{
"role": "user",
"content": "Can you run this code and tell me if it works?"
},
{
"role": "assistant",
"content": "No — I cannot execute SuperCollider. What I can tell you is what would break and why: bracket balance, arguments that must exist for the class, a SynthDef that never reaches Out, a... |
[
{
"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{ Blip.ar(Blip.kr(4, 5, 500, 60), 59, 0.1 }.play;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis opened earlier is never cl... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```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))) * 0.1 }.play; // selectiv... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `LinCongC`."
},
{
"role": "assistant",
"content": "```supercollider\n// default initial params\n{ LinCongC.ar(MouseX.kr(20, SampleRate.ir)) * 0.2 }.play(s);\n```"
}
] |
[
{
"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": "Explain `SQPusher2` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "SQPusher2 — Squarepusher-inspired breakbeat cutting This cut procedure was created by an automated analysis of track 'Come on my Selector' by Squarepusher, aka Tom Jenkinson. Catego... |
[
{
"role": "user",
"content": "What does `StreamClutch.new` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "buffers a streamed value Arguments: pattern — a pattern or stream to be buffered.; connected — if true it will call the next stream value for each time next is calle... |
[
{
"role": "user",
"content": "How do I make a kick that starts at 220 Hz and falls to 40 Hz? (osc saw, sweep 0.06, decay 0.35, f0 220, f1 40, amp 0.8, rev 0)"
},
{
"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": "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// This SynthDef has a harder attack than the default, illustrating rearticulation more clearly.\n(\nSynthDef(\\sawpulse, { |out, freq = 440, gate = 0.5, plfofreq = 6, mw = 0, ffreq = 2000, rq = 0.3, freqlag = 0.05, amp =... |
[
{
"role": "user",
"content": "Write a granular texture, through a reverb. (rate 28, dur 0.04, interp 4, mode noise1, 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(\ns.... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `FBSineC`."
},
{
"role": "assistant",
"content": "```supercollider\n// default initial params\n{ FBSineC.ar(SampleRate.ir/4) * 0.2 }.play(s);\n```"
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `RLPF`."
},
{
"role": "assistant",
"content": "```supercollider\n{ RLPF.ar(Saw.ar(200, 0.1), SinOsc.ar(XLine.kr(0.7, 300, 20), 0, 3600, 4000), 0.2) }.play;\n\n\n(\n{ var ctl = RLPF.ar(Saw.ar(5, 0.1), 25, 0.03);\n SinO... |
[
{
"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": "What does `OSCSched.xsched` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "exclusive beat based Arguments: beats; server; bundle; onArrival."
}
] |
[
{
"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 self-contained SuperCollider patch that uses `Timer`. Define every value it uses."
},
{
"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 =... |
[
{
"role": "user",
"content": "How do I build a live drone with Ndef at 82.5 Hz? (ugens sine, cutoff 1400, lfo 0.8, 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: sine source through a 1400 ... |
[
{
"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// 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 ... |
[
{
"role": "user",
"content": "Write a self-contained SuperCollider patch for simple smooth arp. Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\n(\ns.boot;\n);\n\n(\nSynthDef(\\smooth, { |freq = 440, sustain = 1, amp = 0.5|\n var sig;\n sig = SinOsc.ar(f... |
[
{
"role": "user",
"content": "What is `FoaNa` in SuperCollider?"
},
{
"role": "assistant",
"content": "FoaNa — First Order Ambisonic (FOA) Soundfield Unit Normalized Active Intensity Vector Return the Unit Normalized Active Intensity Vector, Na, of a first order ambisonic (B-format) signal. Cate... |
[
{
"role": "user",
"content": "Explain `StartUp` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "StartUp — register functions to be evaluated after the startup is finished StartUp registers functions to perform an action after the library has been compiled, and after the startup ... |
[
{
"role": "user",
"content": "What is the difference between TempoClock and SystemClock?"
},
{
"role": "assistant",
"content": "SystemClock runs in real time and is what `.wait` uses by default. TempoClock runs in beats and has a tempo, so it can be changed while things are playing and Patterns ... |
[
{
"role": "user",
"content": "Give me a Pbind with pluck voices and a 0.3 rhythm. (scale majorPentatonic, seq Prand, dur 0.3, 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": "How do I make a kick that starts at 220 Hz and falls to 55 Hz? (osc saw, sweep 0.06, decay 0.5, 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... |
[
{
"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, 512, 1);\nb.sine1(1.0 / [1, 2, 3, 4], true, true, true);\nx = { Osc.ar(b, 200, 0, 0.5) }.play;\n;\nx.free; b.free;\n```"
},
{
"role": "ass... |
[
{
"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 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 is `Pulse` in SuperCollider?"
},
{
"role": "assistant",
"content": "Pulse — Band limited pulse wave. Band limited pulse wave generator with pulse width modulation. Category: UGens > Generators > Deterministic."
}
] |
[
{
"role": "user",
"content": "What does `MIDIFuncBothMessageMatcher.new` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Make a new Arguments: chan — (describe argument here); srcID — The UID of the MIDI source source to test against as an Integer.; func — The Function to... |
[
{
"role": "user",
"content": "Explain `FoaPressY` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "FoaPressY — First Order Ambisonic (FOA) press transformer Apply press to a First Order Ambisonic signal (B-format) along the y-axis. Category: Libraries > Ambisonic Toolkit > UGens ... |
[
{
"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": "How do I play a random minorPentatonic scale at octave 5? (scale minorPentatonic, seq Prand, dur 0.2, octave 5, instr pluck, root 0)"
},
{
"role": "assistant",
"content": "The pattern is the composition here; `\\strum` spreads the chord:\n\n```supercollider\n(\nSynt... |
[
{
"role": "user",
"content": "Give me an Ndef with an LFO at 0.8 Hz. (ugens saw, cutoff 1400, lfo 0.8, freq 82.5, 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 1400 Hz... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n(\ns = Server.local;\nServer.default = s;\ns.boot;\n);\n\n\n// definition for future reference in arbitrary Environments\n\n(\np = Pbind(\n \\midinote, PLbeta(\\lo, \\hi, \\p1, \\p2),\n \\dur, 0.1\n);\n);\n\n// prep... |
[
{
"role": "user",
"content": "What does `EZLists.removeItemAt` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Removes a list/menu item at index Arguments: index — An Integer. The index where to remove an item.."
}
] |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n// crossfading a mono source between two outs\n\n(\nx = {\n DXFan.ar(\n Dseq([0, 1], inf),\n PinkNoise.ar(0.05),\n fadeTime: 1\n )\n}.play\n);\n\nx.release\n\n\n// Crossfading a stereo source between two outs,\... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `DigitalIn`."
},
{
"role": "assistant",
"content": "```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 ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.