]> git.immae.eu Git - perso/Immae/Projets/Python/MusicSampler.git/commitdiff
Rename helpers to music_sampler
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Wed, 27 Jul 2016 19:33:09 +0000 (21:33 +0200)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Wed, 27 Jul 2016 19:33:09 +0000 (21:33 +0200)
24 files changed:
.gitignore
music_sampler.kv
music_sampler.py
music_sampler.spec
music_sampler/__init__.py [moved from helpers/__init__.py with 100% similarity]
music_sampler/action.py [moved from helpers/action.py with 100% similarity]
music_sampler/actions/__init__.py [moved from helpers/actions/__init__.py with 100% similarity]
music_sampler/actions/interrupt_wait.py [moved from helpers/actions/interrupt_wait.py with 100% similarity]
music_sampler/actions/pause.py [moved from helpers/actions/pause.py with 100% similarity]
music_sampler/actions/play.py [moved from helpers/actions/play.py with 100% similarity]
music_sampler/actions/run_command.py [moved from helpers/actions/run_command.py with 100% similarity]
music_sampler/actions/seek.py [moved from helpers/actions/seek.py with 100% similarity]
music_sampler/actions/stop.py [moved from helpers/actions/stop.py with 100% similarity]
music_sampler/actions/stop_all_actions.py [moved from helpers/actions/stop_all_actions.py with 100% similarity]
music_sampler/actions/unpause.py [moved from helpers/actions/unpause.py with 100% similarity]
music_sampler/actions/volume.py [moved from helpers/actions/volume.py with 100% similarity]
music_sampler/actions/wait.py [moved from helpers/actions/wait.py with 100% similarity]
music_sampler/key.py [moved from helpers/key.py with 100% similarity]
music_sampler/lock.py [moved from helpers/lock.py with 100% similarity]
music_sampler/mapping.py [moved from helpers/mapping.py with 100% similarity]
music_sampler/mixer.py [moved from helpers/mixer.py with 100% similarity]
music_sampler/music_effect.py [moved from helpers/music_effect.py with 100% similarity]
music_sampler/music_file.py [moved from helpers/music_file.py with 100% similarity]
music_sampler/sysfont.py [moved from helpers/sysfont.py with 100% similarity]

index 0aa4e4c80c84dbcf1d6b989e38bc549c3b80dea5..a31344088d914e832b910588bf9bb6736fc72eba 100644 (file)
@@ -1,5 +1,5 @@
 build/
 dist/
-helpers/__pycache__/
+music_sampler/__pycache__/
 __pycache__/
 .pyinstaller_commit
index a18eb4e5395c77aa0f0093f009aa0c0cbeb09aa1..905753272f738b8088afd9778793da3d367aad42 100644 (file)
@@ -1,5 +1,5 @@
 #:import math math
-#:import h helpers
+#:import h music_sampler
 
 <Key>:
   pad_col_sep: 0 if not self.pad_cols else self.parent.pad_x
index f5df2bf0dd3191ac3438d2352a10f6ce0ef61476..714598a37f06a7b3b1a863560cd563fa7f19eb35 100644 (file)
@@ -1,6 +1,6 @@
-import helpers
+import music_sampler
 
-helpers.parse_args()
+music_sampler.parse_args()
 
 import kivy
 kivy.require("1.9.1")
@@ -11,10 +11,10 @@ from kivy.properties import ListProperty, StringProperty
 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([])
@@ -51,8 +51,8 @@ class PlayList(RelativeLayout):
                 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])
@@ -87,5 +87,5 @@ class MusicSamplerApp(App):
         return Screen()
 
 if __name__ == '__main__':
-    Builder.load_file(helpers.path() + "/music_sampler.kv")
+    Builder.load_file(music_sampler.path() + "/music_sampler.kv")
     MusicSamplerApp().run()
index 0d99dca2caefcc67238169feeb09ab7fdcf94b1a..37943974dd483538a203073f7483b5c251dcb8bb 100644 (file)
@@ -5,7 +5,7 @@ from kivy.tools.packaging.pyinstaller_hooks import get_deps_minimal,\
 
 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(
similarity index 100%
rename from helpers/action.py
rename to music_sampler/action.py
similarity index 100%
rename from helpers/key.py
rename to music_sampler/key.py
similarity index 100%
rename from helpers/lock.py
rename to music_sampler/lock.py
similarity index 100%
rename from helpers/mapping.py
rename to music_sampler/mapping.py
similarity index 100%
rename from helpers/mixer.py
rename to music_sampler/mixer.py
similarity index 100%
rename from helpers/sysfont.py
rename to music_sampler/sysfont.py