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

A super class inherited by all Pd++ objects. More...

#include <PdMaster.h>

Inheritance diagram for PdMaster:
paRender pd::BandPass pd::BiQuad pd::complexFFT pd::complexIFFT pd::Cosine pd::Delay pd::Envelope pd::HighPass pd::Line pd::LowPass pd::Noise pd::Oscillator pd::Phasor pd::RawFilter pd::realFFT pd::realIFFT pd::SampleHold pd::SoundFiler pd::TabRead4 pd::VariableDelay pd::VoltageControlFilter PdAlgorithm rwe::CosineWave rwe::Metro rwe::myLine rwe::Sawtooth rwe::SineWave rwe::SSB rwe::Timer rwe::WhiteNoise

Classes

union  _sampleint_union
 
union  tabfudge
 

Public Types

typedef union
PdMaster::_sampleint_union 
t_sampleint_union
 

Public Member Functions

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

int cosTableSize = COSTABSIZE
 
float * cos_table
 

Friends

class paRender
 

Detailed Description

A super class inherited by all Pd++ objects.

Member Function Documentation

void PdMaster::cos_maketable ( void  )

The Pd version of a cosine lookup.

double PdMaster::dbtopow ( double  db)

dB to Power.

double PdMaster::dbtorms ( double  db)

dB to RMS.

void PdMaster::freebytes ( void *  fatso,
size_t  nbytes 
)

From Pd, releases memory allocated.

double PdMaster::ftom ( double  freq)

Frequency to MIDI.

void * PdMaster::getbytes ( size_t  nbytes)

From Pd, returns a void pointer the size of nbytes.

std::string PdMaster::getPath ( )

This returns the path to the executable. Unix only. Uses the path to the application, not path OF the application, EX. /Users/home/Desktop/, instead of /Users/home/Desktop/NAME.app

long PdMaster::getTimeInMilliSeconds ( double  time)

Returns the # of samples in the given time unit in ms.

double PdMaster::getTimeInSampleTicks ( )

1/SR

double PdMaster::mtof ( double  midiNote)

MIDI to Frequency

int PdMaster::PD_BIGORSMALL ( float  f)

From Pd, denormaling routine. Returns true if a number is smaller than 10e-19

int PdMaster::pdBigOrSmall ( double  f)

Uses C++'s denormaling routine instead of Pd's. This should be compiler dependent.

double PdMaster::powtodb ( double  power)

Power to dB.

void * PdMaster::resizebytes ( void *  old,
size_t  oldsize,
size_t  newsize 
)

From Pd, returns a void pointer resized to the newsize.

double PdMaster::rmstodb ( double  rms)

RMS to dB.


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