|
signal | mono () const |
| Return the mono mix of a stereo channel.
|
|
signal & | operator[] (int index) |
| Return a reference to the signal at the specified index (0 = left, 1 = right).
|
|
const signal & | operator[] (int index) const |
| Return a read-only reference to the signal at the specified index (0 = left, 1 = right).
|
|
| signals (float initial=0.f) |
| Create a stereo signal with the given value.
|
|
| signals (double initial) |
| Create a stereo signal with the given value.
|
|
| signals (int initial) |
| Create a stereo signal with the given value.
|
|
| signals (float left, float right) |
| Create a stereo signal with the given left and right value.
|
|
| signals (double left, double right) |
| Create a stereo signal with the given left and right value.
|
|
| signals (int left, int right) |
| Create a stereo signal with the given left and right value.
|
|
template<typename... Args, typename = std::enable_if_t<(std::is_convertible_v<Args, signal> && ...)>> |
| signals (Args &... initial) |
| Create a multi-channel signal with the given channel values.
|
|
template<typename... Args, typename = std::enable_if_t<(std::is_scalar_v<Args> && ...)>> |
| signals (Args... initial) |
| Create a multi-channel signal with the given channel values.
|
|
int | channels () const |
| Returns the number of channels in the signal.
|
|
const signals & | operator<< (const signals &input) |
| Feedback operator (prevents further processing of returned value).
|
|
signals & | operator>> (signals &destination) const |
| Stream operator (feedforward; allows further processing).
|
|
signals & | operator+= (const signals x) |
| Add (mix) another signal to the signal.
|
|
signals & | operator-= (const signals x) |
| Subtract another signal from the signal.
|
|
signals & | operator*= (const signals x) |
| Multiply (modulate) signal by another signal.
|
|
signals & | operator/= (const signals x) |
| Divide signal by another signal.
|
|
signals | operator+ (const signals x) const |
| Add two multi-channel signals together.
|
|
signals | operator- (const signals x) const |
| Subtract one multi-channel signal from another.
|
|
signals | operator* (const signals x) const |
| Multiply (modulate) two multi-channel signals.
|
|
signals | operator/ (const signals x) const |
| Divide one multi-channel signal by another.
|
|
signals | operator+ (const signal x) const |
| Return a copy of the multi-channel signal, adding a mono signal to each channel.
|
|
signals | operator- (const signal x) const |
| Return a copy of the multi-channel signal, subtracting a mono signal from each channel.
|
|
signals | operator* (const signal x) const |
| Return a copy of the multi-channel signal, multiplying (modulating) each channel by a mono signal.
|
|
signals | operator/ (const signal x) const |
| Return a copy of the multi-channel signal, dividing each channel by a mono signal.
|
|
signals | operator+ (float x) const |
| Return a copy of the signal with each channel offset by x.
|
|
signals | operator- (float x) const |
| Return a copy of the signal with each channel offset by -x.
|
|
signals | operator* (float x) const |
| Return a copy of the signal with each channel scaled by x.
|
|
signals | operator/ (float x) const |
| Return a copy of the signal with each channel divided by x.
|
|
signals | operator+ (double x) const |
| Return a copy of the signal with each channel offset by x.
|
|
signals | operator- (double x) const |
| Return a copy of the signal with each channel offset by -x.
|
|
signals | operator* (double x) const |
| Return a copy of the signal with each channel scaled by x.
|
|
signals | operator/ (double x) const |
| Return a copy of the signal with each channel divided by x.
|
|
signals | operator+ (int x) const |
| Return a copy of the signal with each channel offset by x.
|
|
signals | operator- (int x) const |
| Return a copy of the signal with each channel offset by -x.
|
|
signals | operator* (int x) const |
| Return a copy of the signal with each channel scaled by x.
|
|
signals | operator/ (int x) const |
| Return a copy of the signal with each channel divided by x.
|
|
template<int CHANNELS = 2>
struct klang::signals< CHANNELS >
Definition at line 502 of file klang.h.