|
Zrythm v2.0.0-alpha.1+31.4967fd053471
a highly automated and intuitive digital audio workstation
|
Reactive QML type that observes a ChordRegion and exposes a QAbstractItemModel of ChordSegment rows. More...
#include <src/gui/qquick/chord_region_segmenter.h>


Public Member Functions | |
| ChordRegionSegmenter (QObject *parent=nullptr) | |
| zrythm::structure::arrangement::ChordRegion * | region () const |
| void | setRegion (zrythm::structure::arrangement::ChordRegion *region) |
| QAbstractItemModel * | segments () const |
| Q_SIGNAL void | regionChanged () |
| Q_SIGNAL void | segmentsChanged () |
Properties | |
| zrythm::structure::arrangement::ChordRegion * | region |
| QAbstractItemModel * | segments |
Reactive QML type that observes a ChordRegion and exposes a QAbstractItemModel of ChordSegment rows.
Each row represents one chord as it should be drawn within the region's timeline bounds, taking loop iterations into account.
On any relevant input change (chord added/removed/moved, loop config changed, region resized), recalculate() rebuilds the segment list, a new QRangeModel is constructed (moving the data in), and segmentsChanged() is emitted.
Loop-expansion algorithm is ported from midi_region_canvas_renderer.cpp and shares the same semantics as MIDI region rendering.
Definition at line 94 of file chord_region_segmenter.h.
|
inline |
Definition at line 104 of file chord_region_segmenter.h.
|
inline |
Definition at line 110 of file chord_region_segmenter.h.
|
readwrite |
Definition at line 97 of file chord_region_segmenter.h.
|
read |
Definition at line 98 of file chord_region_segmenter.h.