conversations listlengths 2 6 |
|---|
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\ns.boot\n{ SinOsc.ar([330, 440], 0, 0.4) }.play;\nStethoscope(s, 2;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis opened ea... |
[
{
"role": "user",
"content": "What does `UnixFILE.putString0` do?"
},
{
"role": "assistant",
"content": "Writes `aString` followed by a zero byte, like a null-terminated C"
}
] |
[
{
"role": "user",
"content": "What is `KeyClarity` in SuperCollider?"
},
{
"role": "assistant",
"content": "KeyClarity — Running score of maximum correlation of chromagram with key profiles A (12TET major/minor) key tracker based on a pitch class profile of energy across FFT bins and matching th... |
[
{
"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": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\n// Create a new empty List with size: 3\nx = List.new(3);\n\nx.postln; // -> List[ ]\n\n// Add numbers 0 to 4 to the List\n5.do({ |i| x.add(i) });\n\n// The list has been modi... |
[
{
"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": "Explain `PV_MagFreeze` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "PV_MagFreeze — Freeze magnitudes. Freezes magnitudes at current levels when `freeze` > 0. Category: UGens > FFT."
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `LorenzL`."
},
{
"role": "assistant",
"content": "```supercollider\n// vary frequency\n{ LorenzL.ar(MouseX.kr(20, SampleRate.ir)) * 0.3 }.play(s);\n```"
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `VarLag`."
},
{
"role": "assistant",
"content": "```supercollider\n(\n// used to lag pitch\n{\n SinOsc.ar( // sine wave\n VarLag.kr( // lag the modulato... |
[
{
"role": "user",
"content": "Show me a self-contained SuperCollider patch using `Stethoscope`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var f = { |l,h| SinOsc.kr(0.1, {pi.rand}).range(l, h) } ;\n Pulse.ar({ f.(20, 1000) }!6, { f.(0.0, 1) ... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n(\n~chaos={\n var signal, myFrequency, frequencyMin=0.1, frequencyMax=30, myAmplitude, amplitudeMin=0.01, amplitudeMax=0.6, myPhase, phaseMin=0, phaseMax=1.5;\n myFrequency = Array.fill(2, {[rrand(frequencyMin, frequen... |
[
{
"role": "user",
"content": "What is `IdentityDictionary` in SuperCollider?"
},
{
"role": "assistant",
"content": "IdentityDictionary — associative collection mapping keys to values An IdentityDictionary is an associative collection mapping keys to values. Keys and values can be arbitrary objec... |
[
{
"role": "user",
"content": "What does `ArraySpec.defaultControl` do?"
},
{
"role": "assistant",
"content": "datatype specifying an array with an itemSpec which describes its items"
}
] |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n(\nNdef(\\bitshift, {\n var t = PulseCount.ar(Impulse.ar(8e3));\n var sig = HPF.ar(\n ( \n ((t * 15) & (t >> 5)) |\n ((t * 5) & (t >> [3, 4])) |\n ((t * 2) & (t >> 9)) |\n ... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ Integrator.ar(LFPulse.ar(300, 0.2, 0.1), MouseX.kr(0.001, 0.999, 1)) }.play\n\n// used as an envelope\n{ Integrator.ar(LFPulse.ar(3, 0.2, 0.0004), 0.999, FSinOsc.ar(700), 0) }.... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `TExpRand`."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var trig = Dust.kr(10);\n SinOsc.ar(\n TExpRand.kr(300.0, 3000.0, trig)\n ) * 0.1\n}.play;\n);\n\n(\n{\n var trig = Dust.ar(MouseX.... |
[
{
"role": "user",
"content": "What does `PathName.endNumber` do?"
},
{
"role": "assistant",
"content": "returns a number at the end of PathName. Returns zero if there is no number."
}
] |
[
{
"role": "user",
"content": "What is `Formant` in SuperCollider?"
},
{
"role": "assistant",
"content": "Formant — Formant oscillator Generates a set of harmonics around a formant frequency at a given fundamental frequency. Category: UGens > Generators > Deterministic."
}
] |
[
{
"role": "user",
"content": "How do I make a kick that starts at 220 Hz and falls to 55 Hz? (osc sine, sweep 0.06, decay 0.25, f0 220, f1 55, 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: sine ... |
[
{
"role": "user",
"content": "What does `Server.sendSynthDef` do?"
},
{
"role": "assistant",
"content": "send a synthDef to the server that was written in a local"
}
] |
[
{
"role": "user",
"content": "What is `List`?"
},
{
"role": "assistant",
"content": "List — list of items of variable size"
},
{
"role": "user",
"content": "What does `List.new` do?"
},
{
"role": "assistant",
"content": "Creates a List with the initial capacity given by s... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\nb = Buffer.read(s, Platform.resourceDir +/+ \"sounds/a11wlk01.wav\");\n\n// This is very cool!\n\n(\n{\n Spring.ar(PlayBuf.ar(1, b, loop: 1)*Saw.ar(4));\n}.play;\n)\n```"
},
{
"role": "assistant",
"content":... |
[
{
"role": "user",
"content": "Show me a self-contained SuperCollider patch using `PulseCount`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\nSynthDef(\"help-PulseCount\", { |out = 0|\n Out.ar(out,\n SinOsc.ar(\n PulseCount.ar(Impulse.ar(10), Im... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ Gbman2DN.ar(MouseX.kr(20, SampleRate.ir*0.25), MouseX.kr(80, SampleRate.ir), 0.1) }.play(s);\n\n{ Gbman2DN.ar(11025, 22050, -0.7, -2.7, 0.1) }.play(s);\n\n{ Gbman2DN.ar(2200, 8... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// play around\n(\n{\n var input, numsamp, power;\n numsamp = 500;\n input = SoundIn.ar;\n power = MouseX.kr(0.1, 4);\n\n (RunningSum.ar(input ** power, numsamp)/n... |
[
{
"role": "user",
"content": "Show me a self-contained SuperCollider patch using `SampleRate`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\n// compares a 441 Hz sine tone derived from sample rate (44100 * 0.01, left)\n// with a 440 Hz tone (right), res... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\nb = BusPlug.new;\n{ Blip.ar(b + 5) }.play;\nb.bus.set(12;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis opened earlier is ... |
[
{
"role": "user",
"content": "What is `Pbeta` in SuperCollider?"
},
{
"role": "assistant",
"content": "Pbeta — random values that follow a Eulerian Beta Distribution Category: Streams-Patterns-Events > Patterns > Random."
}
] |
[
{
"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 `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": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// default initial params\n{ LatoocarfianN.ar(MouseX.kr(20, SampleRate.ir)) * 0.2 }.play(s;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: ... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{\nvar a, b, t = Impulse.kr(2);\na = { Dseq([1, 2, 3, 4, 5], inf) } * 100;\nb = a + 1;\nDemand.kr(t, 0, [a, b]).poll(t\n}.play\n```"
},
{
"role": "assistant",
"conten... |
[
{
"role": "user",
"content": "Write a Pbind in minorPentatonic using Pwalk for the degrees. (scale minorPentatonic, seq Pwalk, dur 0.25, octave 5, instr pluck, root 0)"
},
{
"role": "assistant",
"content": "The pattern is the composition here; `\\strum` spreads the chord:\n\n```supercollider\n(\... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// as frequency control...\n(\n{\nSinOsc.ar(\n LinCongN.ar(\n 40,\n LFNoise2.kr(0.1, 0.1, 1),\n LFNoise2.kr(0.1, 0.1, 0.1),\n LFNoise2.kr(0.1),\n 0, 500, 600\n )... |
[
{
"role": "user",
"content": "Write a granular texture, through a reverb. (rate 20, dur 0.04, interp 2, mode noise, 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.w... |
[
{
"role": "user",
"content": "What is `IdentitySet`?"
},
{
"role": "assistant",
"content": "IdentitySet — a set according to identity"
},
{
"role": "user",
"content": "What does `IdentitySet.add` do?"
},
{
"role": "assistant",
"content": "Add anObject to the IdentitySet. ... |
[
{
"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 this SuperCollider patch do?\n```supercollider\n// A beautiful sc140 tweet by Batuhan Bozkurt, parametrized for real-time changes\n(\n// Start sound here\na = { | rateL = 5, rateR = 6, blipMul = 100, blipAdd = 50, fMul = 50, kMul = 1 |\n f = LocalIn.ar(2).tanh;\n k ... |
[
{
"role": "user",
"content": "What does `SequenceableCollection.series` do?"
},
{
"role": "assistant",
"content": "Fill a SequenceableCollection with an arithmetic series. `Array.series(5, 10,"
}
] |
[
{
"role": "user",
"content": "Explain `EventShortcuts` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "EventShortcuts — holds default and user-defined dictionaries of shortcuts for events and event patterns Container for dictionaries of shortcuts for the event framework, which c... |
[
{
"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": "What does `Document.title` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Get / set the title (same as Arguments: newTitle — An instance of String.."
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ SinOsc.ar(ControlRate.ir * 0.1 }.play;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis opened earlier is never closed, so ... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\ns.boot;\n\n(\nvar winenv;\n// a custom envelope\nwinenv = Env([0, 1, 0], [0.5, 0.5], [8, -8]);\nz = Buffer.sendCollection(s, winenv.discretize, 1);\n\nSynthDef(\\fm_grain_test, { |out, gate = 1, amp = 1, envbuf|\n var pa... |
[
{
"role": "user",
"content": "Explain `PPulseCount` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "PPulseCount — UGenPatterns quark library Based on PulseCount Category: Streams-Patterns-Events > UGenPatterns > Modifiers."
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ Gbman2DC.ar(MouseX.kr(20, SampleRate.ir*0.25), MouseX.kr(80, SampleRate.ir), 0.1) }.play(s);\n\n{ Gbman2DC.ar(11025, 22050, -0.7, -2.7, 0.1) }.play(s);\n\n{ Gbman2DC.ar(2200, 8... |
[
{
"role": "user",
"content": "Write a SuperCollider patch that uses `Paddp` and actually plays. Assume nothing about the session."
},
{
"role": "assistant",
"content": "```supercollider\n// sound example\n(\nSynthDef(\\sinegrain,\n { |out = 0, freq = 440, sustain = 0.02|\n var env;\n env ... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `LinExp`."
},
{
"role": "assistant",
"content": "```supercollider\n// compare:\n(\n{\n var mod = SinOsc.kr(Line.kr(1, 10, 10));\n SinOsc.ar(mod * 400 + 500) * 0.1\n}.play;\n);\n\n(\n{\n var mod = SinOsc.kr(Line.kr(1... |
[
{
"role": "user",
"content": "Explain `SawDPW` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "SawDPW — super-efficient sawtooth oscillator with low aliasing A sawtooth oscillator using the \"Differentiated Parabolic Wave\" technique, which suppresses aliasing at a wide range of... |
[
{
"role": "user",
"content": "Give me a Pbind with pluck voices and a 0.25 rhythm. (scale minorPentatonic, seq Pshuf, dur 0.25, octave 6, instr pluck, root 0)"
},
{
"role": "assistant",
"content": "`Pbind` sequences an Event per beat, and `\\degree` + `\\scale` does the pitch:\n\n```supercollide... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `FBSineL`."
},
{
"role": "assistant",
"content": "```supercollider\n// default initial params\n{ FBSineL.ar(SampleRate.ir/4) * 0.2 }.play(s);\n```"
}
] |
[
{
"role": "user",
"content": "Show another SuperCollider example using `MIDIFreqPlayer`."
},
{
"role": "assistant",
"content": "```supercollider\n/*\n( // PlayerBinop not yet implemented\n\nPatch(\\monosynth,[\n BeatClockPlayer.new(16) * MIDIGatePlayer.new,\n MIDIFreqPlayer.new,\n CCPlayer(50... |
[
{
"role": "user",
"content": "Write a Pbind whose degrees repeat every Pwalk cycle. (scale minorPentatonic, seq Pwalk, dur 0.25, octave 5, instr sine, 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 minimal SuperCollider example that uses `Pause`."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\n\nSynthDef(\\a, { Out.ar(0, SinOsc.ar(800, 0, 0.2)) }).add;\n\nSynthDef(\\b, { |gate = 1| Out.ar(1, PinkNoise.ar(0.3)); Pause.kr(gate, 1001) })... |
[
{
"role": "user",
"content": "Explain `Pswitch1` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "Pswitch1 — embed values in a list according to a pattern of indices Category: Streams-Patterns-Events > Patterns > List > Indexing."
}
] |
[
{
"role": "user",
"content": "Write a self-contained SuperCollider patch that uses `FoldIndex`. Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\n// indexing into a table\n(\n{\n var buf = LocalBuf.newFrom([200, 300, 400, 500, 600, 800]);\n var freq = FoldInd... |
[
{
"role": "user",
"content": "Give me a Pbind with sine voices and a 0.2 rhythm. (scale minorPentatonic, seq Prand, dur 0.2, 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": "Who are you?"
},
{
"role": "assistant",
"content": "I am sc-mind, a 198M MiniMind-3-MoE trained from scratch on the SuperCollider source and help corpus. I write and explain SuperCollider: SynthDefs, UGens, Patterns, Ndef, the language/server split, and how to make ... |
[
{
"role": "user",
"content": "What does `Tempo.bpm` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "for control of tempo and for use in tempo based calculations Arguments: bpm."
}
] |
[
{
"role": "user",
"content": "What does `SimpleNumber.linexp` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "map the receiver from an assumed linear input range (inMin..inMax) to an exponential output range (outMin..outMax). The output range must not include zero. If the... |
[
{
"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": "What does `Pdefn.default` do?"
},
{
"role": "assistant",
"content": "Default source, if none is given. The default is a Pattern that returns 1.0 (This is 1 and not 0 to avoid deadlocks when used as a duration pattern. In a sense, 1 is just as generic as"
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `TExpRand`."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var trig = Dust.kr(10);\n SinOsc.ar(\n TExpRand.kr(300.0, 3000.0, trig)\n ) * 0.1\n}.play;\n);\n\n(\n{\n var trig = Dust.ar(MouseX.... |
[
{
"role": "user",
"content": "What is `SkipJack` in SuperCollider?"
},
{
"role": "assistant",
"content": "SkipJack — A utility for background tasks that survive cmd-period SkipJack is a utility to run a function in the background repeatedly, that survive cmd-period. Category: Scheduling, JITLib ... |
[
{
"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 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": "What is rq in BPF.ar?"
},
{
"role": "assistant",
"content": "rq is the reciprocal of Q, so it is a bandwidth control, not a Q control. Small rq means a narrow, resonant band; large rq means a wide, gentle one. The signature is `BPF.ar(in, freq, rq, mul, add)`. A com... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n// modulate fundamental frequency, formant freq stays constant\n{ Formant.ar(XLine.kr(400, 1000, 8), 2000, 800, 0.125) }.play\n\n// modulate formant frequency, fundamental freq stays constant\n{ Formant.ar(200, XLine.kr(4... |
[
{
"role": "user",
"content": "What does `SequenceableCollection.unixCmdGetStdOut` do?"
},
{
"role": "assistant",
"content": "Similar to #-unixCmd except that the stdout of the process is returned (synchronously) rather than sent to the post window. This object should be an array of strings where... |
[
{
"role": "user",
"content": "What does `USession.name` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "(describe method Arguments: x — (describe argument here). Returns: (returnvalue)"
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Dust`."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\"help-Dust\", { |out = 0|\n Out.ar(out,\n Dust.ar(200, 0.5)\n )\n}).play;\n);\n\n(\nSynthDef(\"help-Dust\", { |out = 0|\n Out.ar(out,\... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// an envelope in a synth\n(\n{\n var env = Env([0, 1, 0.5, 1, 0], [0.01, 0.5, 0.02, 0.5]);\n SinOsc.ar(470) * EnvGen.kr(env, doneAction: Done.freeSelf)\n}.play\n);\n// an enve... |
[
{
"role": "user",
"content": "How do I structure a live-coding performance in one file?"
},
{
"role": "assistant",
"content": "One Tdef per musical layer, each with its own loop, so you can start and stop layers while the set\nruns.\n\n```supercollider\n(\nTdef(\\kick, {\n loop {\n Syn... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n(\ns = Server.local;\nServer.default = s;\ns.boot;\n);\n\n(\nx = Pbind(\\midinote, Pseries(60, 1, 10), \\dur, 0.5).asStream;\ny = Pbind(\\midinote, Pseries(90, -1, 10), \\dur, 0.5).asStream;\n\nz = Pseq([2, 3, 1, 2], 1).a... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\ns.boot;\n(\nz = { // thru\nBAllPass.ar(\n SoundIn.ar([0, 1]),\n MouseX.kr(10, 18000, \\exponential),\n 0.8, // rq\n 0.5); // mul\n}.play)\nz.release;\n\n(\nz = { // like a ba... |
[
{
"role": "user",
"content": "Explain `LFDNoise3` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "LFDNoise3 — Dynamic cubic noise Similar to LFNoise2, it generates polynomially interpolated random values at a rate given by the `freq` argument, with 3 differences: Category: UGens... |
[
{
"role": "user",
"content": "What does `HilbertHIm.calcCoeffs` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Generate imaginary Arguments: size — The size of the kernel used for Hartley Phasing filtering.."
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n//code that utilizes the glitch.\n//warning! extremely loud.\n//note: might not sound the same on all soundcards\n(\n{GlitchRHPF.ar(\n BrownNoise.ar(1.dup),\n 0.5,\n Saw.kr(1... |
[
{
"role": "user",
"content": "Give me a bell with damping 0.2 on the reverb. (verb freeverb, room 0.5, damp 0.2, mix 0.45, source bell)"
},
{
"role": "assistant",
"content": "Put the reverb inside the `SynthDef` so it is part of the voice:\n\n```supercollider\n// reverb: freeverb on a bell\n(\nS... |
[
{
"role": "user",
"content": "What does `Sieve.shift` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Shift the Sieve's list by Arguments: addOffset — An Integer.."
}
] |
[
{
"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": "What does `RedObject.update` do?"
},
{
"role": "assistant",
"content": "Moves the object by updating the #-loc, #-vel and #-accel instance"
}
] |
[
{
"role": "user",
"content": "Write a Pbind whose degrees repeat every Prand cycle."
},
{
"role": "assistant",
"content": "The pattern is the composition here; `\\strum` spreads the chord:\n\n```supercollider\n(\nSynthDef(\\sine_pad, { |out = 0, freq = 440, amp = 0.2|\n var env = EnvGen.kr(En... |
[
{
"role": "user",
"content": "What is the difference between the language and the server?"
},
{
"role": "assistant",
"content": "sclang runs your code, the clock and Patterns, and builds UGen graphs. scsynth performs the DSP in real time. They communicate over OSC, which is why a language-side m... |
[
{
"role": "user",
"content": "Give me a granular patch with sweep grain position and interp 2. (rate 10, dur 0.07, interp 2, 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 ... |
[
{
"role": "user",
"content": "What does `EventSource.remove` do?"
},
{
"role": "assistant",
"content": "Disconnects this EventStream from the parent EventStream (if it has a parent). If the EventStream is not assigned to any variable anymore it will be gc'ed."
}
] |
[
{
"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": "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 `StandardL`."
},
{
"role": "assistant",
"content": "```supercollider\n// vary frequency\n{ StandardL.ar(MouseX.kr(20, SampleRate.ir)) * 0.3 }.play(s);\n```"
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `List`."
},
{
"role": "assistant",
"content": "```supercollider\n// Create a new empty collections with size 3:\nx = Array.new(3);\ny = Array.new(3);\nz = List.new(3);\n\n// Try to add 7 items to the array and list.\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 is `APF` in SuperCollider?"
},
{
"role": "assistant",
"content": "APF — FIXME: APF purpose. FIXME: APF description. Category: UGens > Filters > Linear, UGens > Undocumented."
}
] |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n(\n// use input amplitude to control Pulse amplitude - use headphones to prevent feedback.\nSynthDef(\"help-AmplitudeMod\",{ arg out=0;\n Out.ar(out,\n Pulse.ar(90, 0.3, Amplitude.kr(SoundIn.ar))\n )\n}).play;\n\n);\... |
[
{
"role": "user",
"content": "How do I play a random minorPentatonic scale at octave 6?"
},
{
"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(\\pluck, { |out = 0, freq = 440, amp = 0.2|\n var... |
[
{
"role": "user",
"content": "Write a GrainBuf synth at 10 grains per second. (rate 10, dur 0.2, interp 2, mode noise1, 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(\... |
[
{
"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*Maths.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 drum with a 0.5 s decay."
},
{
"role": "assistant",
"content": "Start with a swept sine, then shorten the decay to taste:\n\n```supercollider\n// kick drum: fm oscillator, 0.06 s pitch sweep\n(\nSynthDef(\\kick_synth, { |out = 0, amp = 0.6|\n var pit... |
[
{
"role": "user",
"content": "What does `DataBuffer.dataFull` do?"
},
{
"role": "assistant",
"content": "a Boolean flag indicating if the data buffer filled up to its"
}
] |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```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), 440.reciprocal, 440.reciprocal, 10,\n coef: MouseX.kr(-0.999, 0.999)... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `BufSamples`."
},
{
"role": "assistant",
"content": "```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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.