In my script a note plays samples from several layers (several microphones). So I have something like this:
id1=playNote(event.note, event.velocity, -1, layers[1])
id7=playNote(event.note, event.velocity, -1, layers[7])
id22=playNote(event.note, event.velocity, -1, layers[22])
Do I understand correctly that there is no other way rather than dealing with all three ids later in the script? For examples to change volume or pan. Is there an elegant way to do it? Like putting in one multidimensional array or so?
I’m asking because, for example, in Kontakt allowing of several groups (layers) doesn’t multiply notes ids. The id is one and it’s pretty easy to deal with it later on. Schematically it goes like this:
id=play_note()
allow group(1) for id
allow group(7) for id
allow group(22) for id
And in Halion for just one pressed key I got a bunch of ids I must remember about.