Add tests and features for fading and switching between and inside audio blocks
As the title states.
-
dovelet_gain.py: Add a variable fading length (number of samples) inside audio block.
-
dovelet_gain_test.py: Add tests for validating the functioning fading length with activated and deactivated nan_switch.
(nan_switch=TRUE, fading_function =/= "switch") = gain behavior:
(1,1) = switch in, switch out, fade over
(0,1) = fade in, fade out, fade over -
ihta_convolver.py: Fix an issue, so that fading also works for filter blocks consisting of samples with value NaN.
-
ihta_convolver_test.py: Add tests for validating fading works for filter blocks consisting of samples with value NaN with activated and deactivated auto_switch.
(auto_switch=TRUE, exchange_function =/= "switch") = convolver behavior:
(1,1) = switch in, switch out, fade over
(0,1) = fade in, fade out, fade over -
ihta_simovdl.py: Add variable nan_hold for setting a number of blocks, for which the last delay block is hold before NaN blocks are processed. Needed for proper fade out, to hold a not NaN block to fade on.
-
ihta_vdl_test.py: Add tests to check proper function of nan_hold. Tests check function when nan_hold is switched off, set to various numbers of blocks, with various delay length, multichannel and resets of the nan_hold.