diff bin/keyboardcomposer @ 1499:0e746743dd0f

effects should also get noteTime for doing one-shot stuff Ignore-this: 8cf4c8e978b486ab99e59199414d9ae2
author drewp@bigasterisk.com
date Thu, 16 Jun 2016 06:09:43 +0000
parents b2921b59d60c
children eccbc249fee7
line wrap: on
line diff
--- a/bin/keyboardcomposer	Thu Jun 16 06:09:32 2016 +0000
+++ b/bin/keyboardcomposer	Thu Jun 16 06:09:43 2016 +0000
@@ -456,9 +456,13 @@
             effect = graph.value(setting, L9['sub'])
             strength = graph.value(setting, L9['level'])
             if strength:
+                now = time.time()
                 outputSettings.extend(
                     self.effectEval[effect].outputFromEffect(
-                        [(L9['strength'], strength)], songTime=time.time()))
+                        [(L9['strength'], strength)],
+                        songTime=now,
+                        # should be counting from when you bumped up from 0
+                        noteTime=now))
 
         return outputSettings