diff options
author | Oli <olivier.belanger@umontreal.ca> | 2007-06-19 21:42:35 (GMT) |
---|---|---|
committer | Oli <olivier.belanger@umontreal.ca> | 2007-06-19 21:42:35 (GMT) |
commit | e9b064c0abf445c85ac57fd429ee1a597535ebdf (patch) | |
tree | 5ee9001ffdc7f1808582b325a2f40e93609ee642 /Edit | |
parent | f369cb9982618ae3c54d29f6bb3b51714b4b70f7 (diff) |
Edit keyboard recording...
Diffstat (limited to 'Edit')
-rw-r--r-- | Edit/MainWindow.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Edit/MainWindow.py b/Edit/MainWindow.py index 1626fc8..aceab85 100644 --- a/Edit/MainWindow.py +++ b/Edit/MainWindow.py @@ -1432,7 +1432,7 @@ class MainWindow( SubActivity ): if self.kb_keydict.has_key(key): return # Assign on which track the note will be created according to the number of keys pressed - track = len(self.kb_keydict) + #track = len(self.kb_keydict) # If the pressed key is in the keymap if KEY_MAP_PIANO.has_key(key): # CsoundNote parameters @@ -1447,9 +1447,9 @@ class MainWindow( SubActivity ): instrument = self.getTrackInstrument(index).name else: return - + track = index if instrument[0:4] == 'drum': - track = index + #track = index if GenerationConstants.DRUMPITCH.has_key( pitch ): pitch = GenerationConstants.DRUMPITCH[pitch] if Config.INSTRUMENTS[instrument].kit != None: |