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

  8. 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 ...

  9. extVarGui_6 Quark

    ... m, chan, src = args; slider = this.varCtrSliders[varSliderIndex]; spec = slider.controlSpec; val = spec.map(val / 127); { this.updateVarSliders (key, varNum, val, indexOffset) }.defer; }, ccNum, chan, srcID); } midiBindSynthSlider { |key, s ...

  10. cat Quark

    // SOUND 2 // the DubCat example from our Class: ( // controlspecs // // if JITLibExtensions are used, you can make space local: // Ndef(\cat).addSpec(\pFreq, [20, 400, \exp]); // Ndef(\cat).addSpec(\pWidth, [0.01, 0.5, \exp]); // Ndef(\cat ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow