Noatun API Documentation

FFTScope Class Reference

#include <plugin.h>

Inheritance diagram for FFTScope:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 FFTScope (int interval, int pid=0)
virtual int bands () const =0
virtual void setBands (float n)=0

Static Public Member Functions

float magic (int bands)

Detailed Description

Base class for all kinds of FFT scopes

Definition at line 165 of file plugin.h.


Member Function Documentation

virtual int FFTScope::bands  )  const [pure virtual]
 

the "width" of each scopeEvent

Implemented in StereoFFTScope, and MonoFFTScope.

float FFTScope::magic int  bands  )  [static]
 

returns the magic number that you can give to "setBands". For example:

 setBands(magic(50));
 bands()==50
 

virtual void FFTScope::setBands float  n  )  [pure virtual]
 

set the width combiner value. in theory, a value of 1.0 should give you exactly 1024 samples, greater values will decrease the amount quite rapidly. by default, 1.1 is used, which gives 50. You'll have to tweak this manually.

This will only return valid responses for values between 10 and 1024

This function is a terrible hack, and we apologize for it. The values of these magic numbers do occasionally change, so you must use magic

Implemented in StereoFFTScope, and MonoFFTScope.


The documentation for this class was generated from the following file:
KDE Logo
This file is part of the documentation for Noatun 2.6.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Thu Oct 21 23:49:47 2004 by doxygen 1.3.8-20040913 written by Dimitri van Heesch, © 1997-2003