2009-01-09 21:14:31 +00:00
|
|
|
AverageOutput : UGen {
|
|
|
|
*ar {
|
|
|
|
arg in, trig=0.0, mul=1.0, add=0.0;
|
|
|
|
^this.multiNew('audio', in, trig).madd(mul, add);
|
|
|
|
}
|
|
|
|
|
|
|
|
*kr {
|
|
|
|
arg in, trig=0.0, mul=1.0, add=0.0;
|
|
|
|
^this.multiNew('control', in, trig).madd(mul, add);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
SwitchDelay : UGen {
|
|
|
|
*ar { arg in, drylevel=1.0, wetlevel=1.0, delaytime=1.0, delayfactor=0.7, maxdelaytime=20.0, mul=1.0, add=0.0;
|
|
|
|
^this.multiNew('audio', in, drylevel, wetlevel, delaytime, delayfactor, maxdelaytime).madd(mul, add)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
XCut : UGen {
|
2009-01-09 23:12:53 +00:00
|
|
|
*ar { arg inArray, which=0.0, envLength=2000, mul=1.0, add=0.0;
|
|
|
|
^this.multiNewList(['audio', which, envLength, inArray.size] ++ inArray.asArray).madd(mul, add);
|
2009-01-09 21:14:31 +00:00
|
|
|
}
|
2009-01-09 22:52:35 +00:00
|
|
|
}
|