diff options
author | olipet <olpc@localhost.localdomain> | 2007-01-08 01:57:34 (GMT) |
---|---|---|
committer | olipet <olpc@localhost.localdomain> | 2007-01-08 01:57:34 (GMT) |
commit | af1c068c9db77d96e0e36b57dace4a82252756c3 (patch) | |
tree | 0c68978f133343f33d902e4f2d4d6688521c6dce /Player | |
parent | d9a709b56e0c3370f5f9404fb6c7295e8ee09552 (diff) |
ttle bugs fixed
Diffstat (limited to 'Player')
-rw-r--r-- | Player/KeyboardStandAlone.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Player/KeyboardStandAlone.py b/Player/KeyboardStandAlone.py index d83cdac..12c8868 100644 --- a/Player/KeyboardStandAlone.py +++ b/Player/KeyboardStandAlone.py @@ -16,7 +16,7 @@ class KeyboardStandAlone: self.adjustDuration = adjustDurationFunction self.getCurrentTick = getCurrentTick self.key_dict = dict() - self.onset_dict = {} + self.onset_dict = dict() self.trackCount = 10 self.instrument = 'flute' self.reverb = 0 @@ -33,7 +33,6 @@ class KeyboardStandAlone: if self.key_dict.has_key(key): return # Assign on which track the note will be created according to the number of keys pressed -# track = len(self.key_dict)+10 track = self.trackCount self.trackCount += 1 if self.trackCount >= 20: @@ -106,7 +105,8 @@ class KeyboardStandAlone: del self.key_dict[key] else: del self.key_dict[key] - del self.onset_dict[key] + if self.onset_dict.has_key(key): + del self.onset_dict[key] def onButtonPress( self, widget, event ): pass |