LMMS
Loading...
Searching...
No Matches
FormantFilterGraph Class Reference

#include <FormantFilterGraph.H>

Inheritance diagram for FormantFilterGraph:
Fl_Osc_Widget

Public Member Functions

 FormantFilterGraph (int x, int y, int w, int h, const char *label=0)
void init (int *nvowel_, int *nformant_)
void draw_freq_line (float freq, int type)
void draw ()
virtual ~FormantFilterGraph (void)
void OSC_value (int x, const char *) override
void OSC_value (unsigned x, void *v) override
void rebase (std::string new_base) override
void updateVowel (int)
void updateFormant (int)
void update (void)
Public Member Functions inherited from Fl_Osc_Widget
 Fl_Osc_Widget (void)
 Fl_Osc_Widget (Fl_Widget *self)
 Fl_Osc_Widget (std::string loc, Fl_Osc_Interface *osc)
virtual ~Fl_Osc_Widget (void)
virtual void OSC_value (float)
virtual void OSC_value (bool)
virtual void OSC_value (int)
virtual void OSC_value (char)
virtual void OSC_value (const char *)
virtual void OSC_value (float x, const char *)
virtual void OSC_value (bool x, const char *)
virtual void OSC_value (char x, const char *)
virtual void OSC_value (unsigned x, void *v, const char *)
virtual void OSC_value (const char *x, const char *)
virtual void OSC_raw (const char *)
void oscWrite (std::string path, const char *args,...)
void oscWrite (std::string path)
void oscRegister (const char *path)
void oscMove (std::string new_ext)
void oscMove (std::string old_loc, std::string new_loc)

Private Member Functions

float getfreqx (float)
float getfreqpos (float)
float getformantfreq (unsigned char)
float getformantamp (unsigned char)
float getoctavesfreq (void)
float getcenterfreq (void)
float getgain (void)
float getq (void)
float getformantq (unsigned char q)
void formantfilterH (int, int, float *)

Private Attributes

intnvowel
intnformant
float * graphpoints
struct { 
   struct { 
      unsigned char   freq 
      unsigned char   amp 
      unsigned char   q 
   }   formants [FF_MAX_FORMANTS]
Pvowels [FF_MAX_VOWELS]
int Pnumformants
int Pstages
int Pcenterfreq
int Pgain
int Pq
int Poctavesfreq

Additional Inherited Members

Public Attributes inherited from Fl_Osc_Widget
std::string loc
std::string ext
Fl_Osc_Interfaceosc
Protected Member Functions inherited from Fl_Osc_Widget
class Fl_Osc_Panefetch_osc_pane (Fl_Widget *w)

Constructor & Destructor Documentation

◆ FormantFilterGraph()

FormantFilterGraph::FormantFilterGraph ( int x,
int y,
int w,
int h,
const char * label = 0 )

◆ ~FormantFilterGraph()

FormantFilterGraph::~FormantFilterGraph ( void )
virtual

Member Function Documentation

◆ draw()

void FormantFilterGraph::draw ( )

◆ draw_freq_line()

void FormantFilterGraph::draw_freq_line ( float freq,
int type )

◆ formantfilterH()

void FormantFilterGraph::formantfilterH ( int nvowel,
int nfreqs,
float * freqs )
private

◆ getcenterfreq()

float FormantFilterGraph::getcenterfreq ( void )
private

◆ getformantamp()

float FormantFilterGraph::getformantamp ( unsigned char amp)
private

◆ getformantfreq()

float FormantFilterGraph::getformantfreq ( unsigned char freq)
private

◆ getformantq()

float FormantFilterGraph::getformantq ( unsigned char q)
private

◆ getfreqpos()

float FormantFilterGraph::getfreqpos ( float freq)
private

◆ getfreqx()

float FormantFilterGraph::getfreqx ( float x)
private

◆ getgain()

float FormantFilterGraph::getgain ( void )
private

◆ getoctavesfreq()

float FormantFilterGraph::getoctavesfreq ( void )
private

◆ getq()

float FormantFilterGraph::getq ( void )
private

◆ init()

void FormantFilterGraph::init ( int * nvowel_,
int * nformant_ )

◆ OSC_value() [1/2]

void FormantFilterGraph::OSC_value ( int x,
const char * loc )
overridevirtual

Reimplemented from Fl_Osc_Widget.

◆ OSC_value() [2/2]

void FormantFilterGraph::OSC_value ( unsigned x,
void * v )
overridevirtual

Reimplemented from Fl_Osc_Widget.

◆ rebase()

void FormantFilterGraph::rebase ( std::string new_base)
overridevirtual

Reimplemented from Fl_Osc_Widget.

◆ update()

void FormantFilterGraph::update ( void )
virtual

Reimplemented from Fl_Osc_Widget.

◆ updateFormant()

void FormantFilterGraph::updateFormant ( int )

◆ updateVowel()

void FormantFilterGraph::updateVowel ( int )

Member Data Documentation

◆ amp

unsigned char FormantFilterGraph::amp

◆ [struct]

struct { ... } FormantFilterGraph::formants[FF_MAX_FORMANTS]

◆ freq

unsigned char FormantFilterGraph::freq

◆ graphpoints

float* FormantFilterGraph::graphpoints
private

◆ nformant

int * FormantFilterGraph::nformant
private

◆ nvowel

int* FormantFilterGraph::nvowel
private

◆ Pcenterfreq

int FormantFilterGraph::Pcenterfreq
private

◆ Pgain

int FormantFilterGraph::Pgain
private

◆ Pnumformants

int FormantFilterGraph::Pnumformants
private

◆ Poctavesfreq

int FormantFilterGraph::Poctavesfreq
private

◆ Pq

int FormantFilterGraph::Pq
private

◆ Pstages

int FormantFilterGraph::Pstages
private

◆ [struct]

struct { ... } FormantFilterGraph::Pvowels[FF_MAX_VOWELS]

◆ q

unsigned char FormantFilterGraph::q

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