conversations listlengths 2 6 |
|---|
[
{
"role": "user",
"content": "Explain `LFDClipNoise` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "LFDClipNoise — Dynamic clipped noise Like LFClipNoise, it generates the values -1 or +1 at a rate given by the `freq` argument, with two differences: Category: UGens > Generators... |
[
{
"role": "user",
"content": "Write a granular texture, dry. (rate 14, dur 0.04, interp 2, mode noise1, 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": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\nd = { |gate = 1| { BrownNoise.ar }.dup * EnvGen.kr(Env.asr, gate, doneAction: Done.freeSelf) }.play;\nd.release(3;\n```"
},
{
"role": "assistant",
"content": "A closi... |
[
{
"role": "user",
"content": "What is `CompositeInstrGui` in SuperCollider?"
},
{
"role": "assistant",
"content": "CompositeInstrGui — gui class Category: Libraries > crucial > GuiClasses."
}
] |
[
{
"role": "user",
"content": "Write a filter sweep over a saw."
},
{
"role": "assistant",
"content": "An LFO on the cutoff of a resonant low-pass; XLine or an LFO both work, the LFO is the loopable one.\n\n```supercollider\n{ LPF.ar(Saw.ar([60, 60.2]), SinOsc.kr(0.2).exprange(150, 4000), 0.4) * ... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `LinExp`."
},
{
"role": "assistant",
"content": "```supercollider\n// compare:\n(\n{\n var mod = SinOsc.kr(Line.kr(1, 10, 10));\n SinOsc.ar(mod * 400 + 500) * 0.1\n}.play;\n);\n\n(\n{\n var mod = SinOsc.kr(Line.kr(1... |
[
{
"role": "user",
"content": "Write a self-contained SuperCollider patch that uses `Duty`. Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\n// this is useful when two UGens need to be called, but only one of their outputs is needed\n(\n{\n var a, b, c;\n a =... |
[
{
"role": "user",
"content": "Write a complete SuperCollider patch built around `LastValue` that runs as it is."
},
{
"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,... |
[
{
"role": "user",
"content": "What is `LPZ2` in SuperCollider?"
},
{
"role": "assistant",
"content": "LPZ2 — Two zero fixed lowpass A special case fixed filter. Implements the formula: `out(i) = 0.25 * (in(i) + (2 * in(i - 1)) + in(i - 2)).` Category: UGens > Filters > Linear."
}
] |
[
{
"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 LinCongL.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": "What is SuperCollider?"
},
{
"role": "assistant",
"content": "SuperCollider is a platform for audio synthesis and algorithmic composition, written in C++ and SuperCollider. It splits into a language client (sclang) that runs your code and builds UGen graphs, and an ... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `RunningSum`."
},
{
"role": "assistant",
"content": "```supercollider\n// RMS Power\n(\n{\n var input, numsamp;\n\n input = LFSaw.ar;\n numsamp = 30;\n\n (RunningSum.ar(input.squared, numsamp) / numsamp).sqrt\n}.p... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// Compare:\n\n{ WhiteNoise.ar(0.25) }.play;\n\n{ BPZ2.ar(WhiteNoise.ar(0.25) }.play;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the pa... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `LPF`."
},
{
"role": "assistant",
"content": "```supercollider\n{ LPF.ar(Saw.ar(200, 0.1), SinOsc.kr(XLine.kr(0.7, 300, 20), 0, 3600, 4000)) }.play;\n\n// kr:\n(\n{ var ctl = LPF.kr(LFPulse.kr(8), SinOsc.kr(XLine.kr(1,... |
[
{
"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": "What is `Pbindef`?"
},
{
"role": "assistant",
"content": "Pbindef — incremental event pattern reference definition"
},
{
"role": "user",
"content": "What does `Pbindef.new` do?"
},
{
"role": "assistant",
"content": "store the pattern in the g... |
[
{
"role": "user",
"content": "Write a kick at amp 0.8 with no click. (osc saw, sweep 0.06, decay 0.25, f0 150, 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: saw oscillator, ... |
[
{
"role": "user",
"content": "Write a pluck whose tail uses gverb."
},
{
"role": "assistant",
"content": "A send-style patch: dry signal plus the reverb on the tail:\n\n```supercollider\n// reverb: gverb on a pluck\n(\nSynthDef(\\reverb_synth, { |out = 0, freq = 330, amp = 0.2|\n var env = En... |
[
{
"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```"
},
{
"role": "assistant",
"content": "A closing b... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\ns.boot;\n(\nz = {\nBBandPass.ar(\n SoundIn.ar([0, 1]),\n MouseX.kr(20, 20000, \\exponential),\n MouseY.kr(0.0, 10.0, \\linear), // bw\n 0.5); // mul\n}.play)\nz.release;\n\n(... |
[
{
"role": "user",
"content": "Write a SuperCollider patch that uses `FOS` and actually plays. Assume nothing about the session."
},
{
"role": "assistant",
"content": "```supercollider\n(\n// same as OnePole\n{ var x;\n x = LFTri.ar(0.4, 0, 0.99);\n FOS.ar(LFSaw.ar(200, 0, 0.2), 1 - x.abs, 0.0... |
[
{
"role": "user",
"content": "Write a self-contained SuperCollider patch for danger loud click. Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\n// proceed with caution. start at min volume, and not with your expensive speakers.\n\nfork{b=Buffer.alloc(s,512,1)... |
[
{
"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 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 oscillat... |
[
{
"role": "user",
"content": "What does `Buffer.allocRead` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Read a soundfile into a buffer on the server for a Buffer previously created with #*new. Note that this will not autoupdate instance variables. Call `updateInfo` in ... |
[
{
"role": "user",
"content": "How do I put a pluck in a reverb at mix 0.45? (verb freeverb2, room 0.7, damp 0.5, mix 0.45, source pluck)"
},
{
"role": "assistant",
"content": "A send-style patch: dry signal plus the reverb on the tail:\n\n```supercollider\n// reverb: freeverb2 on a pluck\n(\nSyn... |
[
{
"role": "user",
"content": "What is the node tree and what is a Group for?"
},
{
"role": "assistant",
"content": "Everything running on the server is a node: Synths and Groups, arranged in a tree under the root group. Order matters, because audio flows through buses from earlier to later nodes... |
[
{
"role": "user",
"content": "What is `Dust` in SuperCollider?"
},
{
"role": "assistant",
"content": "Dust — Random impulses. Generates random impulses from 0 to +1. Category: UGens > Generators > Stochastic."
}
] |
[
{
"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": "What does `Slider.action` do?"
},
{
"role": "assistant",
"content": "The action object evaluated whenever the user moves the"
}
] |
[
{
"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": "Explain `PV_Diffuser` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "PV_Diffuser — Random phase shifting. Adds a different constant random phase shift to each bin. When triggered, it selects a new set of random phases. Category: UGens > FFT."
}
] |
[
{
"role": "user",
"content": "What is `SparseArray` in SuperCollider?"
},
{
"role": "assistant",
"content": "SparseArray — Array that stores duplicated values more efficiently A sparse array is a data structure that acts in exactly the same manner as an Array. However, data is represented differ... |
[
{
"role": "user",
"content": "Write an Ndef at 110 Hz I can retune while it plays. (ugens sine, cutoff 200, 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: sine source thr... |
[
{
"role": "user",
"content": "Give me a fm kick with a 0.06 s pitch sweep. (osc fm, sweep 0.06, decay 0.12, f0 150, f1 40, amp 0.6, 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: fm oscillat... |
[
{
"role": "user",
"content": "What is `EnvEditorGui` in SuperCollider?"
},
{
"role": "assistant",
"content": "EnvEditorGui — gui class Category: Libraries > crucial > GuiClasses."
}
] |
[
{
"role": "user",
"content": "What is Env.perc and what does it take?"
},
{
"role": "assistant",
"content": "`Env.perc(attackTime, releaseTime, level, curve)` — an attack to `level` (default 1) then a decay to zero, with curve defaulting to -4 (an exponential-ish decay). `Env.perc(0.01, 1)` is t... |
[
{
"role": "user",
"content": "What does this SuperCollider patch do?\n```supercollider\n{ Pan2.ar(Klank.ar(`[[1, 2.2, 3.5, 4.9], nil, Array.series(4, 1, -0.2)], PinkNoise.ar(EnvGen.ar(Env.perc(0.001,0.01), Impulse.ar(4))), 0), 0); }.play;\n```"
},
{
"role": "assistant",
"content": "I accidentall... |
[
{
"role": "user",
"content": "Give me a Pbind with fm voices and a 0.2 rhythm."
},
{
"role": "assistant",
"content": "`Pbind` sequences an Event per beat, and `\\degree` + `\\scale` does the pitch:\n\n```supercollider\n(\nSynthDef(\\fm_voice, { |out = 0, freq = 440, amp = 0.2|\n var env = Env... |
[
{
"role": "user",
"content": "How should I check an answer you give me?"
},
{
"role": "assistant",
"content": "Three quick checks, cheapest first. Does it evaluate without a syntax error — the post window points at the exact character. Does the node appear in `s.plotTree` — if yes, the problem i... |
[
{
"role": "user",
"content": "What does Lag do?"
},
{
"role": "assistant",
"content": "`Lag.ar(in, lagTime)` and `Lag.kr(in, lagTime)` smooth a signal with an exponential lag towards its target, which removes the clicks and zipper noise a stepped control would produce. Lag.kr on a mouse or MIDI ... |
[
{
"role": "user",
"content": "Write a self-contained SuperCollider patch for Kepler 22-b atmosphere. Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\n(\nfork { \n Ndef(\\ttwnd).play;//(d,2,addAction:\\addToHead);\n loop {\n var seed = thisThread.randSeed... |
[
{
"role": "user",
"content": "Write a granular texture in SuperCollider."
},
{
"role": "assistant",
"content": "Read a sound file into a buffer, then trigger grains from it. Grain density is the Impulse rate and\ngrain length is dur; keep the density times the length under maxGrains or raise it.... |
[
{
"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 = Dbrown2(0, 15, 1, [1, 4], inf);\n trig = Dust.kr(MouseX.kr(1, 40, 1));\n freq = Demand.kr(trig, 0, a) * 30 + 340;\n SinOsc.ar(freq) * 0.1\n\n... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\nNdef(\\maus, { MouseX.kr });\nNdef(\\haus, { Pan2.ar(Blip.ar(Ndef.kr(\\maus, 1) * 70), SinOsc.kr(Ndef.ar(\\maus, 1) * 5)) }.play;\n```"
},
{
"role": "assistant",
"con... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n//Should really only do this in NRT, but does work if low load in RT \n(\na = {\n \n~featuresave = FeatureSave.kr(SinOsc.kr,Impulse.kr(10)-0.5); \n \n}.play \n);\n\ns.send... |
[
{
"role": "user",
"content": "Explain `EnvironmentRedirect` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "EnvironmentRedirect — Base class for environment redirects. EnvironmentRedirect behaves like an Environment that redirects access (`put(key, val)`, or `~key`) and assignme... |
[
{
"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": "Write a minimal SuperCollider example that uses `Formant`."
},
{
"role": "assistant",
"content": "```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 f... |
[
{
"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.18, 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... |
[
{
"role": "user",
"content": "Show another SuperCollider example using `Demand`."
},
{
"role": "assistant",
"content": "```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": "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": "What does this SuperCollider patch do?\n```supercollider\n(\n{\n var time = 0.23;\n var freq = (55).midicps;\n var a = VarSaw.ar(freq/2, width: XLine.ar(0.5,1,time)).range(0,XLine.ar(0.666,1/666,time));\n var tone = SinOsc.ar(freq).fold(-0.23*a,a) * EnvGen.ar(Env([1,0],[tim... |
[
{
"role": "user",
"content": "What are the arguments of GrainBuf.ar?"
},
{
"role": "assistant",
"content": "`GrainBuf.ar(numChannels, trigger, dur, sndbuf, rate, pos, interp, pan, envbufnum, maxGrains, mul, add)`. The ones you always pass are numChannels (1 or 2), trigger (a UGen that fires grai... |
[
{
"role": "user",
"content": "Give me an Ndef with an LFO at 0.1 Hz. (ugens sine, cutoff 200, lfo 0.1, 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 200 Hz low-pass\n... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```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));\n IFFT(chain);\n}.play\n```"
... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `OneZero`."
},
{
"role": "assistant",
"content": "```supercollider\n{ OneZero.ar(WhiteNoise.ar(0.5), 0.5) }.play\n\n{ OneZero.ar(WhiteNoise.ar(0.5), -0.5) }.play\n\n{ OneZero.ar(WhiteNoise.ar(0.5), Line.kr(-0.5, 0.5, 1... |
[
{
"role": "user",
"content": "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": "Write a minimal SuperCollider example that uses `LFTri`."
},
{
"role": "assistant",
"content": "```supercollider\n// plot:\n{ LFTri.ar(40) }.plot(0.1);\n{ LFTri.ar(XLine.kr(1, 800, 0.1)) }.plot(0.1);\n\n{ LFTri.ar(500, 0, 0.1) }.play\n\n// used as both Oscillator an... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\n{\n EnvGen.kr(\n Env.new([0.001, 1, 0.5, 0], [0.01, 0.3, 1], -4, 2, nil),\n Impulse.kr(10)\n ) * SinOsc.ar(440, 0, 0.1)\n}.play;\n);\n\n(\n{\n EnvGen.kr... |
[
{
"role": "user",
"content": "What does `MxDocument.new` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "a wrapper for placing code Documents onto the Mx grid Arguments: path; content."
}
] |
[
{
"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": "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": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// vary frequency\n{ LorenzL.ar(MouseX.kr(20, SampleRate.ir)) * 0.3 }.play(s;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesi... |
[
{
"role": "user",
"content": "What is the difference between \\degree, \\midinote and \\freq in a Pbind?"
},
{
"role": "assistant",
"content": "`\\freq` is the frequency in Hz and is used as-is. `\\midinote` is a MIDI note number, converted to frequency by the default instrument. `\\degree` is a... |
[
{
"role": "user",
"content": "What does `Collection.detectIndex` do?"
},
{
"role": "assistant",
"content": "Similar to #-detect but returns the index instead of the item itself. `List[1, 2, 3, 4].detectIndex({ |item, i| item.even"
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n{ Blip.ar(Latch.ar(WhiteNoise.ar, Impulse.ar(9)) * 400 + 500, 4, 0.2 }.play;\n```"
},
{
"role": "assistant",
"content": "A closing bracket is missing: the parenthesis... |
[
{
"role": "user",
"content": "Explain `ModDif` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "ModDif — Minimum difference of two values in modulo arithmetics Returns the minimum difference of two values in modulo arithmetics. On a circle, there are two distances between two poi... |
[
{
"role": "user",
"content": "What does `RedTapeRecorder.ar` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "sampling and looping Arguments: buffer; in — Input signal.; gate — 1= record, 0= looped playback.; interpol — 1= no, 2= linear, 4= cubic.; muteWhileRecording — whe... |
[
{
"role": "user",
"content": "What does `Crucial.initSpecs` do?"
},
{
"role": "assistant",
"content": "This defines a bunch of Specs which I find are useful. Nothing depends on"
}
] |
[
{
"role": "user",
"content": "What is `BinaryOpUGen`?"
},
{
"role": "assistant",
"content": "BinaryOpUGen — Apply a binary operation to the values of an input UGen"
},
{
"role": "user",
"content": "What does `BinaryOpUGen.new` do?"
},
{
"role": "assistant",
"content": "re... |
[
{
"role": "user",
"content": "What does this SuperCollider code do?\n```supercollider\n//distortion creeps in under 200Hz\n{ DPW3Tri.ar(XLine.kr(2000, 20, 10)) }.play; \n\n//very fast sweeps can have transient distortion effects\n{ DPW3Tri.ar(MouseX.kr(200,12000,'exponential')) }.play;\n\n//compare:\n{LFTri... |
[
{
"role": "user",
"content": "Write a self-contained SuperCollider patch that uses `LinSelectX`. Define every value it uses."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var a;\n a = [\n SinOsc.ar,\n Saw.ar(300),\n Pulse.ar(230)\n ];\n\n LinSelectX.ar(Mous... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\ns.boot;\n(\nx = SynthDef(\"help-node-set\", { |freq = 440, out = 0|\n Out.ar(out, SinOsc.ar(freq, 0, 0.1))\n}).play\n);\nx.run(false;\nx.run; // default is true\nx.free;\n```"
... |
[
{
"role": "user",
"content": "What does `View.acceptsMouseOver` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "If this is a top view, this variable defines whether the view and all its children receive mouse-over events. The default is `false`. See also: Arguments: A Boo... |
[
{
"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": "What does `TGaussRand.ar` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "triggered gaussian random distribution Arguments: lo — minimum value; hi — maximum value; trig — trigger signal."
}
] |
[
{
"role": "user",
"content": "What is `Routine` in SuperCollider?"
},
{
"role": "assistant",
"content": "Routine — Functions that can return in the middle and then resume where they left off A Routine runs a Function and allows it to be suspended in the middle and be resumed again where it left ... |
[
{
"role": "user",
"content": "Explain this SuperCollider code.\n```supercollider\nq = Pbind(\\freq, 300, \\dur, Pn(0.3, 2));\nq.trace.play;\n\n// Sound-wise ineffective modification of the incoming stream\np = Pbind(\\degree, 6) <> q;\np.trace.play;\n\n// Instead\np = Pbind(\\degree, 6) <> Pfunc { |ev| ev.f... |
[
{
"role": "user",
"content": "What is `Bag` in SuperCollider?"
},
{
"role": "assistant",
"content": "Bag — Unordered collection of objects A Bag is an unordered collection of objects. In some languages it is referred to as a counted set. A Bag keeps track of the number of times objects are inser... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `BrownNoise`."
},
{
"role": "assistant",
"content": "```supercollider\n{ BrownNoise.ar(0.1) }.play;\n{ WhiteNoise.ar(0.1) }.play;\n```"
}
] |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n(\n{\n var w, x, y, p, q, a, b, c, d;\n\n p = LFSaw.ar(200);\n q = LFSaw.ar(301);\n\n // B-format encode\n #w, x, y = BiPanB2.ar(p, q, MouseX.kr(-1, 1), 0.1);\n\n // B-form... |
[
{
"role": "user",
"content": "Explain `MxDocument` in SuperCollider briefly."
},
{
"role": "assistant",
"content": "MxDocument — a wrapper for placing code Documents onto the Mx grid This is for adding code documents to an Mx. Category: Mx."
}
] |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `PV_RectComb`."
},
{
"role": "assistant",
"content": "```supercollider\n(\n{\n var sig, chain;\n sig = WhiteNoise.ar(0.2);\n chain = FFT(LocalBuf(2048), sig);\n chain = PV_RectComb(chain, 8, LFTri.kr(0.097, 0, 0.4,... |
[
{
"role": "user",
"content": "What does `Bend.time` do? What arguments does it take?"
},
{
"role": "assistant",
"content": "Bend all time related Arguments: ugenFunc — a function that returns a UGen graph, like in *new; freqArgNames — Frequency related arg names (apply a bend). Default: `\\freq,... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `BRF`."
},
{
"role": "assistant",
"content": "```supercollider\n{ BRF.ar(Saw.ar(200, 0.1), FSinOsc.kr(XLine.kr(0.7, 300, 20), 0, 3800, 4000), 0.3) }.play;\n\n{ BRF.ar(Saw.ar(200, 0.5), MouseX.kr(100, 10000, 1), 0.3) }.... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `RLPF`."
},
{
"role": "assistant",
"content": "```supercollider\n{ RLPF.ar(Saw.ar(200, 0.1), SinOsc.ar(XLine.kr(0.7, 300, 20), 0, 3600, 4000), 0.2) }.play;\n\n\n(\n{ var ctl = RLPF.ar(Saw.ar(5, 0.1), 25, 0.03);\n SinO... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\na = ProxySynthDef(\"xtest\", { SinOsc.ar(400) * 0.1 });\n\na.add;\n\nx = Synth(\"xtest\");\nx.release;\n\n\n/*\n\n if the resulting number of channels is larger than a given cha... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n//Should really only do this in NRT, but does work if low load in RT \n(\na = {\n \n~featuresave = FeatureSave.kr(SinOsc.kr,Impulse.kr(10)-0.5); \n \n}.play \n);\n\ns.send... |
[
{
"role": "user",
"content": "What is `Pmulpre` in SuperCollider?"
},
{
"role": "assistant",
"content": "Pmulpre — multiplies with value of a key in event stream, before it is passed up Multiplies with a value in an event, before it is passed up the stream. To multiply with the value after it ha... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\ns.boot\nb = Bus.audio(s, 2);\na = { SinOsc.ar([330, 440], 0, 0.4) }.play(s, b // you won't hear this if you only have two channels\nb.scope\n\na.free;\nb.free;\n```"
},
{
... |
[
{
"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": "Explain this SuperCollider code.\n```supercollider\n(\nx = {\n |lookBack = 3, thr = 1|\n var trig = Impulse.ar(7);\n // for a non-integer source it makes sense to take a sufficiently large threshold thr\n var midi = Demand.ar(trig, 0, DIdev(SinOsc.ar(0.2, 0, 15, 82), 5, -6,... |
[
{
"role": "user",
"content": "This SuperCollider code does not compile. What is wrong and what should it be?\n\n```supercollider\n// Compare:\n\n{ WhiteNoise.ar(0.25) }.play;\n\n{ HPZ1.ar(WhiteNoise.ar(0.25)) }.play;\n\n// HPZ1 is useful to detect changes in a signal:\n// see also HPZ2\n(\n{\n var changing... |
[
{
"role": "user",
"content": "Write a minimal SuperCollider example that uses `SharedIn`."
},
{
"role": "assistant",
"content": "```supercollider\n(\n// only works with the internal server\ns = Server.internal;\ns.boot;\n);\n\n(\nSynthDef(\"help-SharedIn1\", {\n Out.ar(0, SinOsc.ar(Lag.kr(Share... |
[
{
"role": "user",
"content": "What does `Error.errorString` do?"
},
{
"role": "assistant",
"content": "This returns the `what` of the error. See"
}
] |
[
{
"role": "user",
"content": "Explain this SuperCollider patch.\n```supercollider\n// Evaluate this to start your project\n// The Cactus instnce is stored in c by convention\n\nc = CactusGUI(Document.current.dir).cactus; // with GUI\nc = Cactus(Document.current.dir); // without GUI\n\n/*\n\nAny folder with ... |
[
{
"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": "What does `RedObject.loc` do?"
},
{
"role": "assistant",
"content": "The current location ( RedVector of any dimension) within the"
}
] |
[
{
"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": "Write a SuperCollider patch that uses `SpecFlatness` and actually plays. Assume nothing about the session."
},
{
"role": "assistant",
"content": "```supercollider\ns.boot;\n\n(\n{ // Example - vary mixture of white noise and pure tone with the mouse\n var in, chain... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.