- song = musicXml2Song(home.songFile, printNotes=True)
- synth.program_select(0, 0, 45)
- playingScreen = SongPlayingScreen(synth, song)
+ # lancement du lecteur / clavier
+ songFile = home.songFile
+ playMode = home.modeSelect.value
+ playMode = PLAYING_MODES_DICT[playMode]
+ song = musicXml2Song(songFile)
+ bank, preset = instrumentDescription['bank'], instrumentDescription['preset']
+ octave = instrumentDescription.get('octave', 0)
+ synth.adjust_octave(0, octave)
+ synth.program_select(0, bank, preset)
+ playingScreen = SongPlayingScreen(synth, song, mode=playMode)