conversations listlengths 2 6 |
|---|
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `FFTTrigger`."
},
{
"role": "assistant",
"content": "```supercollider\n// Reminder: This isn't the intended typical usage! It's OK to do this though.\n(\nx = {\n var mags, phases, chain, sig;\n // Create simple undul... |
[
{
"role": "user",
"content": "What does `U.printOn` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "(describe method Arguments: stream — (describe argument here). Returns: (returnvalue)"
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\nb = Buffer.alloc(s, 1);\n{\nvar x, y, rate, a, c, m;\n rate = MouseX.kr(100, SampleRate.ir);\n a = 1.1;\n c = 0.13;\n m = 1.0;\n x = Dbufrd(b); // read from buffer\n x =... |
[
{
"role": "user",
"content": "Write a Pbind in majorPentatonic using Pseq for the degrees. (scale majorPentatonic, seq Pseq, 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```superc... |
[
{
"role": "user",
"content": "Explain `COsc` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "COsc — Chorusing wavetable oscillator. Chorusing wavetable lookup oscillator. Produces sum of two signals at Category: UGens > Generators > Deterministic."
}
] |
[
{
"role": "user",
"content": "Buffer.read fails and I get a path error. What should the path look like?"
},
{
"role": "assistant",
"content": "On Windows use forward slashes or escaped backslashes inside the string: `Buffer.read(s, \"C:/sounds/kick.wav\")`. A single backslash starts an escape se... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\nb = Buffer.read(s, ExampleFiles.child);\n\n// compares a 1102.5 Hz sine tone (11025 * 0.1, left) with a 1100 Hz tone (right)\n// the apollo sample has a sample rate of 11.025 kHz\n(\n{\n var freq;\n freq = [BufSampleRat... |
[
{
"role": "user",
"content": "What is `Rest`?"
},
{
"role": "assistant",
"content": "Rest — Represents a rest in event patterns"
},
{
"role": "user",
"content": "What does `Rest.new` do?"
},
{
"role": "assistant",
"content": "Create an instance of Rest, with a value to be... |
[
{
"role": "user",
"content": "Write a complete SuperCollider patch built around `NamedControl` that runs as it is."
},
{
"role": "assistant",
"content": "```supercollider\n// compare this:\n(\na = {\n var x, y;\n x = NamedControl.kr(\\freq, 440).lag(3.5);\n y = NamedControl.kr(\\freq, 4... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ LFNoise0.ar(1000, 0.25) }.play;\n\n// modulate frequency\n\n{ LFNoise0.ar(XLine.kr(1000, 10000, 10), 0.25) }.play;\n\n// as frequency modulator\n(\n{ SinOsc.ar(\n LFNoise0.a... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\n Instr(\\helpTempoPlayer,{\n Impulse.ar( Tempo.kr )\n });\n\n Patch(\\helpTempoPlayer).play(atTime:1)\n```"
},
{
"role": "assistant",
"content": "A closing b... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `BufSamples`."
},
{
"role": "assistant",
"content": "```supercollider\n// example; this buffer is mono, so the number of samples matches the number of frames\nb = Buffer.read(s, ExampleFiles.child);\n\n// indexing with... |
[
{
"role": "user",
"content": "What does `Magnitude.inclusivelyBetween` do?"
},
{
"role": "assistant",
"content": "Comparable value in a linear continuum Returns: whether the receiver is greater than or equal to minVal and less than or equal to maxVal."
}
] |
[
{
"role": "user",
"content": "What is `DrawGrid`?"
},
{
"role": "assistant",
"content": "DrawGrid — Draws grid lines on a UserView for plotting"
},
{
"role": "user",
"content": "What does `DrawGrid.draw` do?"
},
{
"role": "assistant",
"content": "This draws to the current... |
[
{
"role": "user",
"content": "What does `MxQuery.inlets` do?"
},
{
"role": "assistant",
"content": "Returns a query set with all inlets for the currently matched results. so mx.units.inlets returns all inlets for all units in the mx. For a channel (or channels) it returns all inlets for all unit... |
[
{
"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": "Explain `TGrains2` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "TGrains2 — buffer granulator with linear att/dec Triggers generate grains from a buffer. Each grain has a linear and is panned between two channels of multiple outputs. Category: UGe... |
[
{
"role": "user",
"content": "What is `BinaryOpFunction`?"
},
{
"role": "assistant",
"content": "BinaryOpFunction — represent a binary operation on a function"
},
{
"role": "user",
"content": "What does `BinaryOpFunction.value` do?"
},
{
"role": "assistant",
"content": "E... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `PV_MagSquared`."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\n\n(\nb = Buffer.alloc(s, 2048, 1);\nc = Buffer.read(s, ExampleFiles.child);\n);\n\n(\nSynthDef(\"help-magSquared\", { |out = 0, bufnum ... |
[
{
"role": "user",
"content": "Write a SuperCollider patch that uses `WhiteNoise` and actually plays. Assume nothing about the session."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var in, chain;\n in = WhiteNoise.ar(0.8);\n chain = FFT(LocalBuf(2048), in); // encode to freq... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Pan2`."
},
{
"role": "assistant",
"content": "```supercollider\n// hear the difference, LinPan having a slight drop in the middle...\n{ LinPan2.ar(SinOsc.ar(440), Line.kr(-1, 1, 5)) }.play\n\n// ... whereas Pan2 is mo... |
[
{
"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": "How do I put a pluck in a reverb at mix 0.3?"
},
{
"role": "assistant",
"content": "A send-style patch: dry signal plus the reverb on the tail:\n\n```supercollider\n// reverb: gverb on a pluck\n(\nSynthDef(\\reverb_synth, { |out = 0, freq = 330, amp = 0.2|\n var ... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n// modulating the frequency\n\n{ Saw.ar(XLine.kr(40, 4000, 6), 0.2) }.play;\n\n// two band limited sawtooth waves through a resonant low pass filter\n\n{ RLPF.ar(Saw.ar([100, 250], 0.1), XLine.kr(8000, 400, 5), 0.05) }.pl... |
[
{
"role": "user",
"content": "What does `VectorSplineGui.specs` do?"
},
{
"role": "assistant",
"content": "Optionally get or set specs for each dimension. By default each dimension guesses its specs based on the data. You may also set a single spec in a array, eg: [\\unipolar.asSpec] which will ... |
[
{
"role": "user",
"content": "How do I pan notes around the stereo field in a pattern?"
},
{
"role": "assistant",
"content": "Put `\\pan` in the Pbind: the default instrument understands it and passes it to Pan2.\n\n```supercollider\n(\nPbind(\n \\scale, Scale.minorPentatonic,\n \\degree, ... |
[
{
"role": "user",
"content": "Write a Pbind in majorPentatonic using Prand for the degrees. (scale majorPentatonic, seq Prand, dur 0.25, octave 4, instr pluck, root 0)"
},
{
"role": "assistant",
"content": "The pattern is the composition here; `\\strum` spreads the chord:\n\n```supercollider\n(\... |
[
{
"role": "user",
"content": "Explain `Friction` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "Friction — A physical model of a system with dry-friction. A chaotic filter. The input is treated as the driving force in a physical model of a mass resting on a belt, which can stic... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ ClipNoise.ar(0.2 }.play;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis opened earlier is never closed, so the expression... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `FBSineL`."
},
{
"role": "assistant",
"content": "```supercollider\n// default initial params\n{ FBSineL.ar(SampleRate.ir/4) * 0.2 }.play(s);\n```"
}
] |
[
{
"role": "user",
"content": "Write a kick at amp 0.8 with no click. (osc fm, sweep 0.06, decay 0.35, f0 150, 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: fm oscillator, 0.06 s pitch swe... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```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": "assistant",
"content": "A closing bracket is mi... |
[
{
"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": "How do I distort a signal?"
},
{
"role": "assistant",
"content": "Drive it into a nonlinearity, then tame the level: `tanh` is soft clipping, `.distort` is harder,\nand a low-pass after the drive keeps it from getting fizzy.\n\n```supercollider\n(\n{\n var sig = ... |
[
{
"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{ LinCongC.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": "How do I play a random minorPentatonic scale at octave 6? (scale minorPentatonic, seq Prand, dur 0.3, octave 6, instr fm, root 0)"
},
{
"role": "assistant",
"content": "The pattern is the composition here; `\\strum` spreads the chord:\n\n```supercollider\n(\nSynthDe... |
[
{
"role": "user",
"content": "What does `Array.stutter` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "fixed size collection Arguments: n — Number of repeats.."
}
] |
[
{
"role": "user",
"content": "What does Splay.ar do?"
},
{
"role": "assistant",
"content": "`Splay.ar(inArray, spread, level, center, levelComp)` takes an array of mono signals and distributes them across the stereo field, so `Splay.ar(SinOsc.ar([220, 330, 440]) * 0.1)` is a three-source stereo ... |
[
{
"role": "user",
"content": "What does `SFormant.xsetFrequencies` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "convenience method for CODE.xset(\\frequencies, ...) will Arguments: arr — an array of floats in Hz.."
}
] |
[
{
"role": "user",
"content": "What is `VarGui`?"
},
{
"role": "assistant",
"content": "VarGui — slider / player gui to set envir variables and synth controllers and play synths, event patterns and tasks"
},
{
"role": "user",
"content": "What does `VarGui.new` do?"
},
{
"role"... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\nSynthDef(\"help-GrayNoise\", { |out = 0|\n Out.ar(out,\n GrayNoise.ar(-20.dbamp)\n )\n}).play;\n```"
},
{
"role": "assistant",
"content": "A closing bracket i... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\n{\n EnvGen.kr(\n Env.new([0.001, 1, 0.5, 0], [0.01, 0.3, 1], -4, 2, nil),\n Impulse.kr(10)\n ) * SinOsc.ar(440, 0, 0.1)\n}.play;\n);\n\n(\n{\n EnvGen.kr... |
[
{
"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\nSynthDef(\"help-PulseDivider\", { |out = 0|\n var p, a, b;\n p = Impulse.ar(8);\n a = SinOsc.ar(1200, 0, Decay2.ar(p, 0.005, 0.1));\n b = SinOsc.ar(600, 0, Decay2.ar(PulseDiv... |
[
{
"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-AnalogOut\", { |out = 0|\n AnalogOut.ar(0, SinOsc.ar(10));\n}).play;\n```"
},
{
"role": "assistant",... |
[
{
"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": "Who made you?"
},
{
"role": "assistant",
"content": "I am sc-mind, trained by this repository from a six-source SuperCollider corpus and a supervised set whose code answers were compiled with sclang before they were written."
}
] |
[
{
"role": "user",
"content": "How do I add reverb with FreeVerb?"
},
{
"role": "assistant",
"content": "`FreeVerb.ar(in, mix, room, damp)` — mix 0..1 is dry/wet, room 0..1 is the size (0.5 is a small room, 0.9 is a hall), damp 0..1 rolls off the high end of the tail. Put it after your sound: `Fr... |
[
{
"role": "user",
"content": "Write a complete SuperCollider patch built around `SelectXFocus` that runs as it is."
},
{
"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 ... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Dwrand`."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var a, freq, trig;\n a = Dwrand([0, 1, 2, 7], [0.4, 0.4, 0.1, 0.1], inf).dpoll;\n trig = Impulse.kr(MouseX.kr(1, 400, 1));\n freq = Demand.k... |
[
{
"role": "user",
"content": "Explain `StandardL` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "StandardL — Standard map chaotic generator A linear-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{ 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.vol = 0.3;\nx.stop;\n```"
},
{
"role": "assis... |
[
{
"role": "user",
"content": "What is `SystemSynthDefs`?"
},
{
"role": "assistant",
"content": "SystemSynthDefs — SynthDefs assumed to exist on the server"
},
{
"role": "user",
"content": "What does `SystemSynthDefs.numChannels` do?"
},
{
"role": "assistant",
"content": "... |
[
{
"role": "user",
"content": "Explain `ControlPrototypes` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "ControlPrototypes — creates default objects for Spec / argName combinations This is a registery of controls, cataloged by the Spec of their output. It was used by Patch to p... |
[
{
"role": "user",
"content": "Explain `Henon2DL` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "Henon2DL — henon map 2D chaotic generator `y = b * x(n)` Category: UGens > Generators > Stochastic."
}
] |
[
{
"role": "user",
"content": "Write a SuperCollider patch that uses `Pan2` and actually plays. Assume nothing about the session."
},
{
"role": "assistant",
"content": "```supercollider\ng = Group.new;\n\n// make 4 synths in g\n// 1.0.rand2 returns a random number from -1 to 1.\n4.do({ { arg amp ... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\nNdef(\\sound, { |freq = 56, numHarm = 10| Blip.ar(freq, numHarm, 30) * 0.2 }).play;\nNdef(\\sound).set(\\freq, 15);\nNdef(\\sound).set(\\freq, 15, \\numHarm, 100);\n\nNdef(\\lfo,... |
[
{
"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": "Show me a self-contained SuperCollider patch using `DiskIn`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\n\n\n\n// create with cueSoundFile class method\nb = Buffer.cueSoundFile(s, ExampleFiles.apollo11, 0, 1);\nx... |
[
{
"role": "user",
"content": "Write a kick drum with a 0.35 s decay. (osc saw, sweep 0.06, decay 0.35, f0 150, f1 40, 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 drum: saw oscillator, ... |
[
{
"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, { Pan2.ar(Blip.ar(Ndef.kr(\\maus, 1) * 70), SinOsc.kr(Ndef.ar(\\maus, 1) * 5)) }.play;\n```"
},
{
"role": "assistant",
"con... |
[
{
"role": "user",
"content": "What does `ClassNameLabel.new` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "a button for displaying an Class name that links to a ClassGui in debugging interfaces Arguments: class; layout — the parent view, FlowView or window; minWidth — L... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `DelayC`."
},
{
"role": "assistant",
"content": "```supercollider\n(\n// Dust randomly triggers Decay to create an exponential\n// decay envelope for the WhiteNoise input source\n{\nz = Decay.ar(Dust.ar(1, 0.5), 0.3, W... |
[
{
"role": "user",
"content": "Write a self-contained SuperCollider patch that uses `PV_Mul`. Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\n\n(\nSynthDef(\"help-mul\", { |out = 0|\n var inA, chainA, inB, chainB, chain ;\n inA = SinOsc.ar(500, 0, 0... |
[
{
"role": "user",
"content": "What does `Canvas3D.mRotateZ` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Create a matrix for rotating around Z Arguments: az — Z rotation."
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Dshuf`."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var a, freq, trig;\n a = Dseq([Dshuf([1, 3, 2, 7, 8.5], 3)], inf);\n trig = Impulse.kr(MouseX.kr(1, 40, 1));\n freq = Demand.kr(trig, 0, a) *... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\n Instr(\\beatClockPlayerTest,{ arg gate=0.0;\n var a,t;\n\n t = gate;\n a = Decay2.kr(t,0.01,0.1).clip2(1.0);\n a * SinOsc.ar(300);\n },[\n \\gate\n ]);\n\n ... |
[
{
"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": "Write a minimal SuperCollider example that uses `HPZ2`."
},
{
"role": "assistant",
"content": "```supercollider\n// Compare:\n\n{ WhiteNoise.ar(0.25) }.play;\n\n{ HPZ2.ar(WhiteNoise.ar(0.25)) }.play;\n\n// HPZ2 is useful to detect changes in a signal:\n// see also H... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Recorder`."
},
{
"role": "assistant",
"content": "```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(durati... |
[
{
"role": "user",
"content": "Write a complete SuperCollider patch built around `Pmulpre` that runs as it is."
},
{
"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... |
[
{
"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 is `PFold` in SuperCollider?"
},
{
"role": "assistant",
"content": "PFold — UGenPatterns quark library Based on Fold Category: Streams-Patterns-Events > UGenPatterns > Modifiers."
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\n Instr(\\beatClockPlayerTest,{ arg gate=0.0;\n var a,t;\n\n t = gate;\n a = Decay2.kr(t,0.01,0.1).clip2(1.0);\n a * SinOsc.ar(300);\n },[\n \\gate\n ]);\n\n ... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// logistic map as frequency control\n(\n{ var r;\n r = MouseX.kr(3.5441, 4); // stable range\n SinOsc.ar(QuadN.ar(40, r.neg, r, 0, 0.1, 800, 900)) * 0.4;\n}.play(s);\n```"
... |
[
{
"role": "user",
"content": "Explain `Impulse` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "Impulse — Impulse oscillator. Outputs non-bandlimited single sample impulses. Category: UGens > Generators > Deterministic."
}
] |
[
{
"role": "user",
"content": "What does `LADSPA.ladspalist_path` do?"
},
{
"role": "assistant",
"content": "set/get the location of the `ladspalist` binary, used to print a list of available"
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ Lorenz2DN.ar(11025, 44100) }.play(s);\n\n// randomly modulate params\n(\n{ Lorenz2DN.ar(\n 11025, 44100,\n LFNoise0.kr(1, 2, 10),\n 20,\n LFNoise0.kr(1, 1.5, 2),\n 0.02\n)... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// default values\n{ Logistic.ar }.play\n\n// onset of chaos\n{ Logistic.ar(Line.kr(3.55, 3.6, 5), 1000) }.play\n\n// explore via Mouse\n{ Logistic.ar(MouseX.kr(3, 3.99), MouseY.... |
[
{
"role": "user",
"content": "Write a complete SuperCollider patch built around `Compander` that runs as it is."
},
{
"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.... |
[
{
"role": "user",
"content": "What is a UGen?"
},
{
"role": "assistant",
"content": "A UGen is a unit generator: the primitive signal-processing node of the server. SinOsc, Saw, WhiteNoise, LPF and EnvGen are UGens, and they are wired into a graph inside a SynthDef."
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\nb = NodeProxy.audio(s, 2);\nb.play; // listen to b\nb.source = { SinOsc.ar([400, 500], 0, 0.1) }; // play something\n\nr = b.record(\"recproxy101.aiff\"); // start recorder (paus... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// example:\n(\nvar f, g, product;\nf = { SinOsc.ar(400) };\ng = { LFPulse.kr(8) };\nproduct = f * g * 0.1;\n{ Pan2.ar(product, SinOsc.kr(0.3)) }.play;\n```"
},
{
"role":... |
[
{
"role": "user",
"content": "What does `CutMod1.new` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "BBCut2 ring modulator Arguments: modamount — Wet/dry mix. 1 is wet, 0 is dry.; modfreq — Modulator frequency. The default is middle C.; mamult — Common ratio of the geome... |
[
{
"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 were you trained on?"
},
{
"role": "assistant",
"content": "The official SuperCollider tree, 321 Quarks, sccode.org, scsynth.org, sc3-plugins and this project's own sessions: 25.8M tokens, then 6,000 supervised rows whose code answers all compile."
}
] |
[
{
"role": "user",
"content": "Show me a self-contained SuperCollider patch using `KeyTrack`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\n// alternating major and minor chords as a test\n(\n{\n var in, fft, resample;\n var key, transientdetection;\n\... |
[
{
"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": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\n Instr(\\helpTempoPlayer,{\n Impulse.ar( Tempo.kr )\n });\n\n Patch(\\helpTempoPlayer).play(atTime:1)\n```"
},
{
"role": "assistant",
"content": "A closing b... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Pulse`."
},
{
"role": "assistant",
"content": "```supercollider\n// modulate frequency\n{ Pulse.ar(XLine.kr(40, 4000, 6), 0.1, 0.2) }.play;\n\n// modulate pulse width\n{ Pulse.ar(200, SinOsc.kr(0.2).range(0.01, 0.99),... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\ns.boot;\n(\nx = SynthDef(\"help-node-set\", { |freq = 440, out = 0|\n Out.ar(out, SinOsc.ar(freq, 0, 0.1))\n}).play\n);\nx.run(false;\nx.run; // default is true\nx.free;\n```"
... |
[
{
"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": "Are you ChatGPT?"
},
{
"role": "assistant",
"content": "No. I am sc-mind, a 198M SuperCollider model trained from scratch on the language's own source and documentation. I am not a general assistant and I do not have a general model behind me."
}
] |
[
{
"role": "user",
"content": "What happens when I call .play on a function?"
},
{
"role": "assistant",
"content": "`.play` on a Function builds a SynthDef from the function body, adds it to the server under an anonymous name, and starts one Synth of it. You get back the Synth, so `x = { SinOsc.a... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `TChoose`."
},
{
"role": "assistant",
"content": "```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": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\nd = SynthDef(\"help-NodeControl\", { |out = 0, freq = 400|\n Out.ar(out,\n SinOsc.ar(freq, 0, 0.5)\n )\n});\ny = d.play; // the synth\n\nc = NodeControl(y, 1;\n\nc.value = ... |
[
{
"role": "user",
"content": "Write a SuperCollider patch for gabber kick (a SuperCollider snippet) that runs as it is, with nothing assumed about the session."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\\gabberkick, {\n var snd;\n snd = SinOsc.ar(Env([1000, 69, 6... |
[
{
"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": "Write a granular texture, through a reverb. (rate 20, dur 0.2, interp 4, mode sweep, 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 is `Bag`?"
},
{
"role": "assistant",
"content": "Bag — Unordered collection of objects"
},
{
"role": "user",
"content": "What does `Bag.new` do?"
},
{
"role": "assistant",
"content": "Creates a Bag with an initial capacity for n objects.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.