More actions
No edit summary |
No edit summary |
||
Line 33: | Line 33: | ||
* notecount - Contains the number of ''MIDI'' keys that are being held down, i.e. all ''Note on messages'' received that haven't gotten a paired ''Note off message'' yet | * notecount - Contains the number of ''MIDI'' keys that are being held down, i.e. all ''Note on messages'' received that haven't gotten a paired ''Note off message'' yet | ||
* uv0 - uv9 - These are ''user variables'' and can be set at any point using the ''globaluservariable command'' with the first ''parameter'' being which variable to set (0-9) and the second ''parameter'' being the value (float). | * uv0 - uv9 - These are ''user variables'' and can be set at any point using the ''globaluservariable command'' with the first ''parameter'' being which variable to set (0-9) and the second ''parameter'' being the value (float). | ||
''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: | ''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 43: | Line 44: | ||
* pitch - Set by the ''Pitch bend MIDI message'' | * pitch - Set by the ''Pitch bend MIDI message'' | ||
* program - Set by the ''Program change MIDI message'' | * program - Set by the ''Program change MIDI message'' | ||
===== Functions ===== | |||
''Functions'' can be used to change a numerical value or the result of an ''equation'', the Ekdahl FAR contains both general ''arithmetic functions'' (courtesy of Lewis Van Winkle and the TINYEXPR engine) and ''specialized functions''. | |||
The ''arithmetic functions'' that are incorporated in the ''firmware'' as of this writing (2025-01-21) are: | |||
* abs(x) - Returns the ''[[wikipedia:Absolute_value|absolute value]]'' of ''x'' | |||
* acos(x), asin(x), atan(x), atan2(x, y) - Returns the [[wikipedia:Inverse_trigonometric_functions|''arc-cos, -sin, -tan'' and ''-tan2'']] of ''x'' | |||
* atan2(x,y) - Returns the ''[[wikipedia:Atan2|arctan2]]'' of ''x, y'' | |||
* floor(x), ceil(x) - Returns the [[wikipedia:Floor_and_ceiling_functions|''floor'' and ''ceiling'']] of ''x'' | |||
* e, exp(x), fac(x), ln(x), log10(x), log20(x), ncr(x,y), npr(x,y), pi, pow(x,y), sqrt(x) | |||
* cos(x), sin(x), tan(x) | |||
* cosh(x), sinh(x), tanh(x) |