From 4b12efb99fbcc136423863beddded5661ebb8af0 Mon Sep 17 00:00:00 2001 From: TanSaturn Date: Fri, 19 Oct 2018 09:41:36 -0700 Subject: [PATCH] Update actions.py Realized that the modulo was redundant... --- actions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actions.py b/actions.py index 85fc24c..8fc638f 100644 --- a/actions.py +++ b/actions.py @@ -114,7 +114,7 @@ class Actions(object): def increase_seek_time(self): for index, i in enumerate(self.data.settings['sampler']['SEEK_TIME']['options']): - if (i == self.data.settings['sampler']['SEEK_TIME']['value']) and ((index + 1) % (len(self.data.settings['sampler']['SEEK_TIME']['options']) + 1) != len(self.data.settings['sampler']['SEEK_TIME']['options'])): + if (i == self.data.settings['sampler']['SEEK_TIME']['value']) and ((index + 1) != len(self.data.settings['sampler']['SEEK_TIME']['options'])): self.data.settings['sampler']['SEEK_TIME']['value'] = self.data.settings['sampler']['SEEK_TIME']['options'][(index + 1)] break if (index >= (len(self.data.settings['sampler']['SEEK_TIME']['options']) - 1)):