Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (2937) Code (123) Doc (1095) Help (322) Quark (1383) Plugin (14) SCDoc ↗ Forum ↗ Google ↗
  1. Streams-Patterns-Events3 Doc

    ... eat 3, offset 2 b = a.asStream; 13.do({ b.next.postln; }); ) ⧉ ✔ You can pass a function for the repeats variable that gets evaluated when the stream is created. ( var a, b; a = Pseq.new(#[1, 2], { rrand(1, 3) }); // repeat 1,2, or 3 times ...

  2. HilbertH Doc

    ... methods Instance Methods Inherited instance methods Examples ar /* FFT analysis functions NOTE: FFT returns linear frequency */ ( ~calcMag = { arg kernel; var fftResponse, fftMag; // FFT analysis here! fftResponse = fft( kernel.as(Signal), ...

  3. MixerChannel4-order Quark

    ... ch| patchesPlayed = patchesPlayed.add(patch); } queueBundle { |bundle| bundle.isFunction.if({ bundle = server.makeBundle(false, bundle); }); // send immediately if channel is ready; otherwise queue it this.ready.if({ server.listSendBundle(n ...

  4. Say Doc

    ... calhost" [1, 2, 3, 4].scramble.say(lang: \en); { SinOsc.ar }.say("Anna"); // "a Function" { SinOsc.ar }.cs.say("Anna"); // "{ SinOsc.ar }" Dictionary[\a -> 1, \b -> 2].say(lang: \en); ⧉ ✔ 2. use events and patterns to create strings to be s ...

  5. FreqSpectrum Quark

    ... lPhase, principalPhaseRe, groupDelayRe; var c, continuousPhase; var conform; // function to conform angle to reference conform = { |angle, angleRef| var angleDiff = angle - angleRef; var angleExc = angleDiff.sin.atan2(angleDiff.cos); angle ...

  6. DrawIcon Quark

    // wslib 2006 // // bank of iconographic Pen-functions DrawIcon { classvar <drawFuncs; *new { |name, rect ... more| rect = (rect ? (32@32)).asRect; ^drawFuncs[ name ].value( rect, *more ); // returns pen function } *symbolArgs { |name, rect ...

  7. 16-Sequencing-with-Patterns Doc

    ... random number generators that produce specific distributions, and also chaotic functions. Pseries (start, step, length) arithmetic series, e.g., 1, 2, 3, 4, 5 Pgeom (start, grow, length) geometric series, e.g., 1, 2, 4, 8, 16 Pwhite (lo, h ...

  8. core-synths Quark

    ... rlap-add by running through a pair of indices, shifting weights with the window function nSteps = phase.div(timescaleStep) - [1.0, 0.0]; index = nSteps * (timescaleStep / timescale - timescaleStep) + phase; windowIndex = phase - (nSteps * t ...

  9. MIDIPort Quark

    ... if a MIDI message is on a channel not defined, it will be passed // to whatever function was in MIDIIn before initialization initialized.not.if({ MIDIClient.initialized.not.if({ MIDIClient.init; // open the ports }); // in Linux, externalSo ...

  10. FFT-Overview Doc

    ... nearly silent -- proving that chainB is in a different buffer, even though the function does not explicitly create it. ( x = { var inA, chainA, chainB; inA = LFClipNoise.ar(100); chainA = FFT(LocalBuf(2048, 1), inA); chainB = PV_PhaseShift ...

prev 281 282 283 284 285 286 287 288 289 290 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow