From 60b93e331e6722bac7c922dd4aea8f861871b147 Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Thu, 2 Feb 2012 22:37:57 +0100 Subject: [PATCH] ZynAddSAubFX Microtonal: Fixing formatting of detune values - Fixes bug that prints values like "4.0123" as "4.123" (cherry picked from commit 5a1fa4f3c522f2f438e052273a544091133bb0eb) --- plugins/zynaddsubfx/src/Misc/Microtonal.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/zynaddsubfx/src/Misc/Microtonal.cpp b/plugins/zynaddsubfx/src/Misc/Microtonal.cpp index 1d327d209..cae9aa9d9 100644 --- a/plugins/zynaddsubfx/src/Misc/Microtonal.cpp +++ b/plugins/zynaddsubfx/src/Misc/Microtonal.cpp @@ -395,7 +395,7 @@ void Microtonal::tuningtoline(int n, char *line, int maxn) return; } if(octave[n].type == 1) - snprintf(line, maxn, "%d.%d", octave[n].x1, octave[n].x2); + snprintf(line, maxn, "%d.%06d", octave[n].x1, octave[n].x2); if(octave[n].type == 2) snprintf(line, maxn, "%d/%d", octave[n].x1, octave[n].x2); }