diff --git a/Musicreater/data.py b/Musicreater/data.py index afa1de9..5371f92 100644 --- a/Musicreater/data.py +++ b/Musicreater/data.py @@ -765,6 +765,40 @@ class SingleMusic(List[SingleTrack]): super().__init__(*args) + @classmethod + def from_track_list( + cls, + track_list: Sequence[SingleTrack], + name: str = "未命名乐曲", + creator: str = "未命名制作者", + original_author: str = "未命名原曲作", + description: str = "无简介", + credits: str = "保留所有权利。All Rights Reserved.", + extra_information: Dict[str, Any] = {}, + ) -> "SingleMusic": + single_music = cls( + name=name, + creator=creator, + original_author=original_author, + description=description, + credits=credits, + extra_information=extra_information, + ) + single_music.extend(track_list) + return single_music + + def copy(self) -> "SingleMusic": + + # 没想到真的会用到全曲复制…… + return self.from_track_list( + track_list=[tr.copy(with_argument_curve=True,) for tr in self], + name=self.music_name, + creator=self.music_creator, + original_author=self.music_original_author, + description=self.music_description, + credits=self.music_credits, + ) + @property def track_amount(self) -> int: """音轨数""" diff --git a/README.md b/README.md index e89c3f8..c1a1b53 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@
-
@@ -41,13 +41,13 @@
## 介绍 🚀
-音·创 是一款免费开源的针对 **《我的世界》** 音乐的支持库
+音·创 是一款极致优化的针对 **《我的世界》** 音乐的支持库,通过插件化的设计,支持多种处理方式。
欢迎加群:[861684859](https://jq.qq.com/?_wv=1027&k=hpeRxrYr)
> **注意** 本仓库内的项目仅仅是支持库,其用户为基岩版音乐相关软件的开发者
>
-> 面向常规用户的 **基岩版音乐转换工具** 请参阅:[伶伦转换器](../../../Linglun-Converter)
+> 面向常规用户的 **基岩版音乐转换工具** 请参阅:[伶伦转换器](../../../Linglun-Converter)【已停止更新】
>
> 我们也正在开发面向高级用户的 **基岩版音乐编辑工具**(数字音频工作站):[伶伦](../../../LinglunStudio)
@@ -60,22 +60,18 @@
pip install --upgrade Musicreater
```
-- 如果无法更新最新,可以尝试:
+- 如果无法更新至最新,可以尝试使用 pypi 的默认源:
```bash
pip install --upgrade -i https://pypi.python.org/simple Musicreater
```
-- 克隆仓库并安装(最新内容但**不推荐**)
+- 采用最新的开发分支下的滚动更新:
```bash
- git clone https://gitee.com/TriM-Organization/Musicreater.git
- cd Musicreater
- python setup.py install
+ pip install "git+https://gitee.com/TriM-Organization/Musicreater.git@develop[dev]"
```
-以上命令中 `python`、`pip` 请依照各个环境不同灵活更换,可能为`python3`或`pip3`之类。
-
## 文档 📄
[生成文件的使用](./docs/%E7%94%9F%E6%88%90%E6%96%87%E4%BB%B6%E7%9A%84%E4%BD%BF%E7%94%A8%E8%AF%B4%E6%98%8E.md)
diff --git a/README_EN.md b/README_EN.md
index a954863..4751650 100644
--- a/README_EN.md
+++ b/README_EN.md
@@ -14,7 +14,7 @@
@@ -39,15 +39,15 @@
## Introduction🚀
-Musicreater is a free open-source library used for handling with digital musics that being able to be played in _Minecraft_.
+Musicreater is a cost free, open-source, highly optimized library designed for editing digital musics that being able to be played in _Minecraft_. With the plugins, the library supports a lot of processing methods.
Welcome to join our QQ group: [861684859](https://jq.qq.com/?_wv=1027&k=hpeRxrYr)
> **NOTICE** The project inside this repository is only the support library, which is mainly for the developers of music related software for _Minecraft: Bedrock Edition_.
>
-> The _Bedrock Edition music convertor_ which is for common users is in [Linglun Converter](../../../Linglun-Converter).
+> The _Bedrock Edition music convertor_ which is for common users is in [Linglun Converter](../../../Linglun-Converter). [Archived]
>
-> We are also developing a _BE music editor_ (digital audio workstation): [Linglun](../../../LinglunStudio)
+> We are also developing a _BE music editor_ (sth like a digital audio workstation): [Linglun](../../../LinglunStudio)
## Installation 🔳
@@ -58,17 +58,9 @@ Welcome to join our QQ group: [861684859](https://jq.qq.com/?_wv=1027&k=hpeRxrYr
pip install Musicreater --upgrade
```
-- If above command cannot fetch latest version, try:
-
+- Clone the letest version under development:
```bash
- pip install -i https://pypi.python.org/simple Musicreater --upgrade
- ```
-
-- Clone repo and Install (Latest but **NOT RECOMMANDED**):
- ```bash
- git clone https://github.com/TriM-Organization/Musicreater.git
- cd Musicreater
- python setup.py install
+ pip install "git+https://github.com/TriM-Organization/Musicreater.git@develop[dev]"
```
Commands such as `python`、`pip` could be changed to some like `python3` or `pip3` according to the difference of platforms.
@@ -117,7 +109,7 @@ Meet problems? Welcome to give out your issue [here](../../issues/new)!
Want to get in contact of developers? Welcome to join our [Chat QQ group](https://jq.qq.com/?_wv=1027&k=hpeRxrYr).
-Or contact us via [TriM-Org Official Email](mailto:TriM-Organization@hotmail.com)!
+Or contact us via [TriM-Org Email](mailto:TriM-Organization@hotmail.com)!
---