mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 15:25:01 +01:00
a-comp, a-exp: the moving dot should represent input-to-output
This commit is contained in:
parent
01ac9d63e8
commit
b80cb0f382
2 changed files with 15 additions and 3 deletions
|
|
@ -540,10 +540,10 @@ render_inline_full (cairo_t* cr, const AComp* self)
|
|||
// draw state
|
||||
cairo_set_source_rgba (cr, .8, .8, .8, 1.0);
|
||||
|
||||
const float state_x = w * (1.f - (10.f-self->v_state_x)/70.f);
|
||||
const float state_y = h * (comp_curve (self, self->v_state_x) - 10.f) / -70.f;
|
||||
const float state_x = w * (1.f - (10.f-(*self->inlevel))/70.f);
|
||||
const float state_y = h * ((*self->outlevel) - 10.f) / -70.f;
|
||||
|
||||
cairo_arc (cr, state_x, state_y, 3.f, 0.f, 2.f*M_PI);
|
||||
cairo_arc (cr, state_x, state_y, 6.f, 0.f, 2.f*M_PI);
|
||||
cairo_fill (cr);
|
||||
|
||||
// draw curve
|
||||
|
|
|
|||
|
|
@ -550,6 +550,18 @@ render_inline_full (cairo_t* cr, const AExp* self)
|
|||
cairo_arc (cr, peak_x, peak_y, 3.f, 0.f, 2.f*M_PI);
|
||||
cairo_fill (cr);
|
||||
|
||||
|
||||
// draw state
|
||||
cairo_set_source_rgba (cr, .8, .8, .8, 1.0);
|
||||
cairo_set_line_width(cr, 1.0);
|
||||
|
||||
const float state_x = w * (1.f - (10.f-(*self->inlevel))/70.f);
|
||||
const float state_y = h * ((*self->outlevel) - 10.f) / -70.f;
|
||||
|
||||
cairo_arc (cr, state_x, state_y, 6.f, 0.f, 2.f*M_PI);
|
||||
cairo_fill (cr);
|
||||
|
||||
|
||||
// draw curve
|
||||
cairo_set_source_rgba (cr, .8, .8, .8, 1.0);
|
||||
cairo_move_to (cr, 0, h);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue