conversations
listlengths
2
6
[ { "role": "user", "content": "What does `HSpar.new` do? What arguments does it take?" }, { "role": "assistant", "content": "Creates a new HSpar Arguments: server — Must be running server.; ugenFuncs — Collection of functions that define the synths.; demandLatency — Latency of help synths in seco...
[ { "role": "user", "content": "How do I granulate a sample with 0.1 s grains?" }, { "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 var buf = Buffer.read(s, Platform.resourceD...
[ { "role": "user", "content": "What were you trained on?" }, { "role": "assistant", "content": "The official SuperCollider tree, 321 Quarks, sccode.org, scsynth.org, sc3-plugins and this project's own sessions: 25.8M tokens, then 6,000 supervised rows whose code answers all compile." } ]
[ { "role": "user", "content": "Show me a self-contained SuperCollider patch using `RecordBuf`: bind everything it needs first." }, { "role": "assistant", "content": "```supercollider\nb = Buffer.alloc(s, s.sampleRate * 5, 1); // a 5 second 1 channel Buffer\n\n// record for four seconds\n(\nx = Sy...
[ { "role": "user", "content": "Write a minimal SuperCollider example that uses `LinPan2`." }, { "role": "assistant", "content": "```supercollider\n// hear the difference, LinPan having a slight drop in the middle (yeah, it's subtle)...\n{ LinPan2.ar(SinOsc.ar(440), Line.kr(-1, 1, 5)) }.play;\n\n/...
[ { "role": "user", "content": "Give me a saw kick with a 0.06 s pitch sweep. (osc saw, sweep 0.06, decay 0.5, 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: saw oscill...
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ SinOsc.ar(MouseY.kr(40, 10000, 1), 0, 0.1 }.play;\n```" }, { "role": "assistant", "content": "A closing bracket is missing: the parenthesis opened earlier is never ...
[ { "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 minimal SuperCollider example that uses `LinRand`." }, { "role": "assistant", "content": "```supercollider\n(\nSynthDef(\"help-LinRand\", { |out = 0, minmax = 1|\n Out.ar(out,\n FSinOsc.ar(\n LinRand(200.0, 10000.0, minmax),\n 0, Line.kr(0.2, 0...
[ { "role": "user", "content": "Explain `SynthDef` in SuperCollider briefly." }, { "role": "assistant", "content": "SynthDef — Client-side representation of a synth definition The server application uses synth definitions as templates for creating Synth nodes. (Methods such as Function#-play, etc....
[ { "role": "user", "content": "Write a minimal SuperCollider example that uses `TRand`." }, { "role": "assistant", "content": "```supercollider\n(\n{\n var trig = Dust.kr(10);\n SinOsc.ar(\n TRand.kr(300, 3000, trig)\n ) * 0.1\n}.play;\n);\n\n(\n{\n var trig = Dust.ar(MouseX.kr(1, 8000...
[ { "role": "user", "content": "How do I play a random minorPentatonic scale at octave 5? (scale minorPentatonic, seq Prand, dur 0.3, octave 5, instr fm, root 0)" }, { "role": "assistant", "content": "`Pbind` sequences an Event per beat, and `\\degree` + `\\scale` does the pitch:\n\n```supercollid...
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ LFNoise2.ar(1000, 0.25) }.play;\n\n// modulate frequency\n\n{ LFNoise2.ar(XLine.kr(1000, 10000, 10), 0.25) }.play;\n\n// as frequency modulator\n(\n{ SinOsc.ar(\n LFNoise2.a...
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\nNdef(\\sound).fadeTime = 3;\n(\nNdef(\\sound, { |fadeTime = 1, gate = 1|\n var e = Env.adsr(fadeTime, 0.01, 0.4, fadeTime).ar(2, gate);\n SinOsc.ar(100 + (e * 700), SinOsc.ar(2...
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// Play it with the mouse\n{DFM1.ar(PinkNoise.ar(mul: 0.5), MouseX.kr(80, 5000, 'exponential'), MouseY.kr(0.1, 1.2))}.play;\n\n// Throbby bass\n{DFM1.ar(Pulse.ar(100, mul:0.4) + ...
[ { "role": "user", "content": "What does `WebView.onLoadStarted` do?" }, { "role": "assistant", "content": "Sets the object to be evaluated when a page load" } ]
[ { "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 `Penvir.new` do? What arguments does it take?" }, { "role": "assistant", "content": "use an environment when embedding the pattern in a stream Arguments: envir — an environment with objects to embed.; pattern — pattern or stream, usually a Pfunc, Prout.; i...
[ { "role": "user", "content": "What is a SynthDef?" }, { "role": "assistant", "content": "A SynthDef is a named, compiled server-side instrument: a UGen graph plus named controls. You build one with SynthDef(\\name, { |args| ... }).add, and then play instances with Synth(\\name)." } ]
[ { "role": "user", "content": "Write a kick at amp 0.8 with a click. (osc fm, sweep 0.06, decay 0.35, f0 180, f1 55, amp 0.8, rev 1)" }, { "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 swee...
[ { "role": "user", "content": "Write a self-contained SuperCollider patch for Swarm of sound files. Define every value it uses." }, { "role": "assistant", "content": "```supercollider\nb = SoundFile.collectIntoBuffers(\"yourSoundFileFolder/*\"); // By Bjørn Houdorf, December 21, 2012\n\n(\n{\nvar...
[ { "role": "user", "content": "Write an Ndef at 82.5 Hz I can retune while it plays. (ugens sine, cutoff 200, lfo 0.8, freq 82.5, amp 0.12)" }, { "role": "assistant", "content": "Use `Ndef` when the patch has to change without stopping:\n\n```supercollider\n// Ndef drone: sine source through a 20...
[ { "role": "user", "content": "Write an Ndef with a sine source and a 3200 Hz low-pass." }, { "role": "assistant", "content": "Use `Ndef` when the patch has to change without stopping:\n\n```supercollider\n// Ndef drone: sine source through a 3200 Hz low-pass\n(\nNdef(\\nd_sine_220_3200, { |freq ...
[ { "role": "user", "content": "What does this SuperCollider code do?\n```supercollider\n// a Buffer for the UGens to use, one second at the current sample rate\nb = Buffer.alloc(s, s.sampleRate * 1, 1);\n\n// write a signal into a delay, tap it at multiple times\nSynthDef(\\test, { |out, buffer|\n var src, ...
[ { "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": "Give me a fm kick with a 0.06 s pitch sweep. (osc fm, sweep 0.06, decay 0.12, f0 180, f1 40, amp 0.6, rev 0)" }, { "role": "assistant", "content": "A kick is a sine with a fast pitch drop and a short amplitude envelope:\n\n```supercollider\n// kick drum: fm oscillat...
[ { "role": "user", "content": "Show another SuperCollider example using `BrownNoise`." }, { "role": "assistant", "content": "```supercollider\n{ SinOsc.ar(BrownNoise.ar(100, 200)) * 0.1 }.play;\n```" } ]
[ { "role": "user", "content": "How do I put a bell in a reverb at mix 0.45? (verb freeverb2, room 0.5, damp 0.2, mix 0.45, source bell)" }, { "role": "assistant", "content": "`FreeVerb` is in the core library; the room and damp arguments do the work:\n\n```supercollider\n// reverb: freeverb2 on a...
[ { "role": "user", "content": "Write a kick drum with a 0.25 s decay. (osc fm, sweep 0.06, decay 0.25, f0 220, f1 55, 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 drum: fm oscillator, 0....
[ { "role": "user", "content": "What is `Tdef`?" }, { "role": "assistant", "content": "Tdef — task reference definition" }, { "role": "user", "content": "What does `Tdef.all` do?" }, { "role": "assistant", "content": "A global IdentityDictionary with all proxies." }, { ...
[ { "role": "user", "content": "Write a Pbind in majorPentatonic 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(\\pluck, { |out = 0, freq = 440, amp = 0.2|\n ...
[ { "role": "user", "content": "How do I play a random majorPentatonic scale at octave 5? (scale majorPentatonic, seq Pshuf, dur 0.25, octave 5, instr fm, root 0)" }, { "role": "assistant", "content": "Put the scale and the degree pattern in the `Pbind` and it will pick notes for you:\n\n```superc...
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\ns.boot;\nz = Bus.control(s, 16);\nz.setn({ |i| (i * 5).nthPrime } ! 16 * 5 + 100);\na = BusPlug.for(z);\n{ Splay.ar(SinOsc.ar(a.kr(3, MouseX.kr(0, 25))) * 0.1 }.play; // selectiv...
[ { "role": "user", "content": "Show me a self-contained SuperCollider patch using `Dswitch`: bind everything it needs first." }, { "role": "assistant", "content": "```supercollider\n(\n {\n var d, trig;\n d = Dswitch([\n Dwhite(3, 4, 2),\n Dwhite(0, 1, 2),\n Dseq([1, 1, 1, 0...
[ { "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 Lag3.kr( // lag the modulator\n LFPulse.kr(4, 0, 0.5, 50, 400), // frequency modulator\n Line.kr(0, ...
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// result of BufRd is used as index for the next BufRd\n// needs Buffer c prepared above\n\n(\ny = {\n GFIS.ar(\n { |x| BufRd.ar(1, c, c.numFrames * x) },\n (LFDNoise3.ar(...
[ { "role": "user", "content": "What is `RedEffectsRack` in SuperCollider?" }, { "role": "assistant", "content": "RedEffectsRack — allround effects rack for RedEffectModule A class for grouping RedEffectModules. Category: Red > redEffectsRack." } ]
[ { "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": "What does `Pen.rotate` do?" }, { "role": "assistant", "content": "Rotates subsequent drawing around the Point `x@y` by the amount angle in radians" } ]
[ { "role": "user", "content": "What does `Buffer.updateInfo` do? What arguments does it take?" }, { "role": "assistant", "content": "Sends a b_query message to the server, asking for a description of this buffer. Upon reply this Buffer's instance variables are automatically Arguments: action — A ...
[ { "role": "user", "content": "Write a complete SuperCollider patch built around `Pseq` that runs as it is." }, { "role": "assistant", "content": "```supercollider\n(\nSynthDef(\\help_sinegrain,\n { |out = 0, freq = 440, sustain = 0.05|\n var env;\n env = EnvGen.kr(Env.perc(0.01, sustain, ...
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\nSynthDef(\"help-GrayNoise\", { |out = 0|\n Out.ar(out,\n GrayNoise.ar(-20.dbamp)\n )\n}).play;\n```" }, { "role": "assistant", "content": "A closing bracket i...
[ { "role": "user", "content": "What does `PdefGui.editStrings` do? What arguments does it take?" }, { "role": "assistant", "content": "a compileString that recreates the Pdef's envir at Arguments: edKeys — Default value is nil. `// assume g from above is still there`." } ]
[ { "role": "user", "content": "What is `Latency`?" }, { "role": "assistant", "content": "Latency — Measure audio latency for multiple channels" }, { "role": "user", "content": "What does `Latency.testAudio` do?" }, { "role": "assistant", "content": "main method to measure ...
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\nSynthDef(\"help-PrintVal\",{PrintVal.kr(SinOsc.kr(440,0,0.1), 100)}).play\n\n\n//two at once\n(\nSynthDef(\"help-PrintVal\",{\n\nPrintVal.kr(SinOsc.kr(440,0,0.1), 100, 1);\n\nPri...
[ { "role": "user", "content": "Write a SuperCollider patch that uses `Limiter` and actually plays. Assume nothing about the session." }, { "role": "assistant", "content": "```supercollider\n(\n// example signal to process\n{\n var z;\n z = Decay2.ar(\n Impulse.ar(8, LFSaw.kr(0.25, -0.6, 0.7)...
[ { "role": "user", "content": "Give me an Ndef with an LFO at 0.1 Hz. (ugens blip, 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: blip source through a 800 Hz ...
[ { "role": "user", "content": "What is `PInRange` in SuperCollider?" }, { "role": "assistant", "content": "PInRange — UGenPatterns quark library Based on InRange Category: Streams-Patterns-Events > UGenPatterns > Modifiers." } ]
[ { "role": "user", "content": "Write a Pbind whose degrees repeat every Pwalk cycle. (scale majorPentatonic, seq Pwalk, dur 0.25, octave 6, instr fm, root 0)" }, { "role": "assistant", "content": "Put the scale and the degree pattern in the `Pbind` and it will pick notes for you:\n\n```supercolli...
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\n{\n# x,y,z = RosslerL.ar(MouseX.kr(1, 200));\nPan2.ar(Pulse.ar(x.range(100,1000), y.range(0,1), 0.3), z)\n}.play(s)\n```" }, { "role": "assistant", "content": "A c...
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ XFade2.ar(Saw.ar, SinOsc.ar, LFTri.kr(0.1) }.play\n```" }, { "role": "assistant", "content": "A closing bracket is missing: the parenthesis opened earlier is never ...
[ { "role": "user", "content": "How current is your SuperCollider knowledge?" }, { "role": "assistant", "content": "It comes from a snapshot of the SuperCollider repository (documentation, class library and examples) plus code I can reason about. So classes and arguments in that snapshot I know we...
[ { "role": "user", "content": "Write a minimal SuperCollider example that uses `LatoocarfianL`." }, { "role": "assistant", "content": "```supercollider\n// default initial params\n{ LatoocarfianL.ar(MouseX.kr(20, SampleRate.ir)) * 0.2 }.play(s);\n```" } ]
[ { "role": "user", "content": "Write a Pbind whose degrees repeat every Prand cycle. (scale minorPentatonic, seq Prand, dur 0.25, octave 5, instr sine, root 0)" }, { "role": "assistant", "content": "The pattern is the composition here; `\\strum` spreads the chord:\n\n```supercollider\n(\nSynthDef...
[ { "role": "user", "content": "What is 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": "Write a Pbind in minorPentatonic using Pwalk for the degrees. (scale minorPentatonic, seq Pwalk, dur 0.25, octave 4, instr pluck, root 0)" }, { "role": "assistant", "content": "`Pbind` sequences an Event per beat, and `\\degree` + `\\scale` does the pitch:\n\n```sup...
[ { "role": "user", "content": "Write an Ndef at 110 Hz I can retune while it plays. (ugens blip, cutoff 2400, lfo 0.8, freq 110, 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 th...
[ { "role": "user", "content": "Write a complete SuperCollider patch built around `Compander` that runs as it is." }, { "role": "assistant", "content": "```supercollider\n(\n{\n var z;\n\n // signal (clean)\n z = Decay2.ar(\n Impulse.ar(8, 0, LFSaw.kr(0.3, 1, -0.3, 0.3)),\n 0.001,\n 0....
[ { "role": "user", "content": "Give me a bell with damping 0.2 on the reverb. (verb freeverb, room 0.85, damp 0.2, mix 0.45, source bell)" }, { "role": "assistant", "content": "A send-style patch: dry signal plus the reverb on the tail:\n\n```supercollider\n// reverb: freeverb on a bell\n(\nSynth...
[ { "role": "user", "content": "Write a chord progression with Pbind." }, { "role": "assistant", "content": "Put an array of degrees in the pattern, use \\strum to spread the chord, and the default instrument\nplays all notes of each event.\n\n```supercollider\n(\nPbind(\n \\scale, Scale.minor,...
[ { "role": "user", "content": "Write a minimal SuperCollider example that uses `BHiPass`." }, { "role": "assistant", "content": "```supercollider\ns.boot;\n(\nz = {\n BHiPass.ar(\n SoundIn.ar([0, 1]),\n MouseX.kr(10, 20000, \\exponential), // cutoff freq.\n MouseY.kr(0.0, 1.0, \\linear)...
[ { "role": "user", "content": "What does this SuperCollider code do?\n```supercollider\n// hear the difference, LinPan having a slight drop in the middle (yeah, it's subtle)...\n{ LinPan2.ar(SinOsc.ar(440), Line.kr(-1, 1, 5)) }.play;\n\n// ... whereas Pan2 is more smooth\n{ Pan2.ar(SinOsc.ar(440), Line.kr(-1...
[ { "role": "user", "content": "What does `InstrSynthDef.finishBuild` do?" }, { "role": "assistant", "content": "Extends SynthDef enabling the extra capabilities of Instr with Patch" } ]
[ { "role": "user", "content": "Write a kick at amp 0.6 with no click. (osc saw, sweep 0.06, decay 0.35, f0 180, 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: saw oscillator, 0.06 s pitch s...
[ { "role": "user", "content": "What is `Server`?" }, { "role": "assistant", "content": "Server — Object representing a server application" }, { "role": "user", "content": "What does `Server.new` do?" }, { "role": "assistant", "content": "Create a new Server instance." },...
[ { "role": "user", "content": "What is `RedInstrumentModule` in SuperCollider?" }, { "role": "assistant", "content": "RedInstrumentModule — abstract class Category: Red > redModule." } ]
[ { "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\nv = Vowel()\nv.addFormants([3000,4000], -6, [200, 200])\n\n{Formants.ar(100, v) * 0.1 }.play\n{Formants.ar(100, Vowel()) * 0.1}.play\n \n{[Formants.ar(100, Vowel()) * 0.1, For...
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\ns.boot;\nx = { SinOsc.ar((Line.kr(0, 10, 10).snap(1, 0.3, 1) + 60).poll.midicps, 0, -24.dbamp }.play\n```" }, { "role": "assistant", "content": "A closing bracket is ...
[ { "role": "user", "content": "What are the server's default sample rate and block size?" }, { "role": "assistant", "content": "44100 Hz and 64 samples per block by default, so the control rate is 44100/64 = 689.06 Hz. You can read them from the language with `s.sampleRate` and `s.options.blockSi...
[ { "role": "user", "content": "I get 'Message not understood' on a nil variable." }, { "role": "assistant", "content": "`~buffer` (or any variable) was never assigned, or it was assigned in a different environment. Environment variables are per-environment: a `~buf` set in one server-side file bl...
[ { "role": "user", "content": "What were you trained on?" }, { "role": "assistant", "content": "The official SuperCollider tree, 321 Quarks, sccode.org, scsynth.org, sc3-plugins and this project's own sessions: 25.8M tokens, then 6,000 supervised rows whose code answers all compile." } ]
[ { "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 LinCongC.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 SuperCollider patch that uses `Scale` and actually plays. Assume nothing about the session." }, { "role": "assistant", "content": "```supercollider\n(\nr = {\n var scale = Scale.choose.postln;\n SinOsc.ar(\n (\n DegreeToKey.kr(\n scale.as(Lo...
[ { "role": "user", "content": "Write a Pbind in majorPentatonic using Pshuf for the degrees. (scale majorPentatonic, seq Pshuf, dur 0.3, octave 5, instr sine, root 0)" }, { "role": "assistant", "content": "`Pbind` sequences an Event per beat, and `\\degree` + `\\scale` does the pitch:\n\n```super...
[ { "role": "user", "content": "How do I play a random majorPentatonic scale at octave 4? (scale majorPentatonic, seq Pshuf, dur 0.3, octave 4, instr pluck, root 0)" }, { "role": "assistant", "content": "`Pbind` sequences an Event per beat, and `\\degree` + `\\scale` does the pitch:\n\n```supercol...
[ { "role": "user", "content": "How do I build a live drone with Ndef at 220 Hz? (ugens saw, 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: saw source through a 3200 ...
[ { "role": "user", "content": "What is `Tdef`?" }, { "role": "assistant", "content": "Tdef — task reference definition" }, { "role": "user", "content": "What does `Tdef.all` do?" }, { "role": "assistant", "content": "A global IdentityDictionary with all proxies." }, { ...
[ { "role": "user", "content": "Explain `AbstractDispatcher` in SuperCollider briefly." }, { "role": "assistant", "content": "AbstractDispatcher — Dispatches incoming messages to Functions Instances of AbstractDispatcher dispatch incoming messages (e.g. MIDI, OSC), to registered instances of Abstr...
[ { "role": "user", "content": "What is your name?" }, { "role": "assistant", "content": "sc-mind. I am the 198M MiniMind-3-MoE this repository trains on SuperCollider source and help text." } ]
[ { "role": "user", "content": "What does this SuperCollider patch do?\n```supercollider\n// proceed with caution. start at min volume, and not with your expensive speakers.\n\nfork{b=Buffer.alloc(s,512,1);inf.do{b.cheby({[1,0].choose}!2);{(Shaper.ar(b,SinOsc.ar(55,0,Line.kr(1,0,2,1,0,2))))!2}.play;0.1.wait;}...
[ { "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": "Write a SuperCollider patch that uses `GrayNoise` and actually plays. Assume nothing about the session." }, { "role": "assistant", "content": "```supercollider\n(\nSynthDef(\"help-GrayNoise\", { |out = 0|\n Out.ar(out,\n GrayNoise.ar(-20.dbamp)\n )\n}).play;\n)...
[ { "role": "user", "content": "Write a GrainBuf synth at 28 grains per second. (rate 28, dur 0.07, interp 4, mode sweep, 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": "Explain this SuperCollider patch.\n```supercollider\n// if NTMI.helloSnd is not already defined in startup file, do this:\nfork {\n NTMI.numChans.do { |i|\n { LFDNoise3.ar(\n XLine.kr(\n exprand(2000, 5000),\n exprand(2000, 20000),\n 0.25, doneActi...
[ { "role": "user", "content": "Write a SuperCollider patch that uses `Paddpre` 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 en...
[ { "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{ FBSineN.ar(SampleRate.ir/4) * 0.2 }.play(s;\n```" }, { "role": "assistant", "content": "A closing bracket is missing: the parenthesis ope...
[ { "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": "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": "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 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": "Write a GrainBuf synth at 14 grains per second. (rate 14, dur 0.15, interp 2, mode sweep, 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 ...
[ { "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": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\na = {LFTri.ar(50+(1000*Maths.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```" }, { "role...
[ { "role": "user", "content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\nb = Bus(\\audio, 0, 2);\ns.bind {\n SynthDef(\\sinPerc, { |out = 0|\n var signal = SinOsc.ar * Env.sine(0.1).ar(gate: Impulse.ar(2));\n OffsetOut.ar(out, signal ! 2) }\...
[ { "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": "What is `PV_PhaseShift90` in SuperCollider?" }, { "role": "assistant", "content": "PV_PhaseShift90 — Shift phase by 90 degrees. Shift phase of all bins by 90 degrees. Category: UGens > FFT." } ]
[ { "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": "What does `CutMixer.new` do? What arguments does it take?" }, { "role": "assistant", "content": "BBCut2 volume and panning control Arguments: outbus — Bus number for final output. The stereo output will be placed on this bus plus the one above. The default is thus 0...
[ { "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(\"...