zynaddsubfx

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

commit f5444f8706b98f764b17d0131cd7e8dc20b611ee
parent d1a55b646f7eb334116402c309665661cdce7f1f
Author: James McKernon <[email protected]>
Date:   Sat, 25 Apr 2020 14:18:25 +0100

in fractional tunings, allow numerator/denominator greater than 127

Diffstat:
Msrc/Misc/Microtonal.cpp | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/Misc/Microtonal.cpp b/src/Misc/Microtonal.cpp @@ -820,8 +820,8 @@ void Microtonal::getfromXML(XMLwrapper& xml) octave[i].x2 = 0; octave[i].tuning_log2 = log2f(xml.getparreal("cents", powf(2.0f, octave[i].tuning_log2))) / log2(2.0f); - octave[i].x1 = xml.getpar127("numerator", octave[i].x1); - octave[i].x2 = xml.getpar127("denominator", octave[i].x2); + octave[i].x1 = xml.getpar("numerator", octave[i].x1, 0, 65535); + octave[i].x2 = xml.getpar("denominator", octave[i].x2, 0, 65535); if(octave[i].x2 != 0) octave[i].type = 2;