From 3c4c9a2c89defe50ad40c544e383f50eb0aa040e Mon Sep 17 00:00:00 2001 From: Thomas White Date: Sat, 11 Sep 2021 12:15:14 +0200 Subject: 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. --- examples/show.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/show.scm') 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)) -- cgit v1.2.3