Commit Graph

52 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 beaaa80d42 Remove switch for different inline displays from a-comp.
Reverts a0a4db47a7

This feature never was in a release.
2019-04-15 12:11:38 +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 1ad66cfb3c a-comp: makeup_gain needs to be smoothened after every sample ...
... not only once in every run
2018-06-20 21:06:16 +02:00
Johannes Mueller a0a4db47a7 Add a control port to a-comp select which mode to display inline 2018-06-20 21:06:16 +02:00
Johannes Mueller 89aa17fe00 Put input level meter before output level meter in the generic gui
This is done by relying on the fact that the generic gui orders the meters
according to their port indices.
2018-06-20 21:06:16 +02:00
Johannes Mueller 6da18b32b5 Visualize the peak of the compressor state in a-comp 2018-06-20 21:06:16 +02:00
Johannes Mueller 619ba94f51 Drop LPF of input level visualization in a-comp 2018-06-20 21:06:16 +02:00
Johannes Mueller c9bbb01d98 Show the input level in acomp's inline display rather than output level 2018-06-20 21:06:16 +02:00
Johannes Mueller ef978d1b35 Inlevel output port to visualize the input level in the generic GUI 2018-06-20 21:06:16 +02:00
Johannes Mueller 87ea757a5d Improve level vizualisation in a-comp
* LPF in the signal visialization

* Lower minimum values
2018-06-20 21:06:16 +02:00
Johannes Mueller 3e124704b0 GR-based visualization in a-comp 2018-06-20 21:06:16 +02:00
Johannes Mueller d29880da89 New attack and release behavior for a-comp
Details in http://tracker.ardour.org/view.php?id=7439
2018-06-20 21:06:16 +02:00
Johannes Mueller 112ac13b90 Don't use acomp->v_gainr outside LV2_EXTENDED ifdefs 2018-06-20 21:06:16 +02:00
Damien Zammit 52aa9bf848 a-comp: Fix typo with previous patch 2017-11-12 00:16:44 +11:00
Damien Zammit f3efff4c7e a-comp: Fix noise floor - asymptotics 2017-11-11 14:26:50 +11:00
Johannes Mueller 6663a26755 Signal wish to show inline display in gui by lv2:optionalFeature
... in .ttl file rather than by extension_data() in code. That's more in the
spirit of LV2.
2017-07-31 21:31:23 +02:00
Johannes Mueller e75db87bf6 Tweaking the a-comp inline display a bit. Make it more skinny. 2017-07-31 21:31:23 +02:00
Johannes Mueller 2716ce41e0 Indicate whether to show plugin's inline display in GUI
This is currently done by an extension data similarly to
LV2_INLINEDISPLAY__interface.
2017-07-31 21:31:23 +02:00
Johannes Mueller 59775df9be Simplified inline display if the channel strip is not wide enough
If the width of the display area is below 200 px, we switch from the graph
display to displaying only two bars, one for output level and one for gain
reduction. In the bar mode we also visualize threshold and ratio.
2017-07-31 21:31:22 +02:00
Johannes Mueller 24cbb1b153 Honor attack and release parameters in a-comp's inline graph 2017-07-31 21:31:22 +02:00
Johannes Mueller ccab32654b Indicate gain reduction in a-comp 2017-07-31 21:31:22 +02:00
Robin Gareus e65ff3fb4a Show range -60 .. +10 dBFS in acomp's inline display 2017-07-31 21:31:22 +02:00
Johannes Mueller 85106d81a0 Set makeup to 0.f when bypassed also in stereo version 2017-07-31 21:31:22 +02:00
Johannes Mueller 29df879edd Adjust the indication of the treshold value by the makup gain.
When lifting the compressor curve by the makeup gain value the actual
treshold (the level when the curve kinks in) is also lifted. Therefore we need
to adjust the dashed line indicating the threshold as well as the level when
the color gradient to show compression kicks in.
2017-07-31 21:31:22 +02:00
Johannes Mueller dff4153024 Also the stereo version needs to set need_expose 2017-07-31 21:31:22 +02:00
Johannes Mueller f68754b19d Show a-comp's makeup grain in inline rendering 2017-07-31 21:31:22 +02:00
Jelle van der Waa b1cf27bed4 Fix duplicate ‘const’ declaration specifier 2017-07-12 12:09:59 +02:00
Robin Gareus 5f1d94a7b2 Protect a-comp's display/state against NaN/Inf. 2016-11-29 09:04:13 +01:00
Robin Gareus c6ef3a75d3 backwards compatible a-comp stereo sidechain ports 2016-08-27 18:08:46 +02:00
Robin Gareus f814e68e30 Prepare a-comp for click-free bypass/enable 2016-08-27 17:14:49 +02:00
Damien Zammit 62cd4d43bf a-Comp: Fix bug with DSP in the knee processing region 2016-07-20 20:10:46 +10:00
Robin Gareus f71fdd4143 clean up a-comp, remove old prototype UI 2016-07-14 21:41:16 +02:00
Robin Gareus 1f02dd2a85 fix compilation with lv2 < 1.10 (lv2 extended) 2016-07-12 13:44:55 +02:00
Robin Gareus 5966612a4f consistent use of fmaxf() in a-comp 2016-07-05 15:38:24 +02:00
Damien Zammit a16c0c445a a-comp: Use input signal x as cutoff for inline comp curve 2016-07-05 18:36:04 +10:00
Damien Zammit 2a7bd996cd a-comp: Fix inline comp curve shading 2016-07-05 18:19:00 +10:00
Damien Zammit bf7c4c7d60 a-comp: Fix peak level on both stereo and mono plugins 2016-07-05 15:07:06 +10:00
Damien Zammit 46bfe2b51a a-comp: Add stereo version 2016-07-05 02:15:47 +10:00
Robin Gareus a1a6dd3865 a-comp display is getting fancy :) 2016-07-04 15:50:05 +02:00
Robin Gareus d2f20120b7 display level in a-comp display 2016-07-04 14:26:37 +02:00
Robin Gareus 49294644fb con't work on a-comp inline-display 2016-07-04 14:07:05 +02:00
Robin Gareus d9ba78d594 basic inline display for a-comp 2016-07-04 12:59:04 +02:00