Module to automatically receive or send global arrays with OSC messages. See global-array-tutorial to learn how to use global arrays.
If you define an OSC address /usine/ this module will catch all messages /usine/1..N ,f with 1..N the position of the value in the global array. The number in the address starts at 1: /usine/1 ,f sets the first value (index 0), /usine/2 ,f the second value (index 1), etc. /usine/0 is taken as an address without a number: it goes to the base index.
But the module will also catch all messages with the typology /usine/ ,fffff, each value of the message corresponding to its respective index in the global array, starting at the base index. A particular case is the message /usine/ ,f which affects the value at the base index (the first value by default).
With an OSC tag size greater than 1, the number in the address is a group number: with a tag size of 3, /usine/2 ,fff sets the values 3, 4 and 5. A message can carry more values than the OSC tag size: the next values go to the next indexes (/usine/2 ,ffffff sets the values 3 to 8).
On emission (sending OSC), each time a value changes, the module sends its group as an OSC message /usine/1 ,f for the first value, /usine/2 ,f for the second, etc. (/usine/1 ,fff for the values 0 to 2 with a tag size of 3). If the global array has exactly OSC tag size values, they are sent on the address itself: /usine/ ,fff. Only the first 257 groups are sent (/usine/1 to /usine/257): the change of a value beyond them is not sent and an error is traced. Reception has no such limit.
Name of the global array, converted to upper case and limited to 40 characters (before the suffix).
Only one global-array module should be created with a given name, so each name has to be unique.
Defines if a suffix is added automatically at the end of the name to produce names like MYARRAY-1, MYARRAY-2,etc.
MYARRAY-1-2.User defined suffix string appended to the global array name. Used when name suffix is set to user suffix.
Osc address string of the message.
Be careful, the OSC address string is key sensitive.
It mean that /USINE/ is not equal to /usine/.
Type tag of the OSC messages.
Number of values per OSC message, from 1 to 255 (default 1). For example if the global array is an X-Y-Z array the expected tag is ,fff so the OSC tag size is 3.
IP address of the remote computer (to send data).
Active only if the broadcast option is OFF.
Remote Port destination number of the message.
broadcast or not ?
In OSC when you want to send a data to another computer you normally have to know the network (IP) address of the destination. Something like
192.168.1.5.The problem is that, by default, routers are configured to allocate IP addresses dynamically. In other word their IP aren't fixed and can change if, for example, you have to reboot one of your computer or your router. When broadcast is ON data's are sent to all the computers of the network at the same time whatever their IP address. So you don't have to deal with IP addresses and you're sure that all the computers will receive the message.
The main drawback is that if you have 20 computers connected you'll probably overload the network.
So if we resume broadcast ON is cool for small networks, let say, less than 10 computers. For larger networks, disable this option (OFF) and use the IP address field to set the destination of the message.
Enables the reception of OSC messages for the global array.
this inlet can be an array for multiple input values.
Global array index which receives the OSC values when the address has no index number or the number 0 (/usine/ ,fff, /usine/0 ,fff).
When ON, each received value is also written to the same position in the next group: index + 1 with an OSC tag size of 1, index + OSC tag size otherwise. The next group is written even when receive OSC active is OFF for it, and these copies also appear in index received and values received.
input = /usine/1 ,fff [0.1, 0.2, 0.3] (OSC tag size 3, is a pair ON)
output = [0.1, 0.2, 0.3, 0.1, 0.2, 0.3] (values 0 to 5 of the global array)
this inlet can be an array for multiple input values.
Sends 1 when a valid OSC message is received for the global array.
List of received values indexes as an array of integers, starting at 0 like the global array: a message on /usine/1 gives 0. When the OSC tag size is greater than 1 these are group numbers, also starting at 0 (/usine/2 ,fff gives 1 for each of its values).
List of received values as an array.
Enables the sending of OSC messages for the global array.
this inlet can be an array for multiple input values.
Forces resending all OSC messages (for all values) even if the send OSC active is OFF.
Forces resending OSC messages (for each values) only if the send OSC active is ON or if send OSC active is equal to 1 for the nth index.
Remember that the send OSC active can be an array.
The value is inverted on receive and send by a 1-VALUE operation (types float (f) and integer (i)). For example, if the value received is 0.3 the final value of the global array will be 1 - 0.3 = 0.7
Button. Opens the manual page of the selected object (or of its parent module for a control) in the web browser. If no page exists for this object, an error is traced in the trace panel.
For more details about information/help creation, see create-help-file.
Free multi-line text attached to the module, saved with the patch. When it is not empty, it is shown as the hint of the module (mouse over the module header in the patch) in place of the default module hint, even when the module hints are disabled.
visible only in god mode, see setup-panel-tab-expert.
Read-only, not saved. Current private numeric ID of the object, used internally to identify it (for example as the target of a bind ID).
Read-only, not saved. Private ID used to store and recall the values of this control in presets.
Button. Generates a new unique ID, original ID and preset ID for the object. Use it if you experience difficulties in Polyphonic mode or if two objects share the same ID. Preset values and binds referring to the old IDs are lost.
Read-only, not saved. Absolute address of the object in the Usine objects tree, built from the workspace root. This is the address to use to reach the object from scripts, the objects panel or remote messages. Only shown for objects that are registered in the objects list. See objects-address.
Read-only, not saved. Address of the object relative to the current patch, valid inside that patch only. See objects-address.
Free user-defined address for the object (empty by default). When set, the object is also registered in the objects tree under this name, so it can be reached independently of its position in the workspace (the value is also reported in the mouse-over and mouse-down chunks). Changing it rebuilds the objects list. Only available on objects that support a user address. See objects-address.
version 7.0.250921
Edit All Pages