Effects

Synth.compressFunction
compress(s :: Signal, k :: Signal; τ :: AbstractFloat = 0.03f0, samplingrate=48000)

Compresses the signal using a dynamic compression algorithm.

  • s is the signal to compress
  • k is the amount of compression to apply. Must be positive. If k == 1, then the compression applied can go up to a factor of half. The more the k, the more the compression that's applied for louder sounds.
  • τ is the time constant (half life) over which the signal strength is measured to determine the adaptive compression.
source