Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

[99b84b]: libgui / FormantWidget.h Maximize Restore History

Download this file

FormantWidget.h    38 lines (26 with data), 836 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef _FORMANT_WIDGET_H_
#define _FORMANT_WIDGET_H_ 1
#include <qwidget.h>
//***********************************************************************
class FormantWidget : public QWidget {
Q_OBJECT
public:
FormantWidget (QWidget *parent, int rate);
~FormantWidget ();
double *getPoints (int);
public slots:
void setFormants (int, int *, int *);
signals:
void dbscale (int, int);
protected:
void paintEvent(QPaintEvent *);
private:
int *pos; //array of formant-positions
int *widths; //array of formantwidth
int num; //number of formants
int width, height; //of widget
int rate;
double *points;
};
//***********************************************************************
#endif // _FORMANT_WIDGET_H_