diff options
author | Oli <olivier.belanger@umontreal.ca> | 2007-04-03 19:22:55 (GMT) |
---|---|---|
committer | Oli <olivier.belanger@umontreal.ca> | 2007-04-03 19:22:55 (GMT) |
commit | 5a0b812dcb9fa29f54c9a71c87dfb880725de5c9 (patch) | |
tree | 7be4cb915637ccce8cc15fbaab3d78cd80e8149a /Edit | |
parent | 408a062b8ebfc14fb10228f3ef0cb39c01e1cb87 (diff) |
save/load fine tunning
Diffstat (limited to 'Edit')
-rw-r--r-- | Edit/MainWindow.py | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/Edit/MainWindow.py b/Edit/MainWindow.py index 2f15cfd..658c960 100644 --- a/Edit/MainWindow.py +++ b/Edit/MainWindow.py @@ -1239,13 +1239,6 @@ class MainWindow( SubActivity ): self.csnd.setMasterVolume(self._data['volume']) self.csnd.loopSetTempo(self._data['tempo']) self.initTrackVolume() - for tid in range(Config.NUMBER_OF_TRACKS): - self.handleInstrumentChanged( ( tid, self.trackInstrument[tid] ) ) - self.last_clicked_instTrackID = tid - if tid == 4: - self.donePickDrum(self.trackInstrument[tid].name) - else: - self.donePickInstrument(self.trackInstrument[tid].name) def handleSave(self, widget): @@ -1314,7 +1307,18 @@ class MainWindow( SubActivity ): else: string = '2instrument' + str(i+1) + 'volumeAdjustment' self.GUI[string].set_value(self._data['track_volume'][i]) + for tid in range(Config.NUMBER_OF_TRACKS): + self.handleInstrumentChanged( ( tid, self.trackInstrument[tid] ) ) + self.last_clicked_instTrackID = tid + if tid == 4: + self.donePickDrum(self.trackInstrument[tid].name) + else: + self.donePickInstrument(self.trackInstrument[tid].name) ifile.close() + + self.tuneInterface.selectPages( self.noteDB.tune ) + #self.displayPage(1) + # TODO: if deletePages() worked the first time, we wouldn't need # this self.noteDB.deletePages( self.noteDB.tune[0:1] ) |