aboutsummaryrefslogtreecommitdiff
path: root/guile/starlet/midi-control
diff options
context:
space:
mode:
Diffstat (limited to 'guile/starlet/midi-control')
-rw-r--r--guile/starlet/midi-control/button-utils.scm11
1 files changed, 10 insertions, 1 deletions
diff --git a/guile/starlet/midi-control/button-utils.scm b/guile/starlet/midi-control/button-utils.scm
index 051935f..859412d 100644
--- a/guile/starlet/midi-control/button-utils.scm
+++ b/guile/starlet/midi-control/button-utils.scm
@@ -24,6 +24,7 @@
#:use-module (starlet playback)
#:export (make-go-button
make-stop-button
+ make-back-button
select-on-button))
@@ -40,7 +41,15 @@
(register-midi-note-callback!
#:channel channel
#:note-number button
- #:func (lambda () (display "Stop/back!\n"))))
+ #:func (lambda () (stop! pb))))
+
+
+(define* (make-back-button pb button
+ #:key (channel #f))
+ (register-midi-note-callback!
+ #:channel channel
+ #:note-number button
+ #:func (lambda () (back! pb))))
(define* (select-on-button button fixture