Deluge Firmware 1.3.0
Build date: 2026.11.28
Loading...
Searching...
No Matches
deluge::accidentals::SpelledKey Struct Reference

#include <accidentals.h>

Collaboration diagram for deluge::accidentals::SpelledKey:

Public Member Functions

 SpelledKey (const MusicalKey &key_)
int32_t displayAnchor (int32_t noteCode) const

Public Attributes

MusicalKey key
bool flats

Detailed Description

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.

Member Function Documentation

◆ displayAnchor()

int32_t deluge::accidentals::SpelledKey::displayAnchor ( int32_t noteCode) const
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)


The documentation for this struct was generated from the following file: