zl queue / speaker index number selected consequently
Hi everyone,
A newbie here - I exhausted all my ideas and now really need your help here. Apologies in advance for my messy patch, I got a bit lost and I think I might have overcomplicated a simple task, seems way too messy for max :)
What I am trying to do is to have speakers 'communicate' to each other, meaning - I have a list of 7 elements
(each representing a speaker) generated by a drunk object (0 and 1) in which 1 presents the speaker that would be the first one to play something. Once that speakers is activated, it should start activating all the other ones (without repetition) until they have all played that one sample.
So it should go something like this:
input n (index of the 1st speaker)
activate n+1, n-1
activate n+2, n-2
and so on until n = max (7)....
The patch I've created so far does work in a way, but not entirely how it supposed to...zl queue duplicates the elements from the list for some reason and that main (1st) speaker doesn't get triggered at all?

I've attached my patch below, thank you for all your help!
n + 1
n-1
n+2
n-1
....
You hit one of seven and want to spread in both directions ?
using done play bang from 1st player, and then next ones ?
There are so many ways in max to do so, by rotating lists,
or simpy using some populated menues or coll, and use prev next
mssages or inc dec , depending on objects used etc, to move in both directions from starting point.
here one example using gui objects for better visibility
but you can get away with zl objects as well.
Works like heaven and it looks neat. Thanks!
Yes, the idea is that one of them starts first, and then it spreads in both directions, as they can 'hear' each other.
Although it was a good practice to try it all out with zl objects, now I know better what is possible with them. But this is a much smoother solution. Hvala jos jednom!
na usluzi, samo javi ako opet sto zapne.