Backend for the chord editor.
More...
#include <src/structure/arrangement/chord_editor.h>
|
|
| ChordEditor (QObject *parent=nullptr) |
| auto | getEditorSettings () const |
|
void | init () |
| | Initializes the ChordEditor.
|
|
void | apply_single_chord (const ChordDescriptor &chord, int idx, bool undoable) |
|
void | apply_chords (const std::vector< ChordDescriptor > &chords, bool undoable) |
|
void | apply_preset_from_scale (MusicalScale::ScaleType scale, MusicalNote root_note, bool undoable) |
|
void | transpose_chords (bool up, bool undoable) |
|
ChordDescriptor * | get_chord_from_note_number (midi_byte_t note_number) |
| | Returns the ChordDescriptor for the given note number, otherwise NULL if the given note number is not in the proper range.
|
|
int | get_chord_index (const ChordDescriptor &chord) const |
| auto & | get_chord_at_index (size_t index) |
| auto & | get_chord_at_index (size_t index) const |
| void | add_chord_descriptor (ChordDescriptor &&chord_descr) |
| void | replace_chord_descriptor (const auto index, ChordDescriptor &&chord_descr) |
|
| std::vector< ChordDescriptor > | chords_ |
| | The chords to show on the left.
|
Backend for the chord editor.
Definition at line 21 of file chord_editor.h.
◆ ChordAccent
| using zrythm::structure::arrangement::ChordEditor::ChordAccent = dsp::ChordAccent |
◆ ChordDescriptor
◆ ChordType
| using zrythm::structure::arrangement::ChordEditor::ChordType = dsp::ChordType |
◆ MusicalNote
| using zrythm::structure::arrangement::ChordEditor::MusicalNote = dsp::MusicalNote |
◆ MusicalScale
◆ add_chord_descriptor()
| void zrythm::structure::arrangement::ChordEditor::add_chord_descriptor |
( |
ChordDescriptor && | chord_descr | ) |
|
|
inline |
◆ get_chord_at_index() [1/2]
| auto & zrythm::structure::arrangement::ChordEditor::get_chord_at_index |
( |
size_t | index | ) |
|
|
inline |
◆ get_chord_at_index() [2/2]
| auto & zrythm::structure::arrangement::ChordEditor::get_chord_at_index |
( |
size_t | index | ) |
const |
|
inline |
◆ getEditorSettings()
| auto zrythm::structure::arrangement::ChordEditor::getEditorSettings |
( |
| ) |
const |
|
inline |
◆ replace_chord_descriptor()
| void zrythm::structure::arrangement::ChordEditor::replace_chord_descriptor |
( |
const auto | index, |
|
|
ChordDescriptor && | chord_descr ) |
|
inline |
◆ from_json
| void from_json |
( |
const nlohmann::json & | j, |
|
|
ChordEditor & | editor ) |
|
friend |
◆ init_from
◆ to_json
| void to_json |
( |
nlohmann::json & | j, |
|
|
const ChordEditor & | editor ) |
|
friend |
◆ chords_
| std::vector<ChordDescriptor> zrythm::structure::arrangement::ChordEditor::chords_ |
The chords to show on the left.
Currently fixed to 12 chords whose order cannot be edited. Chords cannot be added or removed.
Definition at line 118 of file chord_editor.h.
◆ editorSettings
The documentation for this class was generated from the following file: