]> git.immae.eu Git - perso/Immae/Projets/Python/MusicSampler.git/commitdiff
Fix forgotten key in KeyMachine
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Thu, 11 Aug 2016 23:59:08 +0000 (01:59 +0200)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Thu, 11 Aug 2016 23:59:08 +0000 (01:59 +0200)
music_sampler/key.py

index b73a29cf1b8b83a8ecef8587c628791d014e5daf..983c5a6c263e064209f0a20601d4e750058d497f 100644 (file)
@@ -149,14 +149,14 @@ class KeyMachine(Widget):
         self.key.parent.parent.ids['KeyList'].append(self.key.key_sym)
         debug_print("running actions for {}".format(self.key.key_sym))
         start_time = time.time()
-        self.key.parent.start_running(self, start_time)
+        self.key.parent.start_running(self.key, start_time)
         for self.key.current_action in self.key.actions:
-            if self.key.parent.keep_running(self, start_time):
+            if self.key.parent.keep_running(self.key, start_time):
                 self.key.list_actions()
                 self.key.current_action.run(start_time)
         self.key.list_actions(last_action_finished=True)
 
-        self.key.parent.finished_running(self, start_time)
+        self.key.parent.finished_running(self.key, start_time)
 
     def on_enter_loaded_protecting_repeat(self, modifiers):
         if self.key.repeat_delay > 0: