jack-tools

A handful of JACK audio tools
git clone git://henryandlizzy.uk/jack-tools
Log | Files | Refs

commit 1ddc9e9e4a6bb61f7f567453707602d6e37c2311
parent 6df25cafcc5f668b0319b357d89aaaa71ef65ce3
Author: Henry Wilson <henry@henryandlizzy.uk>
Date:   Tue,  5 Jan 2021 22:39:06 +0000

improve envelope

Diffstat:
Mmain.cpp | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/main.cpp b/main.cpp @@ -242,7 +242,7 @@ int cb_process(jack_nframes_t nframes, void* arg) case 2: v.envelope *= 0.9998f; - if (v.envelope < 0.1f && sample < 0) + if (v.envelope < 0.01f && sample < 0) v.state = 1; break; @@ -256,7 +256,7 @@ int cb_process(jack_nframes_t nframes, void* arg) } break; } - accum += sample * v.envelope; + accum += sample * v.envelope * .3; } audio_buf[i] = 2 / (1 + std::exp(accum)) - 1; }