unkargherth ·
Somebody asked for something similar, so here it is
it isn't most efficient/optimal, but it's a start
And here the schematic.
From the original SynthMaker forum (2004–2014), with its members’ names and dates.
unkargherth ·
Somebody asked for something similar, so here it is
it isn't most efficient/optimal, but it's a start
And here the schematic.
pdelrieu ·
Hi, perhaps it was me. I was looking for an envelop follower for a compressor. I don't have much time to investigate it but I found something interresting in tour code to get data of last same: zm1=...+zm1; If I understand correctly this is the affectation of the value of last sample zm1. is it the same for zm2 (sample -2), zm3 (sample-3) ... ? zm4 can be initialized only if zm3 is initialized and so on, so zm4 will be initialized at the 4 sample. So we can compute a value with last 4 sample. Tell me if I'am rigth because it would be very interesting.
I hope that next week, I'll have sometime to investigate your envelope. Thank you for your contribution.
regards Philippe
unkargherth ·
Yes, zm1 is current sample-1, zm2 current sample -2 and so on...
Basically this piece of code is a generalized 4-pole lowpass filter. it's the simplest way to obtain an envelope follower. Not optimal, obviously
Correct way should be something diferent, with control over the attack and release times, and so on, and posibly using RMS averaging instead of bare peak reading, as this case
Anyway to use RMS, we need to have a sqrt function, not available now Also a pow/exp funtions could be useful to obtain exponential envelopes and log/ln to use dB attenuations /gains
If you manage to make something whith this, will be interesting to view it
Tom7777 ·
Thanks unkargherth, looks interesting 🙂
skOre ·
Hehe, great stuff, will check it out at home.
Nice to see unkargherth here btw, get some of those other SE users in here 😉
Wrote something here? To have a post removed or your name hidden, write to [email protected].