ZynAddSAubFX Microtonal: Fixing formatting of detune values
- Fixes bug that prints values like "4.0123" as "4.123" (cherry picked from commit 5a1fa4f3c522f2f438e052273a544091133bb0eb)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user