Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (503) Code (48) Doc (99) Help (19) Quark (336) Plugin (1) SCDoc ↗ Forum ↗ Google ↗
  1. map Quark

    ... er, warp ); if( warp.isKindOf( CurveWarp ) or: { warp == 5 }) { warp = curve }; ControlSpec( min, max, warp, spec.step ).map( input ); }) .mappedArgs_( [ \min, \max, \warp ] ) .insertArgName_( \input ) .prepareArgsFunc_({ |args| var index; ...

  2. ValueUMapDef Quark

    ... dFunc| startFunc = instartFunc; endFunc = inendFunc; argSpecs = ([ [ \value, 0, ControlSpec(0,1) ], [ \active, false, BoolSpec(false) ], [ \u_spec, [0,1].asSpec, ControlSpecSpec(), true ], [ \u_useSpec, true, BoolSpec(true), true ], ] ++ ar ...

  3. map Quark

    ... }; min = min.clip(*clip); max = max.clip(*clip); warp = if( warp < 0, { spec.asControlSpec.warp.asSpecifier }, { warp }); if( warp.isKindOf( CurveWarp ) or: { warp == 5 }) { warp = curve }; ControlSpec( min, max, warp, spec.asControlSpec.s ...

  4. InfluxSpread Quark

    ... te into object halo specs... destDict.put(\specs, specs ?? { object.getSpec } ? ControlSpec.specs); destDict.put(\paramMap, paramMap); destDict.put(\scaler, scaler ? 1); // sendFunc can be a func or a symbol or nil sendFunc = sendFunc ? \se ...

  5. SplinePlayer Quark

    ... ev, nil] } gui { arg parent, bounds, maxTime; ^spline.gui(parent, bounds, spec, ControlSpec(0, maxTime??{spline.points.last.x})) } }

  6. MxMultiSplineTimeGui Quark

    ... layout, Rect(0, 0, layout.bounds.width, layout.bounds.height - 25), model.spec, ControlSpec(0, maxTime)); splineGui.onSelect = { arg i; pointSelector.activeValue = if(i.isNil, {-1}, {i}); }; ActionButton(layout, "EDIT", { model.gui(nil, 900 ...

  7. InstrGateSpawner Quark

    ... instr; inps = instr.specs.collect({ arg spec, i; var inp, sp; if(spec.class === ControlSpec, { sp = StreamSpec(spec) }, { sp = spec; }); inp = igs.args.at(i); if(inp.isKindOf(NumberEditor), { MxJack.forSpec(sp, inp.value ) }, { inp }) }); i ...

  8. extensions Quark

    ... ); ^synth; } linkArgs{|...args| Synth.prLinkControllersToNode(args,this); } } + ControlSpec { makeModel{ ^Ref(this.default) } makeValueController{ ^MethodController(this.makeModel,spec: this); } } + Object { getMethodControllers{ ^dependant ...

  9. MIDI control Quark

    ... ( \freq, val.linexp(0,127,20,20000) ); }, 1 ); ) ( // via mapSet the associated ControlSpec of \freq can be used to scale the value from the (0-1) range m = MIDIFunc.cc({ |val, num, chan, src| x[0][0].mapSet( \freq, val.linlin(0,127,0,1) ); ...

  10. SortedRand Quark

    ... minimum value // maxVal: maximum value // warp: a distribution warp (as seen in ControlSpec) // spread: equality of distribution; // 0 = full linear (no random) // 1 = equal distribution ( all steps < (2*n) ) // 2 = similar to ({0.0 rrand 1 ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow