Language Guide / Signal Flow
Modifier
klang::Modifier
Base class for mono signal processors.
A modifier receives a sample through in, processes it, and writes the result to out. This is the base for reusable effects stages such as filters and delays. Chain stages with >> to show their processing order.
Example ยท Build a clipping stage
struct Clipper : Modifier {
void process() {
in >> clip(-0.5, 0.5) >> out;
}
};
Signal modifier object (mono input-output)
More...
#include <klang.h>
Definition at line 3682 of file klang.h.
◆ input() [1/3]
|
|
inlineprotectedvirtualinherited |
◆ input() [2/3]
◆ input() [3/3]
◆ operator const signal &() [1/2]
|
|
inlineoverridevirtualinherited |
◆ operator const signal &() [2/2]
|
|
inlineoverridevirtualinherited |
◆ operator()()
Definition at line 3098 of file klang.h.
3098 {
3099 set(std::forward<params>(p)...); return *this;
3100 }
◆ operator*()
◆ operator+()
◆ operator-()
◆ operator/()
◆ operator<<()
◆ operator>>()
◆ output()
◆ process()
|
|
inlineoverridevirtualinherited |
Implements klang::Generic::Output< signal >.
Reimplemented in klang::Delay< SIZE >, klang::Delay< 0 >, klang::Effect, klang::Envelope::Follower::AR, klang::Envelope::Follower, klang::Envelope::Follower::Window< WINDOW >, klang::Filters::Biquad::Filter, klang::Filters::Butterworth::LPF< 1 >, klang::Filters::DCF, klang::Filters::IIR< ORDER >, klang::Filters::IIR< 1 >, klang::Filters::OnePole::Filter, klang::Filters::OnePole::LPF, klang::Generic::Function< signal, Args... >, klang::Modifiers::Modal, klang::Sound, klang::Stereo::Effect, klang::Stereo::Sound, klang::Stereo::Synth, and klang::Synth.
Definition at line 3094 of file klang.h.
◆ reset()
◆ in
◆ out