Zrythm
a highly automated and intuitive digital audio workstation
|
Chord editor backend. More...
#include "dsp/chord_descriptor.h"
#include "dsp/scale.h"
#include "gui/backend/editor_settings.h"
#include "utils/yaml.h"
Go to the source code of this file.
Data Structures | |
struct | ChordEditor |
Backend for the chord editor. More... | |
Macros | |
#define | CHORD_EDITOR_SCHEMA_VERSION 1 |
#define | CHORD_EDITOR (CLIP_EDITOR->chord_editor) |
#define | CHORD_EDITOR_NUM_CHORDS 12 |
Functions | |
void | chord_editor_init_loaded (ChordEditor *self) |
Inits the ChordEditor after a Project has been loaded. | |
void | chord_editor_init (ChordEditor *self) |
Initializes the ChordEditor. | |
ChordEditor * | chord_editor_clone (ChordEditor *src) |
void | chord_editor_apply_single_chord (ChordEditor *self, const ChordDescriptor *chord, const int idx, bool undoable) |
void | chord_editor_apply_chords (ChordEditor *self, const ChordDescriptor **chords, bool undoable) |
void | chord_editor_apply_preset (ChordEditor *self, ChordPreset *pset, bool undoable) |
void | chord_editor_apply_preset_from_scale (ChordEditor *self, MusicalScaleType scale, MusicalNote root_note, bool undoable) |
void | chord_editor_transpose_chords (ChordEditor *self, bool up, bool undoable) |
NONNULL ChordDescriptor * | chord_editor_get_chord_from_note_number (const ChordEditor *self, 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. | |
NONNULL int | chord_editor_get_chord_index (const ChordEditor *self, const ChordDescriptor *chord) |
ChordEditor * | chord_editor_new (void) |
void | chord_editor_free (ChordEditor *self) |
Chord editor backend.
Definition in file chord_editor.h.