vsariola / sointu

Fork of 4klang that can target 386, amd64 and WebAssembly. Tools run on Windows, Mac & Linux
MIT License
239 stars 15 forks source link

Noise gate #109

Open vsariola opened 8 months ago

vsariola commented 8 months ago

It would be nice to have a thresholding / noise gate unit. https://en.wikipedia.org/wiki/Noise_gate

At simplest, a hard thresholding would be something like:

if (abs(signal) < threshold) {
  signal = 0
}

Features to be considered, if they cannot be implemented with the help of other units: