Signal routing and mixing matrix
Name | Type | Opt | Description |
---|---|---|---|
number-of-inlets | int | Obligatory. The first argument specifies the number of inlets. | |
number-of-outlets | int | Obligatory. The second argument specifies the number of outlets. | |
nonbinary-connection-flag (initial-connection-gain) | float | opt | If a float value is provided as a third argument, matrix~ operates in its non-binary mode. The argument sets the gain value that will be used when connections are created. |
list | inlet-to-outlet indices [list] |
In left inlet: A list of three ints may be used to connect inlets and outlets when the matrix~ object is in binary mode. The first int specifies the inlet, the second int specifies the outlet, and a third int is used to specify connection or disconnection. If the third int is nonzero value, the inlet of the first int will be connected to the outlet specified by the second int. A zero value for the third int in the list disconnects the inlet-outlet pair. If the matrix~ object is operating in non-binary mode, A list of two ints followed by a float sets the gain of the connection between inlet i and outlet o to the value specified by the float. Note: To specify the gain of individual connections, you must use three-element list messages rather than the message. Connections formed with the message always have a gain specified by the third argument initially given to the matrix~ object. However, subsequent list messages can alter the gain of connections formed with the message. The addition of an optional fourth element to the list message can be used to specify a ramp time, in milliseconds, for the individual connection (e.g., would connect the first inlet to the second outlet and specify a gain of .8 and a ramp time of .5 seconds). |
clear | In left inlet: The word | removes all connections.|
connect | inlet-to-outlet indices [list] |
In left inlet: The word | , followed by one or more ints, will connect any inlet specified by the first int to the outlet or outlets specified by the remaining ints in the list. Inlets and outlets are numbered from left to right, starting at zero. For example, the message would connect the first inlet from the left to the leftmost outlet and the second outlet from the left.
disconnect | inlet-to-outlet indices [list] |
In left inlet: The word | , followed by one or more ints, will disconnect any inlet specified by the first int to the outlet or outlets specified by the remaining ints in the list.
dump | In left inlet: The word matrix~ object connections to be sent out the rightmost outlet of the object in the form of a list for each connection. The list consists of two numbers which specify the inlet and outlet, followed by a float which specifies the gain for the connection. Note that in non-binary mode the current gains are not necessarily the same as the target gains of all matrix~ object connections, since a connection's gain can ramp to its new target over time. | causes the current state of all|
dumptarget | In left inlet: The word matrix~ object connections to be sent out the rightmost outlet of the object in the form of a list for each connection. The list consists of two numbers which specify the inlet and outlet, followed by a float which specifies the target gain for the connection. Note that in non-binary mode the target gains are not necessarily the same as the current gains, which can be accessed with the message. | causes the target state of all|
In left inlet: The word matrix~ object connections to be printed in the Max window in the form of a list for each connection. The list consists of two numbers which specify the inlet and outlet, followed by a float which specifies the gain for the connection. | causes the current state of all||
ramp | delta-time (milliseconds) [int] |
In left inlet: The word matrix~ object is in non-binary mode. The default millisecond value is 10. | , followed by a number, sets the time in milliseconds use to change gain values when the
Name | Description |
---|---|
gate~ | Route a signal to one of several outlets |
matrixctrl | Matrix switch control |
receive~ | Signals can be received from any loaded patcher, without patch cords |
router | matrixctrl-compatible Max message router |
selector~ | Assign one of several inputs to an outlet |
send~ | Transmit signals without patch cords |