350f32dddafbf4fdb4b64e8349340f878572f70b
1 # -*- coding: utf-8 -*-
10 from pgu
.gui
import Desktop
11 from pgu
.gui
import QUIT
12 from widgets
.home
import Home
13 from widgets
.playingscreen
import SongPlayingScreen
, PlayingScreen
14 from synth
import Synth
15 from eventutils
import EventDispatcher
16 from musicxml
import musicXml2Song
17 from config
import SONG_FILE_PATH
26 home
= Home(songPath
=SONG_FILE_PATH
)
27 home
.connect(QUIT
, app
.quit
)
31 song
= musicXml2Song(home
.songFile
, printNotes
=True)
32 synth
.program_select(0, 0, 45)
33 playingScreen
= SongPlayingScreen(synth
, song
)
36 EventDispatcher
.reset()