diff options
| author | s-ol <s+removethis@s-ol.nu> | 2025-08-05 01:02:41 +0000 |
|---|---|---|
| committer | s-ol <s+removethis@s-ol.nu> | 2025-08-05 01:02:41 +0000 |
| commit | 3cf15d3eb5b3489defd0706726d6ffcf34253c43 (patch) | |
| tree | 9130adf83ad8f4b85269040ef971cd68503b2ed1 | |
| parent | lib/glsl-view: align source names, add stream source (diff) | |
| download | alive-3cf15d3eb5b3489defd0706726d6ffcf34253c43.tar.gz alive-3cf15d3eb5b3489defd0706726d6ffcf34253c43.zip | |
lib/osc: send bangs as I(mpulse)
| -rw-r--r-- | alv-lib/_osc.moon | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/alv-lib/_osc.moon b/alv-lib/_osc.moon index ba78629..9c556d5 100644 --- a/alv-lib/_osc.moon +++ b/alv-lib/_osc.moon @@ -22,8 +22,10 @@ add_item = (message, type, val, use_arrays=false) -> ts = switch type when T.num then 'f' when T.str, T.sym then 's' - when T.bool, T.bang + when T.bool if val then 'T' else 'F' + when T.bang + 'I' else error "unknown primitive type" message\add ts, val |
