Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... { arg layout; var l; l=this.guify(layout); num = NumberEditor(model.amp.ampdb, ControlSpec(0.ampdb, 2.ampdb, \db, units: " dB")); num.action_({ arg val; model.amp_(val.dbamp) }); num.gui(l); if(layout.isNil, { l.front }); } update { arg ch ...

  2. cat Quark

    // SOUND 2 // the DubCat example from udk gencomp class: ( // controlspecs Ndef(\cat).addSpec(\pFreq, [20, 400, \exp]); Ndef(\cat).addSpec(\pWidth, [0.01, 0.5, \exp]); Ndef(\cat).addSpec(\filt, [1, 32, \exp]); Ndef(\cat).addSpec(\q, [1, 100 ...

  3. time_freq Quark

    ... nc_({ |unit, key, umapdef| var spec; spec = unit.getSpec( key ); spec.isKindOf( ControlSpec ) && { spec.default.size < 2 && { spec.minval > 0 && { spec.maxval < inf } } }; }) .mappedArgs_( [ \time ] ) .category_( 'convert' )

  4. extSymbol_2 Quark

    ... if { this.miSC_expandCtrs(x, metaKey, useGlobalSpecs) }{ x } } } miSC_findGlobalControlSpec { var item = Spec.specs[this]; ^item.isKindOf(ControlSpec).if { item }{ nil }; } miSC_getControlTuples { | exclude, metaKey = \specs, useGlobalSpecs ...

  5. cat Quark

    // SOUND 2 // the DubCat example from our Class: // controlspecs Ndef(\cat).addSpec(\pFreq, [20, 400, \exp]); Ndef(\cat).addSpec(\pWidth, [0.01, 0.5, \exp]); Ndef(\cat).addSpec(\filt, [1, 32, \exp]); Ndef(\cat).addSpec(\q, [1, 1000, \exp]); ...

  6. synths Quark

    ... r(p,freq * ffreqInterval.midiratio,rq); Enveloper2.ar(p,trig,env) },[ nil, nil, ControlSpec(-48,48,\linear,1,0), nil, \envperc, \qnty, StaticSpec(0,20) ],\audio); Instr([\synths,\PulseFix],{ arg trig=1.0, freq=440, ffreqInterval=0,rq=0.4,en ...

  7. pbell1 Quark

    ... out(w.view.bounds); w.view.decorator.gap=8@2; g = EZSlider(w, 380@20, "pitch ", ControlSpec(40, 110, \lin, 1, 60)); g.action_({ |ez| ( ~ballSet.set(\note, [ ez.value, i.value, j.value ] ))}); i = EZSlider(w, 380@20, "amp", ControlSpec(0, 1, ...

  8. sSentograph Quark

    ... updateCalibrationNumbers; var calibrateRoutineGui; var resetButton; var xSpec= ControlSpec(-4500, 4500, 'lin', 0, 0); //TODO check for real min and max var ySpec= ControlSpec(-4500, 4500, 'lin', 0, 0); var zSpec= ControlSpec(-9000, 0, 'lin ...

  9. model-view-controller Quark

    ... controller.set(\freq, 600); /* ~view = ExtendableObject(EZSlider(bounds:300@40, controlSpec:\freq).alwaysOnTop_(true)); ~view.update = { |sender, receiver, selector, key, val| if(selector == \put) { ~view.object.value = val } }; ~controller ...

  10. miditest Quark

    ... n array each element of which corresponds to an arg in order // nil specs go to ControlSpecs.specs to look by name // to give a default value for a midi control, put it in the spec + SynthDef { miditest { arg channel = 0, specs, target, bus ...

prev 11 12 13 14 15 16 17 18 19 20 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow