Guitarix
gx_engine::PitchTracker Class Reference

#include <gx_pitch_tracker.h>

Public Member Functions

 PitchTracker ()
 
 ~PitchTracker ()
 
void init (int priority, int policy, unsigned int samplerate)
 
void add (int count, float *input)
 
float get_estimated_freq ()
 
float get_estimated_note ()
 
void stop_thread ()
 
void reset ()
 
void set_fast_note_detection (bool v)
 

Public Attributes

Glib::Dispatcher new_freq
 

Detailed Description

Definition at line 33 of file gx_pitch_tracker.h.

Constructor & Destructor Documentation

◆ PitchTracker()

gx_engine::PitchTracker::PitchTracker ( )

Definition at line 53 of file gx_pitch_tracker.cpp.

◆ ~PitchTracker()

gx_engine::PitchTracker::~PitchTracker ( )

Definition at line 93 of file gx_pitch_tracker.cpp.

Member Function Documentation

◆ add()

void gx_engine::PitchTracker::add ( int  count,
float *  input 
)

Definition at line 197 of file gx_pitch_tracker.cpp.

◆ get_estimated_freq()

float gx_engine::PitchTracker::get_estimated_freq ( )
inline

Definition at line 39 of file gx_pitch_tracker.h.

Referenced by gx_engine::TunerAdapter::get_note().

◆ get_estimated_note()

float gx_engine::PitchTracker::get_estimated_note ( )

Definition at line 396 of file gx_pitch_tracker.cpp.

◆ init()

void gx_engine::PitchTracker::init ( int  priority,
int  policy,
unsigned int  samplerate 
)

Definition at line 186 of file gx_pitch_tracker.cpp.

◆ reset()

void gx_engine::PitchTracker::reset ( void  )

Definition at line 190 of file gx_pitch_tracker.cpp.

◆ set_fast_note_detection()

void gx_engine::PitchTracker::set_fast_note_detection ( bool  v)

Definition at line 103 of file gx_pitch_tracker.cpp.

◆ stop_thread()

void gx_engine::PitchTracker::stop_thread ( )

Definition at line 150 of file gx_pitch_tracker.cpp.

Member Data Documentation

◆ new_freq

Glib::Dispatcher gx_engine::PitchTracker::new_freq

Definition at line 44 of file gx_pitch_tracker.h.

Referenced by gx_engine::TunerAdapter::get_freq().


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