Class fx_multitap_delay¶
Defined in File dm_fx_delay_multitap.h
Inheritance Relationships¶
Base Type¶
public fx_effect
(Class fx_effect)
Class Documentation¶
-
class
fx_multitap_delay
: public fx_effect¶ Effect: Multi-tap delay.
A multi-tap delay is a delay line that has multiple read “taps” set a different delay lenghts. Multi-tap delays can be used to create interesting rhythmic effects and are also a foundational building block of reverbs.
Here an example of using a multi-tap delay to generate early reflections in a reverb algorithm
fx_multitap_delay early_reflections(10.5, 0.2, // Tap 1 (length and gain) 13.5, 0.2, // Tap 2 (length and gain) 16.0, 0.2, // Tap 3 (length and gain) 19.5, 0.2, // Tap 4 (length and gain) 0.5, // Dry mix 0.5); // Effect mix
Public Functions
-
fx_multitap_delay
(float tap_len_1_ms, float gain_1, float tap_len_2_ms, float gain_2, float tap_len_3_ms, float gain_3, float tap_len_4_ms, float gain_4, float dry_mix, float wet_mix)¶ Basic constructor for the multi-tap delay effect.
If a tap isn’t being used, set its delay length to zero
- Parameters
[in] tap_len_1_ms
: The tap 1 length 1 milliseconds[in] gain_1
: The gain of tap[in] tap_len_2_ms
: The tap 2 length 2 milliseconds[in] gain_2
: The gain of tap[in] tap_len_3_ms
: The tap 3 length 3 milliseconds[in] gain_3
: The gain of tap[in] tap_len_4_ms
: The tap 4 length 4 milliseconds[in] gain_4
: The gain of tap[in] dry_mix
: The dry mix[in] wet_mix
: The wet mix
-
void
enable
()¶ Enable the multitap delay (it is enabled by default)
-
void
bypass
()¶ Bypass the multitap delay (will just pass clean audio through)
-
void
set_dry_mix
(float dry_mix)¶ Updates the dry / clean mix of the multitap delay (0.0 to 1.0)
- Parameters
[in] dry_mix
: The new dry mix
-
void
set_wet_mix
(float wet_mix)¶ Updates the wet / delay mix of the multitap delay (0.0 to 1.0)
- Parameters
[in] wet_mix
: The new wet mix
-