aboutsummaryrefslogtreecommitdiff
path: root/music_sampler.py
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2016-07-25 16:53:46 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2016-07-25 16:53:46 +0200
commit205861936ca55357beea6a8af7c0c9ed5a61f484 (patch)
tree2c9711c256013ba0b6911e6c5f05a79cd549172d /music_sampler.py
parent9c4f705fc6e8ef19973c1977ae8a5b9982cf6ecc (diff)
downloadMusicSampler-205861936ca55357beea6a8af7c0c9ed5a61f484.tar.gz
MusicSampler-205861936ca55357beea6a8af7c0c9ed5a61f484.tar.zst
MusicSampler-205861936ca55357beea6a8af7c0c9ed5a61f484.zip
Reorder MusicFile methods
Diffstat (limited to 'music_sampler.py')
-rw-r--r--music_sampler.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/music_sampler.py b/music_sampler.py
index d91e150..41b71be 100644
--- a/music_sampler.py
+++ b/music_sampler.py
@@ -45,14 +45,14 @@ class PlayList(RelativeLayout):
45 open_files = self.parent.ids['Mapping'].open_files 45 open_files = self.parent.ids['Mapping'].open_files
46 self.playlist = [] 46 self.playlist = []
47 for music_file in open_files.values(): 47 for music_file in open_files.values():
48 if not music_file.is_not_stopped(): 48 if not music_file.is_in_use():
49 continue 49 continue
50 50
51 text = "{}/{}".format( 51 text = "{}/{}".format(
52 helpers.duration_to_min_sec(music_file.sound_position), 52 helpers.duration_to_min_sec(music_file.sound_position),
53 helpers.duration_to_min_sec(music_file.sound_duration)) 53 helpers.duration_to_min_sec(music_file.sound_duration))
54 54
55 if music_file.is_paused(): 55 if music_file.is_loaded_paused():
56 self.playlist.append(["⏸", music_file.name, text, False]) 56 self.playlist.append(["⏸", music_file.name, text, False])
57 else: 57 else:
58 self.playlist.append(["⏵", music_file.name, text, True]) 58 self.playlist.append(["⏵", music_file.name, text, True])