BeatLib


SpectrumDetector QML Type

Detects an audio signal's frequency spectrum. More...

Import Statement: import
Inherits:

AudioEffect

Properties

Detailed Description

Detects information about an MP3Decoder's audio signal's spectrum. It does so by performing a fast fourier transform (FFT) on the audio signal. It then calculates certain information from the FFT spectrum. That information is then available via spectrumData.

This effect uses the FFTW3 library internally.

Property Documentation

preEffect : AudioEffect

An instance of an AudioEffect implementation to be applied to the input signal before the spectrum analysis.

You can set this to any AudioEffect instance, or null, which is the default value.


[read-only] spectrumData : SpectrumData

Contains information about the audio signal at the current playback time.

This is a C++ object with the following properties:


spectrumSize : int

Size for the FFT transform, in samples.

Powers of 2, e.g. 1024 will yield the best results.


startFrequency : real

Minimum frequency for detecting spectrumData's maxFrequency.