projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21dde8f
)
Show 3 decimal digits when printing values.
author
David Robillard
<d@drobilla.net>
Sun, 2 Nov 2014 23:47:22 +0000
(18:47 -0500)
committer
David Robillard
<d@drobilla.net>
Sun, 2 Nov 2014 23:47:22 +0000
(18:47 -0500)
libs/ardour/ardour/value_as_string.h
patch
|
blob
|
history
diff --git
a/libs/ardour/ardour/value_as_string.h
b/libs/ardour/ardour/value_as_string.h
index e8361bf117e2c9f8396a1662043ba52c3e0eb657..18e57c27e9e2d4c4b904d889d2c98d24a91e5c3b 100644
(file)
--- a/
libs/ardour/ardour/value_as_string.h
+++ b/
libs/ardour/ardour/value_as_string.h
@@
-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), "%.
2
f", v);
+ snprintf(buf, sizeof(buf), "%.
3
f", v);
}
if (desc.unit == ARDOUR::ParameterDescriptor::DB) {
// TODO: Move proper dB printing from AutomationLine here