Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (72) Code (2) Doc (12) Help (4) Quark (54) SCDoc ↗ Forum ↗ Google ↗
  1. extObject-inRange Quark

    // wslib 2006 :: InRange extension + Object { // switch to correct InRange version inRange { |lo= 0.0, hi = 1.0| case { this.rate == 'scalar' } { ^( this >= lo ) && (this <= hi ) } { this.rate == 'audio' } { ^InRange.ar( this, lo, hi ) } { ...

  2. SensorSonificator.help Quark

    ... value as frequency, amplitude is controlled by the rate of change in value // \inrange : makes sound when the value is within a certain range // \intrig : makes a sound whenever new data is coming in. Pitch is higher when the time since th ...

  3. HierSchDict Quark

    ... al, counter])); } beatInfo {arg beat; ^[beat.asFloat, this[beat.asFloat]] } keysInRange {|low, high| ^this.keys.asArray.select{|key| (key >= low) && (key < high) } } beatInfoFuzzy { |beat=0| var inRange; inRange = this.keysInRange( beat.asF ...

  4. PFKtl Quark

    ... ; this.valRange = [0, 127]; } norm { |val| ^val - minval / range } valRange_ { |inRange| range = inRange[1] - inRange[0]; minval = inRange[0]; valRange = inRange; } *makeDefaults { // just one bank of sliders defaults.put(this, ( sl01: '0_7 ...

  5. point_in_rect Quark

    ... r[0] + (radius[0] * [-1,1]); rangeY = center[1] + (radius[1] * [-1,1]); index = InRange.kr( point[0], *rangeX ) * InRange.kr( point[1], *rangeY ); output = Select.kr( index, [ outValue, inValue ] ); UMapOut.kr( output ); }) .setSpec( \point ...

  6. MIDIKeyboard Quark

    ... wn { arg note, color; // midinote if(note.isArray, { note.do({arg note; if(this.inRange(note), { keys[note - startnote].color = Color.grey; }); }); }, { if(this.inRange(note), { keys[note - startnote].color = Color.grey; }); }); this.refres ...

  7. NumericRange Quark

    ... o, hi, spec; ^super.newCopyArgs(lo, hi, spec.asSpec) } rrand { ^rrand(lo, hi) } inrange { |num| ^num.inclusivelyBetween(lo, hi) } range01_ { arg l, h; lo = spec.map(l); hi = spec.map(h); } range_ { arg l, h; lo = l; hi = h; } lo01 { ^spec.u ...

  8. StatUGens Quark

    ... scalefact * adjbot / ldev) // adjbot is zero when fluct not below bot + scale * InRange.kr( fluct, bottom, top ); // is 1 when fluct in range LocalOut.kr( scale ); ^( scale * sdev ) } *categories { ^ #["UGens>Analysis>Statistics"] } } MaxDy ...

  9. PInRange Quark

    PInRange UGenPatterns quark library superclass: FilterPattern based on InRange PInRange(pattern, lo, hi) pattern lo (default: 0) hi (default: 1) // example s.boot; a= Pbind ( \dur , 1/3, \legato , 0.4, \midinote , PInRange ( Pseq ([0, 2, 4, ...

  10. NumericRange Quark

    ... o, hi, spec; ^super.newCopyArgs(lo, hi, spec.asSpec) } rrand { ^rrand(lo, hi) } inrange { |num| ^num.inclusivelyBetween(lo, hi) } intersects { |that| if(lo < that.lo) { ^hi >= that.lo } { ^lo <= that.hi } } includes { |that| ^that.lo.inclus ...

1 2 3 4 5 6 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow