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

A sawtooth generator. More...

#include <Phasor.h>

Inheritance diagram for pd::Phasor:
PdMaster

Public Member Functions

 Phasor (double)
 
 Phasor (double, double)
 Frequency.
 
 ~Phasor ()
 Frequency and phase.
 
double perform (double input)
 
void setPhase (double)
 
double getPhase ()
 
void setFrequency (double)
 
double getFrequency ()
 
void setVolume (double)
 
double getVolume ()
 
- 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

const std::string pdName = "phasor~"
 Every pd++ class should have a pdName that is its pd equivalent.
 
- 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 sawtooth generator.

Phasor is also the template class that explains how other classes can be organized.

Member Function Documentation

double pd::Phasor::perform ( double  input)

Every Pd++ class should have a perform() function that outputs a double The input should simulate the inlets of the Pd object. If your object outputs more than one data stream, use a struct

void pd::Phasor::setFrequency ( double  f)

Use getters and setters to access class variables


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