diff options
| author | s-ol <s-ol@users.noreply.github.com> | 2020-02-02 11:45:54 +0000 |
|---|---|---|
| committer | s-ol <s-ol@users.noreply.github.com> | 2020-02-02 13:14:01 +0000 |
| commit | a3eed74cb931d268aa2da93e15d885cba1937afa (patch) | |
| tree | 3f2c028d1df82de8c798dd43d2d579ec4aae276e | |
| parent | macros and scopes (diff) | |
| download | alive-a3eed74cb931d268aa2da93e15d885cba1937afa.tar.gz alive-a3eed74cb931d268aa2da93e15d885cba1937afa.zip | |
fix README
| -rw-r--r-- | README.md | 2 | ||||
| -rw-r--r-- | test.alv | 19 |
2 files changed, 7 insertions, 14 deletions
@@ -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/ @@ -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'))) |
