Zrythm v2.0.0-alpha.1+31.4967fd053471
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
zrythm::dsp::chords::ChordKey Struct Reference

Lightweight POD storing just the chord identity (no QObject overhead). More...

#include <src/dsp/chord_suggestion.h>

Public Member Functions

bool operator== (const ChordKey &other) const
ChordDescriptor make_descriptor () const
 Constructs a temporary ChordDescriptor for method calls.

Data Fields

MusicalNote root_note = MusicalNote::C
ChordType type = ChordType::Major
ChordAccent accent = ChordAccent::None

Detailed Description

Lightweight POD storing just the chord identity (no QObject overhead).

ChordDescriptor inherits QObject (copy/move deleted in Qt6), so it cannot be stored by value in containers. Use make_descriptor() when you need a temporary ChordDescriptor for method calls.

Definition at line 70 of file chord_suggestion.h.

Member Function Documentation

◆ make_descriptor()

ChordDescriptor zrythm::dsp::chords::ChordKey::make_descriptor ( ) const
inline

Constructs a temporary ChordDescriptor for method calls.

Definition at line 83 of file chord_suggestion.h.

◆ operator==()

bool zrythm::dsp::chords::ChordKey::operator== ( const ChordKey & other) const
inline

Definition at line 76 of file chord_suggestion.h.

Field Documentation

◆ accent

ChordAccent zrythm::dsp::chords::ChordKey::accent = ChordAccent::None

Definition at line 74 of file chord_suggestion.h.

◆ root_note

MusicalNote zrythm::dsp::chords::ChordKey::root_note = MusicalNote::C

Definition at line 72 of file chord_suggestion.h.

◆ type

ChordType zrythm::dsp::chords::ChordKey::type = ChordType::Major

Definition at line 73 of file chord_suggestion.h.


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