conversations listlengths 2 6 |
|---|
[
{
"role": "user",
"content": "I get 'Node not found' when I call .set on a Synth after a while."
},
{
"role": "assistant",
"content": "The Synth was freed and the language still holds a reference. That happens whenever the SynthDef used `doneAction: 2` and the envelope finished, or when somethin... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Ball`."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var f, sf;\n sf = K2A.ar(MouseX.kr > 0.5) > 0;\n f = Ball.ar(sf, MouseY.kr(0.01, 20, 1), 0.01);\n f = f * 10 + 500;\n SinOsc.ar(f, 0, 0.2)\n}... |
[
{
"role": "user",
"content": "What does `Slider.defaultKeyDownAction` do?"
},
{
"role": "assistant",
"content": "Implements the default effects of key presses as"
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `ProxySynthDef`."
},
{
"role": "assistant",
"content": "```supercollider\na = ProxySynthDef(\"xtest\", { SinOsc.ar(400) * 0.1 });\n\na.add;\n\nx = Synth(\"xtest\");\nx.release;\n\n\n/*\n\n if the resulting number of c... |
[
{
"role": "user",
"content": "What does `DynKlang.ar` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Dynamic sine oscillator bank Arguments: specificationsArrayRef — a Ref to an Array of three Arrays:; freqscale — a scale factor multiplied by all frequencies at initializ... |
[
{
"role": "user",
"content": "Write a SuperCollider patch that uses `ExpRand` and actually plays. Assume nothing about the session."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\"help-ExpRand\", { |out = 0|\n Out.ar(out,\n FSinOsc.ar(\n ExpRand(100.0, 8000.0),\n ... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// linexp\n(\n{\n var mod = LFNoise2.ar(80);\n SinOsc.ar(mod.linexp(-1, 1, MouseX.kr(200, 8000, 1), MouseY.kr(200, 8000, 1))) * 0.1\n}.play;\n);\n\n// exprange\n(\n{\n var mod... |
[
{
"role": "user",
"content": "What does `NodeProxy.monitor` do?"
},
{
"role": "assistant",
"content": "Access the Monitor object, which plays back the output of the proxy's private"
}
] |
[
{
"role": "user",
"content": "Give me an Ndef with an LFO at 0.3 Hz. (ugens blip, cutoff 3200, lfo 0.3, freq 220, amp 0.12)"
},
{
"role": "assistant",
"content": "`Ndef` is a named proxy you can redefine while it is playing:\n\n```supercollider\n// Ndef drone: blip source through a 3200 Hz low-p... |
[
{
"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": "What does `Tdef.reset` do?"
},
{
"role": "assistant",
"content": "Switch the task immediately (stuck conditions can be subverted by"
}
] |
[
{
"role": "user",
"content": "Give me a pluck with damping 0.2 on the reverb. (verb freeverb, room 0.5, damp 0.2, mix 0.45, source pluck)"
},
{
"role": "assistant",
"content": "`FreeVerb` is in the core library; the room and damp arguments do the work:\n\n```supercollider\n// reverb: freeverb on... |
[
{
"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": "How do I granulate a sample with 0.2 s grains? (rate 20, dur 0.2, interp 4, mode noise, 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(\ns... |
[
{
"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": "Write a Pbind in majorPentatonic using Prand for the degrees. (scale majorPentatonic, seq Prand, dur 0.25, octave 4, instr sine, root 0)"
},
{
"role": "assistant",
"content": "`Pbind` sequences an Event per beat, and `\\degree` + `\\scale` does the pitch:\n\n```supe... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Dgeom`."
},
{
"role": "assistant",
"content": "```supercollider\n// example\n\n(\n{\n var a, freq, trig;\n a = Dgeom(1, 1.2, 15);\n trig = Impulse.kr(MouseX.kr(1, 40, 1));\n freq = Demand.kr(trig, 0, a) * 30 + 340... |
[
{
"role": "user",
"content": "Write a Pbind in minorPentatonic using Pseq for the degrees. (scale minorPentatonic, seq Pseq, dur 0.3, octave 6, instr pluck, root 0)"
},
{
"role": "assistant",
"content": "The pattern is the composition here; `\\strum` spreads the chord:\n\n```supercollider\n(\nSy... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\ns.boot\nb = Bus.audio(s, 2);\na = { SinOsc.ar([330, 440], 0, 0.4) }.play(s, b // you won't hear this if you only have two channels\nb.scope\n\na.free;\nb.free;\n```"
},
{
... |
[
{
"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 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 SuperCollider patch that uses `LFClipNoise` and actually plays. Assume nothing about the session."
},
{
"role": "assistant",
"content": "```supercollider\n(\nx = { var inA, chainA, chainB;\n inA = LFClipNoise.ar(100);\n chainA = FFT(LocalBuf(2048, 1), inA)... |
[
{
"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": "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": "Explain `MemoRoutine` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "MemoRoutine — Routine-like object which stores last values A MemoRoutine behaves like a Routine, though it is not defined as a subclass of it. It stores last values, the maximum b... |
[
{
"role": "user",
"content": "What does `Mix.fill` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Sum an array of channels. Arguments: n — The size of array to create.; function — The array filling function.. Returns: Returns: A newly created"
}
] |
[
{
"role": "user",
"content": "Write a SuperCollider patch that uses `BufRd` and actually plays. Assume nothing about the session."
},
{
"role": "assistant",
"content": "```supercollider\nb = Buffer.read(s, ExampleFiles.child);\n\n{ BufRd.ar(1, b, Sweep.ar(Impulse.ar(BufDur.kr(b).reciprocal), Buf... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\n{\n var f, sf, g;\n sf = LFNoise0.ar(MouseX.kr(1, 100, 1));\n g = MouseY.kr(0.1, 10, 1);\n f = Ball.ar(sf, g, 0.01, 0.01);\n f = f * 140 + 500;\n SinOsc.ar(f, 0, 0.2)\n}... |
[
{
"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": "What does this SuperCollider patch do?\n```supercollider\n(\n{\n~a={SinOsc.ar([22.5, 23], mul: ChaosGen.allSubclasses.choose.ar(rrand(1, 30))* 0.3)};\n~b={SinOsc.ar([22.5, 23], mul: 0.3)};\n~c={SinOsc.ar([22.5, 23]*400, mul: ChaosGen.allSubclasses.choose.ar(rrand(1, 30))* 0.03)... |
[
{
"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": "What is the difference between .ar, .kr and .ir?"
},
{
"role": "assistant",
"content": "The rate method decides how often a UGen is evaluated. `.ar` runs at the audio rate, once per sample, and produces an audio signal. `.kr` runs at the control rate, once per block... |
[
{
"role": "user",
"content": "What does `Canvas3D.vectorMatrixMul` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Multiply a vector with a Arguments: vector — A 3-element Array describing a 3D vector: `[x,y,z]`; matrix — A matrix. Returns: A vector."
}
] |
[
{
"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 QuadN.ar(SampleRate.ir/4, r.neg, r, 0, 0.1) * 0.4;\n}.play(s);\n``... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Dswitch1`."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var a, freq, trig;\n a = Dswitch1([1, 3, MouseY.kr(1, 15), 2, Dwhite(0, 3, 2)], MouseX.kr(0, 4));\n trig = Impulse.kr(3);\n freq = Demand.... |
[
{
"role": "user",
"content": "What does `Group.addReplaceMsg` do?"
},
{
"role": "assistant",
"content": "Returns a message of the type g_new which can be bundled. When sent to the server this message will instantiate this group, replacing nodeToReplace in the server's node"
}
] |
[
{
"role": "user",
"content": "What is `FoaThetaPhiR` in SuperCollider?"
},
{
"role": "assistant",
"content": "FoaThetaPhiR — First Order Ambisonic (FOA) Azimuth & Elevation of Soundfield Reactive Intensity Vector Return the Azimuth & Elevation of Reactive Intensity Vector of a first order ambiso... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{Disintegrator.ar(SinOsc.ar([400, 404], 0, 0.2), MouseX.kr(0, 1), MouseY.kr(0, 1))}.play\n\n{Disintegrator.ar(SoundIn.ar, MouseX.kr(0, 44100), MouseY.kr(0, 1)}.play\n```"
},
... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\ns.boot;\n(\nz = {\n BHiPass4.ar(\n SoundIn.ar([0, 1]),\n MouseX.kr(10, 20000, \\exponential), // cutoff freq.\n MouseY.kr(0.1, 1.0, \\linear), // rq\n 0.5); // mul\n... |
[
{
"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 minimal SuperCollider example that uses `LastValue`."
},
{
"role": "assistant",
"content": "```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,... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```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 a phasor\n{ BufRd.ar(1, b, Pha... |
[
{
"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 self-contained SuperCollider patch for simple smooth arp. Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\n(\ns.boot;\n);\n\n(\nSynthDef(\\smooth, { |freq = 440, sustain = 1, amp = 0.5|\n var sig;\n sig = SinOsc.ar(f... |
[
{
"role": "user",
"content": "What is `ArraySpec` in SuperCollider?"
},
{
"role": "assistant",
"content": "ArraySpec — datatype specifying an array with an itemSpec which describes its items Category: Spec, Libraries > crucial > Spec."
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{Formants.ar(100, Vowel([\\e, \\o], [\\bass])) * 0.1 }.play\n{Formants.ar(100, Vowel(\\e, [\\bass,\\alto])) * 0.1 }.play\n{Formants.ar(100, Vowel([\\e, \\o], [\\bass,\\alto]) * 0... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n(// * //watch the postWindow\na=[\"m\",\"x\",\"f\",\"k\",\"d\",\"p\"];\nx=Array;\ny=x.newClear(6);\n~mxfkdp=Task({\n inf.do({y.put(x.series(6,0,1).choose,a.scramble).postln;\n 0.03.wait;})}).play;\nm=fork({inf.do({\n ... |
[
{
"role": "user",
"content": "What is `Polar` in SuperCollider?"
},
{
"role": "assistant",
"content": "Polar — Polar coordinates Represents polar coordinates. Category: Math."
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// Add two UGens\n{ SinOsc.ar(440, 0, 0.2) + PinkNoise.ar(0.1; }.play\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis opened... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```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 frequency with an exponential ramp\n{ SinOsc.ar(XLine.kr(2000, 200), 0, 0... |
[
{
"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": "Give me a granular patch with noise grain position and interp 2. (rate 20, dur 0.1, interp 2, mode noise, 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 is a UGen graph in SuperCollider?"
},
{
"role": "assistant",
"content": "A UGen graph is the directed acyclic graph of unit generators that a SynthDef describes: sources (SinOsc, WhiteNoise) feed processors (LPF, EnvGen, Pan2) and end at an output such as Out.a... |
[
{
"role": "user",
"content": "Give me an Ndef with an LFO at 0.8 Hz. (ugens blip, cutoff 3200, lfo 0.8, freq 165, amp 0.12)"
},
{
"role": "assistant",
"content": "`Ndef` holds the synth and the environment, so you can edit it live:\n\n```supercollider\n// Ndef drone: blip source through a 3200 H... |
[
{
"role": "user",
"content": "What is `Main` in SuperCollider?"
},
{
"role": "assistant",
"content": "Main — The concrete instance of Process Main is the concrete instance of Process (the runtime environment for the virtual machine and interpreter). Main overrides some methods of Process. There ... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n(\n{\n var freqs = [200, 600, 400, 450, 150, 20, 800];\n var amps = Saw.ar(freq: [2,3, 5]).range(1, 0.5, 0.3, 0.8);\n var snd = LFTri.ar(freq: freqs, mul: amps);\n Mix.ar(snd)\n}.play;\n)\n```"
},
{
"role": "... |
[
{
"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": "What are the arguments of Pan2?"
},
{
"role": "assistant",
"content": "`Pan2.ar(in, pos, level)` — in is the mono signal, pos is -1 (left) to 1 (right) with 0 in the middle, and level scales the output. It is equal-power, so a centred signal is -3 dB per channel rat... |
[
{
"role": "user",
"content": "I get 'server not running' or nothing happens at all."
},
{
"role": "assistant",
"content": "The server is not booted. In the IDE press Ctrl+B, or evaluate `s.boot`. If code depends on a SynthDef being there, put it inside `s.waitForBoot { ... }`. When a script runs... |
[
{
"role": "user",
"content": "How do I granulate a sample with 0.15 s grains? (rate 28, dur 0.15, 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.w... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ SinOsc.ar(BrownNoise.ar(100, 200) * 0.1 }.play;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis opened earlier is never cl... |
[
{
"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": "Write a kick whose tail uses freeverb."
},
{
"role": "assistant",
"content": "Put the reverb inside the `SynthDef` so it is part of the voice:\n\n```supercollider\n// reverb: freeverb on a kick\n(\nSynthDef(\\reverb_synth, { |out = 0, freq = 330, amp = 0.2|\n var... |
[
{
"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 `Standard2DC.ar` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "standard map 2D chaotic generator Arguments: minfreq, maxfreq — iteration frequency in Hertz; k — perturbation amount; x0 — initial value of x; y0 — initial value of y... |
[
{
"role": "user",
"content": "Give me a Pbind with pluck voices and a 0.3 rhythm. (scale majorPentatonic, seq Pwalk, 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```supercollider\... |
[
{
"role": "user",
"content": "What is `BLowShelf` in SuperCollider?"
},
{
"role": "assistant",
"content": "BLowShelf — Low Shelf The B equalization suite is based on the Second Order Section (SOS) biquad UGen. Category: UGens > Filters > BEQSuite."
}
] |
[
{
"role": "user",
"content": "What does `History.document` do?"
},
{
"role": "assistant",
"content": "post the history in a new document (as story). The document title is a string formatted as follows:"
}
] |
[
{
"role": "user",
"content": "What is `Plotter`?"
},
{
"role": "assistant",
"content": "Plotter — Plot numerical data on a window or view"
},
{
"role": "user",
"content": "What does `Plotter.plotGraph` do?"
},
{
"role": "assistant",
"content": "`{ |x| sin(x) }.plotGraph(3... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Saw`."
},
{
"role": "assistant",
"content": "```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{ ... |
[
{
"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": "What is `EaseOutBack` in SuperCollider?"
},
{
"role": "assistant",
"content": "EaseOutBack — Back ease-out Easing equation for a back (overshooting cubic easing: (a+1)*t^3 - a*t^2) ease-out, decelerating from zero velocity. The a parameter controls overshoot, the de... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `LFDNoise0`."
},
{
"role": "assistant",
"content": "```supercollider\n// try wiggling mouse quickly;\n// LFNoise frequently seems stuck, LFDNoise changes smoothly.\n\n{ LFNoise0.ar(MouseX.kr(0.1, 1000, 1), 0.1) }.play\... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// Add two UGens\n{ SinOsc.ar(440, 0, 0.2) + PinkNoise.ar(0.1; }.play\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis opened... |
[
{
"role": "user",
"content": "Write a Pbind in minorPentatonic using Pshuf 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": "What does this SuperCollider code do?\n```supercollider\n// Let's extract the DC component - i.e. the magnitude at binindex zero.\n(\n{\n var sig, chain, stream, windowStarts, demand;\n var fftsize = 1024;\n\n sig = SinOsc.ar(LFDNoise3.kr(LFNoise0.kr(1) * 40 + 60) * 700 + 80... |
[
{
"role": "user",
"content": "Explain `SynthDescLib` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "SynthDescLib — SynthDesc library See SynthDesc Category: Server > Nodes."
}
] |
[
{
"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// indexing with a phasor\n{ BufRd.ar(1, b, Phasor.ar(0, BufRateScale.kr(b), 0, BufFrames.kr(b))) }.play;\n\n// indexing by hand\n{ Buf... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// the following two lines produce equivalent results\n{ SinOsc.ar(440, 0, 0.3) }.play(fadeTime: 0.0);\nSynthDef(\\help_FuncPlay, { Out.ar(0, SinOsc.ar(440, 0, 0.3)) }.play;\n```... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n// Periphonic (3D) encoder, a 1/2 dome of 13 loudspeakers\n// [[0, 0], [45, 0], [90, 0], [135, 0], [-180, 0], [-135, 0], [-90, 0], [-45, 0],\n// [45, 35.3], [135, 35.3], [-135, 35.3], [-45, 35.3], [0, 90]]\n\n~directions... |
[
{
"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 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": "Write a SuperCollider patch that uses `In` and actually plays. Assume nothing about the session."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\n\n(\nSynthDef(\"help-PinkNoise\", { |out = 0|\n Out.ar(out, PinkNoise.ar(0.1))\n}).add;\n\nSynthDef(\"... |
[
{
"role": "user",
"content": "What does `WaveletDaub.ar` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "decomposition into Daub4 wavelets, and reconstruction Arguments: input — Original signal to effect; n — size of wavelet transform. Must be divisible by 64, the standar... |
[
{
"role": "user",
"content": "Explain `RedMatrixMixer` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "RedMatrixMixer — mix any number of input and output channels matrix mixer Category: Red > redMatrixMixer."
}
] |
[
{
"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": "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 `Monitor`."
},
{
"role": "assistant",
"content": "```supercollider\n{ Out.ar(87, SinOsc.ar(MouseX.kr(240, 1000, 1) * [1, 2, 3], 0, 0.2)) }.play; // play three sine tone on channels 87, 88, and 89\nx = Monitor.new; // c... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\na = ProxySynthDef(\"xtest\", { SinOsc.ar(400) * 0.1 });\n\na.add;\n\nx = Synth(\"xtest\");\nx.release;\n\n\n/*\n\n if the resulting number of channels is larger than a given cha... |
[
{
"role": "user",
"content": "What does `MultiSliderView.valueThumbSize` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "The size of the slider handles in the direction of value in pixels (if Arguments: An Integer.."
}
] |
[
{
"role": "user",
"content": "What does `AbstractFunction.exprand` do?"
},
{
"role": "assistant",
"content": "An object which responds to a set of messages that represent mathematical functions"
}
] |
[
{
"role": "user",
"content": "What does `View.mouseUpAction` do?"
},
{
"role": "assistant",
"content": "The object to be evaluated when a mouse button is released after it was pressed on the view. The following arguments are passed at evaluation: view, x, y, modifiers, buttonNumber. See #Mouse a... |
[
{
"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": "How do I get a Euclidean-style rhythm in SuperCollider?"
},
{
"role": "assistant",
"content": "Describe the pattern as a list of hits and rests; `Rest` gives the gap without starting a Synth.\n\n```supercollider\n(\nPbind(\n \\instrument, \\hat,\n \\dur, 0.125... |
[
{
"role": "user",
"content": "Explain this SuperCollider patch.\n```supercollider\n// for the members of the cult of q\n// who don't want to ~tilde\n\n\n//-- INIT\nq = q ? ();\n\nq.local = currentEnvironment;\n\nq.local.pattern = Pbind(\\note, Pbrown(0, { 17.rand + 1 } ! 12), \\dur, 0.05, \\amp, 0.01);\n\n\... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n(\nNdef(\\nodeTest, {\n // the input\n var input = Impulse.ar([1, 3, 5].reciprocal, phase: [0, 0.133, 0.5]).sum;\n\n // the nodes, each takes its predecessor as input and estimates the duration between two events. \n... |
[
{
"role": "user",
"content": "What does `MIDIOut.findPort` do?"
},
{
"role": "assistant",
"content": "Searches for a connected MIDIEndPoint by name. `// list connected out ports with"
}
] |
[
{
"role": "user",
"content": "What does `AnnotatedDebugNodeWatcher.n_end` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Watches server replies for node ended/started events using AbstractPlayer's Node annotation system Arguments: nodeID; groupID; prevID; nextID."
}
] |
[
{
"role": "user",
"content": "Show another SuperCollider example using `LorenzL`."
},
{
"role": "assistant",
"content": "```supercollider\n// randomly modulate params\n(\n{ LorenzL.ar(\n SampleRate.ir,\n LFNoise0.kr(1, 2, 10),\n LFNoise0.kr(1, 20, 38),\n LFNoise0.kr(1, 1.5, 2)\n) * 0.2 }.pla... |
[
{
"role": "user",
"content": "Do you know other programming languages?"
},
{
"role": "assistant",
"content": "Only as far as SuperCollider needs them. I am sc-mind, a 198M model trained on SuperCollider; I can read its sclang syntax and explain it, and that is the limit of what I was trained to ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.