diff options
author | olipet <olpc@localhost.localdomain> | 2007-01-10 09:41:24 (GMT) |
---|---|---|
committer | olipet <olpc@localhost.localdomain> | 2007-01-10 09:41:24 (GMT) |
commit | 658e47e973f8790ca82be4ebd7da1a6347f5f37c (patch) | |
tree | 59d42f3f8c6a251a5325849cd19ca01a6e17514a /Util/NoteLooper.py | |
parent | 31ad623c32205fce5def219e7de5e048c038a29f (diff) |
sequencer always broken...
Diffstat (limited to 'Util/NoteLooper.py')
-rw-r--r-- | Util/NoteLooper.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Util/NoteLooper.py b/Util/NoteLooper.py index ed05391..1e9aba4 100644 --- a/Util/NoteLooper.py +++ b/Util/NoteLooper.py @@ -160,15 +160,18 @@ class NoteLooper: def insert( self, notes): def insertMany(): + print notes self.notes += [ ( notes[i][0], notes[i][1], '', 0 ) for i in xrange(len(notes)) ] + print '**************** insert done ********************' self.notes.sort() + print self.notes def insertFew(): for i in xrange(len(notes)): t = (notes[i][0], notes[i][1],'',0) l = bisect.bisect_left(self.notes, t ) self.notes.insert(l, t) - if len(notes) > 6: + if len(notes) >= 1: insertMany() else: insertFew() @@ -186,7 +189,7 @@ class NoteLooper: def removeMany(): self.notes = [t for t in self.notes if t[1] not in note] - if len(idset) > 6: #just guessing here, should do some timing tests to see if this is good or no + if len(idset) >= 0: #just guessing here, should do some timing tests to see if this is good or no removeMany() else: removeFew() |