projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add wrapper for ChanMapping::get()
[ardour.git]
/
libs
/
ardour
/
ardour
/
value_as_string.h
diff --git
a/libs/ardour/ardour/value_as_string.h
b/libs/ardour/ardour/value_as_string.h
index e8361bf117e2c9f8396a1662043ba52c3e0eb657..c2f40fc8c413d76dcf0fad0efa2058d2ea99b4b1 100644
(file)
--- a/
libs/ardour/ardour/value_as_string.h
+++ b/
libs/ardour/ardour/value_as_string.h
@@
-61,9
+61,9
@@
value_as_string(const ARDOUR::ParameterDescriptor& desc,
} else if (desc.integer_step) {
snprintf(buf, sizeof(buf), "%d", (int)v);
} else {
} else if (desc.integer_step) {
snprintf(buf, sizeof(buf), "%d", (int)v);
} else {
- snprintf(buf, sizeof(buf), "%.
2
f", v);
+ snprintf(buf, sizeof(buf), "%.
3
f", v);
}
}
- if (desc.unit == ARDOUR::ParameterDescriptor::DB) {
+ if (desc.
print_fmt.empty() && desc.
unit == ARDOUR::ParameterDescriptor::DB) {
// TODO: Move proper dB printing from AutomationLine here
return std::string(buf) + " dB";
}
// TODO: Move proper dB printing from AutomationLine here
return std::string(buf) + " dB";
}