diff options
author | amartin <olpc@localhost.localdomain> | 2007-02-20 05:01:20 (GMT) |
---|---|---|
committer | amartin <olpc@localhost.localdomain> | 2007-02-20 05:01:20 (GMT) |
commit | 09b31158f45345d586fd48ec349aebf00a676e08 (patch) | |
tree | b95fb13d963f3113cad64cf1cd8b19f4c444589e /Util/NoteDB.py | |
parent | aea628ad8d2b592bdbb149f3c562f031cd1bba22 (diff) |
tuneInteface (2nd try, fu git)
Diffstat (limited to 'Util/NoteDB.py')
-rw-r--r-- | Util/NoteDB.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Util/NoteDB.py b/Util/NoteDB.py index 37335d6..f96123b 100644 --- a/Util/NoteDB.py +++ b/Util/NoteDB.py @@ -140,9 +140,6 @@ class NoteDB: new = {} for cp in sorted: id = self._newPage( self.pages[cp].beats ) - for t in range(Config.NUMBER_OF_TRACKS): - for n in self.noteD[cp][t].keys(): - self.duplicateNote( cp, t, n, id, t, 0 ) self._insertPage( id, after ) after = id new[cp] = id @@ -150,6 +147,11 @@ class NoteDB: for l in self.pageListeners: l.notifyPageDuplicate( new, first ) + for cp in sorted: + for t in range(Config.NUMBER_OF_TRACKS): + for n in self.noteD[cp][t].keys(): + self.duplicateNote( cp, t, n, new[cp], t, 0 ) + def movePages( self, which, after = False ): sorted = [] if after: at = self.tune.index(after)+1 |