Audacity  3.2.0
Classes | Macros | Enumerations | Functions
VoiceKey.h File Reference
#include "SampleCount.h"
Include dependency graph for VoiceKey.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  VoiceKey
 This implements a voice key, detecting either the next "ON" or "OFF" point. More...
 

Macros

#define M_PI   3.14159265358979323846 /* pi */
 

Enumerations

enum  VoiceKeyTypes {
  VKT_NONE = 0, VKT_ENERGY = 1, VKT_SIGN_CHANGES_LOW = 2, VKT_SIGN_CHANGES_HIGH = 4,
  VKT_DIRECTION_CHANGES_LOW = 8, VKT_DIRECTION_CHANGES_HIGH = 16
}
 

Functions

int sgn (int number)
 

Macro Definition Documentation

◆ M_PI

#define M_PI   3.14159265358979323846 /* pi */

Definition at line 16 of file VoiceKey.h.

Enumeration Type Documentation

◆ VoiceKeyTypes

Enumerator
VKT_NONE 
VKT_ENERGY 
VKT_SIGN_CHANGES_LOW 
VKT_SIGN_CHANGES_HIGH 
VKT_DIRECTION_CHANGES_LOW 
VKT_DIRECTION_CHANGES_HIGH 

Definition at line 23 of file VoiceKey.h.

24  {
25  VKT_NONE = 0,
26  VKT_ENERGY = 1,
31  };

Function Documentation

◆ sgn()

int sgn ( int  number)
inline

Definition at line 98 of file VoiceKey.h.

98 { return (number<0) ? -1: 1;}

Referenced by VoiceKey::OffBackward(), VoiceKey::OffForward(), VoiceKey::OnBackward(), VoiceKey::OnForward(), VoiceKey::TestDirectionChanges(), VoiceKey::TestDirectionChangesUpdate(), VoiceKey::TestSignChanges(), and VoiceKey::TestSignChangesUpdate().

Here is the caller graph for this function:
VKT_ENERGY
@ VKT_ENERGY
Definition: VoiceKey.h:26
VKT_DIRECTION_CHANGES_HIGH
@ VKT_DIRECTION_CHANGES_HIGH
Definition: VoiceKey.h:30
VKT_SIGN_CHANGES_HIGH
@ VKT_SIGN_CHANGES_HIGH
Definition: VoiceKey.h:28
VKT_NONE
@ VKT_NONE
Definition: VoiceKey.h:25
VKT_SIGN_CHANGES_LOW
@ VKT_SIGN_CHANGES_LOW
Definition: VoiceKey.h:27
VKT_DIRECTION_CHANGES_LOW
@ VKT_DIRECTION_CHANGES_LOW
Definition: VoiceKey.h:29