Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (786) Code (22) Doc (235) Help (67) Quark (457) Plugin (5) SCDoc ↗ Forum ↗ Google ↗
  1. OrientationController Quark

    ... nsform into SSWorld coordinate system azimuth = (azimuth - dAzi).neg.degree2rad.wrap(0,2pi); elevation = elevation.neg.degree2rad; roll = roll.neg.degree2rad; if (isPlaying.not) { //call user-defined function action[\orientation].value([azi ...

  2. Cluster Quark

    ... ze == n){ clusterObj.items[i] }{ clusterObj.items[0] } }) }) } // Class methods wrapping *fromArray{ |array,oclass| if(array.collect{ |x| x.class}.as(Set).size>1){ Error("Cluster: "++array++" - Items should be all of the same class").throw ...

  3. minbox Quark

    ... if(in>=0.5) { 0.0 } { 1.0 } } // { (modifiers & 524288 == 524288) } { (in-step).wrap(0.0, 1.0) } // { (in+step).wrap(0.0, 1.0001) }; inc = if(in>=0.5) { 0.0 } { 1.0 }; this.valueAction = spec.map( inc ).round(round); } }; mouseDownAction.va ...

  4. CtLoop Quark

    ... ln; loop({ listSize = list.size; if (list.isEmpty) { 0.1.wait; } { event = list.wrapAt(index); if (verbose) { event.round(0.001).postcs }; #dt, ctlID, val = event; if (intro.not) { // jump over steps if speed is too high? max((dt / tempo), ...

  5. playInMixerGroup Quark

    ... is); this.playToMixer(mixer) } playOnGlobalControl { |gc, target| // if I don't wrap gc's bus in a SharedBus, // freeing the patch will free the bus also... that's bad this.play((target ?? { gc.server }).asTarget, nil, SharedBus.newFrom(gc. ...

  6. degree_freq Quark

    ... , tuning ); if( key != 0 && { i != ii }) { scale = Scale( (scale.degrees + key).wrap(0,ii).sort, scale.pitchesPerOctave, scale.tuning ); }; scale.degreeToFreq( degree + offset, base, octave ); }, addToAll: false ) .category_( 'convert' ) .u ...

  7. Readme Quark

    ... yed in a stack trace. ### deprecate.function(fn, message) Call this function to wrap a given function in a deprecation message on any call to the function. An optional message can be supplied to provide a custom message. ### deprecate.prope ...

  8. bleepoORIG Quark

    ... oscfreqs2[0].max(oscfreqs2[1]); trig = waves[0].absdif((waves[1] + [0, shift]).wrap(-1, 1)) < dens; trig = Trig.ar(trig, 0.0); u = Decay2.ar(trig, 0/maxfreq, 0.1/maxfreq); u = ToggleFF.ar(trig); sh = Latch.ar(waves, trig); // -1, 1 shf = ( ...

  9. NanoKtl Quark

    ... ; var maxOff = (numActive - 8).max(0); var pxOffset = (pxOffsets[scene] + step).wrap(0, maxOff); pxOffsets[scene] = pxOffset; pxmixers[scene].highlightSlots(pxOffset, 8); } paramShift { |step = 1, scene=1| var numActive = pxEditors[scene].e ...

  10. PointView Quark

    ... f rotating incStep = { |rand, curRot, step| (curRot + (step * variance.(rand))).wrap(-2pi, 2pi) }; if (ortho) { #rotate, tilt, tumble = orthoRotations; } { rotate = if (cycRotate) { incStep.(randomizedAxes.rotate, rotate, rotateStep) } { ba ...

prev 21 22 23 24 25 26 27 28 29 30 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow