Skip to content

Commit 24a142a

Browse files
committed
allow queue & launch to be used together with method chain
1 parent e9c5c84 commit 24a142a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lua/timeline.lua

+4
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,11 @@ end
9191

9292
-- launch quantization to lock to a clock.sync
9393
function TL.launch(q) return TL.new{lq = q} end
94+
function TL:_launch(q) self.lq = q; return self end
9495

9596
-- stops auto-play
9697
function TL.queue() return TL.new{qd = true} end
98+
function TL:_queue() self.qd = true; return self end
9799

98100

99101
--- loop
@@ -222,6 +224,8 @@ TL.mms = { stop = TL.stop
222224
, play = TL.play
223225
, iter = TL.iter
224226
, hotswap= TL.hotswap
227+
, launch = TL._launch
228+
, queue = TL._queue
225229
}
226230
TL.__index = TL.mms
227231

0 commit comments

Comments
 (0)