| 
Public Member Functions | 
|  | Quantizer (double freq=2000, T step=0) | 
| void | freq (double value) | 
|  | Set freqency of sequence quantization. 
 | 
| void | period (double value) | 
|  | Set period of sequence quantization. 
 | 
| void | step (T value) | 
|  | Set amplitude quantization amount. 
 | 
| T | operator() (T input) | 
|  | Return next filtered sample. 
 | 
| virtual void | onResync (double r) | 
|  | Called by my Sync reference after it changes its value. 
 | 
| double | scaleSPU () const | 
|  | Returns ratio of my SPU to my Sync's SPU. 
 | 
| void | scaleSPU (double v) | 
|  | Scales samples/unit by factor. 
 | 
| double | spu () const | 
|  | Returns local samples/unit. 
 | 
| void | spu (double v) | 
|  | Set local samples/unit. 
 | 
| double | ups () const | 
|  | Returns local units/sample. 
 | 
| void | ups (double v) | 
|  | Set local units/sample. 
 | 
| const Sync * | sync () const | 
|  | Returns reference to my Sync. 
 | 
| void | sync (Sync &src) | 
|  | Set absolute Sync source. 
 | 
| void | scaleUPS (double v) | 
|  | Scales units/sample by factor. 
 | 
| void | nodeInsertL (Synced &node) | 
|  | Insert myself to left of node. 
 | 
| void | nodeInsertR (Synced &node) | 
|  | Insert myself to right of node. 
 | 
| void | nodeRemove () | 
|  | Remove myself from linked list. 
 | 
| 
Public Attributes | 
| Synced * | nodeL | 
|  | Pointer to left node. 
 | 
| Synced * | nodeR | 
|  | Pointer to right node. 
 | 
| 
Protected Member Functions | 
| void | initSynced () | 
|  | To be called from the constructor(s) of derived classes. 
 | 
template<class T = gam::real>
class gam::Quantizer< T >
Quantizes sequence sampling and element magnitudes.