From a3eed74cb931d268aa2da93e15d885cba1937afa Mon Sep 17 00:00:00 2001 From: s-ol Date: Sun, 2 Feb 2020 12:45:54 +0100 Subject: fix README --- README.md | 2 +- test.alv | 19 ++++++------------- 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 . -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'))) -- cgit v1.2.3