aboutsummaryrefslogtreecommitdiffstats
path: root/lib/pilot.moon
diff options
context:
space:
mode:
authors-ol <s-ol@users.noreply.github.com>2020-03-07 20:58:30 +0000
committers-ol <s-ol@users.noreply.github.com>2020-03-07 20:58:51 +0000
commit6a7a2ddaca798f3cccac394d1fb9f317cbe90de6 (patch)
tree4e49e53057b39f75813311ede13f87d238061fe6 /lib/pilot.moon
parentspellcheck (diff)
downloadalive-6a7a2ddaca798f3cccac394d1fb9f317cbe90de6.tar.gz
alive-6a7a2ddaca798f3cccac394d1fb9f317cbe90de6.zip
add ldoc documentation
Diffstat (limited to 'lib/pilot.moon')
-rw-r--r--lib/pilot.moon20
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/pilot.moon b/lib/pilot.moon
index 5c680ed..f24270e 100644
--- a/lib/pilot.moon
+++ b/lib/pilot.moon
@@ -1,4 +1,4 @@
-import Op, EventInput, ValueInput, ColdInput, match from require 'core.base'
+import Op, Input, match from require 'core.base'
import udp from require 'socket'
local conn
@@ -27,8 +27,8 @@ class play extends Op
{ trig, args } = match 'bang *any', inputs
assert #args < 6, "too many arguments!"
super
- trig: EventInput trig
- args: [ColdInput a for a in *args]
+ trig: Input.event trig
+ args: [Input.cold a for a in *args]
tick: =>
{ :trig, :args } = @inputs
@@ -42,10 +42,10 @@ class play_ extends Op
{ chan, octv, note, args } = match 'any any any *any', inputs
assert #args < 3, "too many arguments!"
super
- chan: ColdInput chan
- octv: ColdInput octv
- note: EventInput note
- args: [ColdInput a for a in *args]
+ chan: Input.cold chan
+ octv: Input.cold octv
+ note: Input.event note
+ args: [Input.cold a for a in *args]
tick: =>
if @inputs.note\dirty!
@@ -60,9 +60,9 @@ which is one of 'DIS', 'CHO', 'REV' or 'FEE'"
setup: (inputs) =>
{ which, a, b } = match 'str num num', inputs
super {
- ColdInput which
- ValueInput a
- ValueInput b
+ Input.cold which
+ Input.value a
+ Input.value b
}
tick: =>