mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-14 09:26:30 +01:00
Mackie Protocol: Show dB values for Mixbus "Send" levels.
No sense rewriting it now, but the correct way to approach this stuff is to pass in the control, and use the appropriate one of: interface, internal, or user values. in this case, get_user would have returned dB for both Ardour and Mixbus sends.
This commit is contained in:
parent
7d5671a411
commit
dc4daa892d
1 changed files with 11 additions and 5 deletions
|
|
@ -919,13 +919,19 @@ Strip::do_parameter_display (AutomationType type, float val)
|
|||
switch (type) {
|
||||
case GainAutomation:
|
||||
case BusSendLevel:
|
||||
if (val == 0.0) {
|
||||
pending_display[1] = " -inf ";
|
||||
} else {
|
||||
float dB = accurate_coefficient_to_dB (val);
|
||||
snprintf (buf, sizeof (buf), "%6.1f", dB);
|
||||
if (Profile->get_mixbus()) { //Mixbus sends are already stored in dB
|
||||
snprintf (buf, sizeof (buf), "%2.1f", val);
|
||||
pending_display[1] = buf;
|
||||
screen_hold = true;
|
||||
} else {
|
||||
if (val == 0.0) {
|
||||
pending_display[1] = " -inf ";
|
||||
} else {
|
||||
float dB = accurate_coefficient_to_dB (val);
|
||||
snprintf (buf, sizeof (buf), "%6.1f", dB);
|
||||
pending_display[1] = buf;
|
||||
screen_hold = true;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue