Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

PitchDetector::PitchInfo Struct Reference

#include <PitchDetector.h>

List of all members.


Detailed Description

stores info about the pitch currently being detected

Definition at line 40 of file PitchDetector.h.

Public Member Functions

 PitchInfo ()
 constructor -- sets everything to 0 (additional initialization is done for each pitch_info entry during DoStart())

Public Attributes

float freq
 frequency of this pitch (calculated on instantiation)
float sigma
 standard dev to use (sqrt(var)), calc'd on start
float local_max
 [0,1] value: how much stronger it is than neighbors, else zero
float global_max
 [0,1] value: how much stronger than mean if global max, else zero
float overtone
 value in [0,1] with confidence that it is overtone
float confidence
 value in [0,1] with confidence that this is a pitch, not noise (should confidence have a rolling average as well?)
float amplitude
 rolling average amplitude
unsigned int duration
 number of windows it has been on


Constructor & Destructor Documentation

PitchDetector::PitchInfo::PitchInfo (  )  [inline]

constructor -- sets everything to 0 (additional initialization is done for each pitch_info entry during DoStart())

Definition at line 42 of file PitchDetector.h.


Member Data Documentation

rolling average amplitude

Definition at line 44 of file PitchDetector.h.

Referenced by PitchDetector::processEvent().

value in [0,1] with confidence that this is a pitch, not noise (should confidence have a rolling average as well?)

Definition at line 44 of file PitchDetector.h.

Referenced by PitchDetector::processEvent().

number of windows it has been on

Definition at line 52 of file PitchDetector.h.

Referenced by PitchDetector::DoStart(), and PitchDetector::processEvent().

frequency of this pitch (calculated on instantiation)

Definition at line 44 of file PitchDetector.h.

Referenced by PitchDetector::DoStart(), and PitchDetector::processEvent().

[0,1] value: how much stronger than mean if global max, else zero

Definition at line 44 of file PitchDetector.h.

Referenced by PitchDetector::confidence(), and PitchDetector::processEvent().

[0,1] value: how much stronger it is than neighbors, else zero

Definition at line 44 of file PitchDetector.h.

Referenced by PitchDetector::confidence(), and PitchDetector::processEvent().

value in [0,1] with confidence that it is overtone

Definition at line 44 of file PitchDetector.h.

Referenced by PitchDetector::confidence(), and PitchDetector::processEvent().

standard dev to use (sqrt(var)), calc'd on start

Definition at line 44 of file PitchDetector.h.

Referenced by PitchDetector::DoStart().


The documentation for this struct was generated from the following file:

Tekkotsu v3.0
Generated Wed Oct 4 00:05:09 2006 by Doxygen 1.4.7