Skip to content

Commit

Permalink
add modulator gain to vocoder-live
Browse files Browse the repository at this point in the history
  • Loading branch information
dansgithubuser committed Aug 27, 2024
1 parent f9d6c66 commit 5a4a14c
Showing 1 changed file with 4 additions and 21 deletions.
25 changes: 4 additions & 21 deletions systems/vocoder-live.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,34 +4,17 @@

# add
audio = dlal.Audio(driver=True, mic=True)
gain_mod = dlal.Gain(1)
comm = dlal.Comm()

carrier = dlal.Sonic('big_bass_1')
modulator = dlal.Buf()
carrier = dlal.Sonic('big_bass_1', name='carrier')
vocoder = dlal.Vocoder()
voc_gain = dlal.Gain()
voc_buf = dlal.Buf()

pass_gain = dlal.Gain(0.2)
pass_buf = dlal.Buf()

reverb = dlal.Reverb()
buf = dlal.Buf()

# connect
gain_mod.connect(vocoder)
dlal.connect(
carrier,
[voc_buf, '<+', vocoder, modulator, audio],
[buf, '<+', voc_gain],
)
dlal.connect(
carrier,
[pass_buf, '<+', pass_gain],
buf,
)
dlal.connect(
reverb,
buf,
[buf, '<+', vocoder, audio],
audio,
)

Expand Down

0 comments on commit 5a4a14c

Please sign in to comment.