Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Edit/HitInterface.py
diff options
context:
space:
mode:
authoramartin <olpc@localhost.localdomain>2007-02-20 22:43:12 (GMT)
committer amartin <olpc@localhost.localdomain>2007-02-20 22:43:12 (GMT)
commit1fcc777030bb0ca9d3768edf21bd0de704032c62 (patch)
tree3631fee8bdf561a4c2f4148e26464fc0cd07c3a9 /Edit/HitInterface.py
parent14996eec6c02ec388f35114a910d7bdad9b3b899 (diff)
sample notes
Diffstat (limited to 'Edit/HitInterface.py')
-rw-r--r--Edit/HitInterface.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/Edit/HitInterface.py b/Edit/HitInterface.py
index f121302..e3692b7 100644
--- a/Edit/HitInterface.py
+++ b/Edit/HitInterface.py
@@ -88,6 +88,8 @@ class HitInterface( NoteInterface ):
#self.noteParameters = NoteParametersWindow( self.note, self.getNoteParameters )
return 1 # handled
+ playSample = False
+
if event.type == gtk.gdk._2BUTTON_PRESS: # select bar
self.potentialDeselect = False
start = 0
@@ -105,11 +107,13 @@ class HitInterface( NoteInterface ):
self.potentialDeselect = True
else:
emitter.selectNotes( { self.note.track: [ self ] } )
- self.updateSampleNote( self.note.cs.pitch )
+ playSample = True
percent = eX/self.width
if percent < 0.5: emitter.setCurrentAction( "note-drag-onset", self )
- else: emitter.setCurrentAction( "note-drag-pitch-drum", self )
+ else:
+ emitter.setCurrentAction( "note-drag-pitch-drum", self )
+ if playSample: self.playSampleNote()
return 1