fix steps

This commit is contained in:
chrys 2016-08-21 18:36:50 +02:00
parent cd123ac072
commit 11a770f0ff
8 changed files with 8 additions and 8 deletions

View File

@ -8,7 +8,7 @@ class command():
value = environment['runtime']['settingsManager'].getSettingAsFloat(environment, 'sound', 'volume') value = environment['runtime']['settingsManager'].getSettingAsFloat(environment, 'sound', 'volume')
value = round((math.ceil(20 * value) / 20) - 0.1, 2) value = round((math.ceil(10 * value) / 10) - 0.1, 2)
if value < 0.1: if value < 0.1:
value = 0.1 value = 0.1
environment = environment['runtime']['settingsManager'].setSetting(environment, 'sound', 'volume', str(value)) environment = environment['runtime']['settingsManager'].setSetting(environment, 'sound', 'volume', str(value))

View File

@ -8,7 +8,7 @@ class command():
value = environment['runtime']['settingsManager'].getSettingAsFloat(environment, 'speech', 'pitch') value = environment['runtime']['settingsManager'].getSettingAsFloat(environment, 'speech', 'pitch')
value = round((math.ceil(20 * value) / 20) - 0.1, 2) value = round((math.ceil(10 * value) / 10) - 0.1, 2)
if value < 0.0: if value < 0.0:
value = 0.0 value = 0.0
environment = environment['runtime']['settingsManager'].setSetting(environment, 'speech', 'pitch', str(value)) environment = environment['runtime']['settingsManager'].setSetting(environment, 'speech', 'pitch', str(value))

View File

@ -8,7 +8,7 @@ class command():
value = environment['runtime']['settingsManager'].getSettingAsFloat(environment, 'speech', 'rate') value = environment['runtime']['settingsManager'].getSettingAsFloat(environment, 'speech', 'rate')
value = round((math.ceil(20 * value) / 20) - 0.1, 2) value = round((math.ceil(10 * value) / 10) - 0.1, 2)
if value < 0.0: if value < 0.0:
value = 0.0 value = 0.0
environment = environment['runtime']['settingsManager'].setSetting(environment, 'speech', 'rate', str(value)) environment = environment['runtime']['settingsManager'].setSetting(environment, 'speech', 'rate', str(value))

View File

@ -8,7 +8,7 @@ class command():
value = environment['runtime']['settingsManager'].getSettingAsFloat(environment, 'speech', 'volume') value = environment['runtime']['settingsManager'].getSettingAsFloat(environment, 'speech', 'volume')
value = round((math.ceil(20 * value) / 20) - 0.1, 2) value = round((math.ceil(10 * value) / 10) - 0.1, 2)
if value < 0.1: if value < 0.1:
value = 0.1 value = 0.1
environment = environment['runtime']['settingsManager'].setSetting(environment, 'speech', 'volume', str(value)) environment = environment['runtime']['settingsManager'].setSetting(environment, 'speech', 'volume', str(value))

View File

@ -8,7 +8,7 @@ class command():
value = environment['runtime']['settingsManager'].getSettingAsFloat(environment, 'sound', 'volume') value = environment['runtime']['settingsManager'].getSettingAsFloat(environment, 'sound', 'volume')
value = round((math.ceil(20 * value) / 20) + 0.1, 2) value = round((math.ceil(10 * value) / 10) + 0.1, 2)
if value > 1.0: if value > 1.0:
value = 1.0 value = 1.0
environment = environment['runtime']['settingsManager'].setSetting(environment, 'sound', 'volume', str(value)) environment = environment['runtime']['settingsManager'].setSetting(environment, 'sound', 'volume', str(value))

View File

@ -8,7 +8,7 @@ class command():
value = environment['runtime']['settingsManager'].getSettingAsFloat(environment, 'speech', 'pitch') value = environment['runtime']['settingsManager'].getSettingAsFloat(environment, 'speech', 'pitch')
value = round((math.ceil(20 * value) / 20) + 0.1, 2) value = round((math.ceil(10 * value) / 10) + 0.1, 2)
if value > 1.0: if value > 1.0:
value = 1.0 value = 1.0
environment = environment['runtime']['settingsManager'].setSetting(environment, 'speech', 'pitch', str(value)) environment = environment['runtime']['settingsManager'].setSetting(environment, 'speech', 'pitch', str(value))

View File

@ -8,7 +8,7 @@ class command():
value = environment['runtime']['settingsManager'].getSettingAsFloat(environment, 'speech', 'rate') value = environment['runtime']['settingsManager'].getSettingAsFloat(environment, 'speech', 'rate')
value = round((math.ceil(20 * value) / 20) + 0.1, 2) value = round((math.ceil(10 * value) / 10) + 0.1, 2)
if value > 1.0: if value > 1.0:
value = 1.0 value = 1.0
environment = environment['runtime']['settingsManager'].setSetting(environment, 'speech', 'rate', str(value)) environment = environment['runtime']['settingsManager'].setSetting(environment, 'speech', 'rate', str(value))

View File

@ -8,7 +8,7 @@ class command():
value = environment['runtime']['settingsManager'].getSettingAsFloat(environment, 'speech', 'volume') value = environment['runtime']['settingsManager'].getSettingAsFloat(environment, 'speech', 'volume')
value = round((math.ceil(20 * value) / 20) + 0.1, 2) value = round((math.ceil(10 * value) / 10) + 0.1, 2)
if value > 1.0: if value > 1.0:
value = 1.0 value = 1.0
environment = environment['runtime']['settingsManager'].setSetting(environment, 'speech', 'volume', str(value)) environment = environment['runtime']['settingsManager'].setSetting(environment, 'speech', 'volume', str(value))