diff options
author | amartin <olpc@localhost.localdomain> | 2007-02-20 22:43:12 (GMT) |
---|---|---|
committer | amartin <olpc@localhost.localdomain> | 2007-02-20 22:43:12 (GMT) |
commit | 1fcc777030bb0ca9d3768edf21bd0de704032c62 (patch) | |
tree | 3631fee8bdf561a4c2f4148e26464fc0cd07c3a9 /Edit/HitInterface.py | |
parent | 14996eec6c02ec388f35114a910d7bdad9b3b899 (diff) |
sample notes
Diffstat (limited to 'Edit/HitInterface.py')
-rw-r--r-- | Edit/HitInterface.py | 8 |
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 |