conversations listlengths 2 6 |
|---|
[
{
"role": "user",
"content": "How do I play a random minorPentatonic scale at octave 4? (scale minorPentatonic, seq Pwalk, dur 0.3, octave 4, instr sine, root 0)"
},
{
"role": "assistant",
"content": "The pattern is the composition here; `\\strum` spreads the chord:\n\n```supercollider\n(\nSynth... |
[
{
"role": "user",
"content": "What is `CutStream2` in SuperCollider?"
},
{
"role": "assistant",
"content": "CutStream2 — BBCut2 with live input Playback for a stream of audio which can be cut-up, with offsetting relative to the last beat marked by the clock. The stream can be any bus on the Serv... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\nIdentitySet[1, 2, 3].add(4);\nIdentitySet[1, 2, 3].add(3);\n// the two strings are equal but not identical\nIdentitySet[\"abc\", \"def\", \"ghi\"].add(\"def\");\n// symbols are guaranteed to be identical if they are equal... |
[
{
"role": "user",
"content": "Write a self-contained SuperCollider patch that uses `Dseq`. Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var a, freq, trig;\n a = Dseq([1, 3, 2, 7, 8], 3);\n trig = Impulse.kr(MouseX.kr(1, 40, 1));\n freq = Demand.... |
[
{
"role": "user",
"content": "How do I play a random majorPentatonic 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(\\fm_voice, { |out = 0, freq = 440, amp = 0.2|\n ... |
[
{
"role": "user",
"content": "Write a SuperCollider patch for Just experimenting with patterns that runs as it is, with nothing assumed about the session."
},
{
"role": "assistant",
"content": "```supercollider\n/* Some Funky Klangs - Totally botched the math on what I was trying to do but it so... |
[
{
"role": "user",
"content": "What does `EaseOutInSine.value` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Sinusoidal ease-out/in Arguments: t — a Float between 0.0 and 1.0.."
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `PackFFT`."
},
{
"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, phases, chain, sig;\n // Create simple undulati... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `DetectSilence`."
},
{
"role": "assistant",
"content": "```supercollider\n// this frees after the Decay has become quiet enough for a long enough time\n{ var signal = Decay.ar(Impulse.ar(0), 2, PinkNoise.ar(0.2)); Dete... |
[
{
"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": "Write a minimal SuperCollider example that uses `Timer`."
},
{
"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 = Impulse.kr(MouseX.kr(0.5, 20, 1)... |
[
{
"role": "user",
"content": "Write a complete SuperCollider patch built around `Out` that runs as it is."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\"help-out\", { |out = 0, freq = 440|\n var source;\n source = SinOsc.ar(freq, 0, 0.1);\n\n // write to the bus, a... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```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,\n Dust.ar(XLine.kr(200... |
[
{
"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": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\na = {LFTri.ar(100+(1000*Maths.ar(MouseX.kr, MouseY.kr, 0.2, 1, 0, 1, LFPulse.ar(2))[0]), 0, 0.1}.play\n```"
},
{
"role": "assistant",
"content": "A closing bracket is... |
[
{
"role": "user",
"content": "How do I build a live drone with Ndef at 55 Hz? (ugens tri, cutoff 200, lfo 0.8, freq 55, amp 0.12)"
},
{
"role": "assistant",
"content": "`Ndef` is a named proxy you can redefine while it is playing:\n\n```supercollider\n// Ndef drone: tri source through a 200 Hz l... |
[
{
"role": "user",
"content": "Write a warm pad in SuperCollider."
},
{
"role": "assistant",
"content": "Detuned saws through a slow filter envelope and a long release: the detune is what makes it wide.\n\n```supercollider\n(\nSynthDef(\\pad, { |out = 0, freq = 220, amp = 0.15, gate = 1|\n var... |
[
{
"role": "user",
"content": "Give me a granular patch with noise grain position and interp 2. (rate 28, dur 0.1, interp 2, mode noise, rev 1)"
},
{
"role": "assistant",
"content": "`GrainBuf` needs a buffer, a trigger and a grain duration:\n\n```supercollider\n// granular synth with GrainBuf\n(... |
[
{
"role": "user",
"content": "Write a Pbind in minorPentatonic using Prand for the degrees. (scale minorPentatonic, seq Prand, 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": "Write an Ndef at 110 Hz I can retune while it plays. (ugens tri, cutoff 200, lfo 0.1, 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: tri source throu... |
[
{
"role": "user",
"content": "What is `RedOverdub` in SuperCollider?"
},
{
"role": "assistant",
"content": "RedOverdub — overdub recording Overdub recording into a Buffer Category: Red > redUGens."
}
] |
[
{
"role": "user",
"content": "What does `FPSignal.enDebug` do?"
},
{
"role": "assistant",
"content": "Post incoming values to the post window with"
}
] |
[
{
"role": "user",
"content": "Show another SuperCollider example using `LorenzL`."
},
{
"role": "assistant",
"content": "```supercollider\n// randomly modulate params\n(\n{ LorenzL.ar(\n SampleRate.ir,\n LFNoise0.kr(1, 2, 10),\n LFNoise0.kr(1, 20, 38),\n LFNoise0.kr(1, 1.5, 2)\n) * 0.2 }.pla... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `Duty`."
},
{
"role": "assistant",
"content": "```supercollider\n(\n {\n var freq;\n freq = Duty.kr(\n Dseq([0.2, 0.3, 0.4, Dseq([1, 1, 1, 2, 1, 2], inf)]) / 2,\n Dust.kr(1), // control rate reset\n ... |
[
{
"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 GrainBuf synth at 20 grains per second. (rate 20, dur 0.15, interp 4, mode sweep, rev 1)"
},
{
"role": "assistant",
"content": "Granulation is `GrainBuf` plus a trigger rate; the position can move:\n\n```supercollider\n// granular synth with GrainBuf\n(\ns.w... |
[
{
"role": "user",
"content": "Write a SuperCollider patch for Breathing Ocean (a SuperCollider snippet). Start by defining the values the patch depends on."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var lew, bpf;\n lew = WhiteNoise.ar(\n mul: 0.5,\n add: 0.1); \n b... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\na = {LFTri.ar(100+(1000*Maths2.ar(MouseX.kr, MouseY.kr, SinOsc.ar(0.2, 0).range(0,1), 1-MouseButton.kr(lag:0.001))[0]), 0, 0.1}.play\n```"
},
{
"role": "assistant",
"... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n// connect will connect to all midi in devices\n// if you need to specify one,\n// check the sources at: MIDIClient.sources\n// and connect using MIDIIn.connect( source_index )\nMIDIIn.connect;\n\n// show incoming contr... |
[
{
"role": "user",
"content": "How do I build a live drone with Ndef at 82.5 Hz? (ugens sine, cutoff 2400, lfo 0.8, freq 82.5, amp 0.12)"
},
{
"role": "assistant",
"content": "`Ndef` holds the synth and the environment, so you can edit it live:\n\n```supercollider\n// Ndef drone: sine source thro... |
[
{
"role": "user",
"content": "Write a granular texture, through a reverb. (rate 20, dur 0.1, interp 2, mode noise, 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": "What is `PopUpTreeMenu` in SuperCollider?"
},
{
"role": "assistant",
"content": "PopUpTreeMenu — hierarchical PopUp menu This class is modelled after PopUpMenu, but implements submenus. Category: GUI."
}
] |
[
{
"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 an Ndef with a blip source and a 2400 Hz low-pass."
},
{
"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 2400 Hz low-pass\n(\nNdef(\\nd_blip_165_240... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `BinaryOpUGen`."
},
{
"role": "assistant",
"content": "```supercollider\na = WhiteNoise.ar; // a WhiteNoise\nb = a + 2; // a BinaryOpUGen.\nb.operator; // +\n\n// sound example\n(\n{\n var a = LFSaw.ar(300);\n var b ... |
[
{
"role": "user",
"content": "Give me a complete SuperCollider patch for flanger (a SuperCollider snippet): bind everything it needs before it is used."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\"flange\", {arg freq=440, release=0.1;\n var x, sig,out, mod1, depth, mfr... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```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, 10) }.play\n```"
},
{
... |
[
{
"role": "user",
"content": "What does `PV_MagShift.new` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "shift and stretch magnitude bin position. Arguments: buffer — FFT buffer.; stretch — Scale bin location by factor.; shift — Add an offset to bin position.."
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `MulAdd`."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\n\n// The mul and add arguments of SinOsc themselves use MulAdd!\n// These two examples will create precisely the same synth graph:\nx = { SinO... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ Crackle.ar(1.95, 0.5) }.play;\n\n// modulate chaos parameter\n{ Crackle.ar(Line.kr(1.0, 2.0, 3), 0.5, 0.5 }.play;\n```"
},
{
"role": "assistant",
"content": "A clos... |
[
{
"role": "user",
"content": "What can you do?"
},
{
"role": "assistant",
"content": "Write and explain SuperCollider: SynthDefs, UGens, Patterns, Ndef, buses and envelopes, and tell you why a patch is silent or will not compile. I am 198M parameters, so I am narrow on purpose."
}
] |
[
{
"role": "user",
"content": "Write a complete SuperCollider patch built around `LinRand` that runs as it is."
},
{
"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 ... |
[
{
"role": "user",
"content": "Show me a self-contained SuperCollider patch using `PV_BrickWall`: bind everything it needs first."
},
{
"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 = P... |
[
{
"role": "user",
"content": "What is `Dictionary`?"
},
{
"role": "assistant",
"content": "Dictionary — associative collection mapping keys to values"
},
{
"role": "user",
"content": "What does `Dictionary.new` do?"
},
{
"role": "assistant",
"content": "Creates a Dictiona... |
[
{
"role": "user",
"content": "Give me a granular patch with sweep grain position and interp 2. (rate 20, dur 0.2, 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 w... |
[
{
"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": "What does `MxTimeGui.guify` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Timeline view Arguments: parent; bounds; title."
}
] |
[
{
"role": "user",
"content": "What does `Convolution2.ar` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Real-time fixed kernel convolver. Arguments: in — Processing target.; kernel — Buffer index for the fixed kernel, may be modulated in combination with the trigger. It... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\np = Patch({ arg audio=0,ffreq=300;\n RHPF.ar(audio,ffreq,0.1)\n});\nq = Patch({\n Saw.ar(mul: 0.3)\n});\n\np.play;\nq.play;\n\n// adds a connection\n// but q is still out of ma... |
[
{
"role": "user",
"content": "What is `ScrollView` in SuperCollider?"
},
{
"role": "assistant",
"content": "ScrollView — A container view that can scroll its contents A container view which allows the user to scroll across contents when they exceed the view's bounds. Category: GUI > Views."
}
... |
[
{
"role": "user",
"content": "How do I put a bell in a reverb at mix 0.3? (verb gverb, room 0.85, damp 0.2, mix 0.3, source bell)"
},
{
"role": "assistant",
"content": "A send-style patch: dry signal plus the reverb on the tail:\n\n```supercollider\n// reverb: gverb on a bell\n(\nSynthDef(\\reve... |
[
{
"role": "user",
"content": "Explain `MultiOutUGen` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "MultiOutUGen — Superclass for all UGens with multiple outputs This is a superclass for all UGens with multiple outputs. MultiOutUGen creates the OutputProxy ugens needed for the ... |
[
{
"role": "user",
"content": "What model are you?"
},
{
"role": "assistant",
"content": "I am sc-mind, a 198M-parameter MiniMind-3-MoE with 64M active per token: 768 wide, 8 layers, four experts with top-1 routing, a 6,400-token vocabulary, trained from scratch on SuperCollider."
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\nfork {\n { SinOsc.ar(440 ! 2) * Line.kr(0, 1, 5, doneAction: Done.freeSelf) }.play.waitForFree;\n { PinkNoise.ar(1) * Line.kr(1, 0, 2, doneAction: Done.freeSelf) }.play.... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// default initial params\n{ FBSineC.ar(SampleRate.ir/4) * 0.2 }.play(s;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis ope... |
[
{
"role": "user",
"content": "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": "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": "Write a minimal SuperCollider example that uses `LFDNoise0`."
},
{
"role": "assistant",
"content": "```supercollider\n// try wiggling mouse quickly;\n// LFNoise frequently seems stuck, LFDNoise changes smoothly.\n\n{ LFNoise0.ar(MouseX.kr(0.1, 1000, 1), 0.1) }.play\... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ Blip.ar(LFNoise0.kr(9, 400, 500), 4, 0.2 }.play;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis opened earlier is never c... |
[
{
"role": "user",
"content": "What is `Condition`?"
},
{
"role": "assistant",
"content": "Condition — Block the execution of a thread"
},
{
"role": "user",
"content": "What does `Condition.new` do?"
},
{
"role": "assistant",
"content": "Create a new instance, set the test... |
[
{
"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": "What is `Pseries` in SuperCollider?"
},
{
"role": "assistant",
"content": "Pseries — arithmetic series pattern Returns a stream that behaves like an arithmetic series. Category: Streams-Patterns-Events > Patterns > List."
}
] |
[
{
"role": "user",
"content": "Write an Ndef at 220 Hz I can retune while it plays. (ugens blip, cutoff 200, 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: blip source through a ... |
[
{
"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 48, 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: sine os... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ FSinOsc.ar(800) * 0.2 }.play;\n\n{ FSinOsc.ar(XLine.kr(200, 4000, 1)) * 0.2 }.play;\n\n// loses amplitude towards the end\n{ FSinOsc.ar(FSinOsc.ar(XLine.kr(4, 401, 8), 0.0, 200... |
[
{
"role": "user",
"content": "Explain this SuperCollider patch.\n```supercollider\n// python preprocessor, given that you have python installed\n// thanks to tasos tsesmetzis\n\n(\nthis.preProcessor = PreProcessor.new.startDelimiter_(\"{-\").endDelimiter_(\"-}\");\n\n// a simple python call\ne = (\n lang:... |
[
{
"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": "Explain `EaseInQuad` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "EaseInQuad — Quadratic ease-in Easing equation for a quadratic (t^2) ease-in, accelerating from zero velocity. Category: Ease."
}
] |
[
{
"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": "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": "How should I organise a SuperCollider project on disk?"
},
{
"role": "assistant",
"content": "One folder per piece, with a fixed shape:\n\n```text\nmy-piece/\n synthdefs.scd // only SynthDef(...).add, loaded first\n material.scd // buffers, samples, scales\n ... |
[
{
"role": "user",
"content": "What is `SystemSynthDefs`?"
},
{
"role": "assistant",
"content": "SystemSynthDefs — SynthDefs assumed to exist on the server"
},
{
"role": "user",
"content": "What does `SystemSynthDefs.numChannels` do?"
},
{
"role": "assistant",
"content": "... |
[
{
"role": "user",
"content": "What is `Pprob` in SuperCollider?"
},
{
"role": "assistant",
"content": "Pprob — random values with arbitrary probability distribution Creates an integral table on instantiation (cpu intensive) which is then used by the streams to generate random values efficiently.... |
[
{
"role": "user",
"content": "Write a kick at amp 0.8 with a click. (osc fm, sweep 0.06, decay 0.35, f0 180, f1 48, 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.0... |
[
{
"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": "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": "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": "Write a minimal SuperCollider example that uses `T2A`."
},
{
"role": "assistant",
"content": "```supercollider\n// example\n(\n{\n var trig = Impulse.kr(MouseX.kr(1, 100, 1));\n Ringz.ar(T2A.ar(trig), 800, 0.01) * 0.4\n}.play;\n);\n\n// compare with K2A\n(\n{\n v... |
[
{
"role": "user",
"content": "Write a warm pad in SuperCollider."
},
{
"role": "assistant",
"content": "Detuned saws through a slow filter envelope and a long release: the detune is what makes it wide.\n\n```supercollider\n(\nSynthDef(\\pad, { |out = 0, freq = 220, amp = 0.15, gate = 1|\n var... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```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), // rq\n 0.5); // mul\n}... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `ProxySynthDef`."
},
{
"role": "assistant",
"content": "```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 c... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n(\nNdef(\\nodeTest, {\n // the input\n var input = Impulse.ar([1, 3, 5].reciprocal, phase: [0, 0.133, 0.5]).sum;\n\n // the nodes, each takes its predecessor as input and estimates the duration between two events. \n... |
[
{
"role": "user",
"content": "Show me a self-contained SuperCollider patch using `ProxySpace`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\n\np = ProxySpace.new;\np.fadeTime = 2; // fadeTime specifies crossfade\np[\\out].play; // monitor an em... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `MulAdd`."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\n\n// The mul and add arguments of SinOsc themselves use MulAdd!\n// These two examples will create precisely the same synth graph:\nx = { SinO... |
[
{
"role": "user",
"content": "Write a complete SuperCollider patch built around `Pmulpre` that runs as it is."
},
{
"role": "assistant",
"content": "```supercollider\n// sound example\n(\nSynthDef(\\sinegrain,\n { |out = 0, freq = 440, sustain = 0.02|\n var env;\n env = EnvGen.kr(Env.perc... |
[
{
"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": "What does this SuperCollider code do?\n```supercollider\n// start a server program from the cmdLine for testing\n~pid = unixCmd(Server.program + s.options.asOptionsString(57100));\n// kill just that server program by its pid:\nthisProcess.platform.killProcessByID(~pid);\n```"
... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `LFPulse`."
},
{
"role": "assistant",
"content": "```supercollider\n{ LFPulse.ar(50) * 0.1 }.play;\n```"
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\ns.boot;\n(\nz = {\n BLowPass4.ar(\n SoundIn.ar([0, 1]),\n MouseX.kr(10, 20000, \\exponential), // cutoff freq.\n MouseY.kr(0.1, 1.0, \\linear), // rq - compensate for 2... |
[
{
"role": "user",
"content": "What does `DelayC.ar` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Simple delay line with cubic interpolation. Arguments: in — The input signal.; maxdelaytime — The maximum delay time in seconds. used to initialize the delay buffer size.; ... |
[
{
"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 = Dibrown(0, 15, 1, 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}.pla... |
[
{
"role": "user",
"content": "What does `Mx.children` do?"
},
{
"role": "assistant",
"content": "all channels including the master Returns: array of MxChannel"
}
] |
[
{
"role": "user",
"content": "What does `MxUnit.moveToHead` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Container for a musical object (Instr, NDef, Spline etc); this is a single unit that has inlets and outlets which can be connected to other units Arguments: aGroup;... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// next example\n\nb = Buffer.read(s, ExampleFiles.child);\n\n(\n{\n var input = SoundIn.ar(0);\n var framesize = 2048; // must have power of two\n Convolution2L.ar(input, b, ... |
[
{
"role": "user",
"content": "Write an Ndef with a blip source and a 800 Hz low-pass. (ugens blip, cutoff 800, lfo 0.1, freq 82.5, amp 0.12)"
},
{
"role": "assistant",
"content": "`Ndef` holds the synth and the environment, so you can edit it live:\n\n```supercollider\n// Ndef drone: blip source... |
[
{
"role": "user",
"content": "What is `Red3D` in SuperCollider?"
},
{
"role": "assistant",
"content": "Red3D — abstract 3D class An abstract class for 3D shape classes. Category: Red > redUniverse > shapes."
}
] |
[
{
"role": "user",
"content": "Write a kick at amp 0.6 with a click. (osc saw, sweep 0.06, decay 0.12, f0 180, f1 55, 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 oscillator, 0... |
[
{
"role": "user",
"content": "How do I make a delay line?"
},
{
"role": "assistant",
"content": "`CombN.ar(in, maxdelaytime, delaytime, decaytime)` is a feedback delay: maxdelaytime is the buffer size, delaytime the actual delay (and it can modulate), decaytime how long the repeats take to die. ... |
[
{
"role": "user",
"content": "Explain `DoubleNestedAllpassC` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "DoubleNestedAllpassC — Nested Allpass filters as proposed by Vercoe and Pluckett Useful for reverberation, especially implementing Gardner reverbs. Category: UGens > Dela... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `GbmanN`."
},
{
"role": "assistant",
"content": "```supercollider\n// default initial params\n{ GbmanN.ar(MouseX.kr(20, SampleRate.ir)) * 0.1 }.play(s);\n\n// change initial params\n{ GbmanN.ar(MouseX.kr(20, SampleRate... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.