Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Edit
diff options
context:
space:
mode:
authorOli <olpc@localhost.localdomain>2007-03-05 06:46:05 (GMT)
committer Oli <olpc@localhost.localdomain>2007-03-05 06:46:05 (GMT)
commit7f308b9abead976f4ce7bc23ee85bb8c5558a8bb (patch)
tree73ce4dbb2e2af335fc62a3f385750a88beb6581d /Edit
parent53597abd566a4efb2d1c1dd3cbb4fa5e8678aed1 (diff)
generator uses an array of beats per page
Diffstat (limited to 'Edit')
-rw-r--r--Edit/MainWindow.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/Edit/MainWindow.py b/Edit/MainWindow.py
index aa1bd10..4623439 100644
--- a/Edit/MainWindow.py
+++ b/Edit/MainWindow.py
@@ -847,12 +847,16 @@ class MainWindow( SubActivity ):
dict[t] = {}
dict[t][1] = self.noteDB.getCSNotesByTrack( 1, t )
+ beatsOfPages = {}
+ for pageId in newpages:
+ beatsOfPages[pageId] = self.noteDB.pages[pageId].beats
+
algo(
params,
self._data['track_volume'][:],
[ i.name for i in self.trackInstrument ],
self._data['tempo'],
- 4, #beats per page TODO: talk to olivier about handling pages of different sizes
+ beatsOfPages,
newtracks,
newpages,
dict)