-import helpers
+import music_sampler
-helpers.parse_args()
+music_sampler.parse_args()
import kivy
kivy.require("1.9.1")
from kivy.clock import Clock
from kivy.core.window import Window
from kivy.lang import Builder
-from helpers.key import Key
-from helpers.mapping import Mapping
+from music_sampler.key import Key
+from music_sampler.mapping import Mapping
-helpers.register_fonts()
+music_sampler.register_fonts()
class KeyList(RelativeLayout):
keylist = ListProperty([])
continue
text = "{}/{}".format(
- helpers.duration_to_min_sec(music_file.sound_position),
- helpers.duration_to_min_sec(music_file.sound_duration))
+ music_sampler.duration_to_min_sec(music_file.sound_position),
+ music_sampler.duration_to_min_sec(music_file.sound_duration))
if music_file.is_loaded_paused():
self.playlist.append(["⏸", music_file.name, text, False])
return Screen()
if __name__ == '__main__':
- Builder.load_file(helpers.path() + "/music_sampler.kv")
+ Builder.load_file(music_sampler.path() + "/music_sampler.kv")
MusicSamplerApp().run()
import importlib.machinery
sysfont = importlib.machinery\
- .SourceFileLoader('sysfont', os.getcwd() + '/helpers/sysfont.py') \
+ .SourceFileLoader('sysfont', os.getcwd() + '/music_sampler/sysfont.py') \
.load_module()
excluded_and_hidden_modules = get_deps_minimal(