![]() |
Deluge Firmware 1.3.0
Build date: 2026.11.28
|
#include <accidentals.h>

Public Member Functions | |
| SpelledKey (const MusicalKey &key_) | |
| int32_t | displayAnchor (int32_t noteCode) const |
Public Attributes | |
| MusicalKey | key |
| bool | flats |
A key together with whether it is spelled with flats. Working that out is not free (MusicalKey::prefersFlats()), so build one of these per key rather than per note.
|
inlinenodiscard |
The in-key note that noteCode is displayed on: itself if in key, else the nearest in-key note below it (sharp keys) or above it (flat keys)