The mc.targetlist object simplifies creating the messages used to target specific instances within MC wrapper objects. The object maps the index of an inlet where a message was received to a voice index used in the resulting message.
A symbol argument, if present, sets a message to use inmessage output. For example, if the argument is , the resulting message output for voice index 1 and an int with a value of 10 would be .
voice index [int]
You can specify one or more voice index values to be associated with each inlet. For example, if the arguments are 5 6 7 8, four inlets are created and the left inlet is associated with voice index 5, the next inlet with 6, and so on. If no numbers are supplied as arguments, two inlets are created. The left inlet is associated with voice index 1 and the right inlet with voice index 2.
inlet count [int]
To specify a number of inlets without having to type in a voice index for each one, precede an inlet count value with. and the inlet count must be the last typed-in arguments.
listmode [int] (default: 0)
When enabled, the listmode attribute produces individual for each element in the list, as if you had sent each list element separately to successive inlets. For example, with listmode disabled, a list received in the left inlet of an mc.targetlist object with four inlets would produce the message . With listmode enabled, the mc.targetlist object would produce four separate messages: , , , and .
Common Box Attributes
|Event-handling with MC||Event-handling with MC|
|New MC Event Objects||New MC Event Objects|
|MC Wrapper Polyphony||MC Wrapper Polyphony|