conversations listlengths 2 6 |
|---|
[
{
"role": "user",
"content": "Explain this SuperCollider patch.\n```supercollider\n// (thor magnusson) (2006)\n\n// An instrumentalist inside a synthdef.\n\n(\nSynthDef(\\drummer, { arg out=0, tempo=4;\n var snare, base, hihat;\n tempo = Impulse.ar(tempo); // for a drunk drummer replace Impulse with Dust ... |
[
{
"role": "user",
"content": "Explain `FoaMagW` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "FoaMagW — First Order Ambisonic (FOA) Magnitude of Soundfield Complex Energy Vector Return the Magnitude of Complex Energy Vector, ||W||, of a first order ambisonic (B-format) signal.... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `NamedControl`."
},
{
"role": "assistant",
"content": "```supercollider\n// use NamedControl to create a number of multichannel controls:\n\na = { SinOsc.ar(NamedControl.kr(\\freq, [300, 330, 370], [1, 0.3, 0.02])).sum... |
[
{
"role": "user",
"content": "How do I play a random majorPentatonic scale at octave 5? (scale majorPentatonic, seq Pwalk, dur 0.4, 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```super... |
[
{
"role": "user",
"content": "What does `RedHuffman.bytesToBinaryString` do?"
},
{
"role": "assistant",
"content": "Converts an array of 8-bit bytes into a binary"
}
] |
[
{
"role": "user",
"content": "Give me a Pbind with pluck voices and a 0.4 rhythm. (scale majorPentatonic, seq Prand, dur 0.4, octave 4, instr pluck, root 0)"
},
{
"role": "assistant",
"content": "The pattern is the composition here; `\\strum` spreads the chord:\n\n```supercollider\n(\nSynthDef(\... |
[
{
"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": "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 make this brighter?\n```supercollider\n{ LPF.ar(Saw.ar(110), 400) * 0.2 }.play;\n```"
},
{
"role": "assistant",
"content": "Raise the cutoff. 400 Hz is well below the harmonics that carry brightness, so open it to 2000-4000 Hz:\n\n```supercollider\n{ LPF.ar... |
[
{
"role": "user",
"content": "What is `FFT` in SuperCollider?"
},
{
"role": "assistant",
"content": "FFT — Fast Fourier Transform The fast fourier transform analyzes the frequency content of a signal, which can be useful for audio analysis or for frequency-domain sound processing (phase vocoder)... |
[
{
"role": "user",
"content": "What is `DigitalIO`?"
},
{
"role": "assistant",
"content": "DigitalIO — Read or write data to a digital pin"
},
{
"role": "user",
"content": "What does `DigitalIO.ar` do?"
},
{
"role": "assistant",
"content": "The output of this UGen is alway... |
[
{
"role": "user",
"content": "What does `LID.initializeLID` do?"
},
{
"role": "assistant",
"content": "Initialize the LID subsystem, this method is called automatically when calling the method"
}
] |
[
{
"role": "user",
"content": "What is `Pdefn`?"
},
{
"role": "assistant",
"content": "Pdefn — non event stream reference definition"
},
{
"role": "user",
"content": "What does `Pdefn.all` do?"
},
{
"role": "assistant",
"content": "A global IdentityDictionary with all prox... |
[
{
"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 Impulse.ar( Tempo.kr )\n });\n\n Patch(\\helpTempoPlayer).play(atTime:1)\n;\nTempo.bpm = 100;\n\nTempo.bpm = 180;\n```"
},
{
"role":... |
[
{
"role": "user",
"content": "Explain `Not` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "Not — holds a Constraint and validates that the test object fails that Contraints validation Category: Libraries > crucial > Constraints."
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `LatoocarfianN`."
},
{
"role": "assistant",
"content": "```supercollider\n// default initial params\n{ LatoocarfianN.ar(MouseX.kr(20, SampleRate.ir)) * 0.2 }.play(s);\n```"
}
] |
[
{
"role": "user",
"content": "Give me a sine kick with a 0.06 s pitch sweep. (osc sine, sweep 0.06, decay 0.12, 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 me a self-contained SuperCollider patch using `LPF`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\nSynthDef(\\default, { arg out=0, freq=440, amp=0.1, pan=0, gate=1;\n var z;\n z = LPF.ar(\n Mix.new(VarSaw.ar(fr... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\ns.boot;\nb = Buffer.alloc(s, s.sampleRate);\n(\n{\n MultiTap.ar(`[0.1, 0.2, 0.3, 0.4], `[0.1, 0.2, 0.4, 0.8],\n Decay.ar(Dust.ar(2), 0.1, PinkNoise.ar), bufnum: b.bufnum)\n}.... |
[
{
"role": "user",
"content": "Show me a self-contained SuperCollider patch using `BufSampleRate`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\nb = Buffer.read(s, ExampleFiles.child);\n\n// compares a 1102.5 Hz sine tone (11025 * 0.1, left) with a 1100 ... |
[
{
"role": "user",
"content": "Explain `ScopeView` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "ScopeView — A buffer plotting view. ScopeView is mainly intended to support the implementation of Stethoscope (an oscilloscope), FreqScopeView (a basic frequency spectrum plotting v... |
[
{
"role": "user",
"content": "What does `AbstractResponderFunc.permanent` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Get or set whether this responder func is persists when the user executes Cmd-. If false this will be disabled and removed from the global lists. The ... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `BufWr`."
},
{
"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 buffer with a BufWr\n(\n... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `CuspL`."
},
{
"role": "assistant",
"content": "```supercollider\n// vary frequency\n{ CuspL.ar(MouseX.kr(20, SampleRate.ir), 1.0, 1.99) * 0.3 }.play(s);\n\n// mouse-controlled params\n{ CuspL.ar(SampleRate.ir/4, Mouse... |
[
{
"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": "Write a minimal SuperCollider example that uses `LatoocarfianC`."
},
{
"role": "assistant",
"content": "```supercollider\n// default initial params\n{ LatoocarfianC.ar(MouseX.kr(20, SampleRate.ir)) * 0.2 }.play(s);\n```"
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ Gbman2DL.ar(MouseX.kr(20, SampleRate.ir*0.25), MouseX.kr(80, SampleRate.ir), 0.1) }.play(s);\n\n{ Gbman2DL.ar(11025, 22050, -0.7, -2.7, 0.1) }.play(s);\n\n{ Gbman2DL.ar(2200, 8... |
[
{
"role": "user",
"content": "What does `ControlSpec.new` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "numerical input specification Arguments: minval — The minimum value of the range.; maxval — The maximium value of the range.; warp — a Warp, a symbol (e.g. \\lin or \... |
[
{
"role": "user",
"content": "Write a Pbind whose degrees repeat every Pwalk cycle. (scale minorPentatonic, seq Pwalk, dur 0.2, 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": "Write an Ndef at 82.5 Hz I can retune while it plays. (ugens blip, 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: blip source through a 3... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `DigitalIn`."
},
{
"role": "assistant",
"content": "```supercollider\n// turn on and off a sine oscillator\n\n(\nSynthDef(\"help-DigitalIn\", { |out = 0|\n Out.ar(out,\n SinOsc.ar(500, 0, 0.1 * DigitalIn.ar(0))\n ... |
[
{
"role": "user",
"content": "How do I add reverb with FreeVerb?"
},
{
"role": "assistant",
"content": "`FreeVerb.ar(in, mix, room, damp)` — mix 0..1 is dry/wet, room 0..1 is the size (0.5 is a small room, 0.9 is a hall), damp 0..1 rolls off the high end of the tail. Put it after your sound: `Fr... |
[
{
"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": "How do I make a kick that starts at 180 Hz and falls to 40 Hz? (osc fm, sweep 0.06, decay 0.5, f0 180, f1 40, amp 0.8, rev 0)"
},
{
"role": "assistant",
"content": "The pitch envelope is what makes it read as a drum, not the oscillator:\n\n```supercollider\n// kick ... |
[
{
"role": "user",
"content": "What does `NumberBox.decrement` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Decrements the value by #-step multiplied by Arguments: factor — Any number.."
}
] |
[
{
"role": "user",
"content": "Write a kick at amp 0.8 with no click. (osc saw, sweep 0.06, decay 0.25, f0 150, f1 40, amp 0.8, rev 0)"
},
{
"role": "assistant",
"content": "The pitch envelope is what makes it read as a drum, not the oscillator:\n\n```supercollider\n// kick drum: saw oscillator, ... |
[
{
"role": "user",
"content": "What does `String.readNew` do?"
},
{
"role": "assistant",
"content": "Read the entire contents of a File and return them as a new"
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ SinOsc.ar(SinOsc.ar(0.3).range(440, 660), 0, 0.5 * 0.1 }.play;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis opened earl... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `TwoZero`."
},
{
"role": "assistant",
"content": "```supercollider\n{ TwoZero.ar(WhiteNoise.ar(0.125), XLine.kr(20, 20000, 8), 1) }.play\n```"
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\nr = Recorder(s);\n{ GVerb.ar(Dust.ar(4)) }.play; // play on bus 64\nr.record(numChannels: 2;\nr.stopRecording;\n```"
},
{
"role": "assistant",
"content": "A closing b... |
[
{
"role": "user",
"content": "What does `JITGui.skipjack` do?"
},
{
"role": "assistant",
"content": "(common to all JITGuis) the skipjack that watches the object's state so it can be"
}
] |
[
{
"role": "user",
"content": "I get 'syntax error, unexpected NAME' on a block that looks fine."
},
{
"role": "assistant",
"content": "Almost always a missing semicolon between two statements — SuperCollider does not insert them.\n\n```supercollider\n// broken: two statements, no separator\n{ va... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ Out.ar(87, SinOsc.ar(MouseX.kr(340, 1000, 1) * [1, 2, 3], 0, 0.2)) }.play;\nx = Monitor.new.play(87, 3, 0, fadeTime: 3;\nx.stop;\nx.play;\n```"
},
{
"role": "assistant"... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\n{ Latoocarfian2DC.ar(\n SampleRate.ir/8,\n SampleRate.ir/2,\n LFNoise2.kr(2.dup, 1.5, 1.5),\n d:LFNoise2.kr(2.dup, 0.5, 1.5),\n mul:0.2\n) }.play(s);\n```"
},
{
"... |
[
{
"role": "user",
"content": "What is `LocalBuf`?"
},
{
"role": "assistant",
"content": "LocalBuf — Allocate a buffer local to the synth"
},
{
"role": "user",
"content": "What does `LocalBuf.newFrom` do?"
},
{
"role": "assistant",
"content": "Allocates a new buffer from a... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\n{\n var f, sf;\n sf = K2A.ar(MouseX.kr > 0.5) > 0;\n f = Ball.ar(sf, MouseY.kr(0.01, 20, 1), 0.01);\n f = f * 10 + 500;\n SinOsc.ar(f, 0, 0.2)\n}.play;\n```"
},
{
... |
[
{
"role": "user",
"content": "How do I play a random majorPentatonic scale at octave 6? (scale majorPentatonic, seq Pwalk, dur 0.25, octave 6, instr pluck, root 0)"
},
{
"role": "assistant",
"content": "Put the scale and the degree pattern in the `Pbind` and it will pick notes for you:\n\n```sup... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\n{\n var freq, trig;\n var in = Dseq([1, 2, 3], inf);\n var rep = Dstutter(Diwhite(2, 8, inf), in);\n trig = Impulse.kr(MouseX.kr(1, 40, 1));\n freq = Demand.kr(trig, 0, r... |
[
{
"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\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.kr(1, 8000, 1));\n SinOsc.ar... |
[
{
"role": "user",
"content": "How do I granulate a sample with 0.04 s grains? (rate 6, dur 0.04, interp 2, mode noise1, 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": "What does `Harmonics.cutoff` do?"
},
{
"role": "assistant",
"content": "Returns 1.0 to the nth place, fills the rest with 0.0"
}
] |
[
{
"role": "user",
"content": "Write a SuperCollider patch for number 10 for Quiz 4a. Start by defining the values the patch depends on."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var tri, bpf;\n tri = LFTri.ar(\n freq: [440,340, 513],\n mul: LFPulse.kr(\n freq: ... |
[
{
"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\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": "What does this SuperCollider code do?\n```supercollider\n//try passing a signal through the hair cell; it won't come out like a pure sine, more like an impulse train stimulated by that input\n{ Pan2.ar(HairCell.ar(SinOsc.ar(440)),0.0) }.play;\n\n//modulation effects\n{ Pan2.ar(... |
[
{
"role": "user",
"content": "Explain `EaseOutQuart` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "EaseOutQuart — Quartic ease-out Easing equation for a quartic (t^4) ease-out, decelerating to zero velocity. Category: Ease."
}
] |
[
{
"role": "user",
"content": "Explain this SuperCollider code.\n```supercollider\n(\np = Pbind(\n \\instrument, \\synth_1a,\n \\preAmp, PL(\\preAmp), \n \\amp, PL(\\amp), \n \\midinote, PLseq(\\seq) + PL(\\seqAdd), \n \\dur, 0.2\n);\n\n~spec = 4.collect { |i| [\\seq, [12*i + 24, 12*i + 48, \\... |
[
{
"role": "user",
"content": "Explain `SampleSpec` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "SampleSpec — datatype specifying a Sample Category: Spec, Libraries > crucial > Spec, Libraries > crucial > Buffers > Specs."
}
] |
[
{
"role": "user",
"content": "How do I make a kick that starts at 220 Hz and falls to 40 Hz?"
},
{
"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 oscillator, 0.06 s pitch sweep\n(\nSynthDef(\\kick_syn... |
[
{
"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, PLbeta(\\lo, \\hi, \\p1, \\p2),\n \\dur, 0.1\n);\n);\n\n// prep... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\ns.boot;\n\nb = Buffer.alloc(s,2048,1);\n\n(\nSynthDef(\"help-brick\", { arg out=0, bufnum=0;\n var in, chain;\n in = {WhiteNoise.ar(0.2)}.dup;\n chain = FFT(bufnum, in);\n ch... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n(\n~lfd={\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, frequency... |
[
{
"role": "user",
"content": "Write a complete SuperCollider patch built around `TIRand` that runs as it is."
},
{
"role": "assistant",
"content": "```supercollider\n(\nSynthDef(\"help-TIRand\", {\n var trig, outBus;\n trig = Dust.kr(10);\n outBus = TIRand.kr(0, 1, trig); // play on random ch... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\n var freq;\n\n freq = StreamKrDur(\n Pbrown(40,100,100,inf),\n `[ 1,2, 0.25], // an array\n 0.05);\n\n Tempo.bpm = 100; // times are in beats\n Patch... |
[
{
"role": "user",
"content": "What does `PV_MagSquared.new` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Square magnitudes. Arguments: buffer — FFT buffer.."
}
] |
[
{
"role": "user",
"content": "What does `Error.reportStage2` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "This is used to print any custom message an exception might have. If you want to add some information to your own error, this is where you place Arguments: stream ... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `Klank`."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\nKlank.ar([ // the multichannel-expansion\n `[[500, 1078, 1201.5, 1723], nil, [1, 1, 0.5, 0.3]], // left channel\n `[[700, 1071, 1053, 1723], nil, [1, 1... |
[
{
"role": "user",
"content": "Write a SuperCollider patch for Digital Bird sounds that runs as it is, with nothing assumed about the session."
},
{
"role": "assistant",
"content": "```supercollider\n(\nNdef(\\birdy, {arg freq=1500, amp=0.5, rate=10;\n var osc, son, convIn, rand;\n osc=LFCub;\n... |
[
{
"role": "user",
"content": "What is `PCombN` in SuperCollider?"
},
{
"role": "assistant",
"content": "PCombN — UGenPatterns quark library Based on CombN Category: Streams-Patterns-Events > UGenPatterns > Modifiers."
}
] |
[
{
"role": "user",
"content": "Explain `Resonz` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "Resonz — Resonant filter. This is the same as Ringz, except that it has a constant gain at 0 dB instead of being constant skirt. Category: UGens > Filters > Linear."
}
] |
[
{
"role": "user",
"content": "How do I play a random majorPentatonic scale at octave 4? (scale majorPentatonic, seq Pshuf, dur 0.4, 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": "What is `UnaryOpUGen` in SuperCollider?"
},
{
"role": "assistant",
"content": "UnaryOpUGen — Apply a unary operation to the values of an input ugen UnaryOpUGens are created as the result of a unary operator applied to a UGen. `(SinOsc.ar(200).abs).dump;` As in the e... |
[
{
"role": "user",
"content": "What is `BinaryOpFunction`?"
},
{
"role": "assistant",
"content": "BinaryOpFunction — represent a binary operation on a function"
},
{
"role": "user",
"content": "What does `BinaryOpFunction.value` do?"
},
{
"role": "assistant",
"content": "E... |
[
{
"role": "user",
"content": "Write an Ndef with a tri source and a 3200 Hz low-pass. (ugens tri, cutoff 3200, lfo 0.8, freq 55, amp 0.12)"
},
{
"role": "assistant",
"content": "Use `Ndef` when the patch has to change without stopping:\n\n```supercollider\n// Ndef drone: tri source through a 320... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// synth definition with raising frequency\n\n(\nSynthDef(\\synth_0, { |devFactor = 0.1, devFreq = 10, amp = 0.1|\n var freq = XLine.kr(400, 1200, 10); \n Out.ar(0, SinOsc.... |
[
{
"role": "user",
"content": "What does `UGen.lag3ud` do?"
},
{
"role": "assistant",
"content": "Wraps the receiver in a Lag3UD UGen, smoothing its output by `lagtimeU` and"
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// default params\n{ QuadC.ar(SampleRate.ir/4) * 0.2 }.play(s;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis opened earlie... |
[
{
"role": "user",
"content": "Explain `LocalOut` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "LocalOut — Write to buses local to a synth. LocalOut writes to buses that are local to the enclosing synth. The buses should have been defined by a LocalIn ugen. The `channelsArray` ... |
[
{
"role": "user",
"content": "Which keys does a Pbind understand?"
},
{
"role": "assistant",
"content": "The ones you use constantly are \\instrument (a SynthDef name), \\dur (seconds), \\degree (scale degree), \\midinote, \\freq, \\amp, \\legato (note length as a fraction of \\dur), and \\scale... |
[
{
"role": "user",
"content": "Explain this SuperCollider patch.\n```supercollider\n/// Installing sc3-plugins quarks\n\n// If you installed the sc3-plugins to a user location:\n~sc3plugs = Quarks(\nreposPath: \"https://sc3-plugins.svn.sourceforge.net/svnroot/sc3-plugins/build\",\nlocalPath: Platform.userApp... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n// Pseq returns one item in the list after the other\n(\nPseq([\n (note: 2, sustain: 1, dur: 1.5),\n (note: [5, 7], sustain: 0.5, dur: 0.8),\n (note: [2, 6], sustain: 1, dur: 0.8)\n]).play;\n);\n\n// Pbind binds parame... |
[
{
"role": "user",
"content": "I get \"Message 'ar' not understood\". Why?"
},
{
"role": "assistant",
"content": "You called a rate method on something that is not a UGen. `Env.ar(...)` and `Buffer.ar(...)` are the classic cases: Env is a language-side description and is played by `EnvGen.ar(env,... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\nVowel().brightenExp(1).dBs.postln; \nVowel().brightenExp(0.1).dBs.postln;\nVowel().brightenExp(1.5).dBs.postln;\n\n{Formants.ar(100, Vowel(\\a, \\bass).brightenExp(MouseX.kr(0,5)... |
[
{
"role": "user",
"content": "Write a granular texture, dry. (rate 14, dur 0.07, interp 2, mode sweep, rev 0)"
},
{
"role": "assistant",
"content": "Granulation is `GrainBuf` plus a trigger rate; the position can move:\n\n```supercollider\n// granular synth with GrainBuf\n(\ns.waitForBoot {\n ... |
[
{
"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(\nSynthDef(\"help-Dust2\", { |out = 0|\n Out.ar(out,\n Dust2.ar(200, 0.5)\n )\n}).play;\n);\n\n(\nSynthDef(\"help-Dust2\", { |out = 0|\n Out.ar(out,\n Dust2.ar(XLine.kr... |
[
{
"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": "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": "How do I add a reverb send to a whole group?"
},
{
"role": "assistant",
"content": "Same shape as the delay: a private stereo bus, one effect reading it, instruments writing both dry\nand wet.\n\n```supercollider\n(\n~verbBus = Bus.audio(s, 2);\nSynthDef(\\verb, { |... |
[
{
"role": "user",
"content": "Show me a self-contained SuperCollider patch using `Buffer`: bind everything it needs first."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\n(\nb = Buffer.alloc(s, 512, 1);\nb.sine1(1.0 / [1, 2, 3, 4], true, true, true);\nx = { Osc.ar(b, 200, 0, 0.... |
[
{
"role": "user",
"content": "Explain `Pconst` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "Pconst — constrain the sum of a value pattern Similar to Pfindur, but works with the value directly. Category: Streams-Patterns-Events > Patterns > Repetition."
}
] |
[
{
"role": "user",
"content": "What is `CombC` in SuperCollider?"
},
{
"role": "assistant",
"content": "CombC — Comb delay line with cubic interpolation. Comb delay line with cubic interpolation. See also CombN which uses no interpolation, and CombL which uses linear interpolation. Cubic interpol... |
[
{
"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": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ Out.ar(87, SinOsc.ar(MouseX.kr(340, 1000, 1) * [1, 2, 3], 0, 0.2)) }.play;\nx = Monitor.new.play(87, 3, 0, fadeTime: 3;\nx.vol = 0.3;\nx.stop;\n```"
},
{
"role": "assis... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `PV_MagSquared`."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\n\n(\nb = Buffer.alloc(s, 2048, 1);\nc = Buffer.read(s, ExampleFiles.child);\n);\n\n(\nSynthDef(\"help-magSquared\", { |out = 0, bufnum ... |
[
{
"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": "Write a minimal SuperCollider example that uses `Synth`."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\n// create a Synth at the head of the default Server's default group\n// based on the SynthDef \"default\"\nx = Synth.new(\"default\");\ns.query... |
[
{
"role": "user",
"content": "What does `Int32Array.readFromStream` do?"
},
{
"role": "assistant",
"content": "an array whose indexed slots are all of the same type"
}
] |
[
{
"role": "user",
"content": "Give me an Ndef with an LFO at 0.3 Hz. (ugens saw, cutoff 2400, lfo 0.3, freq 165, 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: saw source through a 2400 Hz ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.