Deluge Firmware 1.3.0
Build date: 2026.11.28
Loading...
Searching...
No Matches
LetterMapping Struct Reference

#include <scale_change.h>

Public Attributes

bool preferFlats = false
 How anchors outside the source scale are spelled.
std::array< int8_t, 12 > sourceLetter {-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}
 Letter 0..6 of each interval of the source scale.
std::array< int8_t, 7 > sourcePrimary {-1, -1, -1, -1, -1, -1, -1}
 For each letter, the interval of the source scale's (primary) note with it.
std::array< int8_t, 7 > targetPrimary {-1, -1, -1, -1, -1, -1, -1}
 For each letter, the interval of the target scale's (primary) note with it.
std::array< int8_t, 7 > targetSecond {-1, -1, -1, -1, -1, -1, -1}
 For each letter, the interval of the target scale's second note with it, if two share the letter.

Detailed Description

How a ScaleChange maps notes when it goes by diatonic degree letter (see scale_degrees.h) rather than by scale degree index. Intervals are semitones above the root; -1 means "none" throughout.


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