Backend for the chord editor.
More...
#include <src/gui/backend/backend/chord_editor.h>
|
| | ChordEditor (const structure::arrangement::ArrangerObjectRegistry ®istry, QObject *parent=nullptr) |
| gui::backend::EditorSettings * | getEditorSettings () const |
| gui::backend::ArrangerObjectSelectionManager * | selectionManager () 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 (const ChordPreset &pset, 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 36 of file chord_editor.h.
◆ ChordAccent
| using ChordEditor::ChordAccent = dsp::ChordAccent |
◆ ChordDescriptor
◆ ChordType
| using ChordEditor::ChordType = dsp::ChordType |
◆ MusicalNote
| using ChordEditor::MusicalNote = dsp::MusicalNote |
◆ MusicalScale
◆ ChordEditor()
| ChordEditor::ChordEditor |
( |
const structure::arrangement::ArrangerObjectRegistry & | registry, |
|
|
QObject * | parent = nullptr ) |
|
inline |
◆ add_chord_descriptor()
| void ChordEditor::add_chord_descriptor |
( |
ChordDescriptor && | chord_descr | ) |
|
|
inline |
◆ get_chord_at_index() [1/2]
| auto & ChordEditor::get_chord_at_index |
( |
size_t | index | ) |
|
|
inline |
◆ get_chord_at_index() [2/2]
| auto & ChordEditor::get_chord_at_index |
( |
size_t | index | ) |
const |
|
inline |
◆ getEditorSettings()
◆ replace_chord_descriptor()
| void ChordEditor::replace_chord_descriptor |
( |
const auto | index, |
|
|
ChordDescriptor && | chord_descr ) |
|
inline |
◆ selectionManager()
◆ 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> 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 152 of file chord_editor.h.
◆ editorSettings
◆ selectionManager
The documentation for this class was generated from the following file: