![]() |
Deluge Firmware 1.3.0
Build date: 2026.11.28
|
Classes | |
| struct | SpelledKey |
| struct | NoteDestination |
| Where a scale change puts a note. More... | |
Enumerations | |
| enum class | AccidentalHandling { FOLLOW_ANCHOR , KEEP_PITCH } |
| What a scale change which shifts scale degrees does with accidentals. More... | |
Functions | |
| int32_t | lineageAnchor (int32_t pitch, AnchorMarker marker, const SpelledKey &key) |
| AnchorMarker | markerFor (int32_t pitch, int32_t anchor, const SpelledKey &newKey) |
| NoteDestination | destination (int32_t pitch, AnchorMarker marker, const SpelledKey &oldKey, const ScaleChange &change, AccidentalHandling handling) |
Pure helpers for "accidental lineage": notes outside the key (accidentals) hang off an in-key anchor pitch, and follow it through scale changes. A Note stores an AnchorMarker only when its anchor can't be derived from its pitch and the key (e.g. after a scale change put it on an in-key pitch).
|
strong |
| NoteDestination deluge::accidentals::destination | ( | int32_t | pitch, |
| AnchorMarker | marker, | ||
| const SpelledKey & | oldKey, | ||
| const ScaleChange & | change, | ||
| AccidentalHandling | handling ) |
Where a note at pitch with the given marker goes under a scale change away from oldKey. There are three kinds of change:
| int32_t deluge::accidentals::lineageAnchor | ( | int32_t | pitch, |
| AnchorMarker | marker, | ||
| const SpelledKey & | key ) |
The anchor of a note at pitch with the given marker: the one the marker names, or for a derived (unmarked) note its display anchor in the key (which is the pitch itself if that is in key).
| AnchorMarker deluge::accidentals::markerFor | ( | int32_t | pitch, |
| int32_t | anchor, | ||
| const SpelledKey & | newKey ) |
Marker to store for a note which a scale change left at pitch with the given anchor, under the key after the change: derived if that key gives the pitch this anchor anyway (or the distance can't be stored), self if the note is its own anchor but the key would derive another, else the offset.