|
Zrythm v2.0.0-alpha.1
a highly automated and intuitive digital audio workstation
|
QML-visible canvas item that renders the tempo automation curve in the background of the tempo lane. More...
#include <src/gui/qquick/tempo_curve_canvas_item.h>


Public Member Functions | |
| TempoCurveCanvasItem (QQuickItem *parent=nullptr) | |
| QCanvasPainterItemRenderer * | createItemRenderer () const override |
| structure::arrangement::TempoObjectManager * | tempoObjectManager () const |
| void | setTempoObjectManager (structure::arrangement::TempoObjectManager *manager) |
| dsp::TempoMapWrapper * | tempoMap () const |
| void | setTempoMap (dsp::TempoMapWrapper *wrapper) |
| double | baseBpm () const |
| Base tempo at tick 0 from the bound tempo map (120 if unbound). | |
| qreal | pxPerTick () const |
| void | setPxPerTick (qreal px) |
| qreal | scrollX () const |
| void | setScrollX (qreal x) |
| qreal | scrollXPlusWidth () const |
| void | setScrollXPlusWidth (qreal w) |
| QColor | curveColor () const |
| void | setCurveColor (const QColor &color) |
| QItemSelectionModel * | selectionModel () const |
| void | setSelectionModel (QItemSelectionModel *model) |
| bool | dragActive () const |
| void | setDragActive (bool active) |
| qreal | dragDeltaPx () const |
| void | setDragDeltaPx (qreal px) |
Properties | |
| zrythm::structure::arrangement::TempoObjectManager * | tempoObjectManager |
| zrythm::dsp::TempoMapWrapper * | tempoMap |
| qreal | pxPerTick |
| qreal | scrollX |
| qreal | scrollXPlusWidth |
| QColor | curveColor |
| QItemSelectionModel * | selectionModel |
| bool | dragActive |
| qreal | dragDeltaPx |
QML-visible canvas item that renders the tempo automation curve in the background of the tempo lane.
Draws the continuous tempo curve (constant steps and linear ramps) behind the tempo objects using the GPU-accelerated QCanvasPainter API. The data is read from the TempoObjectManager (the same objects rendered as pills), so the curve always matches what is shown and edited. The vertical range is the project-wide min/max of all tempo objects.
Definition at line 29 of file tempo_curve_canvas_item.h.
|
inline |
Definition at line 65 of file tempo_curve_canvas_item.h.
|
inline |
Definition at line 69 of file tempo_curve_canvas_item.h.
|
inline |
Definition at line 71 of file tempo_curve_canvas_item.h.
|
inline |
Definition at line 59 of file tempo_curve_canvas_item.h.
|
inline |
Definition at line 61 of file tempo_curve_canvas_item.h.
|
inline |
Definition at line 63 of file tempo_curve_canvas_item.h.
|
inline |
Definition at line 67 of file tempo_curve_canvas_item.h.
|
inline |
Definition at line 55 of file tempo_curve_canvas_item.h.
|
inline |
Definition at line 49 of file tempo_curve_canvas_item.h.
|
readwrite |
Definition at line 39 of file tempo_curve_canvas_item.h.
|
readwrite |
Definition at line 41 of file tempo_curve_canvas_item.h.
|
readwrite |
Definition at line 42 of file tempo_curve_canvas_item.h.
|
readwrite |
Definition at line 36 of file tempo_curve_canvas_item.h.
|
readwrite |
Definition at line 37 of file tempo_curve_canvas_item.h.
|
readwrite |
Definition at line 38 of file tempo_curve_canvas_item.h.
|
readwrite |
Definition at line 40 of file tempo_curve_canvas_item.h.
|
readwrite |
Definition at line 35 of file tempo_curve_canvas_item.h.
|
readwrite |
Definition at line 34 of file tempo_curve_canvas_item.h.