Backend for the chord editor.
More...
#include <src/gui/backend/backend/chord_editor.h>
|
| ChordEditor (QObject *parent=nullptr) |
|
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::Type 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) |
|
auto & | get_selected_object_ids () |
|
double | clamp_scroll_start_x (double x) |
|
double | clamp_scroll_start_y (double y) |
|
void | append_scroll (double dx, double dy, bool validate) |
| Appends the given deltas to the scroll x/y values.
|
|
Backend for the chord editor.
Definition at line 35 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 |
( |
QObject * | parent = nullptr | ) |
|
|
inline |
◆ add_chord_descriptor()
◆ 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 |
◆ get_selected_object_ids()
auto & ChordEditor::get_selected_object_ids |
( |
| ) |
|
|
inline |
◆ replace_chord_descriptor()
void 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_
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 126 of file chord_editor.h.
The documentation for this class was generated from the following file: