conversations listlengths 2 6 |
|---|
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ SinOsc.ar(SinOsc.ar(0.3).exprange(440, 6600), 0, 0.5 * 0.1 }.play;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis opened ... |
[
{
"role": "user",
"content": "What is `SendReply` in SuperCollider?"
},
{
"role": "assistant",
"content": "SendReply — Send an array of values from the server to all notified clients A message is sent to all notified clients. See Server. Category: UGens > Triggers."
}
] |
[
{
"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": "What does `Env.linen` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Creates a new envelope specification which has a trapezoidal Arguments: attackTime — the duration of the attack portion.; sustainTime — the duration of the sustain portion.... |
[
{
"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 TRand.kr(300, 3000, trig)\n ) * 0.1\n}.play;\n);\n\n(\n{\n var trig = Dust.ar(MouseX.kr(1, 8000, 1));\n SinOsc.ar(\n ... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `T2K`."
},
{
"role": "assistant",
"content": "```supercollider\n// this does not work:\n(\n{\n var trig = Dust.ar(4);\n Trig.kr(trig, 0.1) * SinOsc.ar(800) * 0.1\n}.play;\n);\n\n// this works:\n(\n{\n var trig = T2K... |
[
{
"role": "user",
"content": "Write a SuperCollider patch that uses `NodeProxy` and actually plays. Assume nothing about the session."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\n\na = NodeProxy.new.play; // play to hardware output.\na.fadeTime = 2; // fadeTime specifies cro... |
[
{
"role": "user",
"content": "What is `RedMixStereo` in SuperCollider?"
},
{
"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": "What are the arguments of GrainBuf.ar?"
},
{
"role": "assistant",
"content": "`GrainBuf.ar(numChannels, trigger, dur, sndbuf, rate, pos, interp, pan, envbufnum, maxGrains, mul, add)`. The ones you always pass are numChannels (1 or 2), trigger (a UGen that fires grai... |
[
{
"role": "user",
"content": "What does `Mx.findID` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "find registery object for Arguments: object. Returns: uid"
}
] |
[
{
"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": "How do I use a metronome or check my timing?"
},
{
"role": "assistant",
"content": "A click on the clock you are using, plus a counter to see where you are in the bar:\n\n```supercollider\n(\nTdef(\\click, {\n var count = 0;\n loop {\n (Synth(\\hat, [\\... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `SinOsc`."
},
{
"role": "assistant",
"content": "```supercollider\n// create an audio-rate sine wave at 200 Hz,\n// starting with phase 0 and an amplitude of 0.5\n{ SinOsc.ar(200, 0, 0.5) }.play;\n\n// modulate the fre... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Dstutter`."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var freq, trig;\n var in = Dseq([1, 2, 3], inf);\n var rep = Dstutter(Diwhite(2, 8, inf), in);\n trig = Impulse.kr(MouseX.kr(1, 40, 1));\n... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `PV_PhaseShift`."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\n\n(\nSynthDef(\"help-phaseShift\", { |out = 0|\n var in, chain;\n in = SinOsc.ar(500);\n chain = FFT(LocalBuf(2048... |
[
{
"role": "user",
"content": "Saving \"Presets\"?"
},
{
"role": "assistant",
"content": "SuperCollider forum — Saving \"Presets\"?\n\nIf you don’t care too much about it being human readable, just use writeArchive and readArchive:\n\n```supercollider\na = Array.fill(400, {rrand(0,2200)});\n\na.w... |
[
{
"role": "user",
"content": "Write a complete SuperCollider patch built around `Resonz` that runs as it is."
},
{
"role": "assistant",
"content": "```supercollider\n// 1st, evaluate a synthdef\n(\nSynthDef(\"pitchFromNoise\", { arg out = 0;\n Out.ar(\n out,\n Resonz.ar(\n WhiteNoise... |
[
{
"role": "user",
"content": "Explain `FreeVerb2` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "FreeVerb2 — A two-channel reverb Coded from experiments with faust. Category: UGens > Reverbs."
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `PulseDivider`."
},
{
"role": "assistant",
"content": "```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 = Sin... |
[
{
"role": "user",
"content": "What does `UScore.pos` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "(describe method Arguments: x — (describe argument here). Returns: (returnvalue)"
}
] |
[
{
"role": "user",
"content": "Show another SuperCollider example using `Monitor`."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\ns.scope(16);\n\n{ Out.ar(87, SinOsc.ar(MouseX.kr(40, 10000, 1) * [1, 2, 3], 0, 0.2)) }.play;\nx = Monitor.new;\nx.play(87, 3, 1, 2);\nx.out = 0;\nx.... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ LFPulse.ar(LFPulse.kr(3, 0, 0.3, 200, 200), 0, 0.2, 0.1 }.play;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis opened ear... |
[
{
"role": "user",
"content": "What is `SyntheticData` in SuperCollider?"
},
{
"role": "assistant",
"content": "SyntheticData — for generating synthetic test data coming from a board this class acts like a drop-in replacement for CytonSerial and CytonWifi. Category: External Control."
}
] |
[
{
"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;\n trig = Dust.kr(10);\n Pan2.ar(SinOsc.ar(\n TGaussRand.kr(300, 3000, trig)\n ),\n TGaussRand.kr(-1, 1, trig),\n 0.1\n )\n}.play;\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": "What is `RedTween` in SuperCollider?"
},
{
"role": "assistant",
"content": "RedTween — tweening for sclang and scserver A class for mapping values between different ranges using different curvatures. It works best in combination with the EaseOverview##Ease quark, bu... |
[
{
"role": "user",
"content": "What is `Pshufn` in SuperCollider?"
},
{
"role": "assistant",
"content": "Pshufn — Pshuf with continuing permutations Variation of Pshuf which scrambles the list with every repeat. Category: Libraries > miSCellaneous > Other patterns."
}
] |
[
{
"role": "user",
"content": "What does `Image.plot` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "plots the image in a Window. `i = Image.new(SCDoc.helpSourceDir +/+ Arguments: name — the title of the Window. may be nil.; bounds — the bounds of the Window. may be nil.;... |
[
{
"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 = Dibrown(0, 15, 1, 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}.pla... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `DigitalIO`."
},
{
"role": "assistant",
"content": "```supercollider\n// write a sine oscillator's output to a pin, and read the pin value at other times\n\n(\nSynthDef(\"help-DigitalIO\", { |out = 0|\n DigitalIO.ar... |
[
{
"role": "user",
"content": "Explain this SuperCollider patch.\n```supercollider\n/// Installing sc3-plugins quarks\n\n// If you installed the sc3-plugins to a user location:\n~sc3plugs = Quarks(\nreposPath: \"https://sc3-plugins.svn.sourceforge.net/svnroot/sc3-plugins/build\",\nlocalPath: Platform.userApp... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ Latoocarfian2DN.ar(MouseX.kr(20, SampleRate.ir * 0.5), MouseX.kr(40, SampleRate.ir), mul:0.2) }.play(s);\n\n\n(\n{ Latoocarfian2DN.ar(\n SampleRate.ir/4,\n SampleRate.ir,\n ... |
[
{
"role": "user",
"content": "What is `FFTSlope` in SuperCollider?"
},
{
"role": "assistant",
"content": "FFTSlope — Spectral slope Given an FFT chain, this measures the spectral slope, which is the slope of the linear correlation line derived from the spectral magnitudes. Category: UGens > Anal... |
[
{
"role": "user",
"content": "Write a kick drum with a 0.18 s decay. (osc saw, sweep 0.06, decay 0.18, f0 150, 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, ... |
[
{
"role": "user",
"content": "Write a self-contained SuperCollider patch that uses `LFNoise1`. Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\nb = Bus.control(s, 1);\n\na = {\n var freq;\n freq = LFNoise1.kr(2, 600, 800);\n Out.kr(b, freq); // no need ... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `Monitor`."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\ns.scope(16);\n\n{ Out.ar(87, SinOsc.ar(MouseX.kr(40, 10000, 1) * [1, 2, 3], 0, 0.2)) }.play;\nx = Monitor.new;\nx.play(87, 3, 1, 2);\nx.out = 0;\nx.... |
[
{
"role": "user",
"content": "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": "Show another SuperCollider example using `ControlRate`."
},
{
"role": "assistant",
"content": "```supercollider\n{ SinOsc.ar(ControlRate.ir) * 0.1 }.play;\n```"
}
] |
[
{
"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": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// Compare:\n\n{ WhiteNoise.ar(0.25) }.play;\n\n{ BPZ2.ar(WhiteNoise.ar(0.25) }.play;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the pa... |
[
{
"role": "user",
"content": "What is `Pbind`?"
},
{
"role": "assistant",
"content": "Pbind — combine several value patterns to one event stream by binding keys to values"
},
{
"role": "user",
"content": "What does `Pbind.new` do?"
},
{
"role": "assistant",
"content": "Th... |
[
{
"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": "Explain this SuperCollider patch.\n```supercollider\n// python preprocessor, given that you have python installed\n// thanks to tasos tsesmetzis\n\n(\nthis.preProcessor = PreProcessor.new.startDelimiter_(\"{-\").endDelimiter_(\"-}\");\n\n// a simple python call\ne = (\n lang:... |
[
{
"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 this SuperCollider code do?\n```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 examples:\n(\n{\n SinOsc.ar(\n Hasher.kr(MouseX.kr(0, 10).round(1), 300... |
[
{
"role": "user",
"content": "Write a self-contained SuperCollider patch that uses `Dwhite`. Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var a, freq, trig;\n a = Dwhite(0, 15, inf);\n trig = Impulse.kr(MouseX.kr(1, 40, 1));\n freq = Demand.kr(t... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// stepper cycles between 0 and 1, average hovers around 0.5\na = { AverageOutput.kr(Stepper.kr(Impulse.kr(1), min: 0, max: 1).poll }.play;\n\na.free;\n```"
},
{
"role": ... |
[
{
"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{ FBSineC.ar(\n LFNoise2.kr(1, 1e4, 1e4),\n LFNoise2.kr(1, 32, 33),\n LFNoise2.kr(1, 0.5),\n LFNoise2.kr(1, 0.05, 1.05),\n LFNoise2.kr(1, 0.3... |
[
{
"role": "user",
"content": "What does `ServerLogGui.coloredNode` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "the interface for display and searching the ServerLog Arguments: nodeID; r. Returns: (returnvalue)"
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Pause`."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\n\nSynthDef(\\a, { Out.ar(0, SinOsc.ar(800, 0, 0.2)) }).add;\n\nSynthDef(\\b, { |gate = 1| Out.ar(1, PinkNoise.ar(0.3)); Pause.kr(gate, 1001) })... |
[
{
"role": "user",
"content": "Explain `SoundFile` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "SoundFile — sclang soundfile data The SoundFile class is used to check the size, format, channels etc. when the sclang client needs this information about a SoundFile. Soundfile dat... |
[
{
"role": "user",
"content": "What does `Server.named` do?"
},
{
"role": "assistant",
"content": "Object representing a server application Returns: An IdentityDictionary of all servers listed by their name `Server.named.at(\\default)`"
}
] |
[
{
"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": "What does `MxIOletsApp.do` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Iterate over the Arguments: function — like collection.do. Returns: this"
}
] |
[
{
"role": "user",
"content": "What does `PInRect.new` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "UGenPatterns quark library Arguments: pattern — pattern x-position; y — pattern y-position; rect — a Rect object.."
}
] |
[
{
"role": "user",
"content": "Write a granular texture, dry. (rate 28, dur 0.07, interp 2, mode noise, rev 0)"
},
{
"role": "assistant",
"content": "`GrainBuf` needs a buffer, a trigger and a grain duration:\n\n```supercollider\n// granular synth with GrainBuf\n(\ns.waitForBoot {\n var buf = ... |
[
{
"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": "How do I make a piece reproducible instead of a different take every time?"
},
{
"role": "assistant",
"content": "Three things make a SuperCollider piece repeatable: a fixed seed, a fixed tempo, and no live input.\n\n```supercollider\n(\nthisThread.randSeed = 1234;\... |
[
{
"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{ FBSineL.ar(\n LFNoise2.kr(1, 1e4, 1e4),\n LFNoise2.kr(1, 32, 33),\n LFNoise2.kr(1, 0.5),\n LFNoise2.kr(1, 0.05, 1.05),\n LFNoise2.kr(1, 0.3... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// Ndef\nNdef(\\a, { Saw.ar(12) }).asCode;\n\n// in a pushed proxy space\np = ProxySpace.push(s.boot);\n~x = { Saw.ar(123, 0.1 };\n~x.play;\n~x.asCode;\n\np.end.pop;\n\n// anonym... |
[
{
"role": "user",
"content": "What is `PlayerInputProxy` in SuperCollider?"
},
{
"role": "assistant",
"content": "PlayerInputProxy — placeholder for Patch inputs for a player that will be supplied later represents an audio or control input for a player that is to be filled with a player later. C... |
[
{
"role": "user",
"content": "Explain this SuperCollider code.\n```supercollider\n// Read a sound file from disk into a buffer\ns.boot;\n// ExampleFiles helps locate audio files used in examples\np = ExampleFiles.child;\n// peek at the path to see location and the format of a path\np.postln;\n// read the fi... |
[
{
"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 = Dxrand([1, 3, 2, 7, 8], inf);\n trig = Impulse.kr(MouseX.kr(1, 400, 1));\n freq = Demand.kr(trig, 0, a) * 30 + 340;\n SinOsc.ar(freq) * 0.1\n... |
[
{
"role": "user",
"content": "Add gverb to a pluck patch at room 0.7."
},
{
"role": "assistant",
"content": "Put the reverb inside the `SynthDef` so it is part of the voice:\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": "Show me a self-contained SuperCollider patch using `VarGui`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\n// synth definition with raising frequency\n\n(\nSynthDef(\\synth_0, { |devFactor = 0.1, devFreq = 10, amp = 0.1|\n ... |
[
{
"role": "user",
"content": "Write a kick at amp 0.8 with no click. (osc fm, sweep 0.06, decay 0.18, 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\ns.boot\n{ SinOsc.ar([330, 440], 0, 0.4) }.play;\nStethoscope(s, 2;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis opened ea... |
[
{
"role": "user",
"content": "Give me a granular patch with sweep grain position and interp 4. (rate 6, dur 0.1, interp 4, 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": "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": "How current is your SuperCollider knowledge?"
},
{
"role": "assistant",
"content": "It comes from a snapshot of the SuperCollider repository (documentation, class library and examples) plus code I can reason about. So classes and arguments in that snapshot I know we... |
[
{
"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(QuadL.ar(40, r.neg, r, 0, 0.1, 800, 900)) * 0.4;\n}.play(s);\n```"
... |
[
{
"role": "user",
"content": "What does `GridLayout.setAlignment` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Sets the alignment of an item managed by the Arguments: item — A view or a layout managed by this layout, or a Point of which x denotes the column index and y... |
[
{
"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 = Dser([1, 3, 2, 7, 8], 8);\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}.p... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\n{ SinOsc.ar(\n SinOsc.ar(\n XLine.kr(1, 100, 5)).exprange(*XLine.kr([20, 800], [7000, 200], 10)\n )\n ) * 0.1\n\n}.play;\ns.record(duration: 10);\n```"
},
{
"... |
[
{
"role": "user",
"content": "What does `Patch.removeSynthDefCache` do?"
},
{
"role": "assistant",
"content": "Pairs an Instr with inputs that that will be passed to the Instr"
}
] |
[
{
"role": "user",
"content": "Explain `BufAllpassC` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "BufAllpassC — Buffer based all pass delay line with cubic interpolation. All pass delay line with cubic interpolation which uses a buffer for its internal memory. See also BufAllp... |
[
{
"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 kick at amp 0.6 with a click. (osc sine, sweep 0.06, decay 0.12, f0 220, f1 48, 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: sine oscillator,... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\nx = { |freq = 440| SinOsc.ar(freq, 0, 0.3) }.play; // this returns a Synth object;\nx.set(\\freq, 880); // note you can set the freq argument\nx.defName; // the name of the resul... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ Impulse.ar(4, [0, MouseX.kr(0, 1)], 0.2 }.play;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis opened earlier is never cl... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n(\n{ var nse, env, kic;\n kic = tanh(Ringz.ar(LPF.ar(Trig.ar(Impulse.ar(1.0),SampleDur.ir),1000),30,0.25,7).sin*2);\n env = Env.perc(0.05, 1, 1, -4);\n nse = BrownNoise.ar(2) + PinkNoise.ar(0.5) * EnvGen.kr(env,Impul... |
[
{
"role": "user",
"content": "Explain `LFBrownNoise0` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "LFBrownNoise0 — random walk step Random walk with Gendyn distributions. Category: UGens > Generators > Stochastic."
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// next example\n\nb = Buffer.read(s, ExampleFiles.child);\n\n(\n{\n var input = SoundIn.ar(0);\n var framesize = 2048; // must have power of two\n Convolution2L.ar(input, b, ... |
[
{
"role": "user",
"content": "Write a kick drum with a 0.5 s decay. (osc fm, sweep 0.06, decay 0.5, f0 150, 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 oscillator, 0.06 s pitch sweep... |
[
{
"role": "user",
"content": "Who are you?"
},
{
"role": "assistant",
"content": "I am sc-mind, a 198M MiniMind-3-MoE trained from scratch on the SuperCollider source and help corpus. I write and explain SuperCollider: SynthDefs, UGens, Patterns, Ndef, the language/server split, and how to make ... |
[
{
"role": "user",
"content": "What is `AutoTrack` in SuperCollider?"
},
{
"role": "assistant",
"content": "AutoTrack — autocorrelation beat tracker Category: UGens > Analysis."
}
] |
[
{
"role": "user",
"content": "What is `NodeTreeView` in SuperCollider?"
},
{
"role": "assistant",
"content": "NodeTreeView — Show Server-side Node Tree Category: GUI > Views."
}
] |
[
{
"role": "user",
"content": "Write a granular texture in SuperCollider."
},
{
"role": "assistant",
"content": "Read a sound file into a buffer, then trigger grains from it. Grain density is the Impulse rate and\ngrain length is dur; keep the density times the length under maxGrains or raise it.... |
[
{
"role": "user",
"content": "What does `PV_Morph.new` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "one kind of spectral morphing Arguments: bufferA — fft buffer A.; bufferB — fft buffer B.; morph — 0-1."
}
] |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n(\nthis.preProcessor = PreProcessor.new;\n\n// prepare an event\ne = (\n lang: \\minimouse,\n languages:\n (\n minimouse: {|code, event|\n var output;\n output = Pbind(\\degree, Pseq(code.ascii).trace % 24... |
[
{
"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 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": "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 Lag2.kr( // lag the modulator\n LFPulse.kr(4, 0, 0.5, 50, 400), // frequency modulator\n Line.kr(0, ... |
[
{
"role": "user",
"content": "Write a Pbind in majorPentatonic using Prand for the degrees."
},
{
"role": "assistant",
"content": "The pattern is the composition here; `\\strum` spreads the chord:\n\n```supercollider\n(\nSynthDef(\\pluck, { |out = 0, freq = 440, amp = 0.2|\n var env = EnvGen.... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `LatoocarfianN`."
},
{
"role": "assistant",
"content": "```supercollider\n// randomly modulate all params\n(\n{ LatoocarfianN.ar(\n SampleRate.ir/4,\n LFNoise2.kr(2, 1.5, 1.5),\n LFNoise2.kr(2, 1.5, 1.5),\n LFNoise2.kr(2,... |
[
{
"role": "user",
"content": "What is `SLOnset` in SuperCollider?"
},
{
"role": "assistant",
"content": "SLOnset — experimental time domain onset detector Purely time domain onset detector Category: UGens > Analysis //SLUGens released under the GNU GPL as extensions for SuperCollider 3, by Nick ... |
[
{
"role": "user",
"content": "What does `NamedIntegersSpec.new` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "datatype specifying an option list with names and an integer output type Arguments: names; default; static."
}
] |
[
{
"role": "user",
"content": "Write a Pbind in minorPentatonic using Pseq for the degrees. (scale minorPentatonic, seq Pseq, dur 0.3, octave 4, instr sine, root 0)"
},
{
"role": "assistant",
"content": "The pattern is the composition here; `\\strum` spreads the chord:\n\n```supercollider\n(\nSyn... |
[
{
"role": "user",
"content": "Write a self-contained SuperCollider patch that uses `ControlName`. Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\n(\nd = SynthDef(\\tone, { |out = 0, freq = 200|\n var sig;\n\n freq.spec = ControlSpec(20, 20000);\n sig = Sin... |
[
{
"role": "user",
"content": "Write an Ndef with a saw source and a 200 Hz low-pass. (ugens saw, cutoff 200, 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: saw source through a 200... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.