Programming reference for the SoundBlocks Configurator

Each line of the script begins with the ID of the module to be configured. The next element in the line defines the module's behavior, indicating whether it will send or receive information.


Send

If the element contains -> it means that the module will send information.

Syntax:

module_send -> sensor_send : module_receives

Sensor

Sensors must be separated by commas and can only be selected from the following list:

Modules that receive

Up to three numerical ranges of destination modules can be defined. The ranges are separated by commas, and a hyphen indicates a continuous range. To send to a single module, simply specify its number. Destination module 255 is reserved for broadcast to all modules. A maximum of five destination modules can be specified per send.

Example:

122->t1,ax:102,105-108

Module 122 sends the data from sensor t1 and the ax axis of the accelerometer to modules 102, 105, 106, 107, and 108.


Receives

If the element is <- it means that the module receives information from another module.

Syntax:

module_receive <- sensor : module_send @ action [map]

Parameter Details

Actions

Device or function that is activated based on the received information. Available options:

Map

Is used to adjust the range of values received by the actuator. It can be a single value (maximum) or two values (minimum and maximum). If not specified, the default value is [0,0].

Example:

108<-ax:122@Vol[0,15]
102<-t7:108@Play[3]

Comments

Comments are added by prefixing # to the beginning of the line or the end of an instruction.

Example:

122->ax:102,105-108 # Module 122 sends ax to modules 102 and from 105 to 108.
# 102 <- ax : 122 @ Vol [0,15]