Class for storing two hanning ramps: a rising ramp a and a falling ramp b.
More...
Class for storing two hanning ramps: a rising ramp a and a falling ramp b.
◆ hanning_ramps_t()
hanning_ramps_t::hanning_ramps_t |
( |
unsigned int |
len_a, |
|
|
unsigned int |
len_b |
|
) |
| |
Initialize two arrays with hanning ramp factors.
- Parameters
-
len_a | Length of the rising ramp a from 0 (inclusive) to 1 (exclusive). |
len_b | Length of the falling ramp b from 1 (inclusive) to 0 (exclusive). |
◆ ~hanning_ramps_t()
hanning_ramps_t::~hanning_ramps_t |
( |
void |
| ) |
|
◆ operator()()
Apply the hanning ramps to a waveform.
- Parameters
-
b | The waveform to which the ramps are applied. ramp_a is applied to the first len_a frames of b, ramp_b is applied to the last len_b frames of b. Ramps are applied to all channels. If the waveform has fewer frames than len_a or len_b, then the respective ramp is truncated. The audio samples stored by b are modified in place. |
◆ len_a
unsigned int hanning_ramps_t::len_a |
|
private |
Length of the rising ramp a.
◆ len_b
unsigned int hanning_ramps_t::len_b |
|
private |
Length of the falling ramp b.
◆ ramp_a
Factors of the rising hanning ramp from 0 (inclusive) to 1 (exclusive).
◆ ramp_b
Factors of the falling hanning ramp from 1 (inclusive) to 0(exclusive).
The documentation for this class was generated from the following file: