zynaddsubfx

ZynAddSubFX open source synthesizer
Log | Files | Refs | Submodules | LICENSE

commit 5a1fa4f3c522f2f438e052273a544091133bb0eb
parent 765b4b784fbb21309f610d34dcc9d82506e35bed
Author: fundamental <[email protected]>
Date:   Fri, 18 Nov 2011 22:18:03 -0500

Microtonal: Fixing formatting of detune values

- Fixes bug that prints values like "4.0123" as "4.123"

Diffstat:
Msrc/Misc/Microtonal.cpp | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Misc/Microtonal.cpp b/src/Misc/Microtonal.cpp @@ -397,7 +397,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); }