Global Array DATA

Global array definition for DATA values.

This module creates the global array and holds its values: any global-array-data-get-value, global-array-data-set-value, global-array-data-get-array or global-array-data-set-array module using the same name reads or writes them, from any patch of the workspace. The values are saved in the patch presets and can be saved in files with global-array-save-load-file.

name = LEVELS, query = 4
value 0 .. value 3 : direct access to LEVELS[0] .. LEVELS[3]
global array       : [0.5, 0.2, 1.0, 0.0]

see global-array-tutorial to learn how to use global arrays.

Settings

query

Number of separated value terminals, asked when the module is created. Each terminal gives a direct access to one element of the array (val N or value N, numbered from 0). With 0, the elements are reachable through the array only.

To change it afterwards, recreate the module: the query is asked again and the connections are restored by name.

name

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.

name suffix

Defines if a suffix is added automatically at the end of the name to produce names like MYARRAY-1, MYARRAY-2,etc.

  • no suffix
  • poly voice num: number of the voice in a polyphonic sub-patch.
  • rack num: number of the current rack.
  • patch num: number of the current patch.
  • user suffix: suffix defined in the user suffix setting.
  • rack + patch num: number of the current rack and number of the current patch, like MYARRAY-1-2.

user suffix

User defined suffix string appended to the global array name. Used when name suffix is set to user suffix.

old names

List of alternate names for the global-array as a comma-text. Use this field if the global-array has been renamed and you want to ensure a backward compatibility of files and presets. If the global-array values can't be retrieved during the loading procedure (because its name has changed), Usine will lookup into the list of old names.

saved name

Optional name used to save the global-array. This name is used on save/load preset command or in the global-array-save-load-file module.

global array

Direct input or output for all values of the global array.

value

Separated values of each element of the global array (value 0, value 1, ...), created according to the query. Changing one of them writes the corresponding element of the array.

reset

Resets all values of the global array according to the reset size and the reset values.

reset values

Values used for the reset operation, one per element of the array.

reset comma text

Comma-text values used for the reset operation (only for global-array-string module).

reset size

The array size set by the reset operation, from 0 to 16384. By default it is equal to the number of values asked by the query.

send to shared computers

When ON, sends the array to all connected computers on the network each time it has been modified. The options share active and send global arrays must be activated in the setup-panel-tab-network.

received from shared computers

When ON, the array can receive values from all connected computers on the network. The option share active must be activated in the setup-panel-tab-network.

resend to network

Force the module to resend its values to all shared computers even if send to shared computers is OFF.

force reset size on loading

When ON, the global array is first reset to the reset values when it's loaded from a file or a preset, and its size is at least the reset size (or the saved size if it is larger). When OFF, the size saved in the file or preset is used.

don't save if equal default value

When ON, the global array values aren't saved by the global-array-save-load-file if their values are equal to the default value.

Can reduce the size of the files and avoid to save unnecessary values.

saved in preset

Determines if parameters of this object are saved in the preset-panel.

fade preset

Parameters of the this object can cross faded when you recall a preset in the grid.

Optional setting, does not appear on all objects.

can be reset

When ON, this object will be reset to its default value when using the reset command of its patch.

description

Free multi-line text describing the module, saved with the patch. It is shown as the module hint when the mouse is over the module; the modules that use the same global array, constant or procedure name show it too.

Common Settings

info

show manual

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.

description

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.

ID's

visible only in god mode, see setup-panel-tab-expert.

unique ID

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).

preset ID

Read-only, not saved. Private ID used to store and recall the values of this control in presets.

recreate ID

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.

Object Remote Address

absolute

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.

local

Read-only, not saved. Address of the object relative to the current patch, valid inside that patch only. See objects-address.

user addr

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.

See also

version 7.0.250921

Edit All Pages