13
0
Commit Graph

16 Commits

Author SHA1 Message Date
8ed33f1bc7 remove use of hardcoded -fPIC compiler flag, and use compiler flag dict instead 2018-10-14 22:06:11 -04:00
Johannes Mueller
18511f851e Put duplicate code of a-comp and a-expander into one file ...
... for better maintainability

consolidated duplicate code:
  * drawing the dB-grid of a-comp's and a-expander's full display
  * drawing the gain reduction bar of a-comp's and a-expander's full display
  * the entire only-bars display
2018-06-20 22:57:41 +02:00
Johannes Mueller
0c64eacef5 Consolidated a-comp/a-exp run_mono() and run_stereo() to one run()
Up to now we had in a-comp and a-exp one run_mono() and one run_stero()
function which where almost identical except that run_stereo() treated two
in/outs and run_mono() only one. Now we store the number of channels
acomp->n_channels according to the URI and in run() we loop over an array of
pointers to the in/out buffers.
2018-06-20 22:23:54 +02:00
Johannes Mueller
65fed2fa89 Make makeup_gain smoothening of a-expander same as in a-comp 2018-06-20 22:10:54 +02:00
Johannes Mueller
9a9df5a10b Make the peak indication in the graph of a-expander green ...
... so that it has a different color than the expander curve
2018-05-12 19:49:18 +02:00
Johannes Mueller
46aa204eb8 Limit gain reduction of a-expander to 160 dB in order to ...
improve release behavior.

This slows down the release after events like single snare hits as, the gain
reduction only releases to 160 dB rather than to inf.
2018-05-12 19:49:18 +02:00
Johannes Mueller
40f12e1205 Visualize peak input in a-expander 2018-05-12 19:49:18 +02:00
Johannes Mueller
2dc96027d6 Add output control port to a-exp for input level 2018-05-12 19:49:18 +02:00
Johannes Mueller
8be06e6e63 Indicate input level in a-exp's inline display rather than output 2018-05-12 19:49:18 +02:00
Johannes Mueller
0eaf7b1e18 Increase the range of a-exp's ratio to make it usable like a gate 2018-05-12 19:49:18 +02:00
Johannes Mueller
0bc5a6f8e9 Make a-expander react probably on being disabled and enabled. 2018-05-12 19:49:18 +02:00
Johannes Mueller
2a5d56215c New visualization of the compressor state in graph view
To properly visualize attack and release we calculate the input level out of
the gain reduction the output level threshold and ratio.

if (output_level >= threshold) { // no expansion
        input_level = output_level
} else {
        input_level = (gain_reduction - threshold * (1-ratio)) / ratio
}
2018-05-12 19:49:18 +02:00
Johannes Mueller
48c568187d Fixed wrong initialization. 2018-05-12 19:49:18 +02:00
Johannes Mueller
37d2a7bc95 Adjust default parameters of a-expander 2018-05-12 19:49:18 +02:00
Johannes Mueller
bce3497d2a Changed attack and release behavior 2018-05-12 19:49:18 +02:00
Johannes Mueller
3620122ad0 First draft of a-expander 2018-05-12 19:49:18 +02:00