A mixing idiom that corresponds to Seq.fill
.
A mixing idiom that is not actually adding elements, but recursively folding them.
A mixing idiom that is not actually adding elements, but recursively folding them.
Calling this method is equivalent to
(1 to n).foldLeft(elem) { (res, _) => fun(res) }
It is often used in the SuperCollider examples to apply a filtering process such as reverberation several times. For cases where the iteration index is needed, the full form as shown above can be used instead.
the input element
the number of iterations
a function that is recursively applied to produce the output
A special mix that flattens all input elements before summing them, guaranteeing that result is monophonic.
A mixing idiom that corresponds to Seq.tabulate
and to Array.fill
in sclang.
Contains several helper methods to produce mixed (summed) signals.