- lfr = self.lfr = LogFileReader(logfile)
- songFile = lfr.getSongFile()
- soundFontFile = lfr.getSoundFontFile()
- sfPath = lfr.getSoundFontFile()
- synth = Synth(sfPath=sfPath)
- self.song = musicXml2Song(songFile)
- screenResolution = lfr.getScreenResolution()
-
- pygame.display.set_mode(screenResolution)
-
- super(LogFilePlayer, self).__init__(synth, self.song.distinctNotes)
+ lfr = self.lfr = LogFileReader(logfile)
+ songFile = lfr.getSongFile()
+ soundFontFile = lfr.getSoundFontFile()
+ sfPath = lfr.getSoundFontFile()
+ bank = lfr.getBank()
+ preset = lfr.getPreset()
+ synth = Synth(sfPath=sfPath)
+ synth.program_select(0, bank, preset)
+ self.song = musicXml2Song(songFile)
+ screenResolution = lfr.getScreenResolution()
+
+ pygame.display.set_mode(screenResolution)
+
+ super(LogFilePlayer, self).__init__(synth, self.song.distinctNotes)