From 11a770f0ff479a072e1b75effe940409f9e5844e Mon Sep 17 00:00:00 2001 From: chrys Date: Sun, 21 Aug 2016 18:36:50 +0200 Subject: [PATCH] fix steps --- src/fenrir-package/commands/commands/dec_sound_volume.py | 2 +- src/fenrir-package/commands/commands/dec_speech_pitch.py | 2 +- src/fenrir-package/commands/commands/dec_speech_rate.py | 2 +- src/fenrir-package/commands/commands/dec_speech_volume.py | 2 +- src/fenrir-package/commands/commands/inc_sound_volume.py | 2 +- src/fenrir-package/commands/commands/inc_speech_pitch.py | 2 +- src/fenrir-package/commands/commands/inc_speech_rate.py | 2 +- src/fenrir-package/commands/commands/inc_speech_volume.py | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/fenrir-package/commands/commands/dec_sound_volume.py b/src/fenrir-package/commands/commands/dec_sound_volume.py index 8fdd3ccd..d713c28f 100644 --- a/src/fenrir-package/commands/commands/dec_sound_volume.py +++ b/src/fenrir-package/commands/commands/dec_sound_volume.py @@ -8,7 +8,7 @@ class command(): 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: value = 0.1 environment = environment['runtime']['settingsManager'].setSetting(environment, 'sound', 'volume', str(value)) diff --git a/src/fenrir-package/commands/commands/dec_speech_pitch.py b/src/fenrir-package/commands/commands/dec_speech_pitch.py index 4f94a559..72900498 100644 --- a/src/fenrir-package/commands/commands/dec_speech_pitch.py +++ b/src/fenrir-package/commands/commands/dec_speech_pitch.py @@ -8,7 +8,7 @@ class command(): 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: value = 0.0 environment = environment['runtime']['settingsManager'].setSetting(environment, 'speech', 'pitch', str(value)) diff --git a/src/fenrir-package/commands/commands/dec_speech_rate.py b/src/fenrir-package/commands/commands/dec_speech_rate.py index 13e8209d..c90fb9b0 100644 --- a/src/fenrir-package/commands/commands/dec_speech_rate.py +++ b/src/fenrir-package/commands/commands/dec_speech_rate.py @@ -8,7 +8,7 @@ class command(): 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: value = 0.0 environment = environment['runtime']['settingsManager'].setSetting(environment, 'speech', 'rate', str(value)) diff --git a/src/fenrir-package/commands/commands/dec_speech_volume.py b/src/fenrir-package/commands/commands/dec_speech_volume.py index 9a821429..27f3155d 100644 --- a/src/fenrir-package/commands/commands/dec_speech_volume.py +++ b/src/fenrir-package/commands/commands/dec_speech_volume.py @@ -8,7 +8,7 @@ class command(): 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: value = 0.1 environment = environment['runtime']['settingsManager'].setSetting(environment, 'speech', 'volume', str(value)) diff --git a/src/fenrir-package/commands/commands/inc_sound_volume.py b/src/fenrir-package/commands/commands/inc_sound_volume.py index fde72449..a74c7eb2 100644 --- a/src/fenrir-package/commands/commands/inc_sound_volume.py +++ b/src/fenrir-package/commands/commands/inc_sound_volume.py @@ -8,7 +8,7 @@ class command(): 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: value = 1.0 environment = environment['runtime']['settingsManager'].setSetting(environment, 'sound', 'volume', str(value)) diff --git a/src/fenrir-package/commands/commands/inc_speech_pitch.py b/src/fenrir-package/commands/commands/inc_speech_pitch.py index 786ca551..955fad05 100644 --- a/src/fenrir-package/commands/commands/inc_speech_pitch.py +++ b/src/fenrir-package/commands/commands/inc_speech_pitch.py @@ -8,7 +8,7 @@ class command(): 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: value = 1.0 environment = environment['runtime']['settingsManager'].setSetting(environment, 'speech', 'pitch', str(value)) diff --git a/src/fenrir-package/commands/commands/inc_speech_rate.py b/src/fenrir-package/commands/commands/inc_speech_rate.py index 939b352c..490a713f 100644 --- a/src/fenrir-package/commands/commands/inc_speech_rate.py +++ b/src/fenrir-package/commands/commands/inc_speech_rate.py @@ -8,7 +8,7 @@ class command(): 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: value = 1.0 environment = environment['runtime']['settingsManager'].setSetting(environment, 'speech', 'rate', str(value)) diff --git a/src/fenrir-package/commands/commands/inc_speech_volume.py b/src/fenrir-package/commands/commands/inc_speech_volume.py index b68cf2e0..0b4a3706 100644 --- a/src/fenrir-package/commands/commands/inc_speech_volume.py +++ b/src/fenrir-package/commands/commands/inc_speech_volume.py @@ -8,7 +8,7 @@ class command(): 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: value = 1.0 environment = environment['runtime']['settingsManager'].setSetting(environment, 'speech', 'volume', str(value))