- song = musicXml2Song('/Users/pinbe/dev/minwii/src/songs/chansons/etoile_neige.xml', printNotes=True)
- playingScreen = SongPlayingScreen(synth, song)
- #playingScreen = PlayingScreen(synth)
+ # 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)