conversations listlengths 2 6 |
|---|
[
{
"role": "user",
"content": "What is `Object`?"
},
{
"role": "assistant",
"content": "Object — abstract superclass of all objects"
},
{
"role": "user",
"content": "What does `Object.readArchive` do?"
},
{
"role": "assistant",
"content": "Read in an object from a text arc... |
[
{
"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": "What does `Mx.register` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "adds an object to an internal registery of all objects and Arguments: object; uid — optional. Returns: uid"
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `CuspL`."
},
{
"role": "assistant",
"content": "```supercollider\n// vary frequency\n{ CuspL.ar(MouseX.kr(20, SampleRate.ir), 1.0, 1.99) * 0.3 }.play(s);\n\n// mouse-controlled params\n{ CuspL.ar(SampleRate.ir/4, Mouse... |
[
{
"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\n// This question comes up sometimes.\n// one way to do it is to define an event type:\n\n\n(\nEvent.addEventType(\\dnote, { |server|\n \n var instrument = ~instrument.asDefName;\n var synthLib = ~synthLib ?? { SynthDe... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// one last example\n(\nb = Buffer.alloc(s, 512, 1);\nb.sine1(1.0/[1, 2, 3, 4, 5, 6], true, true, true);\n);\n\n(\n{\n var input = SoundIn.ar(0);\n var framesize = 512;\n Conv... |
[
{
"role": "user",
"content": "Give me a Pbind with sine voices and a 0.2 rhythm. (scale majorPentatonic, seq Pshuf, dur 0.2, octave 6, instr sine, root 0)"
},
{
"role": "assistant",
"content": "`Pbind` sequences an Event per beat, and `\\degree` + `\\scale` does the pitch:\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{ Out.ar(87, SinOsc.ar(MouseX.kr(340, 1000, 1) * [1, 2, 3], 0, 0.2)) }.play;\nx = Monitor.new.play(87, 3, 0, fadeTime: 3;\nx.stop;\nx.play;\n```"
},
{
"role": "assistant"... |
[
{
"role": "user",
"content": "What is `HenonN` in SuperCollider?"
},
{
"role": "assistant",
"content": "HenonN — Henon map chaotic generator A non-interpolating sound generator based on the difference equation: Category: UGens > Generators > Chaotic."
}
] |
[
{
"role": "user",
"content": "Write a Pbind in minorPentatonic using Pshuf for the degrees. (scale minorPentatonic, seq Pshuf, dur 0.4, octave 6, 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```s... |
[
{
"role": "user",
"content": "Write a SuperCollider patch for Play your (short) soundfiles with some delay that runs as it is, with nothing assumed about the session."
},
{
"role": "assistant",
"content": "```supercollider\n// By Bjørn Houdorf March 2013, Play your (short) soundfiles with some d... |
[
{
"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": "Explain `RedMixStereo` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "RedMixStereo — mix 2 stereo channels in stereo Simple mixer that take two stereo sources, combines them and output to one stereo. Category: Red > redMix."
}
] |
[
{
"role": "user",
"content": "Give me a sine kick with a 0.06 s pitch sweep. (osc sine, sweep 0.06, decay 0.12, f0 220, f1 55, amp 0.6, rev 1)"
},
{
"role": "assistant",
"content": "The pitch envelope is what makes it read as a drum, not the oscillator:\n\n```supercollider\n// kick drum: sine os... |
[
{
"role": "user",
"content": "Explain `Tempo` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "Tempo — for control of tempo and for use in tempo based calculations This class represents the concept of tempo. It can be used for translations between seconds, beats and bars. It hold... |
[
{
"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": "Write a SuperCollider patch for Play your (short) soundfiles with some delay that runs as it is, with nothing assumed about the session."
},
{
"role": "assistant",
"content": "```supercollider\n// By Bjørn Houdorf March 2013, Play your (short) soundfiles with some d... |
[
{
"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": "Write an Ndef at 82.5 Hz I can retune while it plays. (ugens tri, cutoff 400, lfo 0.1, freq 82.5, amp 0.12)"
},
{
"role": "assistant",
"content": "`Ndef` is a named proxy you can redefine while it is playing:\n\n```supercollider\n// Ndef drone: tri source through a ... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\ns.boot\n\n{Perlin3.ar(Integrator.ar(K2A.ar(MouseX.kr(0, 0.1))), Integrator.ar(K2A.ar(MouseY.kr(0, 0.1))))}.play(s)\n\n{Perlin3.ar(*{Line.ar(0, 1000, 30)}.dup(3))}.plot(1\n```"
... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```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)\n) * 0.2 }.play(s);\... |
[
{
"role": "user",
"content": "What should I ask you?"
},
{
"role": "assistant",
"content": "SuperCollider questions: how a UGen works, how to write a SynthDef or a Pattern, why a patch does not compile. I am sc-mind, a 198M domain model, not a general assistant."
}
] |
[
{
"role": "user",
"content": "Write a kick drum in SuperCollider."
},
{
"role": "assistant",
"content": "A pitch-swept sine with a fast decay: the frequency envelope is what makes it read as a kick.\n\n```supercollider\n(\nSynthDef(\\kick, { |out = 0, amp = 0.8|\n var pitch = EnvGen.kr(Env([1... |
[
{
"role": "user",
"content": "What does `Object.generate` do?"
},
{
"role": "assistant",
"content": "Object iterates by the message do, sent to the receiver. This method is used internally by list"
}
] |
[
{
"role": "user",
"content": "Explain `EaseOutBack` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "EaseOutBack — Back ease-out Easing equation for a back (overshooting cubic easing: (a+1)*t^3 - a*t^2) ease-out, decelerating from zero velocity. The a parameter controls overshoot... |
[
{
"role": "user",
"content": "Give me a granular patch with sweep grain position and interp 2. (rate 16, dur 0.15, interp 2, mode sweep, rev 1)"
},
{
"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": "How do I make a kick that starts at 180 Hz and falls to 55 Hz? (osc fm, sweep 0.06, decay 0.18, f0 180, f1 55, 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... |
[
{
"role": "user",
"content": "Explain `TraerSpring` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "TraerSpring — act on two particles Springs connect 2 particles and try to keep them a certain distance apart. They have 3 properties: Category: TraerPhysics."
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\nNdef(\\lfo2, { LFNoise1.kr(LFNoise1.kr(0.1).exprange(1, 300) ! 2, 400, 800) });\nNdef(\\sound, { Blip.ar(Ndef.kr(\\lfo2), 30) * 0.2 }).play;\n\nNdef(\\lfo2, { [MouseX.kr(10, 300,... |
[
{
"role": "user",
"content": "How do I build a live drone with Ndef at 220 Hz? (ugens tri, cutoff 800, lfo 0.3, freq 220, amp 0.12)"
},
{
"role": "assistant",
"content": "`Ndef` is a named proxy you can redefine while it is playing:\n\n```supercollider\n// Ndef drone: tri source through a 800 Hz... |
[
{
"role": "user",
"content": "What is `Tdef`?"
},
{
"role": "assistant",
"content": "Tdef — task reference definition"
},
{
"role": "user",
"content": "What does `Tdef.all` do?"
},
{
"role": "assistant",
"content": "A global IdentityDictionary with all proxies."
},
{
... |
[
{
"role": "user",
"content": "Give me a bell with damping 0.2 on the reverb. (verb freeverb, room 0.7, damp 0.2, mix 0.3, source bell)"
},
{
"role": "assistant",
"content": "`FreeVerb` is in the core library; the room and damp arguments do the work:\n\n```supercollider\n// reverb: freeverb on a ... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `LorenzL`."
},
{
"role": "assistant",
"content": "```supercollider\n// randomly modulate params\n(\n{ LorenzL.ar(\n SampleRate.ir,\n LFNoise0.kr(1, 2, 10),\n LFNoise0.kr(1, 20, 38),\n LFNoise0.kr(1, 1.5, 2)\n) * 0.2 }.pla... |
[
{
"role": "user",
"content": "How do I make a kick that starts at 180 Hz and falls to 48 Hz? (osc fm, sweep 0.06, decay 0.12, f0 180, f1 48, amp 0.8, rev 1)"
},
{
"role": "assistant",
"content": "Start with a swept sine, then shorten the decay to taste:\n\n```supercollider\n// kick drum: fm osci... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\na = {LFTri.ar(50+(1000*Maths2.ar(10, 10, 0.5, 1)[0]), 0, 0.1)}.play //notice how I am taking the [0]th channel of the Maths and ignoring the [1st channel.\n```"
},
{
"rol... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `HPZ1`."
},
{
"role": "assistant",
"content": "```supercollider\n// Compare:\n\n{ WhiteNoise.ar(0.25) }.play;\n\n{ HPZ1.ar(WhiteNoise.ar(0.25)) }.play;\n\n// HPZ1 is useful to detect changes in a signal:\n// see also H... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Pgtpar`."
},
{
"role": "assistant",
"content": "```supercollider\n// synthdef\n(\nSynthDef(\\help_sinegrain,\n { |out = 0, freq = 440, sustain = 0.05|\n var env;\n env = EnvGen.kr(Env.perc(0.01, susta... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\nSynthDef(\"help-Rand\", { |out = 0|\n Out.ar(out,\n FSinOsc.ar(\n Rand(200.0, 400.0),\n 0, Line.kr(0.2, 0, 1, doneAction: Done.freeSelf))\n )\n}).add;\n);\n\n(\... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n(\n\n ~needed_interval = 20;\n\n ~funk = {\n\n // if last time isn't defined, create it with 1000 seconds ago time\n if( ~last_time.isNil ) {\n ~last_time = Date.getDate.bootSeconds;\n ~last_time = ~last_time -... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ LFNoise2.ar(1000, 0.25) }.play;\n\n// modulate frequency\n\n{ LFNoise2.ar(XLine.kr(1000, 10000, 10), 0.25) }.play;\n\n// as frequency modulator\n(\n{ SinOsc.ar(\n LFNoise2.a... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `LFDClipNoise`."
},
{
"role": "assistant",
"content": "```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.... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n// try wiggling mouse quickly;\n// LFNoise frequently seems stuck, LFDNoise changes smoothly.\n\n{ SinOsc.ar(LFNoise1.ar(MouseX.kr(0.1, 1000, 1), 200, 500), 0, 0.2) }.play\n\n{ SinOsc.ar(LFDNoise1.ar(MouseX.kr(0.1, 1000... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n// Pseq returns one item in the list after the other\n(\nPseq([\n (note: 2, sustain: 1, dur: 1.5),\n (note: [5, 7], sustain: 0.5, dur: 0.8),\n (note: [2, 6], sustain: 1, dur: 0.8)\n]).play;\n);\n\n// Pbind binds parame... |
[
{
"role": "user",
"content": "The server stopped responding. What do I do?"
},
{
"role": "assistant",
"content": "In order: `Ctrl+.` (CmdPeriod) to reset scheduling, then `s.reboot` if the server itself is wedged.\nA reboot drops every SynthDef and buffer, so re-add them — which is why real proj... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n(\nb = Bus.audio(s, 2);\na = { |inbus = 0|\n var sig = In.ar(inbus, 2);\n // x axis is side, oriented toward right;\n // y axis is mid\n [sig[1] - sig[0], sig.sum]\n}.play(s.defaultGroup, outbus: b, addAction: \\addA... |
[
{
"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": "What does `BussesTool.new` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "shows all Audio busses on a server Arguments: server — default: default server."
}
] |
[
{
"role": "user",
"content": "How do I see what a signal is doing?"
},
{
"role": "assistant",
"content": "`.poll` prints values to the post window — `SinOsc.kr(1).poll` prints once per control block, and `.poll(10)` limits it to every 10th. `s.scope` opens an oscilloscope on the main output, and... |
[
{
"role": "user",
"content": "Write a complete SuperCollider patch built around `Pwrap` that runs as it is."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\\help_sinegrain,\n { |out = 0, freq = 440, sustain = 0.05|\n var env;\n env = EnvGen.kr(Env.perc(0.01, sustain,... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\na = {LFTri.ar(50+(1000*Maths2.ar(10, 10, 0.5, 1)[0]), 0, 0.1)}.play //notice how I am taking the [0]th channel of the Maths and ignoring the [1st channel.\n```"
},
{
"rol... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `StandardN`."
},
{
"role": "assistant",
"content": "```supercollider\n// vary frequency\n{ StandardN.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(\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": "Show me a self-contained SuperCollider patch using `CoinGate`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\n(\na = SynthDef(\"help-TCoin\", { |out = 0, prob = 0.5|\n var trig;\n trig = CoinGate.kr(prob, Impulse.kr(10));\... |
[
{
"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": "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": "What does `FoaEncoderMatrix.newFromFile` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Create an FoaEncoderMatrix by loading a matrix from a Arguments: filePathOrName — Can be a path relative to your `/extensions/matrices/FOA/encoders` fold... |
[
{
"role": "user",
"content": "Write a self-contained SuperCollider patch that uses `MouseX`. Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\n(\nb = Bus.control(s, 9); // nine channel control rate\nb.setn([244, 737, 20, 271, 382, 172, 4, 2399, 251]);\n{\n var... |
[
{
"role": "user",
"content": "Write a SuperCollider patch that uses `Dseries` and actually plays. Assume nothing about the session."
},
{
"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 = D... |
[
{
"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": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\na = ProxySynthDef(\"xtest\", { SinOsc.ar(400) * 0.1 });\n\na.add;\n\nx = Synth(\"xtest\");\nx.release;\n\n\n/*\n\n if the resulting number of channels is larger than a given cha... |
[
{
"role": "user",
"content": "Explain this SuperCollider patch.\n```supercollider\n// UnitTestScript(\"Collapse\", thisProcess.nowExecutingPath).runScript;\n\n{\n |test|\n var collapseValues = List();\n var collapse;\n\n collapse = Collapse({ |v| collapseValues.add(v) }, 0.1);\n\n collapseValues.clear;... |
[
{
"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": "Write a minimal SuperCollider example that uses `LatoocarfianC`."
},
{
"role": "assistant",
"content": "```supercollider\n// default initial params\n{ LatoocarfianC.ar(MouseX.kr(20, SampleRate.ir)) * 0.2 }.play(s);\n```"
}
] |
[
{
"role": "user",
"content": "What does `RedObject.contains` do?"
},
{
"role": "assistant",
"content": "Returns true if two objects touch. See #-size"
}
] |
[
{
"role": "user",
"content": "Show another SuperCollider example using `ControlRate`."
},
{
"role": "assistant",
"content": "```supercollider\n{ SinOsc.ar(ControlRate.ir) * 0.1 }.play;\n```"
}
] |
[
{
"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": "How do I make a kick that starts at 180 Hz and falls to 40 Hz? (osc fm, sweep 0.06, decay 0.18, f0 180, f1 40, amp 0.6, rev 1)"
},
{
"role": "assistant",
"content": "The pitch envelope is what makes it read as a drum, not the oscillator:\n\n```supercollider\n// kick... |
[
{
"role": "user",
"content": "Write a SuperCollider patch for outer beat. Start by defining the values the patch depends on."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var saw, bpf;\n saw = Saw.ar(\n freq: [1700,2000],\n mul: LFPulse.kr(\n freq: [2,7],\n wi... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ BPF.ar(BrownNoise.ar(0.1.dup), MouseX.kr(40, 17000, 1), 0.2 }.play;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis opened... |
[
{
"role": "user",
"content": "Write a SuperCollider patch that uses `FOS` and actually plays. Assume nothing about the session."
},
{
"role": "assistant",
"content": "```supercollider\n(\n// same as OnePole\n{ var x;\n x = LFTri.ar(0.4, 0, 0.99);\n FOS.ar(LFSaw.ar(200, 0, 0.2), 1 - x.abs, 0.0... |
[
{
"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": "Write a self-contained SuperCollider patch that uses `Padd`. Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\n// sound example\n(\nSynthDef(\\sinegrain,\n { |out = 0, freq = 440, gate = 1|\n var env;\n env = EnvGen.kr(Env.a... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n{ BlitB3Saw.ar(XLine.kr(1000, 20, 10)) }.play;\n\n//aliasing suddenly appears for very high frequencies\n{ BlitB3Saw.ar(MouseX.kr(10,10000,'exponential'),MouseY.kr(0.01,0.99)) }.play;\n\n//comparison\n{ Saw.ar(1000) }.pla... |
[
{
"role": "user",
"content": "Show me a self-contained SuperCollider patch using `Fdef`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\n// sound example\n(\ns.boot;\nSynthDef(\"gpdef\",\n { |out = 0, freq = 440, sustain = 0.05, amp = 0.1|\n var env;\... |
[
{
"role": "user",
"content": "What does `Mx.position` do?"
},
{
"role": "assistant",
"content": "a Position object that holds the current play position for the timeline. It updates at every frameRate Returns: a Position"
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\ns.boot;\nb = Buffer.new(s);\n// read only the first channel (a Sine wave) of a stereo file\nb.allocReadChannel(ExampleFiles.sinedPink, channels: [0]);\nx = { PlayBuf.ar(1, b, Buf... |
[
{
"role": "user",
"content": "Explain `MIDIFunc` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "MIDIFunc — Fast Responder for incoming MIDI Messages MIDIFunc (and its subclass MIDIdef) registers one or more functions to respond to an incoming MIDI message. Many of its methods a... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n// vary frequency - these parameters are for \"one-pulse\" orbit\n{ RosslerL.ar(MouseX.kr(20, SampleRate.ir), 0.36, 0.35, 4.5) * 0.3 }.play(s);\n\n// randomly modulate params\n(\n{ RosslerL.ar(\n SampleRate.ir, \n 0.2, ... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\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),\n 0.01,\n ... |
[
{
"role": "user",
"content": "What is `RedDelay` in SuperCollider?"
},
{
"role": "assistant",
"content": "RedDelay — delay line with crossfade When delaytime is changed, a quick crossfade is performed. Category: Red > redUGens."
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ Gbman2DN.ar(MouseX.kr(20, SampleRate.ir*0.25), MouseX.kr(80, SampleRate.ir), 0.1) }.play(s);\n\n{ Gbman2DN.ar(11025, 22050, -0.7, -2.7, 0.1) }.play(s);\n\n{ Gbman2DN.ar(2200, 8... |
[
{
"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": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\n{\n var trig = Dust.kr(10);\n SinOsc.ar(\n TBetaRand.kr(300, 3000, 0.1, 0.1, trig)\n ) * 0.1\n}.play;\n);\n\n(\n{\n var trig, prob1, prob2;\n trig = Dust.kr(10);\n pr... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n// track audio in (try clapping a beat or beatboxing, but allow up to 6 seconds for tracking to begin) and spawning stuff at quarters, eighths and sixteenths\n(\nSynthDef(\\help_beattrack2_2, { |out|\n var trackb, trackh... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n// derived from an answer by Sergio Luque to a mail to the sc-users SuperCollider mailing list on 2013/03/22\n\n(\nvar registerSize = 16;\nvar min =\"C2\".namemidi.asInteger;\nvar max = \"C6\".namemidi.asInteger;\nvar wa... |
[
{
"role": "user",
"content": "What does `PlayerUnop.asSynthDef` do?"
},
{
"role": "assistant",
"content": "the result of performing a unary op on a Player"
}
] |
[
{
"role": "user",
"content": "What does `FoaThetaPhiR.ar` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "First Order Ambisonic (FOA) Azimuth & Elevation of Soundfield Reactive Intensity Vector Arguments: in — The B-format signal, an array: [w, x, y, z]; size — Analysis f... |
[
{
"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": "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": "What does `BusPlug.control` do?"
},
{
"role": "assistant",
"content": "Create a new control rate instance on the given"
}
] |
[
{
"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-AnalogIn\", { |out = 0|\n Out.ar(out,\n SinOsc.ar(AnalogIn.ar(0).exprange(200, 5000), 0, 0.1)\n )\n}).play;\... |
[
{
"role": "user",
"content": "Show me a self-contained SuperCollider patch using `NdefGui`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\n(\np = ProxySpace.push(s.boot);\n\nl = NdefGui(nil, 3).moveTo(10, 120);\nm = NdefGui(nil, 3).moveTo(10, 240);\nn = ... |
[
{
"role": "user",
"content": "Explain this SuperCollider patch.\n```supercollider\n//spinning box / cube\n//after Shiffman https://codingtrain.github.io/website-archive/CodingChallenges/112-3d-rendering.html\n\n(\nvar width= 640, height= 480, w,\ntheta= 0, speed= 0.01, box;\n\nw= RedWindow(\"3Dbox\", Rect(1... |
[
{
"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// Cauchy distribution is not bounded, so do clip !\n\n(\np = Pbind(\n \\midinote, PLcauchy(\\m... |
[
{
"role": "user",
"content": "What does `BufferProxy.initForSynthDef` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "allocates a Buffer on play Arguments: synthDef; argi."
}
] |
[
{
"role": "user",
"content": "Explain `CutStream2` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "CutStream2 — BBCut2 with live input Playback for a stream of audio which can be cut-up, with offsetting relative to the last beat marked by the clock. The stream can be any bus on ... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `Duty`."
},
{
"role": "assistant",
"content": "```supercollider\n(\n {\n var freq;\n freq = Duty.kr(\n Dseq([0.2, 0.3, 0.4, Dseq([1, 1, 1, 2, 1, 2], inf)]) / 2,\n Dust.kr(1), // control rate reset\n ... |
[
{
"role": "user",
"content": "How do I build a live drone with Ndef at 110 Hz? (ugens blip, cutoff 200, lfo 0.3, 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... |
[
{
"role": "user",
"content": "Show me a self-contained SuperCollider patch using `ProxySpace`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\n\np = ProxySpace.new;\np.fadeTime = 2; // fadeTime specifies crossfade\np[\\out].play; // monitor an em... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.