Pd++  0.01
A pure C++ implementation of Pure Data objects
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Classes | Public Member Functions | Public Attributes | List of all members
pd::Envelope Class Reference

A simple envelope follower with Hanning window. Use setWindowSize() and setPeriod() the window size and period. The period should be a multipe of the window size. More...

#include <Envelope.h>

Inheritance diagram for pd::Envelope:
PdMaster

Public Member Functions

 Envelope (int ws, int p)
 
double perform (double input)
 
void setWindowSize (int ws)
 
void setPeriod (int p)
 
int getWindowSize ()
 
int getPeriod ()
 
- Public Member Functions inherited from PdMaster
void * getbytes (size_t nbytes)
 
void * resizebytes (void *old, size_t oldsize, size_t newsize)
 
void freebytes (void *fatso, size_t nbytes)
 
std::string getPath ()
 
void setSampleRate (unsigned long)
 
unsigned long getSampleRate ()
 
void setBlockSize (int)
 
int getBlockSize ()
 
double getTimeInSampleTicks ()
 
long getTimeInMilliSeconds (double time)
 
int pdBigOrSmall (double f)
 
void cos_maketable ()
 
int PD_BIGORSMALL (float f)
 
void setFFTWindow (int)
 
int getFFTWindow ()
 
double mtof (double)
 
double ftom (double)
 
double powtodb (double)
 
double dbtopow (double)
 
double rmstodb (double)
 
double dbtorms (double)
 

Public Attributes

std::string pdName = "env~"
 
- Public Attributes inherited from PdMaster
int cosTableSize = COSTABSIZE
 
float * cos_table
 

Additional Inherited Members

- Public Types inherited from PdMaster
typedef union
PdMaster::_sampleint_union 
t_sampleint_union
 

Detailed Description

A simple envelope follower with Hanning window. Use setWindowSize() and setPeriod() the window size and period. The period should be a multipe of the window size.

Member Function Documentation

void pd::Envelope::setPeriod ( int  p)

Set period. Should be multiple of window size.

void pd::Envelope::setWindowSize ( int  ws)

Set window size.


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