Here’s is a piece of code from James Mccartney
Is there a reason why he is using an array fill in a mix.ar and not just mix.fill
I Isolated the piece of code ( varaible s ) and it’s identical when just using mix.fill.
I am aware that older supercollider version sused mix.ar and that these are now replaced with mix
`///////origal code by James McCartney
(
{
var s, z, y;
// 10 voices of a random sine percussion sound :
s = Mix.ar(Array.fill(10, { Resonz.ar(Dust.ar(0.2, 50), 200 + 3000.0.rand, 0.003)}) );
// reverb predelay time :
z = DelayN.ar(s, 0.048);
// 7 length modulated comb delays in parallel :
y = Mix.ar(Array.fill(7,{ CombL.ar(z, 0.1, LFNoise1.kr(0.1.rand, 0.04, 0.05), 15) }));
// two parallel chains of 4 allpass delays (8 total) :
4.do({ y = AllpassN.ar(y, 0.050, [0.050.rand, 0.050.rand], 1) });
// add original sound to reverb and play it :
s+(0.2*y)
}.scope
)
///////////////////// Isolated the first line variable s
(
{
Mix.ar(Array.fill(10, { Resonz.ar(Dust.ar(0.2, 50), 200 + 3000.0.rand, 0.003)}) )!2
}.play
)
/////////Removing the array fill and only using the mix.fill
(
{
Mix.fill(10,{Resonz.ar(Dust.ar(0.2, 50),200 + 3000.0.rand,0.003)})!2;
}.play
)
/////////////////
`