The “Smart Grid” is the overarching framework for mapping the synthesizer’s internal state to physical, grid-based MIDI controllers (like the Novation Launchpad or the Yaeltex Wrld.Bldr) and the on-screen UI.
The core definitions live in private/src/SmartGrid.hpp, with the specific integration for the Nonagon and SquiggleBoy defined in private/src/TheNonagonSquiggleBoy.hpp.
The Smart Grid framework abstracts away the specifics of any particular MIDI controller. It defines a generic grid of Cells.
m_pressureSensitive). It also has a state that dictates its current Color (for LED feedback).Message or MessageIn events) to the appropriate Cell.Color enum and HSV representation, allowing the software to specify semantic colors (e.g., “Red”, “Dim White”) that are later translated into hardware-specific MIDI velocity values by the device-specific driver.The TheNonagonSmartGrid class wraps the core TheNonagonInternal sequencer logic in this Smart Grid framework.
Cells.