Zrythm v2.0.0-alpha.1+31.4967fd053471
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
zrythm::gui::qquick::ChordSegment Class Reference

POD gadget carrying one (chord × visible loop iteration) tuple. More...

#include <src/gui/qquick/chord_region_segmenter.h>

Collaboration diagram for zrythm::gui::qquick::ChordSegment:

Data Fields

double abs_start_ticks = 0
 Absolute start position within the region, in ticks.
double abs_end_ticks = 0
 Absolute end position within the region, in ticks.
zrythm::structure::arrangement::ChordObjectchord_object = nullptr
 Pointer to the source chord object.
int chord_index = 0
 Index of the chord in the region's chordObjects list (insertion order, not sorted order).

Properties

double absStartTicks
double absEndTicks
zrythm::structure::arrangement::ChordObjectchordObject
int chordIndex

Detailed Description

POD gadget carrying one (chord × visible loop iteration) tuple.

Each instance represents a single chord as it should be drawn within the region's timeline bounds. When a region is looped, a single source chord may produce multiple ChordSegment instances (one per visible iteration).

Exposed to QML as roles of the segmenter's model. Property names match role names automatically (QRangeModel maps Q_PROPERTY names to roles when MultiRoleItem row category is set).

Definition at line 34 of file chord_region_segmenter.h.

Field Documentation

◆ abs_end_ticks

double zrythm::gui::qquick::ChordSegment::abs_end_ticks = 0

Absolute end position within the region, in ticks.

Either the next chord's start (within the same loop iteration) or the iteration's boundary, whichever comes first.

Definition at line 52 of file chord_region_segmenter.h.

◆ abs_start_ticks

double zrythm::gui::qquick::ChordSegment::abs_start_ticks = 0

Absolute start position within the region, in ticks.

Definition at line 44 of file chord_region_segmenter.h.

◆ chord_index

int zrythm::gui::qquick::ChordSegment::chord_index = 0

Index of the chord in the region's chordObjects list (insertion order, not sorted order).

Useful for stable identity across recalculations.

Definition at line 61 of file chord_region_segmenter.h.

◆ chord_object

zrythm::structure::arrangement::ChordObject* zrythm::gui::qquick::ChordSegment::chord_object = nullptr

Pointer to the source chord object.

Not null for valid segments.

Definition at line 55 of file chord_region_segmenter.h.

Property Documentation

◆ absEndTicks

double zrythm::gui::qquick::ChordSegment::absEndTicks

Definition at line 38 of file chord_region_segmenter.h.

◆ absStartTicks

double zrythm::gui::qquick::ChordSegment::absStartTicks

Definition at line 37 of file chord_region_segmenter.h.

◆ chordIndex

int zrythm::gui::qquick::ChordSegment::chordIndex

Definition at line 40 of file chord_region_segmenter.h.

◆ chordObject

zrythm::structure::arrangement::ChordObject * zrythm::gui::qquick::ChordSegment::chordObject

Definition at line 39 of file chord_region_segmenter.h.


The documentation for this class was generated from the following file: