afterglow.controllers.launchpad-mk2
Allows the Novation Launchpad Mk2 to be used as a control surface for Afterglow.
add-button-held-feedback-overlay
(add-button-held-feedback-overlay controller button)
(add-button-held-feedback-overlay controller button color)
Adds a simple overlay which keeps a control button bright as long as the user is holding it down.
control-buttons
The round buttons along the top which send and respond to Control Change events.
deactivate
(deactivate controller & {:keys [disconnected], :or {disconnected false}})
Deactivates a controller interface, killing its update thread and removing its MIDI listeners. If :disconnected
is passed with a true
value, it means that the controller has already been removed from the MIDI environment, so no effort will be made to clear its display or take it out of User mode.
In general you will not need to call this function directly; it will be dispatched to via controllers/deactivate when that is called with a controller binding implementation from this namespace. It is also called automatically when one of the controllers being used disappears from the MIDI environment.
set-led-color
(set-led-color controller led color)
Set one of the LEDs, given its control or note number, to a specific RGB color.
set-pad-color
(set-pad-color controller x y color)
Set the color of one of the 64 touch pads to a specific RGB color.
show-round-buttons
(show-round-buttons controller)
(show-round-buttons controller color)
Illuminates all round buttons.
tempo-synced-beat-color
The color of the tap tempo button when the metronome is synchronzied and a beat is taking place.
tempo-synced-off-beat-color
The color of the tap tempo button when the metronome is synchronized and a beat is not taking place.
tempo-unsynced-beat-color
The color of the tap tempo button when synchronization is off and a beat is taking place.
tempo-unsynced-off-beat-color
The color of the tap tempo button when synchronization is off and a beat is not taking place.