aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2020-08-18 18:13:17 +0200
committerThomas White <taw@physics.org>2020-08-18 18:13:17 +0200
commitb71668d0362df473d9081f4deaf7d2aa758ba177 (patch)
tree5c9df523c28e8ad196f85f39b49b921a6e4ad217 /examples
parent6df3b4e050b1e8b00506f20c0c0cf4400a7840e6 (diff)
Add MIDI note callbacks
Diffstat (limited to 'examples')
-rw-r--r--examples/demo.scm7
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/demo.scm b/examples/demo.scm
index de25680..57c8257 100644
--- a/examples/demo.scm
+++ b/examples/demo.scm
@@ -100,3 +100,10 @@
(register-state! pb)
;; Jump to zero (blackout) cue
+(cut-to-cue-number! pb 0)
+
+;; Set up a "go" button
+(register-midi-note-callback!
+ #:channel 14
+ #:note-number #xc
+ #:func (lambda () (go! pb)))