Skip to content

Class QfAudioAnalyzer

ClassList > QfAudioAnalyzer

This class analyzes the peaks of audio clips and generate a list of bars that can be used to visualize the audio's overall texture.

  • #include <qfaudioanalyzer.h>

Inherits the following classes: QObject

Public Properties

Type Name
property int barCount

Public Signals

Type Name
signal void barCountChanged
signal void ready (const QList< qreal > & bars)

Public Functions

Type Name
QfAudioAnalyzer (QObject * parent=nullptr)
Q_INVOKABLE void analyze (const QUrl & source)
int barCount () const
void setBarCount (int barCount)

Public Properties Documentation

property barCount [1/2]

int QfAudioAnalyzer::barCount;

Public Signals Documentation

signal barCountChanged

void QfAudioAnalyzer::barCountChanged;

Emitted when the bar count property has changed.


signal ready

void QfAudioAnalyzer::ready;

Emitted when an analysis is over.

Note:

If the analysis failed, the list will be empty.


Public Functions Documentation

function QfAudioAnalyzer

explicit QfAudioAnalyzer::QfAudioAnalyzer (
    QObject * parent=nullptr
) 

function analyze

Q_INVOKABLE void QfAudioAnalyzer::analyze (
    const QUrl & source
) 

Run an analysis of the audio source.


function barCount [2/2]

inline int QfAudioAnalyzer::barCount () const

Returns the bar count that will be returned upon successful audio clip analysis.


function setBarCount

void QfAudioAnalyzer::setBarCount (
    int barCount
) 

Sets the bar count that will be returned upon successful audio clip analysis.



The documentation for this class was generated from the following file src/core/qfaudioanalyzer.h