]>
git.immae.eu Git - perso/Immae/Projets/Python/MusicSampler.git/blob - music_sampler/actions/load_music.py
3 def run(action
, music
=None, **kwargs
):
4 for music
in action
.music_list(music
):
5 if not music
.is_loaded(allow_substates
=True):
6 threading
.Thread(name
="MSMusicLoad", target
=music
.load
).start()
8 def description(action
, music
=None, **kwargs
):
10 return "load music « {} » to memory".format(music
.name
)
12 return "load all music to memory"