                                  (master-set-level (get-in controller [:show :grand-master]) (+ level delta))
                                  true))
                              (handle-note-on [this message]
-                               false)
+                               true) ; Suppress activation of the encoder above our overlay
                              (handle-note-off [this message]
-                               ;; Exit the overlay
-                               :done)
+                               ;; Exit the overlay if it was our own encoder being released
+                               (when (= (:note message) 8) :done))
                              (handle-aftertouch [this message])
                              (handle-pitch-bend [this message]
                                (master-set-level (get-in controller [:show :grand-master])

  (controllers/add-overlay (:overlays controller)
                           (reify controllers/IOverlay
                             (captured-controls [this] #{79})
                             (captured-notes [this] #{8})
                             (adjust-interface [this _]
                               (let [level (master-get-level (get-in controller [:show :grand-master]))]
                                 (write-display-cell controller 0 3 (make-gauge level))
                                 (write-display-cell controller 1 3
                                                     (str "GrandMaster " (format "%5.1f" level)))
                                 (reset! (:next-touch-strip controller) [(math/round (* 16383 (/ level 100))) 1]))
                               true)
                             (handle-control-change [this message]

    (reset! (:next-touch-strip controller) [(math/round (* 16383 (/ (- value low) full-range)))
                                            (if (:centered v) 3 1)])))

(def master-background
  "The background for the grand master section, to mark it as such."
  (colors/darken (colors/desaturate (colors/create-color :yellow) 55) 45))

(def master-content
  "The color for content in the metronome section, to mark it as such."
  (colors/lighten (colors/create-color :yellow) 20))

(defn- master-encoder-touched
  "Add a user interface overlay to give feedback when turning the
  master encoder."
