conversations listlengths 2 6 |
|---|
[
{
"role": "user",
"content": "What is `RedLoopDisk` in SuperCollider?"
},
{
"role": "assistant",
"content": "RedLoopDisk — loop a soundfile from disk Nothing fancy. This class just streams a soundfile from disk using DiskIn. Category: Red > redSampler."
}
] |
[
{
"role": "user",
"content": "Explain `MoogFF` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "MoogFF — Moog VCF implementation, designed by Federico Fontana A digital implementation of the Moog VCF (filter). foot The design of this filter is described in the conference paper Fo... |
[
{
"role": "user",
"content": "How do I granulate a sample with 0.07 s grains? (rate 6, dur 0.07, 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 {... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `MIDIFreqPlayer`."
},
{
"role": "assistant",
"content": "```supercollider\n/*\n( // PlayerBinop not yet implemented\n\nPatch(\\monosynth,[\n BeatClockPlayer.new(16) * MIDIGatePlayer.new,\n MIDIFreqPlayer.new,\n CCPlayer(50... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\n// used to lag pitch\n{\n SinOsc.ar( // sine wave\n Lag.kr( // lag the modulator\n LFPulse.kr(4, ... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\n Instr(\\helpTempoPlayer,{\n var t;\n t = TempoPlayer.new; // default global tempo\n Impulse.ar( t.kr )\n });\n\n Patch(\\helpTempoPlayer).play(atTime:1)\n```"
}... |
[
{
"role": "user",
"content": "Explain this code:\n```supercollider\n{ var sig = SinOsc.ar(440) * 0.2; Out.ar(0, sig) }.play;\n```"
},
{
"role": "assistant",
"content": "The minimal SynthDef idiom: a source multiplied by an amplitude, written to the master bus.\n\n`var sig = SinOsc.ar(440) * 0.2`... |
[
{
"role": "user",
"content": "I get 'FAILURE IN SERVER /s_new SynthDef not found'. What is wrong?"
},
{
"role": "assistant",
"content": "The server does not know that SynthDef. Three usual causes, in order of likelihood:\n\n1. **The SynthDef was added before the server booted.** `SynthDef(...).a... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Hasher`."
},
{
"role": "assistant",
"content": "```supercollider\n{ Hasher.ar(Line.ar(0, 1, 1), 0.2) }.play;\n\n// Even adding a small amount to the input can result in a very different output. Compare these two examp... |
[
{
"role": "user",
"content": "What does `AbstractPlayer.beatDuration` do?"
},
{
"role": "assistant",
"content": "the base class for all Players : a playable object"
}
] |
[
{
"role": "user",
"content": "What is `CageCut` in SuperCollider?"
},
{
"role": "assistant",
"content": "CageCut — Automatic breakbeat cutting algorithm inspired by John Cage A cut procedure simulating John Cage's 'square root' form, or something akin to recursive subdivision. Category: Librarie... |
[
{
"role": "user",
"content": "What does `TdefGui.openDoc` do?"
},
{
"role": "assistant",
"content": "open a document with some strings at some location. used with src button, env button."
}
] |
[
{
"role": "user",
"content": "Give me an Ndef with an LFO at 0.1 Hz. (ugens saw, cutoff 1400, lfo 0.1, freq 110, amp 0.12)"
},
{
"role": "assistant",
"content": "Use `Ndef` when the patch has to change without stopping:\n\n```supercollider\n// Ndef drone: saw source through a 1400 Hz low-pass\n(... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\nx = {\n // A collection of different tones:\n var son = SinOsc.ar((100, 100.3 .. 110));\n var val = ArrayMin.ar(son).at(0);\n val = LeakDC.ar(val); // the operation tends ... |
[
{
"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 `Integrator`."
},
{
"role": "assistant",
"content": "```supercollider\n{ Integrator.ar(LFPulse.ar(300, 0.2, 0.1), MouseX.kr(0.001, 0.999, 1)) }.play\n\n// used as an envelope\n{ Integrator.ar(LFPulse.ar(3, 0.2, 0.0004)... |
[
{
"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 = { Hilbert.ar(SinOsc.ar(100) * -20.dbamp }.play;\na.release;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the paren... |
[
{
"role": "user",
"content": "Give me a Pbind with sine voices and a 0.3 rhythm."
},
{
"role": "assistant",
"content": "The pattern is the composition here; `\\strum` spreads the chord:\n\n```supercollider\n(\nSynthDef(\\sine_pad, { |out = 0, freq = 440, amp = 0.2|\n var env = EnvGen.kr(Env.p... |
[
{
"role": "user",
"content": "What does `File.pos` do?"
},
{
"role": "assistant",
"content": "Sets or returns the current position in the file (in bytes). when used as a setter, this method is a shortcut for seek(0, value). so setting the pos moves the current file position to a given location f... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\nn = NetAddr(\"localhost\", 12345);\nn = s.addr;\n\n// Example sending symbols, integers, and a float\nn.sendMsg('/s_new', \\default, 2000, 0, s.defaultGroup.nodeID, \\freq, 60.midicps);\n\n// The initial forward slash can... |
[
{
"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 minimal SuperCollider example that uses `Hilbert`."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\ns.scope;\na = { Hilbert.ar(SinOsc.ar(100)) * -20.dbamp }.play;\na.release;\n```"
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\ns.boot;\n\nb = Buffer.alloc(s,2048,1);\n\n(\nSynthDef(\"help-brick\", { arg out=0, bufnum=0;\n var in, chain;\n in = {WhiteNoise.ar(0.2)}.dup;\n chain = FFT(bufnum, in);\n ch... |
[
{
"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 `StandardN` in SuperCollider?"
},
{
"role": "assistant",
"content": "StandardN — Standard map chaotic generator A non-interpolating sound generator based on the difference equations: 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// trigger an envelope\n(\n{\n var trig;\n trig = SinOsc.ar(1) > 0.1;\n EnvGen.kr(Env.perc, trig, doneAction: Done.none) * SinOsc.ar(440, 0, 0.1)\n}.play\n // > outputs ... |
[
{
"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 minimal SuperCollider example that uses `PeakFollower`."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\n\n// no decay\n(\n{\n SinOsc.ar(\n PeakFollower.ar(Dust.ar(20, Line.kr(0, 1, 4)), 1.0) * 1500 + 200,\n 0, 0.2\n )\n\n}.play;... |
[
{
"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= PlaybackData(\"~/Desktop/OpenBCI-RAW-2019-04-10_19-04-26.txt\", initAction: {|b| b.start});\n~board= board;\n);\n\n~boar... |
[
{
"role": "user",
"content": "Write a Pbind whose degrees repeat every Pwalk cycle. (scale majorPentatonic, seq Pwalk, dur 0.3, octave 6, instr fm, root 0)"
},
{
"role": "assistant",
"content": "`Pbind` sequences an Event per beat, and `\\degree` + `\\scale` does the pitch:\n\n```supercollider\n... |
[
{
"role": "user",
"content": "What is the difference between Env and EnvGen?"
},
{
"role": "assistant",
"content": "Env is a language-side description: a list of levels, times and a curve, e.g. `Env.perc(0.01, 1)` or `Env.adsr(0.01, 0.1, 0.5, 0.8)`. EnvGen is the UGen that plays it on the server... |
[
{
"role": "user",
"content": "Give me a fm kick with a 0.06 s pitch sweep. (osc fm, sweep 0.06, decay 0.12, f0 150, f1 55, amp 0.8, rev 0)"
},
{
"role": "assistant",
"content": "A kick is a sine with a fast pitch drop and a short amplitude envelope:\n\n```supercollider\n// kick drum: fm oscillat... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `HilbertFIR`."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\ns.scope;\na = { HilbertFIR.ar(SinOsc.ar(100) * -20.dbamp, LocalBuf(2048)) }.play;\na.release;\n```"
}
] |
[
{
"role": "user",
"content": "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": "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 this SuperCollider code do?\n```supercollider\n// When we provide the 'root' argument an array, we should hear a chord.\n// the synth def is defined above\n(\nPbind(\n \\instrument, \\acid, \\dur, Pseq([0.25, 0.5, 0.25], inf),\n \\root, [-24, -17], // expand root\n ... |
[
{
"role": "user",
"content": "What is `Server`?"
},
{
"role": "assistant",
"content": "Server — Object representing a server application"
},
{
"role": "user",
"content": "What does `Server.new` do?"
},
{
"role": "assistant",
"content": "Create a new Server instance."
},... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// write a sine oscillator's output to a pin\n\n(\nSynthDef(\"help-DigitalOut\", { |out = 0|\n DigitalOut.ar(0, SinOsc.ar(10));\n}).play;\n```"
},
{
"role": "assistant... |
[
{
"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": "Write a SuperCollider patch that uses `Saw` and actually plays. Assume nothing about the session."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\\event_set, { |freq = 440, gate = 1, amp = 0.1, lagTime = 0.1,\n ffreq = 2000, detune = 1.005, ... |
[
{
"role": "user",
"content": "What does `KeyCodeResponder.registerAll` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "register responder functions for keycode and modifier combinations Arguments: ... sets."
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `List`."
},
{
"role": "assistant",
"content": "```supercollider\n// Create a new empty collections with size 3:\nx = Array.new(3);\ny = Array.new(3);\nz = List.new(3);\n\n// Try to add 7 items to the array and list.\n/... |
[
{
"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": "Write a self-contained SuperCollider patch for Seekers are something you should avoid. Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var time = 0.23;\n var freq = (55).midicps;\n var a = VarSaw.ar(freq/2, width: XLine... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `In`."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\"help-InKr\", { |out = 0, in = 0|\n Out.ar(out,\n SinOsc.ar(In.kr(in, 1), 0, 0.1)\n )\n}).add;\nSynthDef(\"help-lfo\", { |out = 0|\n Out.kr(out... |
[
{
"role": "user",
"content": "Write an Ndef with a tri source and a 1400 Hz low-pass. (ugens tri, cutoff 1400, lfo 0.8, freq 220, amp 0.12)"
},
{
"role": "assistant",
"content": "`Ndef` holds the synth and the environment, so you can edit it live:\n\n```supercollider\n// Ndef drone: tri source t... |
[
{
"role": "user",
"content": "What is `Stream`?"
},
{
"role": "assistant",
"content": "Stream — Stream is the base class for classes that define streams"
},
{
"role": "user",
"content": "What does `Stream.play` do?"
},
{
"role": "assistant",
"content": "Streams that retur... |
[
{
"role": "user",
"content": "What does `SynthlessPlayer.proxyControlClass` do?"
},
{
"role": "assistant",
"content": "parent class for Players that will not spawn a synth"
}
] |
[
{
"role": "user",
"content": "Write a kick at amp 0.6 with a click. (osc saw, sweep 0.06, decay 0.5, f0 180, f1 55, 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// kick drum: saw oscillator, 0.... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// logistic map\n// equation: x1 = -r*x0^2 + r*x0\n(\n{ var r;\n r = MouseX.kr(3.5441, 4); // stable range\n QuadL.ar(SampleRate.ir/4, r.neg, r, 0, 0.1) * 0.4;\n}.play(s);\n``... |
[
{
"role": "user",
"content": "Explain `LinkedList` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "LinkedList — doubly linked list LinkedList implements a doubly linked list. Category: Collections > Ordered."
}
] |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\nb = Buffer.read(s, Platform.resourceDir +/+ \"sounds/a11wlk01.wav\");\n\n(\n{\n var snd, envTime, knee, out;\n snd = PlayBuf.ar(1, b, BufRateScale.kr(b), loop: 1);\n envTime = MouseX.kr(1.0e-3, 0.1e-3);\n kne... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// result of BufRd is used as index for the next BufRd\n// needs Buffer c prepared above\n\n(\ny = {\n GFIS.ar(\n { |x| BufRd.ar(1, c, c.numFrames * x) },\n (LFDNoise3.ar(... |
[
{
"role": "user",
"content": "What does `HilbertHRe.ar` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Applies the Real part of the Hilbert Transform to an input signal. [1] Arguments: in — The input signal to transform.; size — The size of the kernel used for Hartley Ph... |
[
{
"role": "user",
"content": "Write a SuperCollider patch for number 10 for Quiz 4a. Start by defining the values the patch depends on."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var tri, bpf;\n tri = LFTri.ar(\n freq: [440,340, 513],\n mul: LFPulse.kr(\n freq: ... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Dswitch`."
},
{
"role": "assistant",
"content": "```supercollider\n(\n {\n var d, trig;\n d = Dswitch([\n Dwhite(3, 4, 2),\n Dwhite(0, 1, 2),\n Dseq([1, 1, 1, 0], 2)\n ], Dseq([0, 1, 2, 1, 0],... |
[
{
"role": "user",
"content": "Write a self-contained SuperCollider patch for Kepler 22-b atmosphere. Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\n(\nfork { \n Ndef(\\ttwnd).play;//(d,2,addAction:\\addToHead);\n loop {\n var seed = thisThread.randSeed... |
[
{
"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": "Explain `PSVop_o` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "PSVop_o — Sieve pattern for arbitrary set operations of integer generators with offsets and point output Pattern for arbitrary set operations of integer generators with offsets and po... |
[
{
"role": "user",
"content": "Explain `GVerb` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "GVerb — A two-channel reverb A two-channel reverb UGen, based on the \"GVerb\" LADSPA effect by Juhana Sadeharju (kouhia at nic.funet.fi). Category: UGens > Reverbs."
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `LFClipNoise`."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\"help-LFClipNoise\", { |out = 0|\n Out.ar(out,\n LFClipNoise.ar(1000, 0.25)\n )\n}).play;\n);\n\n// modulate frequency\n(\nSynth... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `LFPulse`."
},
{
"role": "assistant",
"content": "```supercollider\n{ LFPulse.ar(XLine.kr(1, 200, 10), 0, 0.2, 0.1) }.play;\n```"
}
] |
[
{
"role": "user",
"content": "Explain this SuperCollider patch.\n```supercollider\n// crucial-library - sends midi clock and song position pointer\n// x.add( MIDIClockOut(\"IAC Driver\", \"IAC Bus 1\") )\n\nMxUnit.register('MIDIClockOut',\n(\n make: { arg mco;\n ~source = mco;\n MxUnit(mco,... |
[
{
"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;\n a = [\n SinOsc.ar,\n Saw.ar,\n Pulse.ar\n ];\n TChoose.ar(Dust.ar(MouseX.kr(1, 1000, 1)), a) * 0.2\n\n}.play;\n```"
},
{
"role": "ass... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// increase phase multiplier\n{ FBSineN.ar(SampleRate.ir, 1, 0, XLine.kr(1, 2, 10), 0.1) * 0.2 }.play(s;\n```"
},
{
"role": "assistant",
"content": "A closing bracket... |
[
{
"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": "What does `Knob.defaultKeyDownAction` do?"
},
{
"role": "assistant",
"content": "Implements the default effects of key presses as"
}
] |
[
{
"role": "user",
"content": "Show me a self-contained SuperCollider patch using `Convolution2L`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\n// next example\n\nb = Buffer.read(s, ExampleFiles.child);\n\n(\n{\n var input = SoundIn.ar(0);\n var frame... |
[
{
"role": "user",
"content": "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": "Write a minimal SuperCollider example that uses `FSinOsc`."
},
{
"role": "assistant",
"content": "```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(X... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Trig`."
},
{
"role": "assistant",
"content": "```supercollider\n{ Trig.ar(Dust.ar(1), 0.2) * FSinOsc.ar(800, 0.5) }.play\n\n{ Trig.ar(Dust.ar(4), 0.1) }.play\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 `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": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ Blip.ar(LFNoise0.kr(9, 400, 500), 4, 0.2 }.play;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis opened earlier is never c... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ SinOsc.ar(MouseX.kr(40, 10000, 1), 0, 0.1) }.play;\n{ SinOsc.ar(MouseX.kr(500, 10000, 1).poll, 0, 0.1 }.play;\n```"
},
{
"role": "assistant",
"content": "A closing ... |
[
{
"role": "user",
"content": "What is `BelaScope`?"
},
{
"role": "assistant",
"content": "BelaScope — Bela's Oscilloscope interface"
},
{
"role": "user",
"content": "What does `BelaScope.scope` do?"
},
{
"role": "assistant",
"content": "Send an array of UGen data to Bela'... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// use input amplitude to control Pulse amplitude - use headphones to prevent feedback.\n{ Pulse.ar(90, 0.3, Amplitude.kr(SoundIn.ar(0)) }.play;\n```"
},
{
"role": "assis... |
[
{
"role": "user",
"content": "Write a SuperCollider patch that uses `Scale` and actually plays. Assume nothing about the session."
},
{
"role": "assistant",
"content": "```supercollider\n(\nr = {\n var scale = Scale.choose.postln;\n SinOsc.ar(\n (\n DegreeToKey.kr(\n scale.as(Lo... |
[
{
"role": "user",
"content": "Explain `RedDiskInPlayer` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "RedDiskInPlayer — simple GUI for soundfile playback from disk Uses RedDiskInSampler to stream soundfiles from disk. Use it to play back long soundfiles. Category: Red > redSam... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `EnvGen`."
},
{
"role": "assistant",
"content": "```supercollider\n{ PinkNoise.ar(EnvGen.kr(Env.perc, doneAction: Done.freeSelf)) }.play\n```"
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// vary frequency\n{ StandardL.ar(MouseX.kr(20, SampleRate.ir)) * 0.3 }.play(s;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthe... |
[
{
"role": "user",
"content": "Give me a complete SuperCollider patch for Will nobody switch the damn thing off?: bind everything it needs before it is used."
},
{
"role": "assistant",
"content": "```supercollider\n(\n\n{\nvar dseq, trig;\n\ndseq = Dseq([SinOsc.ar(45).range(-5, 12), SinOsc.ar(Sin... |
[
{
"role": "user",
"content": "Write a SuperCollider patch for 8-bit synth (a SuperCollider snippet) that runs as it is, with nothing assumed about the session."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\"AM2\", { arg freq = 440, modfreq = 12, amp = 0.5, attack = 0.01, ... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ Standard2DC.ar(220, 11025, mul:0.3) }.play(s);\n\n// mouse-controlled param\n{ Standard2DC.ar(8000, 20000, MouseX.kr(0.9,4), mul:0.3) }.play(s);\n\n// as a frequency control\n{... |
[
{
"role": "user",
"content": "What does `EaseInQuad.value` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Quadratic ease-in Arguments: t — a Float between 0.0 and 1.0.."
}
] |
[
{
"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(\"minimoog.two\").ar( SinOsc.kr(1.0).range(300,500) )\n )\n}).send(s;\n```"
},
{
"role": "assistant",
"content": "A clos... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\na = NodeProxy(s);\na.reshaping = \\elastic;\na.play(0, 2); // play stereo\na.source = { BPF.ar(Dust.ar(8 ! 8), (0..5).nthPrime * 300, 0.01 * 20 };\na.numChannels; // 8\n```"
},... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `AbstractFunction`."
},
{
"role": "assistant",
"content": "```supercollider\na = { |x| #[440, 720, 801, 1020.2].at(x) }; b = a.cpsmidi; [a.value(3), b.value(3)];\na = Pseries(220, 220, inf).cpsmidi; a.asStream.nextN(12); // o... |
[
{
"role": "user",
"content": "What is `Nil`?"
},
{
"role": "assistant",
"content": "Nil — Represents uninitialized data"
},
{
"role": "user",
"content": "What does `Nil.isNil` do?"
},
{
"role": "assistant",
"content": "Answers true because this is nil. In class Object thi... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `FBSineC`."
},
{
"role": "assistant",
"content": "```supercollider\n// increase feedback\n{ FBSineC.ar(SampleRate.ir, 1, Line.kr(0.01, 4, 10), 1, 0.1) * 0.2 }.play(s);\n```"
}
] |
[
{
"role": "user",
"content": "What is `PdurStutter` in SuperCollider?"
},
{
"role": "assistant",
"content": "PdurStutter — partition a value into n equal subdivisions A filter pattern designed for a stream of float durations. Category: Streams-Patterns-Events > Patterns > Repetition."
}
] |
[
{
"role": "user",
"content": "What is `Prand` in SuperCollider?"
},
{
"role": "assistant",
"content": "Prand — embed values randomly chosen from a list Embed one item from the list at random for each repeat. Category: Streams-Patterns-Events > Patterns > List."
}
] |
[
{
"role": "user",
"content": "Show me a self-contained SuperCollider patch using `AnalogIn`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\n// modulate frequency of a sine oscillator\n\n(\nSynthDef(\"help-AnalogIn\", { |out = 0|\n Out.ar(out,\n SinOs... |
[
{
"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": "Write a granular texture, dry. (rate 20, dur 0.07, interp 2, mode sweep, 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 = ... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `EnvGen`."
},
{
"role": "assistant",
"content": "```supercollider\n{ PinkNoise.ar(EnvGen.kr(Env.perc, doneAction: Done.freeSelf)) }.play\n```"
}
] |
[
{
"role": "user",
"content": "Write a GrainBuf synth at 14 grains per second. (rate 14, dur 0.15, 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(... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n~x.play;\n\n~x = { var alpha,beta; alpha = rrand(99,399); beta = alpha = rrand(99,399);Pan2.ar(LeakDC.ar(Normalizer.ar(BPeakEQ.ar(BPeakEQ.ar(BPeakEQ.ar(BPeakEQ.ar(\nFreeVerb.ar(Formant.ar(TRand.kr(alpha,alpha+(rrand(5,20... |
[
{
"role": "user",
"content": "Give me an Ndef with an LFO at 0.1 Hz. (ugens sine, cutoff 800, lfo 0.1, freq 55, amp 0.12)"
},
{
"role": "assistant",
"content": "`Ndef` holds the synth and the environment, so you can edit it live:\n\n```supercollider\n// Ndef drone: sine source through a 800 Hz l... |
[
{
"role": "user",
"content": "What does `SequenceableCollection.performBinaryOp` do?"
},
{
"role": "assistant",
"content": "Creates a new collection of the results of applying the selector with the operand to all elements in the receiver. If the operand is a collection then elements of that coll... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.