WE Core
Loading...
Searching...
No Matches
WECore::Carve Namespace Reference

Namespaces

namespace  Parameters
 

Classes

class  CarveDSPUnit
 
class  NoiseFilter
 

Detailed Description

A class for applying waveshaping functions to samples.

To use this class, use the setter and getter methods to manipulate parameters, and call the process method to process individual samples.

Each sample is processed with no dependency on the previous samples, therefore a single object can be reused for multiple audio streams if so desired.

Internally relies on the parameters provided in CarveParameters.h

The process method must be called once for each sample you wish to process:

...
set any other parameters you need
...
for (size_t iii {0}; iii < buffer.size(); iii++) {
buffer[iii] = unit.process(buffer[iii]);
}
T process(T inSample) const
const ModeParameter MODE

A simple bandpass filter which can process mono or stereo signals. Was initially created to remove frequencies at the extremes of the human hearing range to clean up audio but can fulfil any typical bandpass filter purpose.

The cutoff frequencies cannot be changed once the object is constructed.

Has methods for processing either a mono or stereo buffer of samples.

See also
setSampleRate - recommended to call before performing any processing