#include <DownSampler.h>
Inherits Marsyas::MarSystem.
Public Member Functions | |
| MarSystem * | clone () const |
| DownSampler clone method. | |
| DownSampler (const DownSampler &a) | |
| DownSampler copy constructor. | |
| DownSampler (std::string name) | |
| DownSampler constructor. | |
| ~DownSampler () | |
| DownSampler destructor. | |
Private Attributes | |
| MarControlPtr | ctrl_factor_ |
| MarControl pointer for the downsample factor. | |
Downsample the signal by an integer factor N. The output of the DownSampler will only reproduce the input samples at multiples of N.
Note that the DownSampler does not take care of any low pass filtering to avoid frequency aliasing.
Note that the DownSampler restarts counting and dropping samples for every given slice. Consequently, if the number of input samples is not divisible by the downsample factor, the sampling will be not uniform around the slice borders.
Controls:
Definition at line 47 of file DownSampler.h.
| DownSampler | ( | const DownSampler & | a | ) |
DownSampler copy constructor.
All member MarControlPtr have to be explicitly reassigned in the copy constructor.
Definition at line 35 of file DownSampler.cpp.
References DownSampler::ctrl_factor_.
1.5.6