Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (1238) Code (32) Doc (255) Help (35) Quark (914) Plugin (2) SCDoc ↗ Forum ↗ Google ↗
  1. ArrayTransformer Quark

    ArrayTransformer : SimpleTransformer { var <selection; var <spec; var unmapMappedArgs = false; var <>mapIO = false; *defClass { ^ArrayTransformerDef } prValue { |obj| var def; def = this.def; obj = obj.asCollection; if( def.useSelection.val ...

  2. envir_get Quark

    ... default UMapDefs set */ ValueUMapDef( \envir_get, { |unit, ctrl| var kkey, val, spec, fromSpec; ctrl.remove; kkey = unit.get( \key ); spec = unit.getSpec( \value ); ctrl = SimpleController( currentEnvironment ) .put( kkey, { spec = unit.get ...

  3. miditest Quark

    ... // you might have added NamedControls in the Instr func // which will not have specs and shouldn't turn into midi controls if(i.notNil) { parg = patch.args[i]; socket.addControl( nil, // socket will allocate a controller for me argNames[i] ...

  4. Spec Help

    Spec input datatype specification Inherits from: Object Specs specify what kind of input is required or permissible, and what the range of those parameters are . This is an abstract class – the most common subclass is: ControlSpec ControlSp ...

  5. Env editor with knobs to edit individual points by 0-2U (grirgz) Code

    ... out = layout; win.front; }; ~env_controller = ( new: { arg self, env, spec; self = self.deepCopy; self.get_env = env; self.spec = spec ?? [3, \freq.asSpec]; spec = self.spec.value[1]; spec = spec ?? ...

  6. Twin Peak Filters by elirosenkim (eli.rosenkim) Code

    ... eMul); saw = Saw.ar(sawFreq, sawMul); (dust + noise + pulse + saw)!2; }); Spec.add(\dustMul, ControlSpec(0, 1, \lin, 0, 0)); Spec.add(\dustDense, ControlSpec(0, 1000, \lin, 0, 5)); Spec.add(\noiseMul, ControlSpec(0, 1, \lin, 0, 0)); ...

  7. db_amp Quark

    ... b = 64, mute = 0| db.dbamp * (1-mute.binaryValue) } ) .mappedArgs_([ \db ]) .setSpec( \db, UAdaptSpec({ |spec| ControlSpec( spec.minval.max(-96.dbamp).ampdb, spec.maxval.max(-96.dbamp).ampdb, \lin, 0, 0 ); }) ) .setSpec( \mute, BoolSpec(fal ...

  8. extMakeEnvirGui Quark

    + Spec { *guess { |key, value| if (value.isKindOf(SimpleNumber).not) { ^nil }; // label units as \guess so one can throw spec away later. ^if (value.abs > 0) { ControlSpec(value/20, value*20, \exp, 0, value, \guess) } { ControlSpec(-2, 2, \ ...

  9. NumericRange Quark

    NumericRange { var <>lo, <>hi, <>spec; *new { arg lo, 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); } ...

  10. miditest Quark

    ... // you might have added NamedControls in the Instr func // which will not have specs and shouldn't turn into midi controls if(i.notNil) { parg = patch.args[i]; socket.addControl( nil, // socket will allocate a controller for me argNames[i] ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow