1 GrainSin : MultiOutUGen {
2 *ar { arg numChannels = 1, trigger = 0, dur = 1, freq = 440, pan = 0, envbufnum = -1,
3 maxGrains = 512, mul = 1, add = 0;
4 ^this.multiNew('audio', numChannels, trigger, dur, freq, pan, envbufnum, maxGrains)
8 init { arg argNumChannels ... theInputs;
10 ^this.initOutputs(argNumChannels, rate);
12 argNamesInputsOffset { ^2 }
15 GrainFM : MultiOutUGen {
16 *ar { arg numChannels = 1, trigger = 0, dur = 1, carfreq = 440, modfreq = 200, index = 1,
17 pan = 0, envbufnum = -1, maxGrains = 512, mul = 1, add = 0;
18 ^this.multiNew('audio', numChannels, trigger, dur, carfreq, modfreq, index, pan, envbufnum,
19 maxGrains).madd(mul, add);
22 init { arg argNumChannels ... theInputs;
24 ^this.initOutputs(argNumChannels, rate);
27 argNamesInputsOffset { ^2 }
30 GrainBuf : MultiOutUGen {
31 *ar { arg numChannels = 1, trigger = 0, dur = 1, sndbuf, rate = 1, pos = 0, interp = 2,
32 pan = 0, envbufnum = -1, maxGrains = 512, mul = 1, add = 0;
33 ^this.multiNew('audio', numChannels, trigger, dur, sndbuf, rate, pos, interp, pan,
34 envbufnum, maxGrains).madd(mul, add);
37 init { arg argNumChannels ... theInputs;
39 ^this.initOutputs(argNumChannels, rate);
41 argNamesInputsOffset { ^2 }
44 GrainIn : MultiOutUGen {
45 *ar { arg numChannels = 1, trigger = 0, dur = 1, in, pan = 0, envbufnum = -1, maxGrains = 512,
47 ^this.multiNew('audio', numChannels, trigger, dur, in, pan, envbufnum, maxGrains)
51 init { arg argNumChannels ... theInputs;
53 ^this.initOutputs(argNumChannels, rate);
55 argNamesInputsOffset { ^2 }
58 Warp1 : MultiOutUGen {
59 *ar { arg numChannels = 1, bufnum=0, pointer=0, freqScale = 1,
60 windowSize = 0.2, envbufnum = -1, overlaps = 8, windowRandRatio = 0.0, interp=1,
62 ^this.multiNew('audio', numChannels, bufnum, pointer, freqScale,
63 windowSize, envbufnum, overlaps, windowRandRatio, interp).madd(mul, add);
66 init { arg argNumChannels ... theInputs;
68 ^this.initOutputs(argNumChannels, rate);
70 argNamesInputsOffset { ^2 }