Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (266) Code (32) Doc (61) Help (23) Quark (150) SCDoc ↗ Forum ↗ Google ↗
  1. OssiaArray Quark

    ... ect( { | item, i | item.wrap(domain.min[i], domain.max[i]) } ).asArray ; }; }, 'fold', { ^{ | value, domain | value.collect( { | item, i | item.fold(domain.min[i], domain.max[i]) } ).asArray; }; }, 'values', { ^{ | value, domain | domain[2] ...

  2. p_midiFile Quark

    ... t the last known value \clip: limits the values to the outer bounds of toRange \fold: mirrors values that are out of toRange back in \wrap: wraps values around toRange \none: no clipping; values outside of fromRange will be extrapolated out ...

  3. waveFolder Quark

    /* Wavefolding as in (input).fold(-1, 1), but it's rounded out instead of a sharp switch at input amplitudes of 1. It uses y=sin(x) as a transfer function, so I included a phase offset (which makes a full loop around the circle as it goes f ...

  4. p_midiFile Quark

    ... t the last known value \clip: limits the values to the outer bounds of toRange \fold: mirrors values that are out of toRange back in \wrap: wraps values around toRange \none: no clipping; values outside of fromRange will be extrapolated out ...

  5. p_sequencer_point Quark

    ... ); direction = -1; }, \alternate, { case { current >= size} { current = current.fold(0,size-1); direction = -1; } { current < 0 } { current = current.fold(0,size-1); direction = 1; }; }, \random, { current = size.rand; }, \off, { current = ...

  6. p_line Quark

    ... ; direction = -1; }, \alternate, { case { current > ttime } { current = current.fold(0.0, ttime); direction = -1; } { current < 0 } { current = current.fold(0.0, ttime); direction = 1; }; }, \back_at_end, { current = current.clip(0.0, ttime ...

  7. p_step Quark

    ... .0 ); direction = -1; }, \alternate, { case { current > 1 } { current = current.fold(0.0,1.0); direction = -1; } { current < 0 } { current = current.fold(0.0,1.0); direction = 1; }; }, \off, { current = current.clip(0.0,1.0); direction = 1; ...

  8. p_step Quark

    ... .0 ); direction = -1; }, \alternate, { case { current > 1 } { current = current.fold(0.0,1.0); direction = -1; } { current < 0 } { current = current.fold(0.0,1.0); direction = 1; }; }, \off, { current = current.clip(0.0,1.0); direction = 1; ...

  9. xoscSim Quark

    ... im interface. imuvals = imuvals.collectInPlace { |val| (val + 0.2.rand2 * 0.95).fold2(8.0).round(0.01) }; tempval = (tempval + 3.rand2).fold(0, 100); anavals = anavals.collectInPlace { |val, i| (val + 0.05.rand2 * 0.95).fold(0, 1).round(0.0 ...

  10. blippoo Quark

    ... blippoo box but without the distortion (unfortunately) var l1 = RLPF.ar(in ,f1.fold(20,20000).lag(0.05),r1);//lag is necessary to make sure the filter stays stable var l2 = RLPF.ar(in * -1,f2.fold(20,20000).lag(0.05),r2); l1 + l2; }; Ndef( ...

prev 1 2 3 4 5 6 7 8 9 10 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow