Base Relacs Plugins  0.9.8
Public Member Functions | List of all members
Spectrogram Class Reference

#include <spectrogram.h>

Inheritance diagram for Spectrogram:
Inheritance graph
[legend]
Collaboration diagram for Spectrogram:
Collaboration graph
[legend]

Public Member Functions

 Spectrogram (void)
 
virtual void preConfig (void)
 
virtual int main (void)
 
- Public Member Functions inherited from ConfigDialog
 ConfigDialog (const string &configident="", int configgroup=0, const string &name="", const string &author="", const string &version="", const string &date=__DATE__)
 
virtual ~ConfigDialog (void)
 
string name (void) const
 
virtual void setName (const string &name)
 
string author (void) const
 
virtual void setAuthor (const string &author)
 
string version (void) const
 
virtual void setVersion (const string &version)
 
string date (void) const
 
virtual void setDate (const string &date)
 
virtual OptWidgetdialogOptions (OptDialog *od, string *tabhotkeys=0)
 
virtual void dialogButtons (OptDialog *od)
 
virtual void dialogEmptyMessage (OptDialog *od)
 
int dialogSelectMask (void) const
 
void setDialogSelectMask (int mask)
 
void addDialogSelectMask (int mask)
 
int dialogReadOnlyMask (void) const
 
void setDialogReadOnlyMask (int mask)
 
void addDialogReadOnlyMask (int mask)
 
int dialogStyle (void) const
 
void setDialogStyle (int style)
 
void addDialogStyle (int style)
 
string dialogCaption (void) const
 
void setDialogCaption (const string &caption)
 
bool dialogHeader (void) const
 
void setDialogHeader (bool d)
 
string headerBackgroundColor (void) const
 
void setHeaderBackgroundColor (const string &color)
 
string headerForegroundColor (void) const
 
void setHeaderForegroundColor (const string &color)
 
string headerImageFile (void) const
 
void setHeaderImageFile (const string &file)
 
virtual void dialogHeaderWidget (OptDialog *od)
 
bool dialogHelp (void) const
 
void setDialogHelp (bool d)
 
string helpCaption (void) const
 
void setHelpCaption (const string &caption)
 
string helpPath (int inx=0) const
 
int helpPathes (void) const
 
void clearHelpPathes (void)
 
void setHelpPath (const string &path)
 
void addHelpPath (const string &path)
 
virtual string helpFileName (void) const
 
bool dialogOpen (void) const
 
bool helpOpen (void) const
 
QWidget * mainWidget (void)
 
virtual void setMainWidget (QWidget *widget)
 
void lock () const
 
void unlock () const
 
bool tryLock (int timeout=1)
 
QMutex * mutex (void)
 
- Public Member Functions inherited from ConfigClass
 ConfigClass (const string &ident, int group=0, int mode=0xffff, int selectmask=0)
 
 ConfigClass (const ConfigClass &C)
 
virtual ~ConfigClass (void)
 
const string & configIdent (void) const
 
void setConfigIdent (const string &ident)
 
int configGroup (void) const
 
void setConfigGroup (int group)
 
int configMode (void) const
 
void setConfigMode (int mode)
 
void addConfigMode (int mode)
 
void delConfigMode (int mode)
 
int configSelectMask (void) const
 
void setConfigSelectMask (int mask)
 
void addConfig (void)
 
void readConfig (void)
 
virtual void readConfig (StrQueue &sq)
 
virtual void saveConfig (ofstream &str)
 
virtual int configSize (void) const
 
virtual void config (void)
 

Additional Inherited Members

- Public Types inherited from ConfigClass
enum  Action
 
- Public Slots inherited from ConfigDialog
virtual void dialog (void)
 
virtual void help (void)
 
virtual void notifyDialog (const Options &opt)
 
- Signals inherited from ConfigDialog
void dialogAccepted (void)
 
void dialogAction (int r)
 
void dialogClosed (int r)
 
- Static Public Member Functions inherited from ConfigClass
static void setConfigureClasses (ConfigureClasses *cfg)
 
- Protected Slots inherited from ConfigDialog
void notificationFromDialog (const Parameter &p)
 
virtual void dClosed (int r)
 
virtual void hClosed (int r)
 
- Protected Member Functions inherited from ConfigDialog
void setDialogOpen (bool open=true)
 
void setHelpOpen (bool open=true)
 
- Protected Attributes inherited from ConfigDialog
Options DialogOptions
 

Detailed Description

[RePro] Displays a spectrogram of an input trace.

Author
Jan Benda
Version
1.0 (Feb 10, 2013)

The Spectrogram-RePro records data without writing out any stimulus and displays a spectrogram of an input trace. The RePro terminates after duration seconds. If duration is set to zero, the RePro keeps running infinitely. Recording can be interrupted any time by pressing the space key or starting a different RePro.

A powerspectrum is computed every step second on a width seconds long chunk of data. If step is set to zero, it is set to width. The powerspectrum is averaged over ffts that use specsize datapoints, overlap by half if overlap is true, and are windowed using the window function window.

The resulting spectrogram is displayed for the last tmax seconds. The default maximum frequency shown is fmax. The color code displays all values between pmin and pmax decibel of the maximum possible power in the spectrum. The maximum power is either set to the maximum power in each powerspectrum (powermax is set to true) or to the maximum possible power of the input trace range.

Options
  • intrace=V-1: Input trace (string)
  • width=100ms: Width of powerspectrum window (number)
  • step=0ms: Temporal increment for powerspectrum window (number)
  • tmax=10s: Maximum time to plot in spectrogram (number)
  • duration=0s: Total duration of spectrogram (number)
  • size=1024: Number of data points for FFT (string)
  • overlap=true: Overlap FFT windows within single powerspectrum (boolean)
  • window=Hanning: FFT window function (string)
  • powermax=true: Power relative to maximum (boolean)
  • fmax=2000Hz: Maximum frequency (number)
  • pmax=0dB: Maximum power (number)
  • pmin=-50dB: Minimum power (number)

Constructor & Destructor Documentation

Spectrogram ( void  )

Member Function Documentation

void preConfig ( void  )
virtual

Reimplemented from ConfigClass.

int main ( void  )
virtual

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