Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
zrythm::gui::qquick::QmlUtils Class Reference
Inheritance diagram for zrythm::gui::qquick::QmlUtils:
Collaboration diagram for zrythm::gui::qquick::QmlUtils:

Static Public Member Functions

static Q_INVOKABLE QString toPathString (const QUrl &url)
static Q_INVOKABLE QUrl localFileToQUrl (const QString &path)
static Q_INVOKABLE float amplitudeToDbfs (float amplitude)
static Q_INVOKABLE QStringList splitTextLines (const QString &text)
static Q_INVOKABLE QStringList removeDuplicates (const QStringList &list)
static Q_INVOKABLE QString readTextFileContent (const QString &filePath)
static Q_INVOKABLE QColor saturate (const QColor &color, float perc)
static Q_INVOKABLE QColor makeBrighter (const QColor &color, float perc)
static Q_INVOKABLE QColor adjustOpacity (const QColor &color, float newOpacity)
static Q_INVOKABLE QVector< gui::qquick::WaveformChannel * > getAudioRegionWaveform (QObject *audioRegion, int pixelWidth)
 Generate waveform data for an AudioRegion.
static Q_INVOKABLE QVector< float > getAutomationRegionValues (QObject *automationRegion, int pixelWidth)
static Q_INVOKABLE bool rectanglesIntersect (QRectF a, QRectF b)
static Q_INVOKABLE bool rectanglesIntersect (QRect a, QRect b)

Detailed Description

Definition at line 15 of file qml_utils.h.

Member Function Documentation

◆ getAudioRegionWaveform()

Q_INVOKABLE QVector< gui::qquick::WaveformChannel * > zrythm::gui::qquick::QmlUtils::getAudioRegionWaveform ( QObject * audioRegion,
int pixelWidth )
static

Generate waveform data for an AudioRegion.

Parameters
audioRegionThe AudioRegion object (as QObject*)
pixelWidthThe width in pixels to generate waveform data for
Returns
Vector of WaveformChannel pointers (one per audio channel)

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