![]() |
Deluge Firmware 1.3.0
Build date: 2025.04.16
|
#include <musical_key.h>
Public Member Functions | |
uint8_t | intervalOf (int32_t noteCode) const |
int8_t | degreeOf (int32_t nodeCode) const |
Public Attributes | |
NoteSet | modeNotes |
int16_t | rootNote |
MusicalKey combines a root note and a set of notes relative to the root.
modeNotes always contains the root (0).
int8_t MusicalKey::degreeOf | ( | int32_t | nodeCode | ) | const |
Returns degree of noteCode in the scale of they key, -1 if the noteCode is note NOT in key.
uint8_t MusicalKey::intervalOf | ( | int32_t | noteCode | ) | const |
Returns semitone offset from root below the noteCode.