from enum import Enum
from rv.controller import Controller
from rv.modules import Behavior as B, Module
[docs]class VocalFilter(Module):
name = mtype = 'Vocal filter'
mgroup = 'Effect'
behaviors = {B.receives_audio, B.sends_audio}
[docs] class VoiceType(Enum):
soprano = 0
alto = 1
tenor = 2
bass = 3
[docs] class Channels(Enum):
stereo = 0
mono = 1
volume = Controller((0, 512), 256)
formant_width_hz = Controller((0, 256), 128)
intensity = Controller((0, 256), 128)
formants = Controller((1, 5), 5)
vowel = Controller((0, 256), 0)
voice_type = Controller(VoiceType, VoiceType.soprano)
channels = Controller(Channels, Channels.stereo)