Ajout pywiiuse, version transmise par mail par Gary Bishop.
[minwii.git] / src / app / minwii.py
index 2e65952..b279000 100755 (executable)
@@ -54,6 +54,8 @@ class MinWii(object):
             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)
             playingScreen.run()