|
Pd++
0.01
A pure C++ implementation of Pure Data objects
|
A super class inherited by all Pd++ objects. More...
#include <PdMaster.h>
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 |
A super class inherited by all Pd++ objects.
| 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.
1.8.8