conversations listlengths 2 6 |
|---|
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// using timer to modulate sine frequency: the slower the trigger is the higher the frequency\n(\n{ var trig;\n trig = Impulse.kr(MouseX.kr(0.5, 20, 1));\n SinOsc.ar(Timer.kr(t... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `StandardN`."
},
{
"role": "assistant",
"content": "```supercollider\n// mouse-controlled param\n{ StandardN.ar(SampleRate.ir/2, MouseX.kr(0.9, 4)) * 0.3 }.play(s);\n```"
}
] |
[
{
"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": "What should I ask you?"
},
{
"role": "assistant",
"content": "SuperCollider questions: how a UGen works, how to write a SynthDef or a Pattern, why a patch does not compile. I am sc-mind, a 198M domain model, not a general assistant."
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ SinOsc.ar(BrownNoise.ar(100, 200) * 0.1 }.play;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis opened earlier is never cl... |
[
{
"role": "user",
"content": "Write a self-contained SuperCollider patch that uses `Resonz`. Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\"pitchFromNoise\", { arg out = 0;\n Out.ar(\n out,\n Resonz.ar(\n WhiteNoise.ar(15),\n L... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `LinExp`."
},
{
"role": "assistant",
"content": "```supercollider\n// linexp\n(\n{\n var mod = LFNoise2.ar(80);\n SinOsc.ar(mod.linexp(-1, 1, MouseX.kr(200, 8000, 1), MouseY.kr(200, 8000, 1))) * 0.1\n}.play;\n);\n\n// expra... |
[
{
"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": "How do I play a random minorPentatonic scale at octave 4? (scale minorPentatonic, seq Pwalk, dur 0.2, octave 4, instr fm, root 0)"
},
{
"role": "assistant",
"content": "The pattern is the composition here; `\\strum` spreads the chord:\n\n```supercollider\n(\nSynthDe... |
[
{
"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": "Give me a sine kick with a 0.06 s pitch sweep. (osc sine, sweep 0.06, decay 0.18, f0 220, f1 55, amp 0.8, rev 0)"
},
{
"role": "assistant",
"content": "Start with a swept sine, then shorten the decay to taste:\n\n```supercollider\n// kick drum: sine oscillator, 0.06... |
[
{
"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": "Explain `ArrayMin` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "ArrayMin — detect the smallest value (and its position) in an array of UGens Finds the minimum value in an Array of UGens, and outputs the value and the index. Category: UGens > Mult... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n{h={|f|1-LFTri.ar(f)};l={|s,e|Line.ar(s,e,1200,1,0,2)};FreeVerb.ar(h.(l.(147,5147))*h.(l.(1117,17))*h.(100)*h.([55,55.1])*0.05,0.7,1)}.play\n\n//Explanation of this piece - http://schemawound.com/post/40100438722/11-13-... |
[
{
"role": "user",
"content": "What does `UScoreEditor.soloEvents` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "(describe method Arguments: events — (describe argument here). Returns: (returnvalue)"
}
] |
[
{
"role": "user",
"content": "Explain `Volume` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "Volume — Model for the global volume of the synthesis server Internally used by Server. When volume value != 0 dB or muted, a server's volume object will create a synth for controlling... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `RunningMax`."
},
{
"role": "assistant",
"content": "```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... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n(\n{\n var saw, bpf;\n saw = Saw.ar(\n freq: [1700,2000],\n mul: LFPulse.kr(\n freq: [2,7],\n width: 0.115));\n bpf = LPF.ar(in: saw, freq: SinOsc.kr(1/3).range(250, 4000)); \n}.play;\n)\n```"
},
{... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\na = Synth(\\MoaningDialogue)\n\n//COOL TWEAKS\n//AngryTweak\na.set(\\feedback, 29,\\freq, 6)\n//CalmTweak\na.set(\\feedback, 60, \\freq, 0.8)\n//WeirdTweak\na.set(\\feedback, 2.8, \\freq, 2)\n\n(\nSynthDef(\\MoaningDialo... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `LinCongN`."
},
{
"role": "assistant",
"content": "```supercollider\n// randomly modulate params\n(\n{ LinCongN.ar(\n LFNoise2.kr(1, 1e4, 1e4),\n LFNoise2.kr(0.1, 0.5, 1.4),\n LFNoise2.kr(0.1, 0.1, 0.1),\n LFNoise2.kr(0.1... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n// won't work (the output is 0.5*0.0), which is why we need the DC UGen!\n{ 0.5 }.play\n\n// constantly zero\n{ DC.ar(0.0) }.play;\n\n\n// DC offset; will click on start and finish\n{ DC.ar(0.5) + SinOsc.ar(440, 0, 0.1) }... |
[
{
"role": "user",
"content": "What is `BelaScope`?"
},
{
"role": "assistant",
"content": "BelaScope — Bela's Oscilloscope interface"
},
{
"role": "user",
"content": "What does `BelaScope.scope` do?"
},
{
"role": "assistant",
"content": "Send an array of UGen data to Bela'... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `Hilbert`."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\ns.scope;\na = { Hilbert.ar(SinOsc.ar(100)) * -20.dbamp }.play;\na.release;\n```"
}
] |
[
{
"role": "user",
"content": "Write a granular texture, dry. (rate 28, 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(\ns.waitForBoot {\... |
[
{
"role": "user",
"content": "Write a self-contained SuperCollider patch that uses `Dgeom`. Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\n// example\n\n(\n{\n var a, freq, trig;\n a = Dgeom(1, 1.2, 15);\n trig = Impulse.kr(MouseX.kr(1, 40, 1));\n freq =... |
[
{
"role": "user",
"content": "Write a Pbind whose degrees repeat every Pseq cycle. (scale majorPentatonic, seq Pseq, dur 0.4, octave 6, 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": "Write a minimal SuperCollider example that uses `RunningMin`."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n SinOsc.ar(\n RunningMin.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... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n(\n~resize_enveloppe = { | levels, times |\n var reverted_levels, index;\n index = 0;\n reverted_levels = levels.reverse;\n while( { reverted_levels[index] == 0 && reverted_levels[index+1] == 0 }, { times[ times.size... |
[
{
"role": "user",
"content": "How do I make a kick that starts at 180 Hz and falls to 55 Hz?"
},
{
"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... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `LeastChange`."
},
{
"role": "assistant",
"content": "```supercollider\n(\nd = { |freq = 440|\n var internalFreq;\n internalFreq = LFNoise0.ar(0.3, 300, 800);\n SinOsc.ar(\n LeastChange.kr(freq, internalFreq) // two sou... |
[
{
"role": "user",
"content": "Explain `RedHiddenObject` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "RedHiddenObject — an invisible object An object that behaves like a normal RedObject but does not add itself to the world. Sometimes useful for non rendered objects e.g. point... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `Recorder`."
},
{
"role": "assistant",
"content": "```supercollider\nr = Recorder(s);\n{ GVerb.ar(Dust.ar(4)) }.play; // play on bus 64\nr.record(numChannels: 2);\nr.stopRecording;\n```"
}
] |
[
{
"role": "user",
"content": "Write a plucked string in SuperCollider."
},
{
"role": "assistant",
"content": "Pluck is a Karplus-Strong string: a noise burst into a tuned delay with feedback. The delay time is\nthe reciprocal of the frequency.\n\n```supercollider\n(\nSynthDef(\\pluck, { |out = 0... |
[
{
"role": "user",
"content": "What does `HS.free` do?"
},
{
"role": "assistant",
"content": "Free all related PHSplayers / PHSusePlayers, then stop, sleep and"
}
] |
[
{
"role": "user",
"content": "What does `U.setControlOut` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "(describe method Arguments: id — (describe argument here); bus — (describe argument here). Returns: (returnvalue)"
}
] |
[
{
"role": "user",
"content": "Explain `PLswitch1` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "PLswitch1 — dynamic scope Pswitch1 variant Takes Symbol args for later reference by the Streams, which will read from variables in the Environments of their instantiation. See PLx_s... |
[
{
"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": "Show another SuperCollider example using `Recorder`."
},
{
"role": "assistant",
"content": "```supercollider\nr = Recorder(s);\n{ GVerb.ar(Dust.ar(4)) }.play; // play on bus 64\nr.record(numChannels: 2);\nr.stopRecording;\n```"
}
] |
[
{
"role": "user",
"content": "Explain this SuperCollider code.\n```supercollider\n// no, it doesn't take a ugen in ...\n(\n{\n EnvGen.kr(\n Env.asr(0.1, 1.0, 0.5, \\welch),\n 1.0,\n FSinOsc.ar(1.0).range(0.0, 1.0),\n timeScale: 0.1\n ) * SinOsc.ar(440, 0, 0.3)\n}.play;\n);\... |
[
{
"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": "Explain this SuperCollider code.\n```supercollider\n// Pn advances Pgate each time its subpattern is repeated\n(\nPbind(\n \\degree, Pn(Pseq((0..7)), inf, \\step),\n \\mtranspose, Pgate(Pwhite(0, 5), inf, \\step),\n \\dur, 0.2\n).play\n);\n\n\n// Two different Pgates advance... |
[
{
"role": "user",
"content": "Write a complete SuperCollider patch built around `BufWr` that runs as it is."
},
{
"role": "assistant",
"content": "```supercollider\n(\n// allocate a buffer for writinig into\ns = Server.local;\ns.sendMsg(\"/b_alloc\", 0, 44100 * 2);\n);\n\n\n// write into the buf... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `PinkNoise`."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\"help-PinkNoise\", { |out = 0|\n Out.ar(out,\n PinkNoise.ar(0.4)\n )\n}).play;\n)\n```"
}
] |
[
{
"role": "user",
"content": "What does `LatoocarfianL.ar` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Latoocarfian chaotic generator Arguments: freq — Iteration frequency in Hertz; a — Equation variable; b — Equation variable; c — Equation variable; d — Equation vari... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n// same as above, but we use a NetAddr with a port of nil, so we can receive from a specific host, but from any port\n\nn = NetAddr(\"127.0.0.1\", nil); // the url should be the one of computer of app 2\no = OSCresponderN... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// ControlSpec-map can also be used to map ugens\n(\nvar spec;\nspec = [100, 18000, \\exp].asSpec;\n{\n var freq, osc;\n osc = SinOsc.kr(0.1).range(0, 1);\n freq = spec.map(os... |
[
{
"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": "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": "What does `LinkClock.tempo` do?"
},
{
"role": "assistant",
"content": "Sets or gets the current session tempo at the current logical time. Note that the tempo may be changed at any time by another peer; the LinkClock broadcasts a `\\tempo` notification in this case ... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\nb = Buffer.read(s, ExampleFiles.child);\n\n{ BufRd.ar(1, b, Sweep.ar(Impulse.ar(BufDur.kr(b).reciprocal), BufSampleRate.kr(b)) }.play;\n\nb.free\n```"
},
{
"role": "assis... |
[
{
"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": "Write a SuperCollider patch that uses `Splay` and actually plays. Assume nothing about the session."
},
{
"role": "assistant",
"content": "```supercollider\n(\nx = { |spread = 1, level = 0.1, center = 0|\n var n = 20;\n var snd = Splay.ar(LFPulse.ar({ 100.exprand(... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\na = NodeProxy(s);\na.reshaping = \\elastic;\na.play(0, 2); // play stereo\na.source = { BPF.ar(Dust.ar(8 ! 8), (0..5).nthPrime * 300, 0.01 * 20 };\na.numChannels; // 8\n```"
},... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```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.07, 30, 20), 0, 35, 40),... |
[
{
"role": "user",
"content": "What does `Pseg.new` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "timed embedding of values Arguments: levels — A Pattern that returns the levels. The first level is the initial value of the envelope, all subsequent values are interpolated... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\n Instr(\\helpTempoPlayer,{\n var t;\n t = TempoPlayer.new; // default global tempo\n Impulse.ar( t.kr )\n });\n\n Patch(\\helpTempoPlayer).play(atTime:1)\n```"
}... |
[
{
"role": "user",
"content": "What does `UGenInstr.argNames` do?"
},
{
"role": "assistant",
"content": "converts a single UGen into an Instr eg. UGenInstr(RLPF)"
}
] |
[
{
"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": "Write a granular texture, through a reverb. (rate 6, dur 0.1, interp 4, 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.wai... |
[
{
"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": "How do I make a kick that starts at 150 Hz and falls to 55 Hz? (osc saw, sweep 0.06, decay 0.12, f0 150, f1 55, amp 0.8, rev 1)"
},
{
"role": "assistant",
"content": "A kick is a sine with a fast pitch drop and a short amplitude envelope:\n\n```supercollider\n// kic... |
[
{
"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": "What does `Platform.declareFeature` do?"
},
{
"role": "assistant",
"content": "Declare aSymbol to be a feature present in the runtime. Class names and primitive names cannot be declared as"
}
] |
[
{
"role": "user",
"content": "What is `SimpleDMX` in SuperCollider?"
},
{
"role": "assistant",
"content": "SimpleDMX — an abstract DMX interface barebones DMX interface. Not intended to be used directly, but rather to be subclassed by a class that implements the actual DMX interface. For serial-... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\nNdef(\\lfo2, { LFNoise1.kr(LFNoise1.kr(0.1).exprange(1, 300) ! 2, 400, 800) });\nNdef(\\sound, { Blip.ar(Ndef.kr(\\lfo2), 30) * 0.2 }).play;\n\nNdef(\\lfo2, { [MouseX.kr(10, 300,... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\ns.boot\n\n{Perlin3.ar(Integrator.ar(K2A.ar(MouseX.kr(0, 0.1))), Integrator.ar(K2A.ar(MouseY.kr(0, 0.1))))}.play(s)\n\n{Perlin3.ar(*{Line.ar(0, 1000, 30)}.dup(3))}.plot(1\n```"
... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n(\n Ndef(\\x, {\n var output;\n var delayTime;\n var delayMax = 0.2;\n var delayAdd = 0.1;\n var pulseFreq = 0.5;\n var proxyMul = 2;\n var pulseMin = 40;\n var pulseMax = 130;\n var numOfEch... |
[
{
"role": "user",
"content": "What does `Cyton.setSampleRate` do?"
},
{
"role": "assistant",
"content": "The Cyton with USB Dongle (CytonSerial) cannot and will not stream data over 250SPS. With the WifiShield all rates are possible (CytonWifi). `0 = 16000"
}
] |
[
{
"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": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\np = SFPlayer.new; //shows open file dialog\n\n//specify the file\np = SFPlayer.new(Platform.resourceDir +/+ \"sounds/a11wlk01.wav\";\np.play;\np.stop;\np.gui;\n\n// shows open fi... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n(// * //watch the postWindow\na=[\"m\",\"x\",\"f\",\"k\",\"d\",\"p\"];\nx=Array;\ny=x.newClear(6);\n~mxfkdp=Task({\n inf.do({y.put(x.series(6,0,1).choose,a.scramble).postln;\n 0.03.wait;})}).play;\nm=fork({inf.do({\n ... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n// vibrato at 1 Hz, note the use of DC.ar UGen; a constant of 400.0 doesn't work\n{ SinOsc.ar(Vibrato.ar(DC.ar(400.0), 1, 0.02)) }.play\n\n// compare: k-rate freq input can be a constant\n{ SinOsc.ar(Vibrato.kr(400.0, 1, ... |
[
{
"role": "user",
"content": "Write a complete SuperCollider patch built around `BufWr` that runs as it is."
},
{
"role": "assistant",
"content": "```supercollider\n(\n// allocate a buffer for writinig into\ns = Server.local;\ns.sendMsg(\"/b_alloc\", 0, 44100 * 2);\n);\n\n\n// write into the buf... |
[
{
"role": "user",
"content": "What is `PlayerBinop` in SuperCollider?"
},
{
"role": "assistant",
"content": "PlayerBinop — the result of a binary op on a Player Category: Libraries > crucial > Players."
}
] |
[
{
"role": "user",
"content": "Give me an Ndef with an LFO at 0.3 Hz. (ugens tri, cutoff 3200, lfo 0.3, 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: tri source through a 3200 Hz low-pass\n... |
[
{
"role": "user",
"content": "What is `NodeProxy` in SuperCollider?"
},
{
"role": "assistant",
"content": "NodeProxy — a reference on a server Generally a proxy is a placeholder for something. A node proxy is a placeholder for something playing on a server and writes to a limited number of busse... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `PV_PhaseShift`."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\n\n(\nSynthDef(\"help-phaseShift\", { |out = 0|\n var in, chain;\n in = SinOsc.ar(500);\n chain = FFT(LocalBuf(2048... |
[
{
"role": "user",
"content": "Explain this SuperCollider patch.\n```supercollider\n////////////// xosc nufo is unused by now ///////////\n// OSCdef(\\xoscAlive, { |msg, time|\n// if (NTMI.nufo.lastInTime == 0 or: { NTMI.nufo.timeSinceLast > 10 }) {\n// Tdef(\\allLEDs).play;\n// };\n// NTMI.nufo.de... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `NamedControl`."
},
{
"role": "assistant",
"content": "```supercollider\n// multiple usage of the same name:\na = { SinOsc.ar(\\freq.kr(440, 1.0)) + Saw.ar(\\freq.kr(440, 1.0) * 0.5) * 0.1 }.play;\n\na.set(\\freq, 1220);\na.s... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{SinOsc.ar(Summer.kr(Impulse.kr(5), 1.5, 0, 0).poll * 100, 0, 0.1)}.play;\n\n(\n{\n var trig = Dust.kr(5);\n var reset = Impulse.kr(0.5);\n SinOsc.ar(Summer.kr(trig, [0.5, 0.2... |
[
{
"role": "user",
"content": "Write a kick drum with a 0.12 s decay. (osc fm, sweep 0.06, decay 0.12, f0 220, f1 40, amp 0.6, 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 swe... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\ns.boot;\n\n// create a new analyzer\nFreqScope.new(400, 200, 0, server: s);\n\n// basic sine\n{ SinOsc.ar(2000, 0, 0.25) }.play(s);\n\n// random saw\n{ RLPF.ar(Saw.ar(110, 0.2), LFNoise2.kr(1, 1e4, 1e4), LFNoise2.kr(1, 0.... |
[
{
"role": "user",
"content": "What does `EventSource.fire` do?"
},
{
"role": "assistant",
"content": "Emit an event to all registered listeners. This will send an event into the event processing"
}
] |
[
{
"role": "user",
"content": "What does `Function.performDegreeToKey` do?"
},
{
"role": "assistant",
"content": "use a function as a conversion from scale degree to note number. See also SequenceableCollection and Scale `// a strange"
}
] |
[
{
"role": "user",
"content": "What does `UserView.animate` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Whether the view shall redraw itself internally at a regular time interval (frame rate). See #-frameRate for the way to adjust that interval. The default value is Ar... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n(SynthDef(\\x, {|midi = 60, amp = 0.8| Out.ar(0, Pan2.ar(SinOsc.ar(midi.midicps, mul: EnvGen.kr(Env.perc(0, 0.5), timeScale: 0.5, levelScale: 0.3)), Rand(-1, 1)) * EnvGen.kr(Env.perc(0, 0.5), timeScale: 1.3*0.5, levelSca... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `CoinGate`."
},
{
"role": "assistant",
"content": "```supercollider\n(\na = SynthDef(\"help-TCoin\", { |out = 0, prob = 0.5|\n var trig;\n trig = CoinGate.kr(prob, Impulse.kr(10));\n Out.ar(out,\n SinOsc.ar(\n ... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `FreqScope`."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\n\n// create a new analyzer\nFreqScope.new(400, 200, 0, server: s);\n\n// basic sine\n{ SinOsc.ar(2000, 0, 0.25) }.play(s);\n\n// random saw... |
[
{
"role": "user",
"content": "What is `Symbol`?"
},
{
"role": "assistant",
"content": "Symbol — a unique name for something"
},
{
"role": "user",
"content": "What does `Symbol.isClassName` do?"
},
{
"role": "assistant",
"content": "Answer whether the symbol can be a class... |
[
{
"role": "user",
"content": "Explain this code:\n```supercollider\nMix.ar([SinOsc.ar(220, 0, 0.1), SinOsc.ar(330, 0, 0.1)])\n```"
},
{
"role": "assistant",
"content": "Sums two sine waves into one signal — a perfect fifth, 220 Hz and 330 Hz, at 0.1 amplitude each.\n\n`[SinOsc.ar(220, 0, 0.1), S... |
[
{
"role": "user",
"content": "Buffer.read fails and I get a path error. What should the path look like?"
},
{
"role": "assistant",
"content": "On Windows use forward slashes or escaped backslashes inside the string: `Buffer.read(s, \"C:/sounds/kick.wav\")`. A single backslash starts an escape se... |
[
{
"role": "user",
"content": "Write a GrainBuf synth at 16 grains per second. (rate 16, dur 0.15, interp 2, mode sweep, 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": "What does `NodeProxy.mold` do?"
},
{
"role": "assistant",
"content": "Adjust the proxy to a given rate / numChannels. If there are any child proxies that have elastic #-reshaping, they are adjusted accordingly. `a ="
}
] |
[
{
"role": "user",
"content": "Write a Pbind whose degrees repeat every Prand cycle. (scale minorPentatonic, seq Prand, dur 0.25, octave 6, instr fm, 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 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 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, PLnaryop('+', \\src, [\\dev]),\n \\dur, 0.1\n);\n);\n\n... |
[
{
"role": "user",
"content": "Write a SuperCollider patch that uses `FFTTrigger` 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, ph... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `SampleRate`."
},
{
"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), resulting in a 1 Hz beating\n(\n{\n v... |
[
{
"role": "user",
"content": "Give me a complete SuperCollider patch for poor man's panning: bind everything it needs before it is used."
},
{
"role": "assistant",
"content": "```supercollider\n// poor man's panning\n{\n var f, hornbostelwertheimerkonstante;\n f = MouseY.kr(1, 100, 1);\n horn... |
[
{
"role": "user",
"content": "Write a self-contained SuperCollider patch that uses `Dgeom`. Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\n// example\n\n(\n{\n var a, freq, trig;\n a = Dgeom(1, 1.2, 15);\n trig = Impulse.kr(MouseX.kr(1, 40, 1));\n freq =... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.