conversations listlengths 2 6 |
|---|
[
{
"role": "user",
"content": "Show me a self-contained SuperCollider patch using `Drand`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var a, freq, trig;\n a = Drand([1, 3, 2, 7, 8], inf);\n trig = Impulse.kr(MouseX.kr(1, 400, 1));\n freq = ... |
[
{
"role": "user",
"content": "What does `FoaMagAr.ar` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "First Order Ambisonic (FOA) Magnitude of Soundfield Reactive Admittance Vector Arguments: in — The B-format signal, an array: [w, x, y, z]; size — Analysis filter kernel ... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Condition`."
},
{
"role": "assistant",
"content": "```supercollider\n(\nc = Condition.new(false);\n\nRoutine {\n 1.wait;\n \"waited for 1 second\".postln;\n 1.wait;\n \"waited for another second, now waiting for y... |
[
{
"role": "user",
"content": "How do I build a live drone with Ndef at 82.5 Hz? (ugens sine, cutoff 800, lfo 0.8, freq 82.5, amp 0.12)"
},
{
"role": "assistant",
"content": "`Ndef` is a named proxy you can redefine while it is playing:\n\n```supercollider\n// Ndef drone: sine source through a 80... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n// create a DMX object, default to a single universe of 512 channels\nd = SimpleDMX();\n\n// get a fixture and set its color\nf = SimpleDMXFixture(0, 5, universeId: 0, desc: (\\channelTypes: #[dim, r, g, b, white]));\nf.s... |
[
{
"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": "Explain `Red4D` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "Red4D — abstract 4D class An abstract class for 4D shape classes. Category: Red > redUniverse > shapes."
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\n{\n SinOsc.ar(\n RunningMax.ar(Dust.ar(20), Impulse.ar(0.4)) * 500 + 200,\n 0, 0.2\n )\n\n}.play;\n);\n\n// follow a sine lfo, reset rate controlled by mouse x\n(\... |
[
{
"role": "user",
"content": "Give me a fm kick with a 0.06 s pitch sweep. (osc fm, sweep 0.06, decay 0.35, f0 150, f1 48, amp 0.6, 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: fm oscillat... |
[
{
"role": "user",
"content": "Show me a self-contained SuperCollider patch using `ProxySpace`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\n\np = ProxySpace.new;\np.fadeTime = 2; // fadeTime specifies crossfade\np[\\out].play; // monitor an em... |
[
{
"role": "user",
"content": "Write a kick drum with a 0.35 s decay. (osc sine, sweep 0.06, decay 0.35, f0 150, f1 40, amp 0.6, 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: sine oscillator... |
[
{
"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": "What does `SFormantFrequencies.def` do?"
},
{
"role": "assistant",
"content": "the definition that send out control data on bus Returns: a LINKClasses/SynthDef."
}
] |
[
{
"role": "user",
"content": "Explain this code:\n```supercollider\nPbind(\\degree, Pseq([0, 2, 4, 7], inf), \\dur, 0.25).play;\n```"
},
{
"role": "assistant",
"content": "It plays a four-note major arpeggio in a loop, one note every 250 ms.\n\n`Pbind` builds an event stream: each event is the c... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `BPZ2`."
},
{
"role": "assistant",
"content": "```supercollider\n// Compare:\n\n{ WhiteNoise.ar(0.25) }.play;\n\n{ BPZ2.ar(WhiteNoise.ar(0.25)) }.play;\n```"
}
] |
[
{
"role": "user",
"content": "What does `DecodeB2.ar` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "2D Ambisonic B-format decoder. Arguments: numChans — Number of output speakers. Typically 4 to 8. Must be a nonzero, positive integer. This is fixed when the SynthDef is ... |
[
{
"role": "user",
"content": "What does `PV_CopyPhase.new` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Copy magnitudes and phases. Arguments: bufferA — FFT buffer A.; bufferB — FFT buffer B.."
}
] |
[
{
"role": "user",
"content": "Show me a self-contained SuperCollider patch using `Ddup`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var freq, trig;\n var in = Dseq([1, 2, 3], inf);\n var rep = Ddup(Diwhite(2, 8, inf), in);\n trig = Impulse... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```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 freq = Demand.kr(trig, 0, r... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// default params\n{ QuadL.ar(SampleRate.ir/4) * 0.2 }.play(s;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis opened earlie... |
[
{
"role": "user",
"content": "What is `PulseDivider` in SuperCollider?"
},
{
"role": "assistant",
"content": "PulseDivider — Pulse divider. Outputs one impulse each time it receives a certain number of triggers at its input. Category: UGens > Triggers."
}
] |
[
{
"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": "Give me an Ndef with an LFO at 0.1 Hz. (ugens tri, cutoff 200, lfo 0.1, freq 55, amp 0.12)"
},
{
"role": "assistant",
"content": "`Ndef` holds the synth and the environment, so you can edit it live:\n\n```supercollider\n// Ndef drone: tri source through a 200 Hz low... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `LatoocarfianL`."
},
{
"role": "assistant",
"content": "```supercollider\n// randomly modulate all params\n(\n{ LatoocarfianL.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 `MIDIFuncBothCAMessageMatcher` in SuperCollider?"
},
{
"role": "assistant",
"content": "MIDIFuncBothCAMessageMatcher — Matches incoming MIDI messages to responder funcs based on message channel and source This is used by MIDIMessageDispatcher to match incomi... |
[
{
"role": "user",
"content": "Write a self-contained SuperCollider patch for Kepler 22-b atmosphere. Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\n(\nfork { \n Ndef(\\ttwnd).play;//(d,2,addAction:\\addToHead);\n loop {\n var seed = thisThread.randSeed... |
[
{
"role": "user",
"content": "What does `Window.addToOnClose` do?"
},
{
"role": "assistant",
"content": "Adds an object to #-onClose, wrapping the current value into an Array, if it is not"
}
] |
[
{
"role": "user",
"content": "What does `UScore.sessionGUI` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "(describe method Arguments: view — (describe argument here). Returns: (returnvalue)"
}
] |
[
{
"role": "user",
"content": "What does `Pdef.defaultQuant` do?"
},
{
"role": "assistant",
"content": "Set the default quantisation for new instances (default: 1.0). This can be an array [quant, phase, timingOffset,"
}
] |
[
{
"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": "What does `Pen.curveTo` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Draws a cubic bezier curve from the current position to Arguments: endPoint — An instance of Point; cPoint1 — An instance of Point; cPoint2 — An instance of Point."
}
] |
[
{
"role": "user",
"content": "What is `ObjectGui` in SuperCollider?"
},
{
"role": "assistant",
"content": "ObjectGui — Controller class for MVC architecture, superclass for all XYZGui classes In the MVC architecture this is the Controller, which creates Views for manipulating the properties of y... |
[
{
"role": "user",
"content": "Write an Ndef at 82.5 Hz I can retune while it plays. (ugens blip, cutoff 2400, lfo 0.1, freq 82.5, 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 ... |
[
{
"role": "user",
"content": "How do I granulate a sample with 0.2 s grains? (rate 10, dur 0.2, 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 with GrainBuf\n(\ns... |
[
{
"role": "user",
"content": "Write a bell whose tail uses freeverb. (verb freeverb, room 0.85, damp 0.2, mix 0.3, source bell)"
},
{
"role": "assistant",
"content": "`FreeVerb` is in the core library; the room and damp arguments do the work:\n\n```supercollider\n// reverb: freeverb on a bell\n(... |
[
{
"role": "user",
"content": "How do I make a kick that starts at 150 Hz and falls to 40 Hz? (osc fm, sweep 0.06, decay 0.25, f0 150, f1 40, amp 0.8, rev 1)"
},
{
"role": "assistant",
"content": "The pitch envelope is what makes it read as a drum, not the oscillator:\n\n```supercollider\n// kick... |
[
{
"role": "user",
"content": "Write a SuperCollider patch that uses `UnaryOpUGen` and actually plays. Assume nothing about the session."
},
{
"role": "assistant",
"content": "```supercollider\na = WhiteNoise.ar; // a WhiteNoise\nb = a.squared; // a UnaryOpUGen.\nb.operator; // squared\n\n// soun... |
[
{
"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{ 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 }.play(s);\n```"
},
{
... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\n{\n var freq, trig;\n var in = Dseq([1, 2, 3], inf);\n var rep = Ddup(Diwhite(2, 8, inf), in);\n trig = Impulse.kr(MouseX.kr(1, 40, 1));\n freq = Demand.kr(trig, 0, rep).... |
[
{
"role": "user",
"content": "What does `PatternProxy.condition` do?"
},
{
"role": "assistant",
"content": "provide a condition under which the pattern is switched when a new one is inserted. the stream value and a count is passed into the function. the methods count_(n) simply counts up to n an... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Balance2`."
},
{
"role": "assistant",
"content": "```supercollider\n// a stereo signal, both channels at 0dB\n{ [SinOsc.ar(440), SinOsc.ar(440)] }.play\n\n// using Balance on a stereo signal with the position paramete... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Pgtpar`."
},
{
"role": "assistant",
"content": "```supercollider\n// synthdef\n(\nSynthDef(\\help_sinegrain,\n { |out = 0, freq = 440, sustain = 0.05|\n var env;\n env = EnvGen.kr(Env.perc(0.01, susta... |
[
{
"role": "user",
"content": "What does `DebugFrame.functionDef` do?"
},
{
"role": "assistant",
"content": "Returns a FunctionDef or a Method of the current function or"
}
] |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n(\n// a pattern with long notes\np = Pbind(\n \\freq, Pwhite(0, log(32)).exp.round(1) * 36.midicps,\n \\detune, Pfunc({ |ev| ev[\\freq] * rand(0.01) }),\n \\sustain, Pwhite(log(0.1), log(20)).exp,\n \\dur, Prand([0.1... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```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(0, 2pi); a.sin * 0.1 }.play;\n\n... |
[
{
"role": "user",
"content": "What does `MultiplePlayers.children` do?"
},
{
"role": "assistant",
"content": "parent class for players that have multiple tracks / voices"
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `RHPF`."
},
{
"role": "assistant",
"content": "```supercollider\n{ RHPF.ar(Saw.ar(200, 0.1), FSinOsc.kr(XLine.kr(0.7, 300, 20), 0, 3600, 4000), 0.2) }.play;\n\n(\n{ var ctl = RHPF.kr(LFSaw.kr(2), SinOsc.kr(XLine.kr(0... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\ns.boot;\n\n(\nSynthDef(\"lazerdrone\", {\n var in, freq, hasFreq;\n\n \n in = SinOsc.ar(440 * LFSaw.kr(100, 1000));\n\n # freq, hasFreq = Pitch.kr(\n in,\n ampThreshold: 0.09,\n median: 1);... |
[
{
"role": "user",
"content": "Explain `LatoocarfianL` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "LatoocarfianL — Latoocarfian chaotic generator A linear-interpolating sound generator based on a function given in Clifford Pickover's book Chaos In Wonderland, pg 26. The funct... |
[
{
"role": "user",
"content": "Write an Ndef with a blip source and a 200 Hz low-pass. (ugens blip, cutoff 200, lfo 0.1, freq 165, amp 0.12)"
},
{
"role": "assistant",
"content": "Use `Ndef` when the patch has to change without stopping:\n\n```supercollider\n// Ndef drone: blip source through a 2... |
[
{
"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 another SuperCollider example using `KeyTrack`."
},
{
"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\n in = Mix(SinOsc.ar((60 + [0, MouseX.kr(... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\nSynthDef(\"help-ExpRand\", { |out = 0|\n Out.ar(out,\n FSinOsc.ar(\n ExpRand(100.0, 8000.0),\n 0, Line.kr(0.2, 0, 0.01, doneAction: Done.freeSelf))\n )\n}).add;... |
[
{
"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 is `PV_Control` in SuperCollider?"
},
{
"role": "assistant",
"content": "PV_Control — Tracks Magnitudes and Reduces Output of Bins Tracks the Magnitudes of N bins of an FFT and Reduces Output of those Bins whose magnitude exceeds a threshold for a finite period... |
[
{
"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": "How do I play a random majorPentatonic scale at octave 6? (scale majorPentatonic, seq Prand, dur 0.2, octave 6, instr sine, root 0)"
},
{
"role": "assistant",
"content": "`Pbind` sequences an Event per beat, and `\\degree` + `\\scale` does the pitch:\n\n```supercoll... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// default initial params\n{ FBSineC.ar(SampleRate.ir/4) * 0.2 }.play(s;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis ope... |
[
{
"role": "user",
"content": "What does `DrawGrid.gridColors` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Set the colors of the grid lines for each Arguments: colors — An Array of two colors for the x and y grid lines, respectively.. Returns: Self."
}
] |
[
{
"role": "user",
"content": "Write a Pbind whose degrees repeat every Prand cycle. (scale minorPentatonic, seq Prand, dur 0.2, octave 4, instr pluck, root 0)"
},
{
"role": "assistant",
"content": "Put the scale and the degree pattern in the `Pbind` and it will pick notes for you:\n\n```supercol... |
[
{
"role": "user",
"content": "Write a complete SuperCollider patch built around `IFFT` that runs as it is."
},
{
"role": "assistant",
"content": "```supercollider\n// without any modification, convert FFT chain (frequency domain signal) back to audio (time domain signal)\n(\n{ var in, chain;\n... |
[
{
"role": "user",
"content": "Write a GrainBuf synth at 28 grains per second. (rate 28, dur 0.04, interp 4, mode noise1, 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... |
[
{
"role": "user",
"content": "What does `SGliss.getAmplitudes` do?"
},
{
"role": "assistant",
"content": "read the amplitude control rate bus Returns: an array of floats (0.0 to 1.0)."
}
] |
[
{
"role": "user",
"content": "Resizing FreqScope?"
},
{
"role": "assistant",
"content": "SuperCollider forum — Resizing FreqScope?\n\nOddly, this seems to work:\n\n```supercollider\n// max partial = 20 kHz\n// do not play this loudly\na = { Blip.ar(100, 200, 0.02).dup }.play;\n\nv = FreqScope(80... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `BPF`."
},
{
"role": "assistant",
"content": "```supercollider\n{ BPF.ar(Saw.ar(200, 0.5), FSinOsc.kr(XLine.kr(0.7, 300, 20), 0, 3600, 4000), 0.3) }.play;\n\n{ BPF.ar(Saw.ar(200, 0.5), MouseX.kr(100, 10000, 1), 0.3) }.... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n(\nSynthDef(\"ReplaceOutHelp\", { |out = 0, freq = 440|\n var source;\n source = SinOsc.ar(freq, 0, 0.1);\n\n // write to the bus, replacing previous contents\n ReplaceOut.ar(out, source);\n\n}).add;\n);\n\n// e... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n(//*********PREPARE**********\np.pop;\n//Any code that needs to access your own environment goes here\np = ProxySpace.push(s);\n~fxLoop.play.fadeTime_(5);\n);\n\n(//*********FXLoop**********\n~fxLoop = {\n var in = Soun... |
[
{
"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": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\ns.boot;\nb = Buffer.new(s);\n// read only the first channel (a Sine wave) of a stereo file\nb.allocReadChannel(ExampleFiles.sinedPink, channels: [0]);\nx = { PlayBuf.ar(1, b, Buf... |
[
{
"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": "Write a minimal SuperCollider example that uses `LPZ2`."
},
{
"role": "assistant",
"content": "```supercollider\n// Compare:\n\n{ WhiteNoise.ar(0.25) }.play;\n\n{ LPZ2.ar(WhiteNoise.ar(0.25)) }.play;\n```"
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `SinOscFB`."
},
{
"role": "assistant",
"content": "```supercollider\n{ SinOscFB.ar(440, MouseX.kr(0, 4))*0.1 }.play\n\n\n{ SinOscFB.ar(MouseY.kr(10, 1000, 'exponential'), MouseX.kr(0.5pi, pi))*0.1 }.play\n\n\n{ SinOscF... |
[
{
"role": "user",
"content": "What is `BBandPass` in SuperCollider?"
},
{
"role": "assistant",
"content": "BBandPass — Band Pass Filter The B equalization suite is based on the Second Order Section (SOS) biquad UGen. Category: UGens > Filters > BEQSuite."
}
] |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n(\nb = Bus.audio(s, 2);\na = { |inbus = 0|\n var sig = In.ar(inbus, 2);\n // x axis is side, oriented toward right;\n // y axis is mid\n [sig[1] - sig[0], sig.sum]\n}.play(s.defaultGroup, outbus: b, addAction: \\addA... |
[
{
"role": "user",
"content": "How does multi-channel expansion work?"
},
{
"role": "assistant",
"content": "If any argument of a UGen is an Array, the UGen is built once per element and the results are returned as an Array. So `SinOsc.ar([220, 330, 440])` is three oscillators, and `SinOsc.ar(220... |
[
{
"role": "user",
"content": "Explain `RedGIF` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "RedGIF — gif image decoder Read and decodes a .gif file from disk. Includes a simple #-makeWindow method to display the pixels (but you should really write your own). Category: Red > r... |
[
{
"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": "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\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": "Explain `MKtlElement` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "MKtlElement — An element of an MKtl. A named element within an MKtl, which typically represents a slider, a button, a joystick axis etc etc. It has a description with a deviceSpec... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Archive`."
},
{
"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[\\pi_squared] = pi * pi;\nq[\\favo... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Convolution`."
},
{
"role": "assistant",
"content": "```supercollider\n(\n\n{\n var input, kernel;\n\n input = SoundIn.ar(0);\n kernel = Mix.ar(LFSaw.ar([300, 500, 800, 1000] * MouseX.kr(1.0, 2.0), 0, 1.0));\n\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": "What does this SuperCollider patch do?\n```supercollider\n(\nc=13;a=Array.fib(64,0,1);b=Array.fill(size:c,function:{arg i;a[i]%12});\np=1/(21-c);Pdef(\\x,Pbind(\\dur,p,\\degree,Pseq(b,1,0)));\nr=Array.fill(c,{arg i;Pbindf(Pdef(\\x),\\mtranspose,1-b[i]);});\nPseq(r,(1/p)).play;\... |
[
{
"role": "user",
"content": "How big are you?"
},
{
"role": "assistant",
"content": "198.42M parameters in total, 63.94M active per token. Eight layers, 768 wide, four experts with top-1 routing, and a 6,400-token vocabulary."
}
] |
[
{
"role": "user",
"content": "Write a kick at amp 0.6 with a click. (osc fm, sweep 0.06, decay 0.35, f0 180, f1 40, 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 oscillator, 0.0... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n(\ns = Server.local;\nServer.default = s;\ns.boot;\n);\n \n \n// definition for future reference in arbitrary Environments\n\n(\np = Pbind(\n \\midinote, PLnaryFunc(\\f, \\src, [\\dev]),\n \\dur, 0.1\n);\n);\n... |
[
{
"role": "user",
"content": "What does `DataBuffer.dataActive` do?"
},
{
"role": "assistant",
"content": "a Boolean flag indicating if data should be buffered or"
}
] |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n(\n~inPlaceSub = { |array, find, replace|\n array.do({ |item, i|\n if(item == find) { array[i] = replace };\n });\n};\n\n~trySub = { |array, find, replace|\n try {\n ~inPlaceSub.(array, find, replace)\n } { |err... |
[
{
"role": "user",
"content": "What does `PatchIn.newByRate` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "manages a Player's input when connecting to other Players Arguments: rate; nodeControl."
}
] |
[
{
"role": "user",
"content": "What does `UGen.explin` do?"
},
{
"role": "assistant",
"content": "Wraps the receiver so that an exponential input range is mapped to a linear output"
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `InFeedback`."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\"help-InFeedback\", { |out = 0, in = 0|\n var input, sound;\n input = InFeedback.ar(in, 1);\n sound = SinOsc.ar(input * 1300 + ... |
[
{
"role": "user",
"content": "What does `WebView.onLinkActivated` do?"
},
{
"role": "assistant",
"content": "Sets the object to be evaluated when the user triggers a link. Arguments are: a URL, a QWebPageNavigationType, a bool (page is opening in current view). When this is set to other than 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 = Drand([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": "What is the difference between Line and XLine?"
},
{
"role": "assistant",
"content": "Both are ramps: `Line.kr(start, end, dur, mul, add, doneAction)` moves linearly, `XLine.kr(...)` moves exponentially in a fixed ratio per unit time. Use Line for amplitude and XLin... |
[
{
"role": "user",
"content": "What is `Routine`?"
},
{
"role": "assistant",
"content": "Routine — Functions that can return in the middle and then resume where they left off"
},
{
"role": "user",
"content": "What does `Routine.new` do?"
},
{
"role": "assistant",
"content"... |
[
{
"role": "user",
"content": "What is `LatoocarfianC` in SuperCollider?"
},
{
"role": "assistant",
"content": "LatoocarfianC — Latoocarfian chaotic generator A cubic-interpolating sound generator based on a function given in Clifford Pickover's book Chaos In Wonderland, pg 26. The function is: C... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\ns.boot;\n\n\n\n// create with cueSoundFile class method\nb = Buffer.cueSoundFile(s, ExampleFiles.apollo11, 0, 1);\nx = { DiskIn.ar(1, b) }.play;\nb.close; // must call close in ... |
[
{
"role": "user",
"content": "What does `JITGui.makeScroller` do?"
},
{
"role": "assistant",
"content": "Some objects may have more elements to display than the gui has slots, e.g. a ProxySpace can have more proxies than the mixer has numItems. Then, only #-numItems elements are shown, and the o... |
[
{
"role": "user",
"content": "Give me a granular patch with sweep grain position and interp 2. (rate 28, dur 0.07, interp 2, mode sweep, rev 0)"
},
{
"role": "assistant",
"content": "Granulation is `GrainBuf` plus a trigger rate; the position can move:\n\n```supercollider\n// granular synth with... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.