Connect a crosspatch to a client object (including matrix~, mcs.matrix~, mc.matrix~, matrix, gate~, mc.gate~, mcs.gate~, gate, selector, mc.selector~, mcs.selector~, and switch) to use a patching interface to edit connections between inputs and outputs.
When crosspatch is connected to a single client object, it operates in two-way mode . In this mode, crosspatch can change the client object and changes to the connected object are reflected in the visual state of crosspatch. In two-way mode , you cannot change the number of inputs or outputs of crosspatch; it will always show the number of inputs and outputs of the connected object. When crosspatch is connected to two or more matrix objects, it operates in one-way mode . In this mode, changes to the matrix objects other by the UI of crosspatch are not reflected in the visual state, and you can change the number of inputs and outputs freely. This means the UI and the underlying state of the objects it is controlling could get out of sync. To avoid this, use crosspatch in two-way mode only.
When you connect crosspatch to an mc.matrix object (which is multiple instances of matrix~ in the MC Wrapper), the state of all contained matrix~ instances will change together. You cannot use crosspatch to edit individual matrix~ objects within an mc.matrix.
allowdisabled [int] (default: 0)
Sets whether connections can be made to disabled inputs or outputs.
bgcolor [4 floats]
Sets the object's background color.
candycane [int] (default: 1)
Sets the number of colors to cycle through when displaying connections and labels. The default value of 1 shows only the linecolor; values above 1 show one or more of the candycane colors.
candycane2 [4 floats]
Candycane Color 1
candycane3 [4 floats]
Candycane Color 2
candycane4 [4 floats]
Candycane Color 3
candycane5 [4 floats]
Candycane Color 4
candycane6 [4 floats]
Candycane Color 5
candycane7 [4 floats]
Candycane Color 6
candycane8 [4 floats]
Candycane Color 7
candymode [int] (default: 0)
Controls whether inputs our output positions determine the color of a connection.
0 = 'Using Input' ( Input position will determine connection color )
1 = 'Using Output' ( Output position will determine connection color )
colorlabels [int] (default: 0)
When colorlabels is enabled, the connection color is also used to display corresponding input and output labels according to the setting of the candymode attribute.
connectacrossdividers [int] (default: 1)
Sets whether connections can cross any visual dividers (set via the dividers attribute) that are currently showing.
dividercolor [4 floats]
Sets the color used to draw visual dividers.
To group inputs or outputs visually you can draw horizontal lines across the crosspatch object with the dividers attribute. Dividers are defined using either the word or followed by an index. The resulting vertical position of the line will be after the specified input or output. Note that divider lines are always horizontal so if the number of inputs and outputs is not equal, a divider defined by an input may cross an output or vice versa. You can prevent connections across the horizontal divider lines by enabling the connectacrossdividers attribute.
embed [int] (default: 1)
If embed is true, connections are saved with the patcher and restored when reloading it. All attributes (including embed) are always saved with the object.
exclusive [int] (default: 0)
The exclusive attribute controls whether multiple connections from a single input or to a single output are permitted. When connecting crosspatch to a gate~ or selector~, exclusive is automatically turned on. When connecting crosspatch to a matrix object, exclusive is turned off.
0 = 'Off' ( No connection restrictions )
1 = 'Inputs' ( Multiple connections from the same input are prevented )
2 = 'Outputs' ( Multiple connections to the same output are prevented )
3 = 'Inputs + Outputs' ( Multiple connections from the same input and multiple connections to the same outlet are prevented. )
gaincaption [int] (default: 0)
The gaincaption attribute enables showing the numerical value of the gain control as it is changed.
0 = 'Off' ( No value display )
1 = 'dB' ( Display value in dB )
2 = 'Amplitude' ( Display numerical value )
gaindragmode [int] (default: 0)
Sets how vertical mouse movement translates into changes in gain, particularly at the low end of the amplitude range.
0 = 'Linear' ( Linear gain control )
This setting maintains a constant relationship between the vertical mouse position when dragging and the amplitude value.
1 = 'dB' ( dB gain control )
This setting increments or decrements the gain value by a proportion of the mouse position in dB when dragging. This mode provides slightly coarser resolution at the top end of the amplitude range and slightly finer resolution at the bottom of the amplitude range, which is more perceptually linear in most cases.
gainradius [float] (default: 7.)
Sets the size of the circle used for the connection gain control.
gainstyle [int] (default: 0)
Sets the visual appearance of the circular gain control
0 = 'Dial' ( 270 degree arc )
When the gainstyle attribute is set to (0), a value of 1.0 is a 270-degree arc similar to the pie segement mode of the Max dial.
1 = 'Full Circle' ( (Almost) 360 degree arc )
When the gainstyle attribute is set to (1), a value of 1.0 is a 360-degree arc.
The incolormap attribute maps specific colors to inputs. The linecolor is index 1 and the candycane colors are indices 2 - 8. Example: assigns linecolor to the first input, candycane5 to the second input, candycane4 to input 3, and candycane2 to input 4. Any inputs not included in the incolormap retain their default color assignment according to the candycane attribute.
initialgain [float] (default: 1.)
Sets the initial gain used when making connections. Since a zero gain means "disconnect" to the matrix~ object, the initialgain cannot be zero, but can be very close to zero -- a minimum of -70 dB)
Use inlabels to override some or all of the default "In N" labels displayed for connection inputs.
labelheight [float] (default: 20.)
Sets the minimum height of one input or output in the UI.
labelwidth [float] (default: 80.)
Sets the minimum width for input and output labels used when laying out the UI of crosspatch.
linecolor [4 floats]
Sets the color used for connections.
maxgain [float] (default: 1.)
The maxgain attribute sets the maximum permitted gain using circular gain controls on connection patch cords. Note that maxgain does not affect gain values set via the message.
numins [int] (default: 4)
The numouts attribute set the number of outputs shown. In two-way mode, this attribute is set by the client object and cannot be changed.
numouts [int] (default: 4)
The numouts attribute sets the number of outputs shown. In two-way mode, this attribute is set by the client object and cannot be changed.
The outcolormap attribute maps specific colors to outputs. The linecolor is index 1 and the candycane colors are indices 2 - 8. Example: assigns candycane3 to the first output, candycane5 to the second output, linecolor to input 3, and candycane2 to output 4. Any outputs not included in the outcolormap retain their default color assignment according to the candycane attribute.
Use outlabels to override some or all of the default "Out N" labels displayed for connection outputs.
overgaincolor [4 floats]
When the maxgain is above 1, you can set the gain for any connection above unity. Use the overgaincolor attribute to set color to for any gain values above 1.0.
Enables parameter mode
parameter_mappable [int] (default: 1)
Visible to Mapping
preservegain [int] (default: 0)
When exclusive is set to (2) or (3), any connection to an output will delete an existing connection to the same output. If preservegain is enabled, the gain of the now deleted connection will be transferred to the new connection.
showgain [int] (default: 1)
Use the showgain attribute to control the display of circular gain controls on patch cords.
0 = 'Off' ( Never show gain controls )
1 = 'Only if Not Unity Gain' ( Show a gain control only if the gain of the connection is not 1.0 (unity) )
2 = 'Always' ( Always show a gain control regardless of value )
showlabels [int] (default: 1)
Sets whether input and output labels are shown (1) or hidden (0).
style [symbol] (default: )
textcolor [4 floats]
Sets the default color of the input and output labels. When the colorlabels attribute is enabled, connection colors are used for the text labels.
Common Box Attributes
To delete an existing connection click once on the line to select it, then press the delete or backspace key.
To edit the gain of a connection, click on the line and drag upwards or downwards. A dial will indicates the current gain as you drag.
As you edit connections with crosspatch, any connected matrix objects will update to reflect changes in gain or connection state.