Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (1204) Code (149) Doc (369) Help (93) Quark (575) Plugin (18) SCDoc ↗ Forum ↗ Google ↗
  1. FoaMatrixChain Quark

    ... , v_sqrd, a, e, d, d_norm, amp; b = matrix.getCol(0); b[0] = b[0] * sqrt(2); // scale W b_sqrd_mean = b**2; p_sqrd = b_sqrd_mean[0]; // W component, pressure v_sqrd = b_sqrd_mean[1..].sum; // summed X^2, Y^2, Z^2; velocity // directivity me ...

  2. XiiGrainBox Quark

    ... olor.new255(255, 100, 0); GUI.pen.width = 3; GUI.pen.translate(45,210); GUI.pen.scale(0.4,0.4); GUI.pen.moveTo(1@7); p.do({arg point; GUI.pen.lineTo(point+0.5); }); GUI.pen.stroke; }; getCenterPos = { arg envval, i; var spec, myvar, sampled ...

  3. AlgaPatternPlayer Quark

    ... ck time time = time ? timeInner; //Time in AlgaPseg is in beats: it needs to be scaled to seconds time = if(tempoScaling.not, { time * this.clock.tempo }); //If time is still 0, go to setAtSched if(time == 0, { case { param == \dur } { ^thi ...

  4. extStatistics Quark

    // some statistics, adc 2005, plus ds 2007/08. + Collection { // same as sum, but sum initialized as float 0.0 to avoid numerical // errors for sums of large integer arrays. sumF { | function | var sum = 0.0; if (function.isNil) { // optimi ...

  5. Event patterns and array args Quark

    ... expect to pass SynthDef ( \envArray_1 , { |out = 0, freq = 440, amp = 0.1, timeScale = 1, gate = 1| var sig, env, envArray, envSig; envArray = Env ([0, 1, 0, 0, 0, 0, 0], [1, 1, 0, 0, 0, 0]).asArray; // works also without '.asArray' env = ...

  6. Fb1_ODE Quark

    ... Type = \sym2, compose, composeArIn, dt0, argList0, init_intType = \sym8, withOutScale = true, withDiffChannels = false, withTimeChannel = false, blockSize, graphOrderType = 1, leakDC = true, leakCoef = 0.995| ^Fb1_ODE.basicNew(\audio, name, ...

  7. SVGFile Quark

    ... ct format: [ \type, [ ... arguments ] ] // matrix(n,n,n,n,n,n), translate(n,n), scale(n, [n] ), // rotate(n, [n,n]), skewX(n), skewY(n) *new { |string| case { string.class == String } { ^super.newCopyArgs( string, [] ).stringToDict; } { str ...

  8. bendenv_align_tests Quark

    ... he // start position is floored so at least ~0.03s (in AUDIBLE seconds, i.e. // scaled by |rate|) of reversed transient sounds. Natural behavior is kept // when the attack is already long enough, and forward voices are untouched. var preps ...

  9. SamplerQuery Quark

    ... = 0; playing.do{|channelDict| channelDict.do{|voice| total = total + (voice.ampScale * voice.sample.ampShapeAt(voice.section, (tAbs - voice.onsetAbs) / voice.wallDur.max(1e-9))); }; }; ^total; } //Absolute spawn times for a gesture's voice ...

  10. _SynthLib Quark

    ... .flop; env = Env.new([0, 1, 0], [1, 1.5], \sin); burst = EnvGen.ar(env, 1, levelScale: soft.reciprocal, timeScale: 0.012 * soft) * GrayNoise.ar(3) * WhiteNoise.ar(amp); burst = OnePole.ar(burst, 0.99, 15); sig = specs[0].collect({ arg f, i; ...

prev 51 52 53 54 55 56 57 58 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow