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

Signals

void stereoPortChanged ()
void portObservationManagerChanged ()
void fftSizeChanged ()
void sampleRateChanged ()
void spectrumColorChanged ()

Public Member Functions

 SpectrumAnalyzerCanvasItem (QQuickItem *parent=nullptr)
QCanvasPainterItemRenderer * createItemRenderer () const override
zrythm::dsp::AudioPortstereoPort () const
void setStereoPort (zrythm::dsp::AudioPort *port)
zrythm::dsp::PortObservationManagerportObservationManager () const
void setPortObservationManager (zrythm::dsp::PortObservationManager *manager)
int fftSize () const
float sampleRate () const
QColor spectrumColor () const
void setFftSize (int size)
void setSampleRate (float rate)
void setSpectrumColor (const QColor &color)
Q_INVOKABLE float getScaledFrequency (int bin, int num_bins, float min_frequency, float max_frequency) const
Q_INVOKABLE float getFrequencyForBin (int bin, int num_bins) const
const QVector< float > & spectrumData () const
uint64_t spectrumGeneration () const

Static Public Member Functions

static float scaled_frequency (float sample_rate, int bin, int num_bins, float min_frequency, float max_frequency)

Properties

QML_ELEMENT zrythm::dsp::AudioPortstereoPort
zrythm::dsp::PortObservationManagerportObservationManager
int fftSize
float sampleRate
QColor spectrumColor

Detailed Description

Definition at line 24 of file spectrum_analyzer_canvas_item.h.

Property Documentation

◆ fftSize

int zrythm::gui::qquick::SpectrumAnalyzerCanvasItem::fftSize
readwrite

Definition at line 30 of file spectrum_analyzer_canvas_item.h.

◆ portObservationManager

zrythm::dsp::PortObservationManager * zrythm::gui::qquick::SpectrumAnalyzerCanvasItem::portObservationManager
readwrite

Definition at line 29 of file spectrum_analyzer_canvas_item.h.

◆ sampleRate

float zrythm::gui::qquick::SpectrumAnalyzerCanvasItem::sampleRate
readwrite

Definition at line 31 of file spectrum_analyzer_canvas_item.h.

◆ spectrumColor

QColor zrythm::gui::qquick::SpectrumAnalyzerCanvasItem::spectrumColor
readwrite

Definition at line 32 of file spectrum_analyzer_canvas_item.h.

◆ stereoPort

QML_ELEMENT zrythm::dsp::AudioPort * zrythm::gui::qquick::SpectrumAnalyzerCanvasItem::stereoPort
readwrite

Definition at line 28 of file spectrum_analyzer_canvas_item.h.


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