aboutsummaryrefslogtreecommitdiffstats
path: root/lib/time.moon
diff options
context:
space:
mode:
Diffstat (limited to 'lib/time.moon')
-rw-r--r--lib/time.moon4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/time.moon b/lib/time.moon
index 182cf4d..ea0e80a 100644
--- a/lib/time.moon
+++ b/lib/time.moon
@@ -1,4 +1,4 @@
-import Registry, Value, IO, Op, Input, match from require 'core.base'
+import Value, Error, IO, Op, Input, match from require 'core.base'
import monotime from require 'system'
class Clock extends IO
@@ -72,7 +72,7 @@ wave selects the wave shape from the following:
when 'sin' then .5 + .5 * math.cos @state.phase * tau
when 'saw' then @state.phase % 1
when 'tri' then math.abs (2*@state.phase % 2) - 1
- else error "unknown wave type"
+ else error Error 'argument', "unknown wave type '#{wave}'"
ramp = Value.meta
meta: