aboutsummaryrefslogtreecommitdiffhomepage
path: root/applause.lua
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2015-04-09 02:02:41 +0200
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2015-04-11 14:59:27 +0200
commite9f20b8a1a3e58c8832bf4bc74afb1c7917fd07e (patch)
tree5ed27160a926531d20599641323ef7fedce957a3 /applause.lua
parente8d9c7dfd4f38c6c073dd6e7c86a39a77c4b8938 (diff)
downloadapplause2-e9f20b8a1a3e58c8832bf4bc74afb1c7917fd07e.tar.gz
added custom interactive Lua interpreter for evaluating applause expressions
* implements Stream:play() using Jack as the audio backend
Diffstat (limited to 'applause.lua')
-rw-r--r--applause.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/applause.lua b/applause.lua
index e8f1306..9348cf3 100644
--- a/applause.lua
+++ b/applause.lua
@@ -564,7 +564,7 @@ samplerate = 44100
-- These are functions, so we can round the result
-- automatically
function sec(x) return math.floor(samplerate*(x or 1)) end
-function msec(x) return secs((x or 1)/1000) end
+function msec(x) return sec((x or 1)/1000) end
-- Wave forms
function SawOsc(freq)