mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 23:05:04 +01:00
a-comp: Use input signal x as cutoff for inline comp curve
This commit is contained in:
parent
2a7bd996cd
commit
a16c0c445a
1 changed files with 1 additions and 1 deletions
|
|
@ -626,7 +626,7 @@ render_inline (LV2_Handle instance, uint32_t w, uint32_t max_h)
|
||||||
// maybe cut off at x-position?
|
// maybe cut off at x-position?
|
||||||
const float x = w * (self->v_lvl_in + 60) / 60.f;
|
const float x = w * (self->v_lvl_in + 60) / 60.f;
|
||||||
const float y = h * (self->v_lvl_out + 60) / 60.f;
|
const float y = h * (self->v_lvl_out + 60) / 60.f;
|
||||||
cairo_rectangle (cr, 0, h - x, y, h);
|
cairo_rectangle (cr, 0, h - x, x, h);
|
||||||
if (self->v_ratio > 1.0) {
|
if (self->v_ratio > 1.0) {
|
||||||
cairo_set_source (cr, pat);
|
cairo_set_source (cr, pat);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue