Deluge Firmware 1.3.0
Build date: 2025.04.16
Loading...
Searching...
No Matches
MusicalKey Class Reference

#include <musical_key.h>

Collaboration diagram for MusicalKey:

Public Member Functions

uint8_t intervalOf (int32_t noteCode) const
 
int8_t degreeOf (int32_t nodeCode) const
 

Public Attributes

NoteSet modeNotes
 
int16_t rootNote
 

Detailed Description

MusicalKey combines a root note and a set of notes relative to the root.

modeNotes always contains the root (0).

Member Function Documentation

◆ degreeOf()

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.

◆ intervalOf()

uint8_t MusicalKey::intervalOf ( int32_t noteCode) const

Returns semitone offset from root below the noteCode.


The documentation for this class was generated from the following files: