Two different approaches to stochastic synthesis, inspired by Iannis Xenakis:
First, a waveform in which each sample point takes a random walk, stepping to a new value on each new cycle (the cycle length is determined by the frequency you supply).
In most implementations of stochastic waveform synthesis, a small number of random breakpoints are generated and the remaining samples of the waveform are obtained by linearly interpolating between the breakpoints. In our approach, every sample point of the waveform is randomly generated. Once per cycle, each sample point takes a step of a random size in a random direction.
To more closely emulate the breakpoint approach, we've also included an example where the waveform is downsampled with a SampleAndHold? (to create break points) and those points are integrated to create linear interpolation between the points.
In the second approach we used the XenOscil? with 15 breakpoints, each of which takes a random walk.
-- CarlaScaletti - 03 Feb 2013
-- KurtHebel - 03 Feb 2013