Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
ChordDescriptor Struct Reference

A ChordDescriptor describes a chord and is not linked to any specific object by itself. More...

#include <dsp/chord_descriptor.h>

Data Fields

bool has_bass
 Has bass note or not.
 
MusicalNote root_note
 Root note.
 
MusicalNote bass_note
 Bass note 1 octave below.
 
ChordType type
 Chord type.
 
ChordAccent accent
 Chord accent.
 
int notes [CHORD_DESCRIPTOR_MAX_NOTES]
 Only used if custom chord.
 
int inversion
 0 no inversion, less than 0 highest note(s) drop an octave, greater than 0 lowest note(s) receive an octave.
 

Detailed Description

A ChordDescriptor describes a chord and is not linked to any specific object by itself.

Chord objects should include a ChordDescriptor.

Definition at line 93 of file chord_descriptor.h.

Field Documentation

◆ accent

ChordAccent ChordDescriptor::accent

Chord accent.

Does not apply to custom chords.

Definition at line 112 of file chord_descriptor.h.

◆ bass_note

MusicalNote ChordDescriptor::bass_note

Bass note 1 octave below.

Definition at line 102 of file chord_descriptor.h.

◆ has_bass

bool ChordDescriptor::has_bass

Has bass note or not.

Definition at line 96 of file chord_descriptor.h.

◆ inversion

int ChordDescriptor::inversion

0 no inversion, less than 0 highest note(s) drop an octave, greater than 0 lowest note(s) receive an octave.

Definition at line 129 of file chord_descriptor.h.

◆ notes

int ChordDescriptor::notes[CHORD_DESCRIPTOR_MAX_NOTES]

Only used if custom chord.

4 octaves, 1st octave is where bass note is, but bass note should not be part of this.

Starts at C always, from MIDI pitch 36.

Definition at line 122 of file chord_descriptor.h.

◆ root_note

MusicalNote ChordDescriptor::root_note

Root note.

Definition at line 99 of file chord_descriptor.h.

◆ type

ChordType ChordDescriptor::type

Chord type.

Definition at line 105 of file chord_descriptor.h.


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