Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (692) Code (80) Doc (247) Help (48) Quark (306) Plugin (11) SCDoc ↗ Forum ↗ Google ↗
  1. round Quark

    ... ision ) ); }, \angle, { current = current.collect({ |pt| pt.angle = (pt.angle / pi * 180).round( precision ) / 180 * pi; }); }, \distance, { current = current.collect({ |pt| pt.rho = pt.rho.round( precision ); }); }, ); path.positions = cur ...

  2. AtkTests Quark

    ... ion = \flu, numDirs = 25| ^switch(group, \axis, { // axis directions [ [0, 0], [pi/2, 0], [0, pi/2], // +X, +Y, +Z [pi/2, 0], [-pi/2, 0], [0, -pi/2] // -X, -Y, -Z ] }, \tetra, { // tetrahedral directions FoaDecoderMatrix.newBtoA(orientation ...

  3. Space Quark

    ... item| b = b.add(item.reverse) }); ~panArr = [Array.panDis(~arr.size, ~arr.size)*pi, b.flat * pi].flop; n.redefine(~arr, \panB, ~panArr, 4); //start a new system n.redefine(~arr, \panB, ~panArr, 8); //start a new system n.redefine(~arr, \pan ...

  4. GMRecordButton Quark

    ... or = Color.black; } { thisCurrentBackgroundColor = Color( sin(this.frame / 60 * pi).abs, sin(this.frame / 60 * pi).abs, sin(this.frame / 60 * pi).abs ); }; // super.drawFrame "override hack" super.drawFrame; Pen.fillColor_(thisCurrentBackgr ...

  5. rotate_point Quark

    ... he point to rotate (can be an UMap) rotate: the amount of rotation in degrees (-pi - pi) scale: a scale amount (0.25 - 4) -- this is an UMapDef definition file part of the Unit lib default UMapDefs set */ UMapDef( \rotate_point, { |point = ...

  6. WFSArrayPanDir Quark

    ... yValue * 2 - 1 ); // limit distance to 1m angles = atan2( dify, adifx ).wrap(0.5pi,1.5pi) + (angle - direction); sines = sines / sines.abs.sum.max(1e-12); // normalize abs sum of sines angleAmplitudes = angles.collect({ |angle| sines[0] + s ...

  7. RedEfxPch2 Quark

    //redFrik - only two overlapping windows RedEfxPch2 : RedEffectModule { *def {|lag= 0| ^SynthDef(\redEfxPch2, {|out= 0, mix= -1, ratio= 4| var dry, wet, phasor1, phasor2, read1, read2, window1, window2; var windowDur= 0.1; dry= In.ar(out, 2 ...

  8. FilterCoef Quark

    ... , { newPoles.do({ arg pole; if(pole.isKindOf(Polar), { angle = pole.angle.wrap(-pi, pi); poles = poles.add(Polar.new(pole.magnitude, angle)); //Post a warning if the new pole magnitude is > 1.0 if(pole.magnitude > 1.0, { "Pole magnitude is ...

  9. lfo_sine Quark

    ... w frequency sine wave oscillator. freq: the frequency of the sine wave phase: (-pi - pi) the start phase of the sine wave (can be modulated) range: the output range The 'range' arg range is mapped to that of the parameter to which the UMap ...

  10. lfo_sine Quark

    ... w frequency sine wave oscillator. freq: the frequency of the sine wave phase: (-pi - pi) the start phase of the sine wave (can be modulated) range: the output range The 'range' arg range is mapped to that of the parameter to which the UMap ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow