| 1 |
Distortion (algorithm 3) |
| 2 |
------------------------ |
| 3 |
|
| 4 |
Similar to Distortion (algorithm 1) but uses Hi & Low Pass Filters from |
| 5 |
Filters. Algorithm is HPF -> Distortion -> LPF. There are parameters for |
| 6 |
Hi & Low Pass Filters : hipassfreq & lowpassfreq is the cutoff frequencies, |
| 7 |
and the hipassQ & lowpassQ in the EE kinda definition for bandwidth. The |
| 8 |
larger the Q, the wider the band, and vice versa. The drive controls the |
| 9 |
amount of overdrive. The volume to balance the effect volume with the |
| 10 |
bypassed level. The dry_mix is the volume of input signal & the wet_mix is |
| 11 |
the volume of distorted signal. The feedback sets feedback of distortion. |
| 12 |
|
| 13 |
Controls: |
| 14 |
|
| 15 |
drive - distortion drive |
| 16 |
(0<= <=5) |
| 17 |
dry_mix - dry (unaffected) signal mix |
| 18 |
(-5<= <=5) |
| 19 |
wet_mix - wet (affected) signal mix |
| 20 |
(-5<= <=5) |
| 21 |
feedback - feedback |
| 22 |
(-1<= <=1) |
| 23 |
volume - distortion volume |
| 24 |
(0=< <=2) |
| 25 |
hipassfreq - cutoff frequency for hi pass filter |
| 26 |
(0< <RATE/2) |
| 27 |
hipassQ - the EE kinda definition for hi pass filter |
| 28 |
(0< <=1) |
| 29 |
lowpassfreq - cutoff frequency for low pass filter |
| 30 |
(0< <RATE/2) |
| 31 |
lowpassQ - the EE kinda definition for low pass filter |
| 32 |
(0< <=1) |
| 33 |
|
| 34 |
Work formula implemented in this distortion algorithm is |
| 35 |
out[i] = in[i] * dry + sign(in[i] - in[i-1]) * exp(abs(in[i]) * drive) * wet. |
| 36 |
See. Its do next wave: |
| 37 |
Normal Sin Wave Wave distorted by algorithm |
| 38 |
* |
| 39 |
* * |
| 40 |
**** * * |
| 41 |
* * * * * |
| 42 |
* * * * * * |
| 43 |
* * * * * * |
| 44 |
* * * * * * |
| 45 |
* * * * * |
| 46 |
------------*------------- ------------*------------- |
| 47 |
* * * * * |
| 48 |
* * * * * * |
| 49 |
* * * * * * |
| 50 |
* * * * * * |
| 51 |
* * * * * |
| 52 |
**** * * |
| 53 |
* * |
| 54 |
* |