aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authors-ol <s-ol@users.noreply.github.com>2020-02-02 11:45:54 +0000
committers-ol <s-ol@users.noreply.github.com>2020-02-02 13:14:01 +0000
commita3eed74cb931d268aa2da93e15d885cba1937afa (patch)
tree3f2c028d1df82de8c798dd43d2d579ec4aae276e
parentmacros and scopes (diff)
downloadalive-a3eed74cb931d268aa2da93e15d885cba1937afa.tar.gz
alive-a3eed74cb931d268aa2da93e15d885cba1937afa.zip
fix README
-rw-r--r--README.md2
-rw-r--r--test.alv19
2 files changed, 7 insertions, 14 deletions
diff --git a/README.md b/README.md
index 892cda6..645fad5 100644
--- a/README.md
+++ b/README.md
@@ -25,7 +25,7 @@ or in [LÖVE][love2d] (make sure to install the required modules for lua5.1):
$ love . <session.alv>
-running in LÖVE adds the additional `gui` module. See [`lib/gui.moon`](lib/gui).
+running in LÖVE adds the additional `gui` module. See [`lib/gui.moon`](lib/gui.moon).
[moonscript]: https://moonscript.org/
[lfs]: https://keplerproject.github.io/luafilesystem/
diff --git a/test.alv b/test.alv
index 692c3be..f84e43c 100644
--- a/test.alv
+++ b/test.alv
@@ -1,14 +1,7 @@
-#(this is equivalent to:
- (def osc (require 'osc'))
- (def out osc/out))
-([2]use ([1]require 'osc'))
-
-#(there should probably be a shorthand for this,
- but i'm not sure what to call it.
- maybe it could be just
- (require time) - note its a symbol not a string here)
-([4]def time ([3]require 'time'))
+([2]use ([1]require 'math'))
+([4]use ([3]require 'osc'))
+([6]use ([5]require 'time'))
-([6]out '127.0.0.1' 9000 '/param/radius/set' ([5]time/lfo 0.5))
-([8]out '127.0.0.1' 9000 '/param/offset/set' ([7]time/lfo 1.2 'saw'))
-
+([8]out '127.0.0.1' 9000 '/param/radius/set' ([11]mix 0.3 0.5 ([7]lfo 1.8)))
+([10]out '127.0.0.1' 9000 '/param/offset/set' ([13]+ ([9]lfo 0.2 'sin')
+ ([12]lfo 0.5 'sin')))