-
LayoutValueSlider : SCViewHolder { var <value, <spec, number, slider, <action; *new { |parent, bounds, initValue = 0, spec, numberWidth = 50| ^super.new.init(parent, bounds, initValue, spec, numberWidth) } value_ { |new| value = spec.constr ...
-
... gle, 'hidUsage': 1, 'hidUsagePage': 9, 'elementType': 'button', 'ioType': 'in', spec: \hidBut, mode: \push ), ( key: \circle, 'hidUsage': 2, 'hidUsagePage': 9, 'elementType': 'button', 'ioType': 'in', spec: \hidBut, mode: \push ), ( key: 'c ...
-
[ \joy_X, ( type: \joyAxis, mode: \center, osx: ( cookie: 16, spec: \cent255),linux: ( slot: [3,0], spec: \cent1 ) ), \joy_Y, ( type: \joyAxis, mode: \center, osx: ( cookie: 17, spec: \cent255 ), linux: ( slot: [3,1], spec: \cent1inv ) ), \ ...
-
... n: inf).play; }; this.changed(\noteOff, num, notes.last); } cc { |key, val| var spec = midiFuncs[key]; if(spec.notNil) { spec.put(\val, val); (type: \psSet, proxyspace: proxyspace, skipArgs: spec[\skipArgs]) .put(spec[\name], spec[\spec].ma ...
-
... = Instr.objectAt(name); if(search.isNil,{ ^nil }); ^search.asSynthDef } } /** asSpec **/ + Spec { rate { ^\noncontrol } *findKeyForSpec { arg spec; var matching,exact; // find the exact spec object exact = Spec.specs.findKeyForValue(spec); ...
-
... Instr.objectAt(name); if(search.isNil, { ^nil }); ^search.asSynthDef } } /** asSpec **/ + Spec { rate { ^\noncontrol } *findKeyForSpec { arg spec; var matching, exact; // find the exact spec object exact = Spec.specs.findKeyForValue(spec); ...
-
... ult UMapDefs set */ UPatDef( \p_envir_get, { |unit, key = 'a'| { var kkey, val, spec, fromSpec; spec = unit.spec ?? { [0,1].asSpec; }; loop { kkey = key.next.asSymbol; if( kkey.notNil ) { val = currentEnvironment[ kkey ] ? (spec.default); f ...
-
... |unit, semitones = 0| semitones.midiratio; }) .mappedArgs_([ \semitones ]) .setSpec( \semitones, UAdaptSpec({ |spec| ControlSpec( spec.minval.ratiomidi, spec.maxval.ratiomidi, \lin, 0, spec.default.ratiomidi ); }) ) .canUseUMapFunc_({ |uni ...
-
TestControlSpec : UnitTest { test_equals { var a,b,c; a = ControlSpec(0, 1, 'linear', 0, 0.0, ""); b = ControlSpec(0, 1, 'linear', 0, 0.0, ""); c = ControlSpec(0, 2, 'linear', 0, 0.0, ""); // no really, this failed ! this.assert( a == b, "2 ...
-
... ctX.ar(reverbWet, [dst, AdCVerb.ar(0.1 * dst, 10)]) ); }); ) ( // control range specifications Spec.add(\freq0, [1, 20000, \exp]); Spec.add(\freq1, \freq0); Spec.add(\freq2, \freq0); Spec.add(\in, [0, 2, \lin, 1, 1]); Spec.add(\amp0, [0, 1] ...