Global Array Watch Modified

Watch a list of global arrays and send a trigger when one of the list is modified.

Settings

filter list

List of global array names to watch.

  • each line is the name of a global array, in any case: Usine puts every line in upper case, as it does with the names of the global arrays
  • if the line starts with // it is ignored (comment)
  • the line can start with INCLUDE: myfilename.txt followed by a filename. The filename must be located inside the package of the application or 'nearby' the workspace
  • a line that contains one of the characters . ^ $ * + ? ( ) [ ] { } \ | is a regular expression, matched against the names of the global arrays that exist when the list is read (the global constants are left out):
    • the expression finds every name that contains it: GA-* finds GA-1, but also MY-GA-1 and GA. To match whole names only, anchor it: ^GA-.*$
    • a name that contains a dot, such as DEMO.GLOBAL.ARRAY, is an expression too, where each dot matches any character
    • the expression is put in upper case before the search: write [0-9] for a digit (\d would become \D, any character but a digit), and leave out (?i), which is not needed since the names are in upper case
  • if the line is the string WAIT the process will be suspended for 100 ms
 MY-GA-NAME
 // a comment line
 INCLUDE: myGAList.txt
 ^GA-NAME-.*$
 WAIT

modified

Sends a trigger when one of the global arrays is modified.

modified array

Array with one element per watched global array, in the order of the filter list: 1 for each global array modified during the cycle, 0 for the others.

modified indexes

List of pairs containing the index of the GA in the filter list and the index of the value in the GA.

filter list = GA-A, GA-B
GA-B[3] and GA-B[5] modified
modified array   = [0, 1]
modified indexes = [1, 3, 1, 5]
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