From 70c8625db7007488dd3a894a8be85c7762c5733e Mon Sep 17 00:00:00 2001 From: ngradwohl Date: Sun, 21 Jul 2019 04:06:12 +0200 Subject: [PATCH] add example, update readme --- README.md | 1 + examples/osc1.lisp | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 examples/osc1.lisp diff --git a/README.md b/README.md index b1251db..8bd3240 100644 --- a/README.md +++ b/README.md @@ -97,6 +97,7 @@ Additional functions can be found in the [includes](https://github.com/hundredra - `(js)` Javascript interop. - `(test name a b)` - `(benchmark fn)` logs time taken to execute a function. +- `(osc ~address)` returns the last received osc msg on port 12940 ## Extras diff --git a/examples/osc1.lisp b/examples/osc1.lisp new file mode 100644 index 0000000..70e1e6f --- /dev/null +++ b/examples/osc1.lisp @@ -0,0 +1,11 @@ +(clear) +(def x (of (osc "/test") "args" "0" "value")) +(def y (of (osc "/test") "args" "1" "value")) +(def r (of (osc "/test") "args" "2" "value")) + +(fill +(circle x y r) +"red") +(stroke +(circle x y r) +5 "white")