                            (reify controllers/IOverlay
                              (captured-controls [this] #{15})
                              (captured-notes [this] #{9 1})
-                             (adjust-interface [this _]
-                               (bpm-adjusting-interface controller)
+                             (adjust-interface [this snapshot]
+                               (bpm-adjusting-interface controller snapshot)
                                true)
                              (handle-control-change [this message]
                                (adjust-bpm-from-encoder controller message))

  "Figure out how many pixels wide some text will be in a given font."
  [graphics font text]
  (let [context (.getFontRenderContext graphics)]
    (.getWidth (.getStringBounds text context))))

(defn draw-bottom-button-label
  "Draw a label for a button below the graphical display."

    ;; Is the first cell reserved for metronome information?
    (if (seq metronome-mode)
      (let [graphics (create-graphics controller)
            bpm (:bpm snapshot)
            bpm-string (format "%.1f" (double bpm))]
        ;; Draw the background that makes the metronome section distinctive.
        (set-graphics-color graphics metronome-background)
        (.fillRect graphics 0 0 (* 2 button-cell-width) Wayang/DISPLAY_HEIGHT)

        ;; Draw the beat and BPM information
        (set-graphics-color graphics metronome-content)
        (draw-encoder-button-label controller 0 1 "Beat" metronome-content)
        (draw-cue-variable-value controller 0 1 marker metronome-content)
        (draw-encoder-button-label controller 1 1 "BPM" metronome-content)
        (draw-cue-variable-value controller 1 1 bpm-string metronome-content)
        (draw-gauge controller 1 1 bpm :lowest controllers/minimum-bpm :highest controllers/maximum-bpm
                    :track-color metronome-content)

        ;; Make the metronome button bright, since some overlay is present
        (swap! (:next-text-buttons controller) assoc metronome-button white-color))
