diff options
| author | s-ol <s-ol@users.noreply.github.com> | 2020-02-01 23:51:40 +0000 |
|---|---|---|
| committer | s-ol <s-ol@users.noreply.github.com> | 2020-02-01 23:55:30 +0000 |
| commit | 177cd265947bfd9db20ad1a99ae07c76b6b4f147 (patch) | |
| tree | 49af71e06770925abb0ab1fd2e89be077281b74c /test.alv | |
| parent | first-class scopes (diff) | |
| download | alive-177cd265947bfd9db20ad1a99ae07c76b6b4f147.tar.gz alive-177cd265947bfd9db20ad1a99ae07c76b6b4f147.zip | |
macros and scopes
Diffstat (limited to 'test.alv')
| -rw-r--r-- | test.alv | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -1,4 +1,14 @@ +#(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')) -([6]osc/out '127.0.0.1' 9000 '/param/radius/set' ([1]time/lfo 0.5)) -([7]osc/out '127.0.0.1' 9000 '/param/offset/set' ([5]time/lfo 1.2 'saw')) +([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')) |
