mirror of
https://github.com/TriM-Organization/Musicreater.git
synced 2025-03-04 21:04:16 +08:00
更新安卓端的使用方法说明
This commit is contained in:
parent
6cde168bf3
commit
0b3a19faad
158
docs/功能使用说明.md
158
docs/功能使用说明.md
@ -98,7 +98,7 @@
|
|||||||
|
|
||||||
感谢群友Mono帮我们发现这个问题
|
感谢群友Mono帮我们发现这个问题
|
||||||
|
|
||||||
## Linux操作系统
|
## 里纽克斯(Linux)操作系统
|
||||||
|
|
||||||
|
|
||||||
### 运行环境安装
|
### 运行环境安装
|
||||||
@ -141,7 +141,9 @@
|
|||||||
|
|
||||||
完美!
|
完美!
|
||||||
|
|
||||||
接着,我们来确认,Python自带的包管理器pip是否安装到位:
|
1. 检查并安装pip包管理器依赖
|
||||||
|
|
||||||
|
我们在安装依赖库之前,应该确认一下,Python自带的包管理器pip是否安装到位:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
python -m pip # 确认pip是否安装
|
python -m pip # 确认pip是否安装
|
||||||
@ -200,6 +202,158 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## 安卓(Android)与安卓衍生操作系统
|
||||||
|
|
||||||
|
|
||||||
|
### 使用前的准备工作
|
||||||
|
|
||||||
|
0. 安装终端工具
|
||||||
|
|
||||||
|
这里我们选用 **Termux** 作为我们的终端工具来安装,这是一个强大的终端模拟器,旨在安卓环境下模拟Linux的软件包环境。
|
||||||
|
|
||||||
|
下载可以通过 [GitHub](https://github.com/termux/termux-app/releases) 或者 [F-Droid](https://f-droid.org/en/packages/com.termux/) ,个人建议选择 F-Droid 源,因为在国内可以访问得到,而 GitHub 源就看运气。
|
||||||
|
|
||||||
|
下载后直接按照,打开后可以看到一个类似这样的界面:
|
||||||
|
|
||||||
|
<img src="https://foruda.gitee.com/images/1665933025120627254/a0479618_9911226.jpeg">
|
||||||
|
|
||||||
|
恭喜你,你已经获得了一个极客般流畅地操作你手机的终端工具。
|
||||||
|
|
||||||
|
1. 安装运行环境
|
||||||
|
|
||||||
|
接下来,我们就要来安装一下 **Python** 运行环境了,这是运行 **Python** 源代码必要的。
|
||||||
|
|
||||||
|
首先,我估计你等不了多久,急得要死,所以我们要让下载速度稍微快一点,先来换个源。换源要手动编辑个文档,那用啥?用普通的编辑器肯定可以,于是我们就让他更普通一点,用**nano**吧!
|
||||||
|
|
||||||
|
在 **Termux** 中,输入以下指令:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
export EDITOR=nano
|
||||||
|
apt edit-sources
|
||||||
|
```
|
||||||
|
|
||||||
|
你可能会看到如下一个简单的界面:
|
||||||
|
|
||||||
|
<img src="https://foruda.gitee.com/images/1665933104313107707/41108f03_9911226.jpeg">
|
||||||
|
|
||||||
|
好,让我们动起你的双手,把它变成这样吧:
|
||||||
|
|
||||||
|
<img src="https://foruda.gitee.com/images/1665933122534781330/3887a901_9911226.jpeg">
|
||||||
|
|
||||||
|
- 图片中的文件,最后应该加入的两行为:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
deb https://mirrors.ustc.edu.cn/termux/apt/termux-main/ stable main
|
||||||
|
deb https://mirrors.tuna.tsinghua.edu.cn/termux/apt/termux-main/ stable main
|
||||||
|
```
|
||||||
|
|
||||||
|
然后键入 `Ctrl`+`S`,再键入 `Ctrl`+`X`,你会见到差不多如下的提示:
|
||||||
|
|
||||||
|
```text
|
||||||
|
Your '/data/data/com.termux/files/usr/etc/apt/sources.list' file changed. Please run 'apt-get update'.
|
||||||
|
```
|
||||||
|
|
||||||
|
那就遵循它的指引,输入:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
apt-get update
|
||||||
|
```
|
||||||
|
|
||||||
|
然后就完美了,我们来安装 **Python** 吧!
|
||||||
|
|
||||||
|
```bash
|
||||||
|
apt-get install python3
|
||||||
|
```
|
||||||
|
|
||||||
|
如果遇到提示问是否继续,那就输入`Y`表示是,如图。
|
||||||
|
|
||||||
|
<img src="https://foruda.gitee.com/images/1665933181440420034/7f0fb5fd_9911226.jpeg">
|
||||||
|
|
||||||
|
如果你安装成功,应该是差不多这样的:
|
||||||
|
|
||||||
|
<img src="https://foruda.gitee.com/images/1665933238339972260/a9f06f4f_9911226.jpeg">
|
||||||
|
|
||||||
|
我们来试一试 **Python** 是不是安装成了吧,输入
|
||||||
|
|
||||||
|
```bash
|
||||||
|
python3 -V
|
||||||
|
```
|
||||||
|
|
||||||
|
如果输出了形如 `Python 3.X.X` 的提示,则完成。
|
||||||
|
|
||||||
|
确认完成之后,我们来安装一下依赖库:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# 首先换源
|
||||||
|
pip config set global.index-url http://mirrors.aliyun.com/pypi/simple/
|
||||||
|
# 然后安装
|
||||||
|
pip install mido
|
||||||
|
pip install brotli
|
||||||
|
```
|
||||||
|
|
||||||
|
- 如果出现以下情况,真是死了鬼的,我们要来再搞个设置:
|
||||||
|
|
||||||
|
<img src="https://foruda.gitee.com/images/1665933289612919459/b87b7804_9911226.jpeg">
|
||||||
|
|
||||||
|
我们来修改收信任的源设置:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
pip config set global.trusted-host mirrors.aliyun.com/
|
||||||
|
```
|
||||||
|
|
||||||
|
之后再来安装即可
|
||||||
|
|
||||||
|
```bash
|
||||||
|
pip install mido
|
||||||
|
pip install brotli
|
||||||
|
```
|
||||||
|
|
||||||
|
安装成功后您可能会见到类似下图的提示:
|
||||||
|
|
||||||
|
<img src="https://foruda.gitee.com/images/1662737676719454287/f61a70f7_9911226.png">
|
||||||
|
|
||||||
|
3. 安装下载工具
|
||||||
|
|
||||||
|
既然已经有了运行环境,那么我们就需要下载下我们的**音·创库版示例代码**工具,我非常推崇**Git**这种方便快捷好用还能下载仓库的代码管理器,这个世界上你也找不到第二个,所以我们来安装一下:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
pkg install git
|
||||||
|
```
|
||||||
|
|
||||||
|
安装完成后记得测试一下:
|
||||||
|
|
||||||
|
<img src="https://foruda.gitee.com/images/1665933331269483373/9374c85d_9911226.jpeg">
|
||||||
|
|
||||||
|
### 本代码库的下载与使用
|
||||||
|
|
||||||
|
1. 使用Git下载本库及其示例代码
|
||||||
|
|
||||||
|
```bash
|
||||||
|
git clone -b pkgver https://gitee.com/EillesWan/Musicreater.git MSCTpkgver
|
||||||
|
```
|
||||||
|
|
||||||
|
当上述命令执行成功,你会在执行此命令的所在位置发现一个名为 `MSCTpkgver` 的文件夹,其中包含的正是我们心心念念下载的本程序和示例代码。
|
||||||
|
而我们要运行的也正是示例代码,因此,赶快进入下载到的文件夹:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cd MSCTpkgver
|
||||||
|
```
|
||||||
|
|
||||||
|
1. 开始使用
|
||||||
|
|
||||||
|
在目录下打开终端,执行以下命令:(选择你需要的)
|
||||||
|
|
||||||
|
```bash
|
||||||
|
python demo_convert.py
|
||||||
|
python demo_convert_bdx_byDelay.py
|
||||||
|
```
|
||||||
|
|
||||||
|
运行成功了,哦耶!
|
||||||
|
|
||||||
|
<img src="https://foruda.gitee.com/images/1665933366784631363/db9f80f6_9911226.jpeg">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user