From 177cd265947bfd9db20ad1a99ae07c76b6b4f147 Mon Sep 17 00:00:00 2001 From: s-ol Date: Sun, 2 Feb 2020 00:51:40 +0100 Subject: macros and scopes --- test.alv | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'test.alv') diff --git a/test.alv b/test.alv index fb24105..692c3be 100644 --- a/test.alv +++ b/test.alv @@ -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')) -- cgit v1.2.3