| 1 |
class Module(BaseModule): |
| 2 |
""" |
| 3 |
"FFT-based convolution reverb" |
| 4 |
|
| 5 |
Description |
| 6 |
|
| 7 |
This module implements a convolution based on a uniformly partitioned overlap-save |
| 8 |
algorithm. It can be used to convolve an input signal with an impulse response |
| 9 |
soundfile to simulate real acoustic spaces. |
| 10 |
|
| 11 |
Sliders |
| 12 |
|
| 13 |
# Dry / Wet : |
| 14 |
Mix between the original signal and the convoluted signal |
| 15 |
|
| 16 |
Graph Only |
| 17 |
|
| 18 |
# Overall Amplitude : |
| 19 |
The amplitude curve applied on the total duration of the performance |
| 20 |
|
| 21 |
Popups & Toggles |
| 22 |
|
| 23 |
# Polyphony Voices : |
| 24 |
Number of voices played simultaneously (polyphony), |
| 25 |
only available at initialization time |
| 26 |
# Polyphony Spread : |
| 27 |
Pitch variation between voices (chorus), |
| 28 |
only available at initialization time |
| 29 |
|
| 30 |
""" |
| 31 |
def __init__(self): |
| 32 |
BaseModule.__init__(self) |
| 33 |
self.snd = self.addSampler("snd") |
| 34 |
self.table = self.addFilein("impulse") |
| 35 |
self.out = CvlVerb(self.snd, self.table.path, bal=self.drywet, mul=self.env) |
| 36 |
|
| 37 |
Interface = [ |
| 38 |
csampler(name="snd", label="Audio"), |
| 39 |
cfilein(name="impulse", label="Impulse response"), |
| 40 |
cgraph(name="env"), |
| 41 |
cslider(name="drywet", label="Mix dry/wet", min=0, max=1, init=0.5, col="blue"), |
| 42 |
cpoly() |
| 43 |
] |