Commit Graph

20 Commits

Author SHA1 Message Date
Robin Gareus bf4decbfe7
Add LV2 header include compatibility (1/2)
For whatever reason LV2 changes #include header locations
in a micro version release and disables backwards compatibly
by default.
2023-05-06 16:20:01 +02:00
Ben Loftis e53db181d2 a-comp, a-exp: threshold should be referenced to the input (bottom) axis 2020-08-20 12:52:42 -05:00
Ben Loftis b80cb0f382 a-comp, a-exp: the moving dot should represent input-to-output 2020-08-20 12:52:42 -05:00
Ben Loftis 01ac9d63e8 a-comp, a-exp: Tweak meter bar range for consistency with inline-ui 2020-08-20 12:52:42 -05:00
Robin Gareus 3df530e7f6
Clean up double/float narrowing math in plugins. 2020-03-30 22:25:21 +02:00
Robin Gareus 365f6d6337
Update plugins/addons GPL boilerplate and (C) from git log 2019-08-03 15:53:18 +02:00
Johannes Mueller ca05f03e72 Align port layout and code of a-exp with the one of a-comp 2019-04-15 18:40:27 +02: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 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 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