|
|
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) |
Definition at line 15 of file qml_utils.h.
◆ getAudioRegionWaveform()
| Q_INVOKABLE QVector< gui::qquick::WaveformChannel * > zrythm::gui::qquick::QmlUtils::getAudioRegionWaveform |
( |
QObject * | audioRegion, |
|
|
int | pixelWidth ) |
|
static |
Generate waveform data for an AudioRegion.
- Parameters
-
| audioRegion | The AudioRegion object (as QObject*) |
| pixelWidth | The 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: