mc.target Reference

Format messages to control MC objects

mc.target

Description

The mc.target object simpifies creating the setvalue messages used to target specific instances within MC wrapper objects.

Examples

Arguments

prepend [symbol]

Optional

A symbol argument, if present, sets a message to use in setvalue message output. For example, if the argument is tree, the resulting message output for voice index 1 and an int with a value of 10 would be setvalue 1 tree 10.

initial voice [int]

Optional

An int argument, if present, sets the initial value of the voice index. By default the voice index is initially 0. setvalue 0 tells the MC wrapper to send the message following the 0 to all instances.

Attributes

append [atom]

The append attribute can be set to one or more items to place at the end of the setvalue message produced by the object. By default nothing is appended.

prepend [atom]

The prepend attribute can be set to one or more items to place at the beginning of the arguments to the setvalue message produced by the object (in other words, setvalue always comes first). By default nothing is prepended.

Common Box Attributes

Messages

bang

In left inlet: bang is repeated to the left outlet preceded by setvalue and the current voice index.

int

In left inlet: The number is repeated to the left outlet preceded by setvalue and the current voice index.

In right inlet: Sets voice index (0 - 1024) to be used for subsequent setvalue messages triggered by messages received in the left inlet.

float

In left inlet: The number is repeated to the left outlet preceded by setvalue and the current voice index.

In right inlet: Converted to int. Sets the voice index (0 - 1024) to be used for subsequent setvalue messages triggered by messages received in the left inlet.

list

In left inlet: The list is repeated to the left outlet preceded by setvalue and the current voice index.

anything

In left inlet: The message is repeated to the left outlet preceded by setvalue and the current voice index.

voice

Arguments

index [int]
In any inlet: the word voice, followed by a number (0 - 1024), sets the voice index used for subsequent setvalue messages triggered by messages received in the left inlet.

See Also

Name Description
MC MC
Event-handling with MC Event-handling with MC
New MC Event Objects New MC Event Objects
MC Wrapper Polyphony MC Wrapper Polyphony
mc.makelist
mc.targetlist
mc.voiceallocator~
mc.noteallocator~