]> git.immae.eu Git - perso/Immae/Projets/Python/MusicSampler.git/blobdiff - music_sampler.py
Add the possibility to use the system mixer
[perso/Immae/Projets/Python/MusicSampler.git] / music_sampler.py
index 7bd7513d738e8c33c33d3a5e6bd9aaed8172bd76..5613fdf1ab0824df8e75543ff41544b855cd1402 100644 (file)
@@ -1,3 +1,7 @@
+import helpers
+
+helpers.parse_args()
+
 import kivy
 kivy.require("1.9.1")
 from kivy.app import App
@@ -9,7 +13,6 @@ from kivy.core.window import Window
 from kivy.lang import Builder
 from helpers.key import Key
 from helpers.mapping import Mapping
-import helpers
 
 class KeyList(RelativeLayout):
     keylist = ListProperty([])
@@ -42,7 +45,7 @@ class PlayList(RelativeLayout):
         open_files = self.parent.ids['Mapping'].open_files
         self.playlist = []
         for music_file in open_files.values():
-            if not music_file.is_playing():
+            if not music_file.is_not_stopped():
                 continue
 
             text = "{}/{}".format(