Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

PitchDetector::PitchInfo Struct Reference

stores info about the pitch currently being detected More...

#include <PitchDetector.h>


Detailed Description

stores info about the pitch currently being detected

Definition at line 40 of file PitchDetector.h.

List of all members.

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 (  ) 

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::doEvent().

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::doEvent().

number of windows it has been on

Definition at line 52 of file PitchDetector.h.

Referenced by PitchDetector::doEvent(), and PitchDetector::doStart().

frequency of this pitch (calculated on instantiation)

Definition at line 44 of file PitchDetector.h.

Referenced by PitchDetector::doEvent(), and PitchDetector::doStart().

[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::doEvent().

[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::doEvent().

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

Definition at line 44 of file PitchDetector.h.

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

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

Definition at line 44 of file PitchDetector.h.

Referenced by PitchDetector::doEvent(), and PitchDetector::doStart().


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

Tekkotsu v5.1CVS
Generated Mon May 9 04:59:14 2016 by Doxygen 1.6.3