conversations listlengths 2 6 |
|---|
[
{
"role": "user",
"content": "What does `MxChannelApp.removeAt` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "remove unit at the Arguments: i — slot number. Returns: this"
}
] |
[
{
"role": "user",
"content": "What does `AbstractVector.new` do?"
},
{
"role": "assistant",
"content": "Create new vector from a n-tuple of real numbers. Dimension of the vector is determined by the amount of numbers."
}
] |
[
{
"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": "I edited a SynthDef and the running sound did not change."
},
{
"role": "assistant",
"content": "Redefining a SynthDef only affects Synths created after the new definition reaches the server; existing instances keep the graph they were built with. Free and recreate ... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `LFSaw`."
},
{
"role": "assistant",
"content": "```supercollider\n{ LFSaw.ar(500, 1, 0.1) }.play\n\n// used as both Oscillator and LFO:\n{ LFSaw.ar(LFSaw.kr(4, 0, 200, 400), 0, 0.1) }.play\n```"
}
] |
[
{
"role": "user",
"content": "Show another SuperCollider example using `QuadL`."
},
{
"role": "assistant",
"content": "```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... |
[
{
"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 48, 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: sine os... |
[
{
"role": "user",
"content": "What is `EaseOutQuint` in SuperCollider?"
},
{
"role": "assistant",
"content": "EaseOutQuint — Quintic ease-out Easing equation for a quintic (t^5) ease-out, decelerating to zero velocity. Category: Ease."
}
] |
[
{
"role": "user",
"content": "What is `LFDNoise1` in SuperCollider?"
},
{
"role": "assistant",
"content": "LFDNoise1 — Dynamic ramp noise Like LFNoise1, it generates linearly interpolated random values at a rate given by the `freq` argument, with two differences: Category: UGens > Generators > S... |
[
{
"role": "user",
"content": "Explain this code:\n```supercollider\nMix.ar([SinOsc.ar(220, 0, 0.1), SinOsc.ar(330, 0, 0.1)])\n```"
},
{
"role": "assistant",
"content": "Sums two sine waves into one signal — a perfect fifth, 220 Hz and 330 Hz, at 0.1 amplitude each.\n\n`[SinOsc.ar(220, 0, 0.1), S... |
[
{
"role": "user",
"content": "Give me a saw kick with a 0.06 s pitch sweep. (osc saw, sweep 0.06, decay 0.12, f0 180, f1 55, amp 0.8, rev 0)"
},
{
"role": "assistant",
"content": "The pitch envelope is what makes it read as a drum, not the oscillator:\n\n```supercollider\n// kick drum: saw oscil... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `UnaryOpUGen`."
},
{
"role": "assistant",
"content": "```supercollider\na = WhiteNoise.ar; // a WhiteNoise\nb = a.squared; // a UnaryOpUGen.\nb.operator; // squared\n\n// sound example\n\n{ var a = LFSaw.ar(300).range(... |
[
{
"role": "user",
"content": "What is `EaseOutInElastic` in SuperCollider?"
},
{
"role": "assistant",
"content": "EaseOutInElastic — Elastic ease-out/in Easing equation for an elastic (exponentially decaying sine wave) ease-out/in, decelerating until halfway, then accelerating. The a parameter i... |
[
{
"role": "user",
"content": "What is `ArrayedCollection`?"
},
{
"role": "assistant",
"content": "ArrayedCollection — Abstract superclass of Collections of fixed maximum size"
},
{
"role": "user",
"content": "What does `ArrayedCollection.newClear` do?"
},
{
"role": "assistant... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `Symbol`."
},
{
"role": "assistant",
"content": "```supercollider\na = { Ringz.ar(T2A.ar(\\trig.tr), \\freq.kr(500, 1), 0.8) }.play;\na.set(\\freq, 330, \\trig, 1);\na.set(\\freq, 830, \\trig, 1);\na.release;\n```"
}
] |
[
{
"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": "Write a minimal SuperCollider example that uses `DC`."
},
{
"role": "assistant",
"content": "```supercollider\n// won't work (the output is 0.5*0.0), which is why we need the DC UGen!\n{ 0.5 }.play\n\n// constantly zero\n{ DC.ar(0.0) }.play;\n\n\n// DC offset; will ... |
[
{
"role": "user",
"content": "Show me a self-contained SuperCollider patch using `Pulse`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\nSynthDef(\\harpsi, { |outbus = 0, freq = 440, amp = 0.1, gate = 1|\n var out;\n out = EnvGen.ar(Env.adsr, gate, don... |
[
{
"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\n// synth definition with raising frequency\n\n(\nSynthDef(\\synth_0, { |devFactor = 0.1, devFreq = 10, amp = 0.1|\n var freq = XLine.kr(400, 1200, 10); \n Out.ar(0, SinOsc.... |
[
{
"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 `EnvirGui.putSpec` do?"
},
{
"role": "assistant",
"content": "add a spec for a given key, or (if it is a global key) override a global spec with a local one: `// set a desired range and"
}
] |
[
{
"role": "user",
"content": "What is `CXPlayerControl` in SuperCollider?"
},
{
"role": "assistant",
"content": "CXPlayerControl — adapter class for JITLib to control players Category: Libraries > JITLib > Adapters, Libraries > crucial > internals."
}
] |
[
{
"role": "user",
"content": "Write a complete SuperCollider patch built around `DigitalIO` that runs as it is."
},
{
"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 =... |
[
{
"role": "user",
"content": "Write a self-contained SuperCollider patch that uses `Timer`. Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\n// using timer to modulate sine frequency: the slower the trigger is the higher the frequency\n(\n{ var trig;\n trig =... |
[
{
"role": "user",
"content": "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 Saw.ar(LFSaw.kr(3 * [1, 1.01], 0, 100, 230)),\n SinOsc.ar,\n Pulse.ar(LFPulse.kr(3 * [1, 1.02], 0, 0.4, 100, 230)),\n SinOsc.ar(SinO... |
[
{
"role": "user",
"content": "Explain this SuperCollider patch.\n```supercollider\n//This is almost exactly the same as kick3.scd, they've been morphed into kik3.scd!\n\n\nSynthDef(\"kik\", { |basefreq = 50, ratio = 7, sweeptime = 0.05, preamp = 1, amp = 1, decay1 = 0.3, decay1L = 0.8, decay2 = 0.15, out|\n... |
[
{
"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": "What does `MxOutletApp.index` do?"
},
{
"role": "assistant",
"content": "Index of the outlet in the units outlets Returns: integer"
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Resonz`."
},
{
"role": "assistant",
"content": "```supercollider\n{ Resonz.ar(WhiteNoise.ar(0.5), 2000, 0.1) }.play\n\n// modulate frequency\n{ Resonz.ar(WhiteNoise.ar(0.5), XLine.kr(1000, 8000, 10), 0.05) }.play\n\n/... |
[
{
"role": "user",
"content": "Explain `ControlPatchIn` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "ControlPatchIn — manages a Player's input when connecting to other Players Category: Libraries > crucial > internals."
}
] |
[
{
"role": "user",
"content": "What is `ParGroup`?"
},
{
"role": "assistant",
"content": "ParGroup — Client-side representation of a parallel group node on the server"
},
{
"role": "user",
"content": "What does `ParGroup.basicNew` do?"
},
{
"role": "assistant",
"content": ... |
[
{
"role": "user",
"content": "Write a kick whose tail uses freeverb2. (verb freeverb2, room 0.85, damp 0.2, mix 0.3, source kick)"
},
{
"role": "assistant",
"content": "`FreeVerb` is in the core library; the room and damp arguments do the work:\n\n```supercollider\n// reverb: freeverb2 on a kick... |
[
{
"role": "user",
"content": "What does `Collection.includesAny` do?"
},
{
"role": "assistant",
"content": "Answer whether any item in aCollection is contained in the receiver. `List[1, 2, 3, 4].includesAny(List[4,"
}
] |
[
{
"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": "What is `PDelayN` in SuperCollider?"
},
{
"role": "assistant",
"content": "PDelayN — UGenPatterns quark library Based on DelayN Category: Streams-Patterns-Events > UGenPatterns > Modifiers."
}
] |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```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 undulating magnitudes\n mags = { FSinOsc.kr(ExpRand(0.1, 1)).range(0, 1) }.dup... |
[
{
"role": "user",
"content": "What is `NearestN` in SuperCollider?"
},
{
"role": "assistant",
"content": "NearestN — Find the nearest-neighbours in a set of points This UGen takes an input point (such as a 2D or 3D location) and searches for the nearest few points in a dataset (by Euclidean dist... |
[
{
"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 VarLag.kr( // lag the modulator\n LFPulse.kr(1... |
[
{
"role": "user",
"content": "What does `SimpleNumber.leftShift` do?"
},
{
"role": "assistant",
"content": "one-dimensional value Returns: performs a binary left shift"
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `LinSelectX`."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var a;\n a = [\n SinOsc.ar,\n Saw.ar(300),\n Pulse.ar(230)\n ];\n\n LinSelectX.ar(MouseX.kr(0, 1) * a.size, a) * 0.2\n}... |
[
{
"role": "user",
"content": "Show me a self-contained SuperCollider patch using `Recorder`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\nr = Recorder(s);\n{ GVerb.ar(Dust.ar(4)) }.play; // play on bus 64\nr.record(numChannels: 2);\nr.stopRecording;\n`... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Blip`."
},
{
"role": "assistant",
"content": "```supercollider\n// modulate frequency\n{ Blip.ar(XLine.kr(20000, 200, 6), 100, 0.2) }.play;\n\n// modulate numharmonics\n{ Blip.ar(200, Line.kr(1, 100, 20), 0.2) }.play;... |
[
{
"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": "How do I build a live drone with Ndef at 82.5 Hz? (ugens sine, cutoff 1400, lfo 0.1, freq 82.5, amp 0.12)"
},
{
"role": "assistant",
"content": "Use `Ndef` when the patch has to change without stopping:\n\n```supercollider\n// Ndef drone: sine source through a 1400 ... |
[
{
"role": "user",
"content": "What is `FreqScope` in SuperCollider?"
},
{
"role": "assistant",
"content": "FreqScope — Frequency spectrum visualizer FreqScope shows the frequency spectrum of the specified audio bus. The scope will remain active after a command-period. To turn it off you must eit... |
[
{
"role": "user",
"content": "What are the server's default sample rate and block size?"
},
{
"role": "assistant",
"content": "44100 Hz and 64 samples per block by default, so the control rate is 44100/64 = 689.06 Hz. You can read them from the language with `s.sampleRate` and `s.options.blockSi... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `LinCongN`."
},
{
"role": "assistant",
"content": "```supercollider\n// default initial params\n{ LinCongN.ar(MouseX.kr(20, SampleRate.ir)) * 0.2 }.play(s);\n```"
}
] |
[
{
"role": "user",
"content": "What is `SPlayFileDisk` in SuperCollider?"
},
{
"role": "assistant",
"content": "SPlayFileDisk — a player for long soundfiles (mono) This class is a wrapper for VDiskIn and will take any soundfile with 1, 2 or 4 channels (by default) and stream it from disk. The res... |
[
{
"role": "user",
"content": "How do I set the tempo?"
},
{
"role": "assistant",
"content": "TempoClock.default.tempo = 120/60; the argument is beats per second, so 120 BPM is 2.0. Patterns scheduled on the default clock then follow it."
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\nb.free;\nb = Buffer.read(s, ExampleFiles.apollo11);\n{\n var pointer = Phasor.ar(0, SampleDur.ir / BufDur.ir(b) * XLine.kr(1, 0.25, 20));\n var sound = Warp1.ar(1, b, pointe... |
[
{
"role": "user",
"content": "Write a SuperCollider patch for We all could use a little more that runs as it is, with nothing assumed about the session."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\\cowbell, {\n | out=0, amp=0.3, gate=1, fund_freq=540, pan=0.0 |\n ... |
[
{
"role": "user",
"content": "Give me an Ndef with an LFO at 0.3 Hz. (ugens tri, cutoff 400, lfo 0.3, freq 165, amp 0.12)"
},
{
"role": "assistant",
"content": "Use `Ndef` when the patch has to change without stopping:\n\n```supercollider\n// Ndef drone: tri source through a 400 Hz low-pass\n(\n... |
[
{
"role": "user",
"content": "Explain this SuperCollider code.\n```supercollider\n// The driven pendulum is interesting as it's a quite simple model\n// that includes parameter zones of chaotic behaviour:\n// http://lampx.tugraz.at/~hadley/physikm/apps/numerical_integration/pendulum.en.php\n\n// y here deno... |
[
{
"role": "user",
"content": "What does `Group.new` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Create and return a Arguments: target — A target for this Group. If target is not a Group or Synth, it will be converted as follows: If it is a Server, it will be converted... |
[
{
"role": "user",
"content": "Write a self-contained SuperCollider patch that uses `Archive`. Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\n// make a storage place for various objects:\nq = (); // Event\n\nq[\\a_long_array] = Array.rand(128, 0.0, 1.0);\nq[\... |
[
{
"role": "user",
"content": "Give me an Ndef with an LFO at 0.1 Hz. (ugens sine, cutoff 200, lfo 0.1, freq 82.5, amp 0.12)"
},
{
"role": "assistant",
"content": "Use `Ndef` when the patch has to change without stopping:\n\n```supercollider\n// Ndef drone: sine source through a 200 Hz low-pass\n... |
[
{
"role": "user",
"content": "Give me a granular patch with sweep grain position and interp 2. (rate 6, dur 0.04, interp 2, mode sweep, rev 0)"
},
{
"role": "assistant",
"content": "A working granular patch, with the buffer loaded before the synth starts:\n\n```supercollider\n// granular synth w... |
[
{
"role": "user",
"content": "What does `RedSFPlayerDisk.loop` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Starts playing the Arguments: out — Output bus.; rate — Playback rate.; fadeTime — In seconds.."
}
] |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n// Change MembraneCircle to MembraneHexagon for a different shaped\n// circular drum head\ns.boot;\ns.reboot;\n(\n{ var excitation = EnvGen.kr(Env.perc,\n MouseButton.kr(0, 1, 0),\n ... |
[
{
"role": "user",
"content": "Explain this SuperCollider code.\n```supercollider\n// if \\degree, \\note or \\midinote are occuring after \\dur,\n// a frequency value will be calculated according to Event's usual conversion framework\n// and used for setting the arg 'freq'.\n\n(\np = PmonoPar([\n [\n \\... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `LinCongN`."
},
{
"role": "assistant",
"content": "```supercollider\n// default initial params\n{ LinCongN.ar(MouseX.kr(20, SampleRate.ir)) * 0.2 }.play(s);\n```"
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n//try passing a signal through the hair cell\nx = { Meddis.ar(SinOsc.ar(440)) }.play;\nx.free;\n\n//recursive hair cell compression\n{ Meddis.ar(Meddis.ar(SoundIn.ar) }.play;\n``... |
[
{
"role": "user",
"content": "Show me a self-contained SuperCollider patch using `BufRd`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\nb = Buffer.read(s, ExampleFiles.child);\n\n(\nx = { |rate = 1|\n BufRd.ar(1, b, Phasor.ar(0, BufRateScale.kr(b) * ra... |
[
{
"role": "user",
"content": "How do I granulate a sample with 0.04 s grains?"
},
{
"role": "assistant",
"content": "Granulation is `GrainBuf` plus a trigger rate; the position can move:\n\n```supercollider\n// granular synth with GrainBuf\n(\ns.waitForBoot {\n var buf = Buffer.read(s, Platfo... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ PinkNoise.ar(1) * Line.kr(1, 0, 2, doneAction: Done.freeSelf }.play.onFree { \"done\".postln };\n```"
},
{
"role": "assistant",
"content": "A closing bracket is mis... |
[
{
"role": "user",
"content": "What is `PV_Cutoff` in SuperCollider?"
},
{
"role": "assistant",
"content": "PV_Cutoff — zero bins with interpolation Clears bins above or below a cutoff point. Interpolate. Category: UGens > FFT."
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\ns.boot;\nx = { SinOsc.ar((Line.kr(0, 10, 10).snap(1, 0.3, 1) + 60).poll.midicps, 0, -24.dbamp }.play\n```"
},
{
"role": "assistant",
"content": "A closing bracket is ... |
[
{
"role": "user",
"content": "Give me a Pbind with sine voices and a 0.4 rhythm. (scale minorPentatonic, seq Pshuf, dur 0.4, octave 4, 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": "Show another SuperCollider example using `Recorder`."
},
{
"role": "assistant",
"content": "```supercollider\nr = Recorder(s);\n{ GVerb.ar(Dust.ar(4)) }.play; // play on bus 64\nr.record(numChannels: 2);\nr.stopRecording;\n```"
}
] |
[
{
"role": "user",
"content": "What is `Platform`?"
},
{
"role": "assistant",
"content": "Platform — handle cross-platform differencies"
},
{
"role": "user",
"content": "What does `Platform.case` do?"
},
{
"role": "assistant",
"content": "Perform actions depending on the c... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ RLPFD.ar(Mix(LFSaw.ar([120, 180], 0, 0.33)), LinExp.kr(LFCub.kr(0.1, 0.5*pi), -1, 1, 280, 1500), 0.6, 0.5, mul:3.dup }.play\n```"
},
{
"role": "assistant",
"content... |
[
{
"role": "user",
"content": "Show me a self-contained SuperCollider patch using `InTrig`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\ns = Server.local;\nb = Bus.control(s, 1);\n\nSynthDef(\"help-InTrig\", { |out = 0, busnum = 0|\n var inTrig;\n inT... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `DelayN`."
},
{
"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": "What does this SuperCollider patch do?\n```supercollider\nt = TempoClock(120/60).permanent_(true);\n\n(\n~change_clock_tempo = {|clock, tempo, beats=1|\n beats.do {|beat|\n var stepTempo = beat.linexp(0, beats-1, clock.tempo, tempo);\n clock.schedAbs(clock.next... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ SinOsc.ar(LFNoise0.ar(2).range(420, 460).poll(label: \\LFNoise), 0, 0.2) }.play;\n\n// multichannel polling:\n(\n{\n var freqs = SinOsc.ar([0.2, 0.3]).range(420, 460);\n ... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `TwoZero`."
},
{
"role": "assistant",
"content": "```supercollider\n{ TwoZero.ar(WhiteNoise.ar(0.125), XLine.kr(20, 20000, 8), 1) }.play\n```"
}
] |
[
{
"role": "user",
"content": "What does `PlayerInputProxy.numChannels` do?"
},
{
"role": "assistant",
"content": "placeholder for Patch inputs for a player that will be supplied later"
}
] |
[
{
"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": "Explain `RedLZSS` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "RedLZSS — lzss compression/decompression See http://michael.dipperstein.com/lzss/ and http://en.wikipedia.org/wiki/Lempel-Ziv-Storer-Szymanski Category: Red > > redTools."
}
] |
[
{
"role": "user",
"content": "Write a Pbind whose degrees repeat every Pshuf cycle. (scale majorPentatonic, seq Pshuf, dur 0.2, octave 5, instr sine, root 0)"
},
{
"role": "assistant",
"content": "The pattern is the composition here; `\\strum` spreads the chord:\n\n```supercollider\n(\nSynthDef(... |
[
{
"role": "user",
"content": "What is `Ppoisson` in SuperCollider?"
},
{
"role": "assistant",
"content": "Ppoisson — random values that follow a Poisson Distribution (positive integer values) Category: Streams-Patterns-Events > Patterns > Random."
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\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... |
[
{
"role": "user",
"content": "Write a kick drum with a 0.35 s decay. (osc sine, sweep 0.06, decay 0.35, f0 220, f1 48, amp 0.8, rev 0)"
},
{
"role": "assistant",
"content": "Start with a swept sine, then shorten the decay to taste:\n\n```supercollider\n// kick drum: sine oscillator, 0.06 s pitch... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// turn on and off a sine oscillator\n\n(\nSynthDef(\"help-DigitalIn\", { |out = 0|\n Out.ar(out,\n SinOsc.ar(500, 0, 0.1 * DigitalIn.ar(0))\n )\n}).play;\n```"
},
{
... |
[
{
"role": "user",
"content": "What does `DrawGrid.fontColor` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Get/set the font Arguments: c — A Color.. Returns: A Color."
}
] |
[
{
"role": "user",
"content": "Explain this SuperCollider code.\n```supercollider\ns.boot; // start the server\n\n// something to record\n(\nSynthDef(\"bubbles\", { |out|\n var f, sound;\n f = LFSaw.kr(0.4, 0, 24, LFSaw.kr([8, 7.23], 0, 3, 80)).midicps; // glissando function\n sound = CombN.ar(SinOsc.ar(f... |
[
{
"role": "user",
"content": "What is `Slider2D` in SuperCollider?"
},
{
"role": "assistant",
"content": "Slider2D — A view with a handle movable in two dimensions. A view that allows setting two numerical values represented by the horizontal and vertical position of a handle movable in two dime... |
[
{
"role": "user",
"content": "Write a granular texture, through a reverb. (rate 16, dur 0.1, interp 4, mode noise1, 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.waitF... |
[
{
"role": "user",
"content": "How do I granulate a sample with 0.2 s grains? (rate 16, dur 0.2, interp 2, mode noise1, rev 0)"
},
{
"role": "assistant",
"content": "A working granular patch, with the buffer loaded before the synth starts:\n\n```supercollider\n// granular synth with GrainBuf\n(\n... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\nd = { |freq = 440| SinOsc.ar(LastValue.ar(freq, 20), 0, 0.2) }.play;\n\nd.set(\\freq, 400);\nd.set(\\freq, 200);\nd.set(\\freq, 670);\nd.set(\\freq, 680);\nd.set(\\freq, 695;\nd.... |
[
{
"role": "user",
"content": "What does `Document.initAction` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Get/set A an action to be performed up opening or creating a Arguments: action — An instance of Function or FunctionList.."
}
] |
[
{
"role": "user",
"content": "What is `IdentityBag`?"
},
{
"role": "assistant",
"content": "IdentityBag — A Bag according to identity"
},
{
"role": "user",
"content": "What does `IdentityBag.add` do?"
},
{
"role": "assistant",
"content": "Add anObject to the Bag. A Bag ma... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Pluck`."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\n\n// excitation signal is WhiteNoise, triggered twice a second with varying OnePole coef\n(\n { Pluck.ar(WhiteNoise.ar(0.1), Impulse.kr(2), 44... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n(\np = ProxySpace.push(s.boot);\n\nl = NdefGui(nil, 3).moveTo(10, 120);\nm = NdefGui(nil, 3).moveTo(10, 240);\nn = NdefGui(nil, 3).moveTo(10, 360);\no = NdefGui(nil, 3).moveTo(10, 480);\n\nSpec.add(\\dens, [0.1, 300, \\ex... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n// These examples compare the variants, so that you can hear the difference in interpolation\n\n// Comb used as a resonator. The resonant fundamental is equal to\n// reciprocal of the delay time.\n{ CombN.ar(WhiteNoise.ar... |
[
{
"role": "user",
"content": "Explain `Pmulpre` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "Pmulpre — multiplies with value of a key in event stream, before it is passed up Multiplies with a value in an event, before it is passed up the stream. To multiply with the value aft... |
[
{
"role": "user",
"content": "Give me a fm kick with a 0.06 s pitch sweep. (osc fm, sweep 0.06, decay 0.18, f0 150, 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: fm oscillat... |
[
{
"role": "user",
"content": "What does `WebView.setContent` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Set the raw content of a web view. This can be used to display binary data such as image / movie Arguments: An Int8Array containing data.; A mime type, of the form... |
[
{
"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),... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.