-
... { |rect, alpha=1.0| Pen.fillColor = this.alphaCopy_( alpha ); ^Pen.fill; } } + Function { penFill { |rect, alpha=1.0, fromRect| Pen.use({ Pen.clip; this.value( rect, alpha, fromRect ); }) } } + Symbol { penFill { |rect| Pen.use({ Pen.clip; ...
-
... s://github.com/supercollider-quarks/wslib) quark. ### Debouncer a debouncer for functions ### DebounceCounter A debounce counter -- good for double-click detection. ### ActionMenu Closes on click outside or on escape. .mean(this.value(_)) } // Simpson's rule integrateSimp { |a, b| ^absdif(a, b) / 6.0 * (this.(a) + this.(b) + (4.0 * this.(a + b / 2))) } // William M. McKeeman: Algorithm 145: Adaptive nu ...
-
... vfol; ~description = "Envelope follower (audio rate)"; ~channelLayout = \mono; ~function = {|in = 0, decaycoeff = 0.99, amp = 10.0, lpf = 20 | var env, out; in.scope; env = LPF.ar(PeakFollower.ar(in), lpf, mul: 50, add:-1); env.scope; env; ...
-
/* these function as effects on the input of the synth or sample (see SynthDefs in core-synths) they respond to the existence of a value for one of the tidal parameters // "to" is an internal superdirt audio routing bus index. So you play a ...
-
... lastdata; // histogram: var <>histoMin, <>histoMax, <>histoSteps = 100; // This function takes an arbitrary array and plots the values *initClass{ Platform.case(\osx, { // on OSX, common "x11" term doesn't work by default (since SC not unde ...
-
... lastdata; // histogram: var <>histoMin, <>histoMax, <>histoSteps = 100; // This function takes an arbitrary array and plots the values *initClass{ Platform.case(\osx, { // on OSX, common "x11" term doesn't work by default (since SC not unde ...
-
... od); } // run a single test method of this class runTestMethod { | method | var function; ("RUNNING UNIT TEST" + this.class.name ++ ":" ++ method.name).inform; this.class.forkIfNeeded { this.setUp; currentMethod = method; this.perform(metho ...
-
... fix ++ key); var val = this.at(key); var arglist, argNames; case { val.isKindOf(Function) } { arglist = ""; argNames = (val.def.argNames ? []).drop(1); if (argNames.size > 0) { arglist = "(" ++ argNames.collect { |name| name.asString ++ ": ...