Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Edit
diff options
context:
space:
mode:
Diffstat (limited to 'Edit')
-rw-r--r--Edit/TrackInterface.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Edit/TrackInterface.py b/Edit/TrackInterface.py
index db39f70..b8a3a27 100644
--- a/Edit/TrackInterface.py
+++ b/Edit/TrackInterface.py
@@ -433,9 +433,9 @@ class TrackInterface( gtk.EventBox ):
n.playSampleNote( False )
noteS = self.noteDB.getNotesByTrack(self.curPage, i)
- for n in noteS:
- if n.cs.onset < snapOnset and (n.cs.onset + n.cs.duration) > snapOnset:
- self.noteDB.updateNote(self.curPage, i, n.id, PARAMETER.DURATION, snapOnset - n.cs.onset)
+ for note in noteS:
+ if note.cs.onset < snapOnset and (note.cs.onset + note.cs.duration) > snapOnset:
+ self.noteDB.updateNote(self.curPage, i, note.id, PARAMETER.DURATION, snapOnset - note.cs.onset)
if i != self.drumIndex: # switch to drag duration
self.updateDragLimits()