-
... ngth of a measure. asAddendsOf{ arg sum; var result, values, val; result = this.class.new; values = this.copy; while({ sum > 0 },{ val = values.choose; if( val <= sum, { result = result.add(val); sum = sum - val; }, { // value can't be used ...
-
/* hyperplane-based tree classifiers, (c) 2009-2011 Dan Stowell */ PlaneTree : UGen { *kr { |treebuf, in, gate=1| ^this.multiNew('control', treebuf, gate, *in) } *categories { ^ #["UGens>Analysis"] } // a LANGUAGE-SIDE equivalent of the cla ...
-
... ntrol', bufnum, reset, numframes]) } *categories { ^ #["UGens>Buffer"] } } GaussClass : UGen { *kr { | in, bufnum=0, gate=0 | ^this.multiNewList(['control', bufnum, gate] ++ in.asArray) } *categories { ^ #["UGens>Analysis", "UGens>Buffer"] ...
-
Feedback { //basic feedback class... buffer size needs to be the same as the delayTime //e.g. for a 0.1 sec delay time, a buffer should be allocated as such: //s.sendMsg(\b_alloc, 1, 44100*0.1, 1); *ar {arg in, feedbackpct = 1, delayTime = ...
-
BBlockerProgram { classvar <instructions, descs; var <program, <>fillUpRandom = false; var collection; *new {|program| ^super.new.init(program) } init {|argProgram| this.class.initStates; program = argProgram.asArray; } // search in descs * ...
-
LADSPA : MultiOutUGen { classvar <>ladspalist_path; *ar {|nChans, id ... args| ^this.multiNewList(['audio',nChans,id] ++ args); } init {|... theInputs| inputs = theInputs; channels = {|n| OutputProxy(rate, this, n)} ! inputs[0]; if (inputs[ ...
-
... ix).slice(channels) } init { | ... args | inputs = args; ^this.initOutputs(this.class.numOperators, rate) } checkInputs { ^if (inputs.size != this.class.numRequiredInputs) { this.class.numRequiredInputs.asString + "inputs required (" ++ inp ...
-
MultiOutDemandUGen : DUGen { // a class for UGens with multiple outputs var <channels; *newFromDesc { arg rate, numOutputs, inputs; ^super.new.rate_(rate).inputs_(inputs).initOutputs(numOutputs, rate) } initOutputs { arg numChannels, rate; ...
-
... width=21, reset=0, ana; var releaseTime; label = label ?? { "UGen(%)".format(in.class) }; label = label.asString.collectAs(_.ascii, Array); if(ana.isNil){ana = {|sig| releaseTime = if(trig.isNumber){1/trig}{5}; if(rate === \audio){ A2K.kr(A ...
-
... / Some of these UGens are rather buggy and don't behave right... // look up the class files to see which arguments each of the synths have s =Server.local.boot {StkPluck.ar}.play(s) {StkMandolin.ar(mul:3)}.play(s) // prob {StkSaxofony.ar(mu ...