[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[sc-users] voicer
why does the first version work, the second one not:
I.
(
var snds,snd, index;
{Voicer.ar( { arg voicer, cnt, synth, deltaTme, channel, note,
velocity;
snds = [...snd1...,...snd2..., etc.];
index = note - 60;
if (index == 0 {snd = snds.at(0)});
if (index == 1 {snd = snds.at(1)});
if (index == 2 {snd = snds.at(2)});
... etc.
snd},
1,1,8)}.play
)
II.
(
var snds,snd, index;
{Voicer.ar( { arg voicer, cnt, synth, deltaTme, channel, note,
velocity;
snds = [...snd1...,...snd2..., etc.];
index = note - 60;
snd = snds.at(index)},
1,1,8)}.play
)
???
thanks for help,
j.quint