Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Player
diff options
context:
space:
mode:
authorNathanaël Lécaudé <Nat@localhost.localdomain>2007-01-04 20:19:01 (GMT)
committer Nathanaël Lécaudé <Nat@localhost.localdomain>2007-01-04 20:19:01 (GMT)
commit51ee158bdbdb61adb9283759b2cd5fc647d8ddce (patch)
tree6d213b8377242a82c857c696dad2c2566236358f /Player
parent4ba9564ad01d3f6cade7cd70edace663550f8c49 (diff)
New keymap
Diffstat (limited to 'Player')
-rw-r--r--Player/KeyboardStandAlone.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Player/KeyboardStandAlone.py b/Player/KeyboardStandAlone.py
index 2e73900..1007cb1 100644
--- a/Player/KeyboardStandAlone.py
+++ b/Player/KeyboardStandAlone.py
@@ -5,7 +5,7 @@ import gtk
from Player.NoteStdAlone import NoteStdAlone
from Framework.CSound.CSoundConstants import CSoundConstants
from Framework.Generation.GenerationConstants import GenerationConstants
-from GUI.Core.KeyMapping import KEY_MAP
+from GUI.Core.KeyMapping import KEY_MAP_PIANO
class KeyboardStandAlone:
@@ -29,9 +29,9 @@ class KeyboardStandAlone:
# Assign on which track the note will be created according to the number of keys pressed
track = len(self.key_dict)+10
# If the pressed key is in the keymap
- if KEY_MAP.has_key(key):
+ if KEY_MAP_PIANO.has_key(key):
# CsoundNote parameters
- pitch = KEY_MAP[key]
+ pitch = KEY_MAP_PIANO[key]
duration = -1
instrument = self.instrument
@@ -72,7 +72,7 @@ class KeyboardStandAlone:
def onKeyRelease(self,widget,event):
key = event.hardware_keycode
- if KEY_MAP.has_key(key):
+ if KEY_MAP_PIANO.has_key(key):
if CSoundConstants.INSTRUMENTS[ self.key_dict[key].instrument].csoundInstrumentID == CSoundConstants.INST_TIED:
self.key_dict[key].duration = 1
self.key_dict[key].decay = 0.88