vsariola / sointu

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

Noise gate #109

Open vsariola opened 1 year ago

vsariola commented 1 year 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:

qm210 commented 1 month ago

unless you did something there already, I would implement that in the near future (cause I also want one)

(what are you thoughts on "Hysteresis"?)