mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
MCP: always show gain value on FoldBack Bus
This commit is contained in:
parent
2519342211
commit
c1eadfa38c
1 changed files with 7 additions and 6 deletions
|
|
@ -438,7 +438,7 @@ Strip::notify_gain_changed (bool force_update)
|
|||
|
||||
/* Keep VCA gain display live-updating in normal view */
|
||||
if (_stripable &&
|
||||
(_stripable->presentation_info().flags() & ARDOUR::PresentationInfo::VCA) &&
|
||||
(_stripable->presentation_info().flags() & (ARDOUR::PresentationInfo::VCA | ARDOUR::PresentationInfo::FoldbackBus)) &&
|
||||
_surface->mcp().subview()->subview_mode() == Subview::None) {
|
||||
return_to_vpot_mode_display();
|
||||
}
|
||||
|
|
@ -1284,8 +1284,9 @@ Strip::return_to_vpot_mode_display ()
|
|||
return;
|
||||
}
|
||||
|
||||
/* VCA strips: always show current gain in dB permanently */
|
||||
if (_stripable->presentation_info().flags() & ARDOUR::PresentationInfo::VCA) {
|
||||
/* VCA and FB strips: always show current gain in dB permanently */
|
||||
if (_stripable->presentation_info().flags() &
|
||||
(ARDOUR::PresentationInfo::VCA | ARDOUR::PresentationInfo::FoldbackBus)) {
|
||||
float db = -INFINITY;
|
||||
if (auto gain = _stripable->gain_control()) {
|
||||
float coeff = gain->get_value();
|
||||
|
|
@ -1294,13 +1295,13 @@ Strip::return_to_vpot_mode_display ()
|
|||
}
|
||||
}
|
||||
|
||||
/* Also drive the meter with the VCA gain — looks alive and correct */
|
||||
/* Use Ardour's official Mackie meter scaling — perfect match */
|
||||
if (_meter) {
|
||||
/* Also drive the meter with VCA gain */
|
||||
if (_meter && (_stripable->presentation_info().flags() & ARDOUR::PresentationInfo::VCA)) {
|
||||
_meter->send_update(*_surface, db);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
/* Normal tracks/buses: show pan mode or value */
|
||||
pending_display[1] = vpot_mode_string();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue