Expressions
$ Expression format
specifies an object to send/receive a value to/from.
$ = set val a execution time , % = set val at input time (eval to a number).
Set expression go on the LHS (where OSC message ID goes) of the event, so they shouldn't have arguments.
Get Expression go on the RHS (where values go), they can have arguments if needed.
- Set:$m:<device_number>:<partNum>_<controlNum>:[v|s|o]:[controlIndex]
- Get:[%$]m:<device_number>:<partNum>_<controlNum>:[v|s|o]:[controlIndex]
| Character | Function |
|---|
| v | set value. |
| s | set scale. |
| o | set offset. |
| controlIndex | index of the controllsetting under that control. if controlIndex is omitted then the setting is applied to all controlsettings under that control |
- Set:$t:[<timeLineId>|current]:[p|l|x|v|c|w]:[parameterIndex]
- Get:[%$]t:[<timeLineId>|current]:[p|l|x|v|q|b|r|c|w]:parameterIndex
| Character | Function |
|---|
| current | current time line. |
| p | toggle play mode. |
| l | toggle loop mode. |
| x | get/set position. |
| w | get/set pitch. |
| v | get/set parameter at (optional) parameterIndex. if no index then the parameters are set as a list.(current list is replaced). |
| q | get quantization timelength(ms). |
| b | get beat timelength(ms). |
| r | get bar timelength(ms). |
| c | current event index. |
| no [p|l|x|v|q|b|r|c|w] | (get) return timeline object. |
- Set:$e:[<timeLineId>|current]:[<eventIndex>|current]:[v|i|m|f]:[valueIndex]
- Get:[%$]e:[<timeLineId>|current]:[<eventIndex>|current]:[v|i|m]:[valueIndex]
| Character | Function |
|---|
| current | current time line. |
| v | get/set value.(optional valueIndex) |
| i | get/set oscMsgName. |
| m | get/set oscIndex. |
| f | fire event(set only). data is ignored. |
| no [v|i|m] | (get) return event. |
- Set:$f:<var_name>=<class_name>:<methodname>:[n]:
- Get:[%$]f:<var_name>=<class_name>:<methodname>:[n]:(<args>)
- objects are stored in a global hash array.
- if <var_name> then new object always used.
- if <class_name> then retreive object from global array for this <var_name>
- in Set event values are used for method arguments.
| Character | Function |
|---|
| n | new object. |
| args | (, separated) (only in get) evaluated objects to send to function ($T=timeline). |