diff options
author | Thomas White <taw@physics.org> | 2021-09-11 12:15:14 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2021-09-11 12:19:41 +0200 |
commit | 3c4c9a2c89defe50ad40c544e383f50eb0aa040e (patch) | |
tree | 71ecb33c51c7b253c5c6d31b40fff662436d1d02 /examples/show.scm | |
parent | d79c75b3db76e242e0299d5d324191e3133de235 (diff) |
Re-assert MIDI control map on parameter change
This makes the MIDI controller stay in sync with the programmer state
values. It's kind of a coarse solution, though. It would be better to:
1. Only re-assert the map if the changed parameter currently appears on
the MIDI control surface
2. Only re-assert the part of the map related to the parameter
Almost as a side-effect, this enables switching between multiple control
maps. Just call 'set-midi-control-map!' on the controller with the new
map.
Diffstat (limited to 'examples/show.scm')
-rw-r--r-- | examples/show.scm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/show.scm b/examples/show.scm index 1e51a99..d672572 100644 --- a/examples/show.scm +++ b/examples/show.scm @@ -72,7 +72,7 @@ (state-on-fader controller 19 my-state) -(use-midi-control-map +(set-midi-control-map! controller (list (list 'intensity 'fader 16 '(108 72)) |