diff options
-rw-r--r-- | documentation_en.md | 27 | ||||
-rw-r--r-- | documentation_fr.md | 26 | ||||
-rw-r--r-- | music_sampler/app.py | 3 |
3 files changed, 55 insertions, 1 deletions
diff --git a/documentation_en.md b/documentation_en.md index ac12909..ee95ad3 100644 --- a/documentation_en.md +++ b/documentation_en.md | |||
@@ -9,6 +9,8 @@ set of actions to run. | |||
9 | 9 | ||
10 | ## Dependencies and installation | 10 | ## Dependencies and installation |
11 | 11 | ||
12 | (See next section for Windows installation) | ||
13 | |||
12 | - You need ffmpeg installed. For that, you can use package `libav-tools` (debian): | 14 | - You need ffmpeg installed. For that, you can use package `libav-tools` (debian): |
13 | 15 | ||
14 | sudo apt-get install libav-tools | 16 | sudo apt-get install libav-tools |
@@ -46,6 +48,31 @@ To compile Kivy with the SDL2 library, you need some packages: | |||
46 | cf [Installation | 48 | cf [Installation |
47 | Kivy](https://kivy.org/docs/installation/installation-linux.html) | 49 | Kivy](https://kivy.org/docs/installation/installation-linux.html) |
48 | 50 | ||
51 | ## Installation sous Windows | ||
52 | |||
53 | Following processed worked to install music sampler in a Windows | ||
54 | machine: | ||
55 | |||
56 | - [Install python 3.7.\* (take 64bit version!)](https://www.python.org/downloads/windows) | ||
57 | - In a command shell (`cmd.exe`), run: | ||
58 | |||
59 | pip install music_sampler | ||
60 | pip install docutils pygments pypiwin32 PySDL2 kivy.deps.sdl2 kivy.deps.glew | ||
61 | |||
62 | - [Install ffmpeg (64bit, static)](https://ffmpeg.zeranoe.com/builds/) | ||
63 | and put the content of folder `bin` in the same folder as music and configs. | ||
64 | - [Download Ubuntu font](https://www.1001fonts.com/ubuntu-font.html) | ||
65 | and install Ubuntu-R and Ubuntu-B (Regular and Bold) *for all users* (right clic on the font) | ||
66 | - [Download Symbola font](https://fontlibrary.org/en/font/symbola) | ||
67 | and install it *for all users* (right clic on the font) | ||
68 | - Write a `run.bat` file with: | ||
69 | |||
70 | :::bash | ||
71 | @echo off | ||
72 | music_sampler | ||
73 | |||
74 | - Run this `run.bat` when you need it. | ||
75 | |||
49 | ## Compiled version | 76 | ## Compiled version |
50 | 77 | ||
51 | A compiled version can be created with `pyinstaller`: | 78 | A compiled version can be created with `pyinstaller`: |
diff --git a/documentation_fr.md b/documentation_fr.md index d7d2f2c..76a4b97 100644 --- a/documentation_fr.md +++ b/documentation_fr.md | |||
@@ -10,6 +10,8 @@ appui sur une touche. | |||
10 | 10 | ||
11 | ## Pré-requis et installation | 11 | ## Pré-requis et installation |
12 | 12 | ||
13 | (Voir la section suivante pour Windows) | ||
14 | |||
13 | - Il faut avoir ffmpeg d'installé. Pour cela, il faut installer le paquet `libav-tools` (debian) : | 15 | - Il faut avoir ffmpeg d'installé. Pour cela, il faut installer le paquet `libav-tools` (debian) : |
14 | 16 | ||
15 | sudo apt-get install libav-tools | 17 | sudo apt-get install libav-tools |
@@ -47,6 +49,30 @@ Pour compiler kivy avec la librairie SDL2, il faut certains paquets installés: | |||
47 | cf [Installation | 49 | cf [Installation |
48 | Kivy](https://kivy.org/docs/installation/installation-linux.html) | 50 | Kivy](https://kivy.org/docs/installation/installation-linux.html) |
49 | 51 | ||
52 | ## Installation sous Windows | ||
53 | |||
54 | Le processus suivant a permis d’installer music sampler sous windows: | ||
55 | |||
56 | - [Installer python 3.7.\* (prendre la version 64bit!)](https://www.python.org/downloads/windows) | ||
57 | - Dans une invite de commande (`cmd.exe`), lancer: | ||
58 | |||
59 | pip install music_sampler | ||
60 | pip install docutils pygments pypiwin32 PySDL2 kivy.deps.sdl2 kivy.deps.glew | ||
61 | |||
62 | - [Télécharger ffmpeg (64bit, static)](https://ffmpeg.zeranoe.com/builds/) | ||
63 | et mettre le contenu du dossier `bin` dans le dossier avec les musiques | ||
64 | - [Télécharger la police Ubuntu](https://www.1001fonts.com/ubuntu-font.html) | ||
65 | et installer Ubuntu-R et Ubuntu-B (Regular et Bold) *pour tous les utilisateurs* (clic droit sur la police) | ||
66 | - [Télécharger la police Symbola](https://fontlibrary.org/en/font/symbola) | ||
67 | et l’installer *pour tous les utilisateurs* (clic droit sur la police) | ||
68 | - Écrire un fichier `run.bat` avec: | ||
69 | |||
70 | :::bash | ||
71 | @echo off | ||
72 | music_sampler | ||
73 | |||
74 | - Lancer `run.bat` pour démarrer le programme. | ||
75 | |||
50 | ## Version compilée | 76 | ## Version compilée |
51 | 77 | ||
52 | Une version compilée peut être créée avec pyinstaller: | 78 | Une version compilée peut être créée avec pyinstaller: |
diff --git a/music_sampler/app.py b/music_sampler/app.py index 74f0acb..3fd6f51 100644 --- a/music_sampler/app.py +++ b/music_sampler/app.py | |||
@@ -68,5 +68,6 @@ class MusicSamplerApp(App): | |||
68 | return Screen() | 68 | return Screen() |
69 | 69 | ||
70 | def main(): | 70 | def main(): |
71 | Builder.load_file(path() + "/music_sampler.kv") | 71 | with open(path() + "/music_sampler.kv", encoding='utf8') as f: |
72 | Builder.load_string(f.read()) | ||
72 | MusicSamplerApp().run() | 73 | MusicSamplerApp().run() |