More actions
No edit summary |
No edit summary |
||
Line 35: | Line 35: | ||
* e - Contains the constant ''[[wikipedia:E_(mathematical_constant)|e]]'' | * e - Contains the constant ''[[wikipedia:E_(mathematical_constant)|e]]'' | ||
* pi - Contains the constant ''[[wikipedia:Pi|pi]]'' | * pi - Contains the constant ''[[wikipedia:Pi|pi]]'' | ||
''Event variables'' are variables that are set by certain ''MIDI messages'' or when a new value is read on one of the jacks or knobs on the ''Control box''. The ''Event variables'' that are incorporated in the ''firmware'' as of this writing (2025-01-21) are: | ''Event variables'' are variables that are set by certain ''MIDI messages'' or when a new value is read on one of the jacks or knobs on the ''Control box''. The ''Event variables'' that are incorporated in the ''firmware'' as of this writing (2025-01-21) are: | ||
Line 69: | Line 68: | ||
* bool(x) - Returns 1 if ''x'' is more than 0 | * bool(x) - Returns 1 if ''x'' is more than 0 | ||
* ibool(x) - Returns 0 if ''x'' is more than 0 | * ibool(x) - Returns 0 if ''x'' is more than 0 | ||
* deadband(x,y) - Returns x if ''x < y'' or ''x > y'' | * deadband(x,y) - Returns ''x + y '' if ''x < y'' or ''x - y'' if ''x > y''. If neither of these statements is true it returns ''0'' - used to create a [[wikipedia:Deadband|deadband]] of ''x'' with the threshold of ''y'' | ||
''Functions'' can be readily used in a ''command string'' |