/*************************************************************************************/
/*
Simple crossfade
*/
/*************************************************************************************/
/*
XFadeTexture.ar
*/
/*************************************************************************************/
XFadeTexture: cross fade events
XFadeTexture.ar(newEventFunc, sustainTime, transitionTime, numChannels,
maxRepeats, mul, add)
Creates a series of cross faded sounds from a user function.
newEventFunc - You supply a function that returns a graph of unit generators.
If it returns
nil, then no event is spawned this time. This function is passed two
arguments. The first
argument is the Spawn object itself. You can control the behaviour
of the Spawner by
passing messages to it from within your function. The second argument
is the event counter
which is zero for the first event and increments for each event.
sustainTime - the sustain time of the envelope.
transitionTime - transition time of envelope. The envelope transition
consists of
two linear segments. The first rises from zero amplitude to 0.707 (-3
dB) and the second
rises from 0.707 to 1.0.
numChannels - number of output channels.
maxRepeats - integer, if nil then infinite loop.
(
var amp = 0.5,
susT = 2.3,
tranT = 0.1,
numCh = 1,
maxRep = 5;
scope({
XFadeTexture.ar( { Saw.ar(2500.rand, amp) },
susT, tranT, numCh, maxRep)
});
)