ControlSurface
Source:
ControlSurface.h
ControlSurface¶
src/core/ControlSurface.h:50One attached surface.
Implemented by a transport (OscModule today; a MIDI or GPIO module later), registered with ControlModule, and called when the state it mirrors changes.
Public Methods¶
virtual void sendValue(SurfaceControl kind, uint8_t index, uint8_t value)
: A control's position changed.
virtual inline void sendRing(uint8_t index, uint8_t value, RingStyle style)
: An encoder's ring: where it points and what it draws.
virtual inline void sendColor(uint8_t index, uint8_t r, uint8_t g, uint8_t b)
: A pad's color. Does nothing by default: most transports have no color at all.
virtual inline void sendColors(const uint8_t * rgb, uint8_t count)
: Several colors at once, rgb being count RGB triples.
virtual inline void sendLabel(uint8_t index, const char * text)
: A name for a control, where the transport can show one. Does nothing by default.