Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (1238) Code (32) Doc (255) Help (35) Quark (914) Plugin (2) SCDoc ↗ Forum ↗ Google ↗
  1. 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); } ...

  2. 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] ...

  3. extMakeEnvirGui Quark

    ... ui.useHalo(this.object); }; } } + EnvirGui { // obj is an envir or nil // clear specs when object changes object_ { |obj| if (this.accepts(obj)) { object = obj; specs.clear.parent_(nil); this.checkUpdate; }; } // new getSpec logic // - if t ...

  4. extSymbol-uEnvirPut Quark

    + Symbol { uEnvirPut { |value, spec| currentEnvironment.put( this, value.value ); if( spec.notNil ) { currentEnvironment[ \u_specs ] = currentEnvironment[ \u_specs ] ?? {()}; currentEnvironment[ \u_specs ].put( this, spec ); }; currentEnvir ...

  5. time_freq Quark

    ... 12) ); }, { |unit, time = 0.002, factor = 1| factor / time.max(1.0e-12); }) .setSpec( \time, UAdaptSpec({ |spec| SMPTESpec( 1/spec.maxval, 1/(spec.minval.max(1.0e-12)) ); }) ) .setSpec( \factor, [ 0.1, 10, \exp ].asSpec ) .canUseUMapFunc_({ ...

  6. default Quark

    ... . ADDING NEW FX - Please prefix them with \ofx_ like you see below - Write good specs for everything SUGGESTED SERVER SETTINGS: s.options.numWireBufs_(2048); s.options.memSize_(2.pow(19)); s.options.numBuffers_(10000); */ ( "Loading default ...

  7. UMapOut Quark

    UMapOut { *kr { |channelsArray, map = true, clip = true| var spec; ReplaceOut.kr( UMap.busOffset + \u_mapbus.ir(0), if( map ) { Udef.addBuildSpec( ArgSpec(\u_spec, [0,1,\lin].asSpec, ControlSpecSpec(), true, \init ) ); Udef.addBuildSpec( Ar ...

  8. UMapOut Quark

    UMapOut { *kr { |channelsArray, map = true, clip = true| var spec; ReplaceOut.kr( UMap.busOffset + \u_mapbus.ir(0), if( map ) { Udef.addBuildSpec( ArgSpec(\u_spec, [0,1,\lin].asSpec, ControlSpecSpec(), true, \init ) ); Udef.addBuildSpec( Ar ...

  9. OFX_Chain Quark

    ... allSources = (); sourceDicts = (); all = (); defaultsLoaded = false; // this.addSpec; } // old style - not recommended: add list of sources // *add { |...args| // args.pairsDo { |srcName, source| // this.addSource(srcName, source); // } // ...

  10. extArray Quark

    ... nal = arr2.linlin(arr1.first, arr1.last, -1, 1).round(0.0000001); ^final; } funcSpec {var func, spec, specFunc; if( this.collect({|item| item.isFunction }).includes(true), { func = this.select({|item| item.isFunction })[0]; spec = this.reje ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow