13
0

Show 3 decimal digits when printing values.

This commit is contained in:
David Robillard 2014-11-02 18:47:22 -05:00
parent 21dde8f2a7
commit 6e8e3856cb

View File

@ -61,7 +61,7 @@ value_as_string(const ARDOUR::ParameterDescriptor& desc,
} else if (desc.integer_step) {
snprintf(buf, sizeof(buf), "%d", (int)v);
} else {
snprintf(buf, sizeof(buf), "%.2f", v);
snprintf(buf, sizeof(buf), "%.3f", v);
}
if (desc.unit == ARDOUR::ParameterDescriptor::DB) {
// TODO: Move proper dB printing from AutomationLine here