2 ms·
Is this a good example of how things are done in Rust, or is it over-engineered? I'm pretty sure you should be able to code a thing like a noise gate in 10-15
by tripzilch 7y ago
Is this a good example of how things are done in Rust, or is it over-engineered?
I'm pretty sure you should be able to code a thing like a noise gate in 10-15 lines of code.
... and then there's this rather odd statement:
> If we want to use the NoiseGate in realtime applications we’ll need to make sure it can handle typical sample rates.
Maybe I just think it's funny. Back in the early 2000s I used to worry about that and even back then, it's... 44100 samples per second. A whole second to process no more than 44100 numbers, maybe twice that if you have stereo. Unless you're doing something really weird (and Rust should be pretty performant, right?) that shouldn't make the machine even blink.