aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2016-08-12 01:59:08 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2016-08-12 01:59:08 +0200
commit06ed113dedfb39cecf6f195bc38cbab9bb797189 (patch)
treedf988ebb3bea5ec6e5300f52fb40353376e63814
parent360c402920507b20080b9030a73f641f34022b4d (diff)
downloadMusicSampler-06ed113dedfb39cecf6f195bc38cbab9bb797189.tar.gz
MusicSampler-06ed113dedfb39cecf6f195bc38cbab9bb797189.tar.zst
MusicSampler-06ed113dedfb39cecf6f195bc38cbab9bb797189.zip
Fix forgotten key in KeyMachine
-rw-r--r--music_sampler/key.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/music_sampler/key.py b/music_sampler/key.py
index b73a29c..983c5a6 100644
--- a/music_sampler/key.py
+++ b/music_sampler/key.py
@@ -149,14 +149,14 @@ class KeyMachine(Widget):
149 self.key.parent.parent.ids['KeyList'].append(self.key.key_sym) 149 self.key.parent.parent.ids['KeyList'].append(self.key.key_sym)
150 debug_print("running actions for {}".format(self.key.key_sym)) 150 debug_print("running actions for {}".format(self.key.key_sym))
151 start_time = time.time() 151 start_time = time.time()
152 self.key.parent.start_running(self, start_time) 152 self.key.parent.start_running(self.key, start_time)
153 for self.key.current_action in self.key.actions: 153 for self.key.current_action in self.key.actions:
154 if self.key.parent.keep_running(self, start_time): 154 if self.key.parent.keep_running(self.key, start_time):
155 self.key.list_actions() 155 self.key.list_actions()
156 self.key.current_action.run(start_time) 156 self.key.current_action.run(start_time)
157 self.key.list_actions(last_action_finished=True) 157 self.key.list_actions(last_action_finished=True)
158 158
159 self.key.parent.finished_running(self, start_time) 159 self.key.parent.finished_running(self.key, start_time)
160 160
161 def on_enter_loaded_protecting_repeat(self, modifiers): 161 def on_enter_loaded_protecting_repeat(self, modifiers):
162 if self.key.repeat_delay > 0: 162 if self.key.repeat_delay > 0: