49
5.2.
Effect activation and relay activation commands
SYNTAX :
Some straightforward yet powerful commands : when selecting a certain preset you can activate a
number of effects along with it. If you have a footswitch assigned to an effect, activating the effect
with this command will also switch the footswitch LED on in order to show the current effect state.
Next to these effect activation commands there is also a trigger activation command which can be
used to send all messages of a specific trigger whenever you select a certain preset.
The “Open Relay” and “Close Relay” commands are self explanatory. The FCB1010 contains 2 jack
outputs which are controlled by a relay. These can be used for instance to control an amp which does
not have any MIDI capability.
SwitchOn
effectname
SwitchOff
effectname
SendTrigger
triggername
Close Relay1
Open Relay1
Close Relay2
Open Relay2
Remark :
When using the
SwitchOn
,
SwitchOff
or
SendTrigger
commands in an effect or trigger
content, you risk to create an “infinite loop”. The simplest example is when you would specify :
EFFECT_ON effect 1 = SwitchOn effect 1
It is obvious that this line of code would cause the TinyBox to lock up, with the same command being
executed over and over again. This kind of loop is not always as easy to detect as in the example above.
It can be caused by a much longer “chain” of effect activation commands, finally ending up in an effect
“activating itself” again through the activation of other effects or triggers. Luckily enough the TinyBox
editor analyzes your setup while you are typing the effect activation commands, and the code compiler
will give an error message when an infinite loop is being detected.
Содержание TinyBox
Страница 1: ...THE TINYBOX User Manual v 1 4...