conversations listlengths 2 6 |
|---|
[
{
"role": "user",
"content": "What is `PopUpMenu` in SuperCollider?"
},
{
"role": "assistant",
"content": "PopUpMenu — A view displaying a text item selectable from a drop-down menu. When clicked, this view opens a menu containing several text items, then closes the menu and displays one of the ... |
[
{
"role": "user",
"content": "What does `PlaybackData.new` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "read and parse a text Arguments: path — a String pointing to a text file.; dataAction — set the OpenBCI#-dataAction; initAction — set the OpenBCI#-initAction; buffer... |
[
{
"role": "user",
"content": "Explain `EaseOutQuad` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "EaseOutQuad — Quadratic ease-out Easing equation for a quadratic (t^2) ease-out, decelerating to zero velocity. Category: Ease."
}
] |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n(\n// use input amplitude to control SinOsc frequency - use headphones to prevent feedback.\n{\n SinOsc.ar(\n Amplitude.kr(\n SoundIn.ar(0),\n 0.01,\n ... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n(\na = Ptime.new;\nx = a.asStream;\n);\n\nx.next;\nx.next;\nx.next;\n\n// post time in a playing event stream\n(\nPbind(\n \\pfunc, Ptime.new.trace,\n \\dur, Pseries(0.5, 0.5, 5)\n).play;\n);\n\n\n// change degree indep... |
[
{
"role": "user",
"content": "What is `MIDIFreqPlayer` in SuperCollider?"
},
{
"role": "assistant",
"content": "MIDIFreqPlayer — MIDI note to control rate \\freq convertor. Classic analog monophonic style including hammer on trills Implements classic analog monophonic style MIDI to control rate ... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\na = {LFTri.ar(50+(1000*Maths2.ar(10, 10, 0.5, 1)[0]), 0, 0.1)}.play //notice how I am taking the [0]th channel of the Maths and ignoring the [1st channel.\n```"
},
{
"rol... |
[
{
"role": "user",
"content": "What is `SerialPort` in SuperCollider?"
},
{
"role": "assistant",
"content": "SerialPort — serial port interface Category: External Control."
}
] |
[
{
"role": "user",
"content": "Give me a complete SuperCollider patch for (thor magnusson) (2006) An instrumentalist inside a synthdef: bind everything it needs before it is used."
},
{
"role": "assistant",
"content": "```supercollider\n// (thor magnusson) (2006)\n\n// An instrumentalist inside a... |
[
{
"role": "user",
"content": "What is `Pbindef`?"
},
{
"role": "assistant",
"content": "Pbindef — incremental event pattern reference definition"
},
{
"role": "user",
"content": "What does `Pbindef.new` do?"
},
{
"role": "assistant",
"content": "store the pattern in the g... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// mouse-controlled param\n{ StandardN.ar(SampleRate.ir/2, MouseX.kr(0.9, 4)) * 0.3 }.play(s;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing... |
[
{
"role": "user",
"content": "What does `FancySlider.sliderColor` do?"
},
{
"role": "assistant",
"content": "An efficient Slider which substitutes a user view for a slider"
}
] |
[
{
"role": "user",
"content": "Write a Pbind whose degrees repeat every Pseq cycle. (scale minorPentatonic, seq Pseq, dur 0.25, octave 6, 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```supercoll... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\n// given a simple instrument\nInstr(\\Pulse,{ arg freq=440.0,width=0.5,mul=0.1;\n Pulse.ar( freq, width, mul )\n});\n\n// a patch specifies inputs (arguments) to that instrum... |
[
{
"role": "user",
"content": "Write a granular texture, through a reverb. (rate 10, dur 0.1, interp 4, mode sweep, rev 1)"
},
{
"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.wa... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// example:\n(\nvar f, g, product;\nf = { SinOsc.ar(400) };\ng = { LFPulse.kr(8) };\nproduct = f * g * 0.1;\n{ Pan2.ar(product, SinOsc.kr(0.3)) }.play;\n```"
},
{
"role":... |
[
{
"role": "user",
"content": "What is `PIntegrator` in SuperCollider?"
},
{
"role": "assistant",
"content": "PIntegrator — UGenPatterns quark library Based on Integrator Category: Streams-Patterns-Events > UGenPatterns > Modifiers."
}
] |
[
{
"role": "user",
"content": "Write an Ndef at 55 Hz I can retune while it plays. (ugens sine, cutoff 2400, lfo 0.8, freq 55, 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 2400 ... |
[
{
"role": "user",
"content": "Write an Ndef at 82.5 Hz I can retune while it plays. (ugens saw, cutoff 1400, lfo 0.1, 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: saw source through a... |
[
{
"role": "user",
"content": "What does `Scheduler.play` do?"
},
{
"role": "assistant",
"content": "Schedules the task immediately. Equivalent to `sched(0,"
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Impulse`."
},
{
"role": "assistant",
"content": "```supercollider\n{ Impulse.ar(800, 0.0, 0.5, 0) }.play\n\n{ Impulse.ar(XLine.kr(800, 100, 5), 0.0, 0.5, 0) }.play\n```"
}
] |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n// It might also be desirable to start with a fade from silence.\n// This can be done with a negative initOutOffset:\n\n(\nx = {\n var lfo = XLine.ar(1, 0.5, 60);\n DXMix.ar(\n Dseq([0, 4, 1, 5, 2, 6, 3, 7], inf),\n ... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `StandardL`."
},
{
"role": "assistant",
"content": "```supercollider\n// vary frequency\n{ StandardL.ar(MouseX.kr(20, SampleRate.ir)) * 0.3 }.play(s);\n```"
}
] |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n(\nNdef(\\birdy, {arg freq=1500, amp=0.5, rate=10;\n var osc, son, convIn, rand;\n osc=LFCub;\n rand = LFNoise1.ar(rate);\n convIn=LinCongN.ar(rate);\n son = osc.ar(Convolution.ar(convIn,convIn));\n freq = Latch.kr... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\ns.boot;\n(\nz = {\nBBandPass.ar(\n SoundIn.ar([0, 1]),\n MouseX.kr(20, 20000, \\exponential),\n MouseY.kr(0.0, 10.0, \\linear), // bw\n 0.5); // mul\n}.play)\nz.release;\n\n(... |
[
{
"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 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": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ LorenzTrig.ar(11025, 44100) }.play(s);\n\n// randomly modulate params\n(\n{ LorenzTrig.ar(\n 11025, 44100,\n LFNoise0.kr(1, 2, 10),\n 20,\n LFNoise0.kr(1, 1.5, 2),\n 0.02\... |
[
{
"role": "user",
"content": "Write a kick at amp 0.8 with no click. (osc fm, sweep 0.06, decay 0.5, f0 150, f1 40, amp 0.8, rev 0)"
},
{
"role": "assistant",
"content": "The pitch envelope is what makes it read as a drum, not the oscillator:\n\n```supercollider\n// kick drum: fm oscillator, 0.0... |
[
{
"role": "user",
"content": "Write a granular texture, through a reverb. (rate 28, dur 0.2, interp 4, mode noise1, rev 1)"
},
{
"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 ... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `BrownNoise`."
},
{
"role": "assistant",
"content": "```supercollider\n{ BrownNoise.ar(0.1) }.play;\n{ WhiteNoise.ar(0.1) }.play;\n```"
}
] |
[
{
"role": "user",
"content": "Explain this SuperCollider code.\n```supercollider\n// larger pitch range and lookBack in upper voice, \n// as with most patterns, no automatic array expansion of pattern arguments\n\n(\np = Pbind(\n \\dur, 1/7,\n \\src, Pseg(Pseq([65, 85], inf), 5, \\sin).round,\n \\midinot... |
[
{
"role": "user",
"content": "What is `ServerLogGui` in SuperCollider?"
},
{
"role": "assistant",
"content": "ServerLogGui — the interface for display and searching the ServerLog Category: Debugging, External Control > OSC."
}
] |
[
{
"role": "user",
"content": "Explain `DefNameLabel` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "DefNameLabel — color coded button displaying a SynthDef name This is used in ServerTreeGui, ServerLog and when inspecting Synth, SynthDef and related classes. The color for a def... |
[
{
"role": "user",
"content": "What is `AbstractGridLines` in SuperCollider?"
},
{
"role": "assistant",
"content": "AbstractGridLines — Calculates the numerical values suitable for grid lines to be used for plotting or other UI elements. `AbstractGridLines` and its subclasses are strategy objects... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n// you have to write the sample path in the firts line\n\n~bufferdue = Buffer.read(s,\" WRITE YOUR SAMPLE PATH HERE \", bufnum:2);\n\n(\nSynthDef.new(\\bufbeat, {\n arg amp = 1, out = 0, buf, start, end, freq = 1;\n va... |
[
{
"role": "user",
"content": "What is `KeyTrack` in SuperCollider?"
},
{
"role": "assistant",
"content": "KeyTrack — Key tracker A (12TET major/minor) key tracker based on a pitch class profile of energy across FFT bins and matching this to templates for major and minor scales in all transpositi... |
[
{
"role": "user",
"content": "Write a SuperCollider patch for outer beat. Start by defining the values the patch depends on."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var saw, bpf;\n saw = Saw.ar(\n freq: [1700,2000],\n mul: LFPulse.kr(\n freq: [2,7],\n wi... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\np = Pmono(\\default, \\dur, 0.2, \\freq, Pwhite(1, 8) * 100).play\n\np.stop\n\n// multi channel expansion is supported:\np = Pmono(\\default, \\dur, 0.2, \\freq, Pwhite(1, 8) * 100, \\detune, [0, 2, 5, 1]).play\n\np.stop\... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Ref`."
},
{
"role": "assistant",
"content": "```supercollider\n{ Klank.ar(`[[800, 1071, 1153, 1723], nil, [1, 1, 1, 1]], Impulse.ar(2, 0, 0.1)) }.play;\n```"
}
] |
[
{
"role": "user",
"content": "Give me a granular patch with noise1 grain position and interp 4. (rate 16, dur 0.04, interp 4, mode noise1, rev 0)"
},
{
"role": "assistant",
"content": "Granulation is `GrainBuf` plus a trigger rate; the position can move:\n\n```supercollider\n// granular synth wi... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\na = { |x, root = 60| x + root }; b = a.midicps; [a.value(9), b.value(9)];\na = Pseries(60, 1, inf).midicps; a.asStream.nextN(12);\n{ a = LFNoise1.ar(1) * 5 + 60; Pulse.ar(a.round... |
[
{
"role": "user",
"content": "Explain `TDuty` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "TDuty — Demand results as trigger from demand rate UGens. A value is demanded each UGen in the list and output as a trigger according to a stream of duration values. The unit generators... |
[
{
"role": "user",
"content": "Explain `RHPF` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "RHPF — A resonant high pass filter. Category: UGens > Filters > Linear."
}
] |
[
{
"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{ HPZ2.ar(WhiteNoise.ar(0.25)) }.play;\n\n// HPZ2 is useful to detect changes in a signal:\n// see also HPZ1\n(\n{\n var changing... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `LatoocarfianN`."
},
{
"role": "assistant",
"content": "```supercollider\n// default initial params\n{ LatoocarfianN.ar(MouseX.kr(20, SampleRate.ir)) * 0.2 }.play(s);\n```"
}
] |
[
{
"role": "user",
"content": "Write an Ndef with a sine source and a 800 Hz low-pass. (ugens sine, cutoff 800, lfo 0.1, freq 220, 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: sine source ... |
[
{
"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 ... |
[
{
"role": "user",
"content": "What is `FoaXformerMatrix` in SuperCollider?"
},
{
"role": "assistant",
"content": "FoaXformerMatrix — First Order Ambisonic (FOA) transformer matrices Generates transform matrices required by the Ambisonic Toolkit's first order (matrix) transformer, FoaXform. Categ... |
[
{
"role": "user",
"content": "Write a kick at amp 0.6 with no click. (osc saw, sweep 0.06, decay 0.18, f0 150, f1 40, amp 0.6, rev 0)"
},
{
"role": "assistant",
"content": "Start with a swept sine, then shorten the decay to taste:\n\n```supercollider\n// kick drum: saw oscillator, 0.06 s pitch s... |
[
{
"role": "user",
"content": "What is Env.perc and what does it take?"
},
{
"role": "assistant",
"content": "`Env.perc(attackTime, releaseTime, level, curve)` — an attack to `level` (default 1) then a decay to zero, with curve defaulting to -4 (an exponential-ish decay). `Env.perc(0.01, 1)` is t... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\na = {\n var dur;\n\n dur = 0.1;\n\n LFTri.ar(100+(1000*Maths2.ar(dur/2, dur/2, 0.99, 1, 0, 1, LFNoise0.ar(1/dur).range(0,1))[0]), 0, 0.1)\n}.play\n```"
},
{
"role":... |
[
{
"role": "user",
"content": "Write a kick at amp 0.6 with a click. (osc sine, sweep 0.06, decay 0.12, f0 180, 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": "Explain this SuperCollider code.\n```supercollider\n// First we create something to control\nx = { |freq = 440, amp = 0.6| MoogFF.ar(PinkNoise.ar(amp), freq).dup }.play;\n\n// In the following pattern, the first two keys are the ones that create the monophonic behaviour:\n(\np ... |
[
{
"role": "user",
"content": "What is `Rest` in SuperCollider?"
},
{
"role": "assistant",
"content": "Rest — Represents a rest in event patterns A Rest may be used in event patterns to indicate that the resulting event should be a rest (i.e., silent). It should be used in one of the child patter... |
[
{
"role": "user",
"content": "Write a self-contained SuperCollider patch that uses `Node`. Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\n(\nx = SynthDef(\"help-node-set\", { |freq = 440, out = 0|\n Out.ar(out, SinOsc.ar(freq, 0, 0.1))\n}).play\n);... |
[
{
"role": "user",
"content": "What is `DigitalIO`?"
},
{
"role": "assistant",
"content": "DigitalIO — Read or write data to a digital pin"
},
{
"role": "user",
"content": "What does `DigitalIO.ar` do?"
},
{
"role": "assistant",
"content": "The output of this UGen is alway... |
[
{
"role": "user",
"content": "Explain `FeatureSave` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "FeatureSave — Storing feature data from UGens in NRT mode Create files of feature data from analysis UGens in NRT mode. Category: UGens > Analysis."
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `LeastChange`."
},
{
"role": "assistant",
"content": "```supercollider\n(\nd = { |amp = 1.0|\n var in1, in2;\n in1 = LFNoise0.ar(800, amp);\n in2 = SinOsc.ar(800);\n LeastChange.ar(in1, in2) * 0.1;\n}.play;\n);\n\n... |
[
{
"role": "user",
"content": "What happens when I call .play on a function?"
},
{
"role": "assistant",
"content": "`.play` on a Function builds a SynthDef from the function body, adds it to the server under an anonymous name, and starts one Synth of it. You get back the Synth, so `x = { SinOsc.a... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Klank`."
},
{
"role": "assistant",
"content": "```supercollider\n{ Klank.ar(`[[800, 1071, 1153, 1723], nil, [1, 1, 1, 1]], Impulse.ar(2, 0, 0.1)) }.play;\n\n{ Klank.ar(`[[800, 1071, 1353, 1723], nil, [1, 1, 1, 1]], Du... |
[
{
"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": "Explain `Routine` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "Routine — Functions that can return in the middle and then resume where they left off A Routine runs a Function and allows it to be suspended in the middle and be resumed again where ... |
[
{
"role": "user",
"content": "Can you listen to the sound you generate?"
},
{
"role": "assistant",
"content": "No. I am 198M parameters trained on SuperCollider's documentation and class library; I have no audio input and no way to hear a result. What I can do is reason about the code: whether i... |
[
{
"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(\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(trig, 0, a) * 30 + 340;\n SinOsc.ar(freq) * 0.1\n\n}.play;\n... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `DigitalIn`."
},
{
"role": "assistant",
"content": "```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 ... |
[
{
"role": "user",
"content": "What is `PCuspN` in SuperCollider?"
},
{
"role": "assistant",
"content": "PCuspN — UGenPatterns quark library Cusp Map. Category: Streams-Patterns-Events > UGenPatterns > Generators."
}
] |
[
{
"role": "user",
"content": "Write a SuperCollider patch that uses `PackFFT` and actually plays. Assume nothing about the session."
},
{
"role": "assistant",
"content": "```supercollider\n// Reminder: This isn't the intended typical usage! It's OK to do this though.\n(\nx = {\n var mags, phase... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `NdefGui`."
},
{
"role": "assistant",
"content": "```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... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n(\np = Pbind(\n \\instrument, \\synth_1a,\n \\preAmp, PL(\\preAmp), \n \\amp, PL(\\amp), \n \\midinote, PLseq(\\seq) + PL(\\seqAdd), \n \\dur, 0.2\n);\n\nq = Pbindf(p, \\midinote, PLseq(\\seq));\n\nv = VarG... |
[
{
"role": "user",
"content": "Write an Ndef with a sine source and a 200 Hz low-pass. (ugens sine, cutoff 200, lfo 0.8, 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: sine source through... |
[
{
"role": "user",
"content": "What does `SimpleNumber.trunc` do?"
},
{
"role": "assistant",
"content": "Truncate to multiple of aNumber (e.g. it rounds numbers down to a multiple of"
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// modulate frequency and index multiplier\n{ FBSineC.ar(LFNoise2.kr(1, 1e4, 1e4), LFNoise2.kr(1, 16, 17), 1, 1.005, 0.7) * 0.2 }.play(s;\n```"
},
{
"role": "assistant",
... |
[
{
"role": "user",
"content": "What does `Synth.addToHeadMsg` do?"
},
{
"role": "assistant",
"content": "See *new above for details on Returns: a message of the type s_new which can be bundled. When sent to the server this message will instantiate this synth. If aGroup is a Group it will be added... |
[
{
"role": "user",
"content": "Write a Pbind in minorPentatonic using Pwalk for the degrees. (scale minorPentatonic, seq Pwalk, dur 0.2, octave 6, instr sine, root 0)"
},
{
"role": "assistant",
"content": "The pattern is the composition here; `\\strum` spreads the chord:\n\n```supercollider\n(\nS... |
[
{
"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": "Write a self-contained SuperCollider patch that uses `LeastChange`. Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\n(\nd = { |amp = 1.0|\n var in1, in2;\n in1 = LFNoise0.ar(800, amp);\n in2 = SinOsc.ar(800);\n LeastChange.ar(... |
[
{
"role": "user",
"content": "Show me a self-contained SuperCollider patch using `PulseDivider`: bind everything it needs first."
},
{
"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, De... |
[
{
"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": "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": "Write a GrainBuf synth at 6 grains per second."
},
{
"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, Platfor... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `ReplaceOut`."
},
{
"role": "assistant",
"content": "```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... |
[
{
"role": "user",
"content": "What is Ndef used for?"
},
{
"role": "assistant",
"content": "Ndef is the JITLib node proxy: a named placeholder for a running signal chain that you can redefine while it plays. `Ndef(\\drone, { SinOsc.ar(55) * 0.1 }).play` starts it, and calling Ndef(\\drone, { ...... |
[
{
"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": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// default params\n{ QuadC.ar(SampleRate.ir/4) * 0.2 }.play(s;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis opened earlie... |
[
{
"role": "user",
"content": "How do I play a random majorPentatonic scale at octave 4? (scale majorPentatonic, seq Pshuf, dur 0.3, octave 4, 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": "Write a minimal SuperCollider example that uses `PV_BrickWall`."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\n\n(\n{\n var in, chain;\n in = WhiteNoise.ar(0.2);\n chain = FFT(LocalBuf(2048), in);\n chain = PV_BrickWall(chain, SinOsc.kr(0.1));... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Stethoscope`."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot\n{ SinOsc.ar([330, 440], 0, 0.4) }.play;\nStethoscope(s, 2);\n```"
}
] |
[
{
"role": "user",
"content": "Explain this code:\n```supercollider\n{ LPF.ar(Saw.ar(100), SinOsc.kr(0.5).exprange(200, 2000)) * 0.2 }.play;\n```"
},
{
"role": "assistant",
"content": "A sawtooth through a low-pass filter whose cutoff is swept slowly up and down — a classic filter\nsweep.\n\n- `S... |
[
{
"role": "user",
"content": "What is `VarGui`?"
},
{
"role": "assistant",
"content": "VarGui — slider / player gui to set envir variables and synth controllers and play synths, event patterns and tasks"
},
{
"role": "user",
"content": "What does `VarGui.new` do?"
},
{
"role"... |
[
{
"role": "user",
"content": "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": "How do I stop all sound?"
},
{
"role": "assistant",
"content": "s.freeAll stops every node on the server. On the language side, Ndef.clear and Pdef.clear clear the proxies. If a Pattern is still running, Pdef(\\name).stop does it; CmdPeriod immediately stops everyth... |
[
{
"role": "user",
"content": "Write a GrainBuf synth at 20 grains per second. (rate 20, dur 0.04, 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(\... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `IRand`."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\"help-IRand\", {\n Out.ar(\n IRand(0, 1), // play on random channel between 0 and 1\n FSinOsc.ar(500,\n 0, Line.kr(0.2, 0, 0.1,... |
[
{
"role": "user",
"content": "What is the difference between an audio bus and a control bus?"
},
{
"role": "assistant",
"content": "Both are numbered channels on the server used to move signal between nodes. An audio bus carries audio-rate signal and holds one or more audio channels; a control b... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Dust2`."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\"help-Dust2\", { |out = 0|\n Out.ar(out,\n Dust2.ar(200, 0.5)\n )\n}).play;\n);\n\n(\nSynthDef(\"help-Dust2\", { |out = 0|\n Out.ar(o... |
[
{
"role": "user",
"content": "Write a SuperCollider patch for running water (simple). Start by defining the values the patch depends on."
},
{
"role": "assistant",
"content": "```supercollider\n(\nNdef(\\simpleRunningWater).fadeTime = 4;\n\n\nNdef(\\simpleRunningWater, {\n var mod, freq, ampMod... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `OneZero`."
},
{
"role": "assistant",
"content": "```supercollider\n{ OneZero.ar(WhiteNoise.ar(0.5), 0.5) }.play\n\n{ OneZero.ar(WhiteNoise.ar(0.5), -0.5) }.play\n\n{ OneZero.ar(WhiteNoise.ar(0.5), Line.kr(-0.5, 0.5, 1... |
[
{
"role": "user",
"content": "Write a Pbind in minorPentatonic using Pseq for the degrees."
},
{
"role": "assistant",
"content": "Put the scale and the degree pattern in the `Pbind` and it will pick notes for you:\n\n```supercollider\n(\nSynthDef(\\fm_voice, { |out = 0, freq = 440, amp = 0.2|\n ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.