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

Represents waveform data for a single audio channel. More...

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

Inheritance diagram for zrythm::gui::qquick::WaveformChannel:
Collaboration diagram for zrythm::gui::qquick::WaveformChannel:

Public Member Functions

 WaveformChannel (QVector< float > minValues, QVector< float > maxValues, int pixelWidth, QObject *parent=nullptr)
 Construct a WaveformChannel.
const QVector< float > & minValues () const
 Get the minimum sample values for each pixel.
const QVector< float > & maxValues () const
 Get the maximum sample values for each pixel.
int pixelWidth () const
 Get the pixel width used for generation.

Properties

QVector< float > minValues
QVector< float > maxValues
int pixelWidth

Detailed Description

Represents waveform data for a single audio channel.

This class contains min/max sample values for each pixel position in a waveform display, optimized for QML consumption.

Definition at line 19 of file waveform_channel.h.

Constructor & Destructor Documentation

◆ WaveformChannel()

zrythm::gui::qquick::WaveformChannel::WaveformChannel ( QVector< float > minValues,
QVector< float > maxValues,
int pixelWidth,
QObject * parent = nullptr )

Construct a WaveformChannel.

Parameters
minValuesMinimum sample values for each pixel
maxValuesMaximum sample values for each pixel
pixelWidthThe pixel width used for generation
parentParent QObject

Member Function Documentation

◆ maxValues()

const QVector< float > & zrythm::gui::qquick::WaveformChannel::maxValues ( ) const
inline

Get the maximum sample values for each pixel.

Returns
Vector of maximum values

Definition at line 53 of file waveform_channel.h.

◆ minValues()

const QVector< float > & zrythm::gui::qquick::WaveformChannel::minValues ( ) const
inline

Get the minimum sample values for each pixel.

Returns
Vector of minimum values

Definition at line 47 of file waveform_channel.h.

◆ pixelWidth()

int zrythm::gui::qquick::WaveformChannel::pixelWidth ( ) const
inline

Get the pixel width used for generation.

Returns
Pixel width

Definition at line 59 of file waveform_channel.h.

Property Documentation

◆ maxValues

QVector<float> zrythm::gui::qquick::WaveformChannel::maxValues
read

Definition at line 23 of file waveform_channel.h.

◆ minValues

QVector<float> zrythm::gui::qquick::WaveformChannel::minValues
read

Definition at line 22 of file waveform_channel.h.

◆ pixelWidth

int zrythm::gui::qquick::WaveformChannel::pixelWidth
read

Definition at line 24 of file waveform_channel.h.


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