Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (503) Code (48) Doc (99) Help (19) Quark (336) Plugin (1) SCDoc ↗ Forum ↗ Google ↗
  1. 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 ...

  2. JInT_Surface Quark

    ... ity = argSens; dt = argDt; controllers = [ JInTC_Knock("Knock Surface", server, ControlSpec(0, 1, default: 0), // knock pressure audioInBus ).short_(\knock) ] } startCustom { if (notInitialized) { this.initialize; }; // fi this.controllers. ...

  3. round Quark

    ... { |spec| var center; spec = spec.copy; if( spec.isKindOf( FreqSpec ) ) { spec = ControlSpec.newFrom( spec ); }; if( spec.respondsTo( \warp ) ) { if( spec.warp.asSpecifier == \exp ) { center = spec.map( 0.5 ); center = center / spec.maxval; ...

  4. round Quark

    ... { |spec| var center; spec = spec.copy; if( spec.isKindOf( FreqSpec ) ) { spec = ControlSpec.newFrom( spec ); }; if( spec.respondsTo( \warp ) ) { if( spec.warp.asSpecifier == \exp ) { center = spec.map( 0.5 ); center = center / spec.maxval; ...

  5. extControlSpec Quark

    ... dation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + ControlSpec { // fixes warp float input, thanks to @avdrd miSC_specAsArray { |synthName, metaKey = \specs, useGlobalSpecs = true| ^[this.minval, this.maxval, th ...

  6. GridLines Quark

    ... .bounds; this.draw }); }; bounds = bounds ?? {userView.bounds}; spec = spec ?? {ControlSpec(0, 1, 'linear', 0, 0.5, "")}; domainSpec = domainSpec ?? {ControlSpec(0, 1, 'linear', 0, 0.5, "")}; GUI.skin.at(\plot).use { font = ~gridFont ?? { F ...

  7. softVol_ Help

    ... n first. lastVal the previous value that the controller has set - can be spec a ControlSpec can be passed in. if nil, \amp.asSpec is used. See also softSet , softPut . Ndef ( \test , { |freq=200| Splay.ar( SinOsc .ar(freq * Array.rand(12, 0 ...

  8. extDictBlend Quark

    ... a.blend2(b, 0.5, \sect) a.blend2(b, 0.5, \right) a.blend2(b, 0.5, \union) */ + ControlSpec { blend { |val1, val2, blend = 0.5| ^this.map( this.unmap(val1).blend( this.unmap(val2), blend ) ); } } + Dictionary { // mode is one of [ \left, \r ...

  9. OssiaGui Quark

    ... ter.unit.notNil) { if (anOssiaParameter.unit.string == "gain.decibel") { widget.controlSpec.warp_(\db) }; }; }; if (anOssiaParameter.domain.min.notNil) { widget.controlSpec.minval_(anOssiaParameter.domain.min); widget.controlSpec.maxval_(an ...

  10. Using MultiSliderView to control the harmonics of a wavetable by zecraum (zecraum) Code

    ... .0); ms.gap_(10); slid=Slider(w,Rect(20*harmonics+10, 0, 20, 100)); cspec= ControlSpec(70,1000, 'exponential', 10, 440); slid.action_({x.set(\rate, cspec.map(slid.value)); }); slid.value_(0.3); slid.action.value; w.front; cha ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow