Skip to content

Commit

Permalink
catch case where list is too short
Browse files Browse the repository at this point in the history
  • Loading branch information
benswift committed Jan 23, 2020
1 parent b98fec0 commit 88a553a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/core/looper.xtm
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
;; duration
(let ((note-dur (* one_beat
(+ 1 (length (take-while (lambda (x) (equal? x '|))
(cl:nthcdr (cdr t) (car args))))))))
(cl:nthcdr (min (cdr t) (length (car args))) (car args))))))))
(apply callback
(- (*metro* (+ beat (- (car t) pos))) *RMAP_HELPER_CALLBACK_OFFSET*)
func (+ beat (- (car t) pos)) note-dur
Expand Down

0 comments on commit 88a553a

Please sign in to comment.