mirror of
https://github.com/TriM-Organization/Musicreater.git
synced 2026-07-31 23:44:43 +00:00
全曲复制功能
This commit is contained in:
@@ -765,6 +765,40 @@ class SingleMusic(List[SingleTrack]):
|
|||||||
|
|
||||||
super().__init__(*args)
|
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
|
@property
|
||||||
def track_amount(self) -> int:
|
def track_amount(self) -> int:
|
||||||
"""音轨数"""
|
"""音轨数"""
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
</img>
|
</img>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<h3 align="center">一款免费开源的《我的世界》数字音频支持库。</h3>
|
<h3 align="center">一款高性能、插件化的《我的世界》数字音频支持库。</h3>
|
||||||
|
|
||||||
<p align="center">
|
<p align="center">
|
||||||
<img src="https://img.shields.io/badge/BUILD%20WITH%20LOVE-FF3432?style=for-the-badge">
|
<img src="https://img.shields.io/badge/BUILD%20WITH%20LOVE-FF3432?style=for-the-badge">
|
||||||
@@ -41,13 +41,13 @@
|
|||||||
|
|
||||||
## 介绍 🚀
|
## 介绍 🚀
|
||||||
|
|
||||||
音·创 是一款免费开源的针对 **《我的世界》** 音乐的支持库
|
音·创 是一款极致优化的针对 **《我的世界》** 音乐的支持库,通过插件化的设计,支持多种处理方式。
|
||||||
|
|
||||||
欢迎加群:[861684859](https://jq.qq.com/?_wv=1027&k=hpeRxrYr)
|
欢迎加群:[861684859](https://jq.qq.com/?_wv=1027&k=hpeRxrYr)
|
||||||
|
|
||||||
> **注意** 本仓库内的项目仅仅是支持库,其用户为基岩版音乐相关软件的开发者
|
> **注意** 本仓库内的项目仅仅是支持库,其用户为基岩版音乐相关软件的开发者
|
||||||
>
|
>
|
||||||
> 面向常规用户的 **基岩版音乐转换工具** 请参阅:[伶伦转换器](../../../Linglun-Converter)
|
> 面向常规用户的 **基岩版音乐转换工具** 请参阅:[伶伦转换器](../../../Linglun-Converter)【已停止更新】
|
||||||
>
|
>
|
||||||
> 我们也正在开发面向高级用户的 **基岩版音乐编辑工具**(数字音频工作站):[伶伦](../../../LinglunStudio)
|
> 我们也正在开发面向高级用户的 **基岩版音乐编辑工具**(数字音频工作站):[伶伦](../../../LinglunStudio)
|
||||||
|
|
||||||
@@ -60,22 +60,18 @@
|
|||||||
pip install --upgrade Musicreater
|
pip install --upgrade Musicreater
|
||||||
```
|
```
|
||||||
|
|
||||||
- 如果无法更新最新,可以尝试:
|
- 如果无法更新至最新,可以尝试使用 pypi 的默认源:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
pip install --upgrade -i https://pypi.python.org/simple Musicreater
|
pip install --upgrade -i https://pypi.python.org/simple Musicreater
|
||||||
```
|
```
|
||||||
|
|
||||||
- 克隆仓库并安装(最新内容但**不推荐**)
|
- 采用最新的开发分支下的滚动更新:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git clone https://gitee.com/TriM-Organization/Musicreater.git
|
pip install "git+https://gitee.com/TriM-Organization/Musicreater.git@develop[dev]"
|
||||||
cd Musicreater
|
|
||||||
python setup.py install
|
|
||||||
```
|
```
|
||||||
|
|
||||||
以上命令中 `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)
|
[生成文件的使用](./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)
|
||||||
|
|||||||
+7
-15
@@ -14,7 +14,7 @@
|
|||||||
</img>
|
</img>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<h3 align="center">A cost free and open-source library for handling with <i>Minecraft</i> digital music.</h3>
|
<h3 align="center">A blazing fast and plugin-supported library for editing <i>Minecraft</i> digital music.</h3>
|
||||||
|
|
||||||
<p align="center">
|
<p align="center">
|
||||||
<img src="https://img.shields.io/badge/BUILD%20WITH%20LOVE-FF3432?style=for-the-badge">
|
<img src="https://img.shields.io/badge/BUILD%20WITH%20LOVE-FF3432?style=for-the-badge">
|
||||||
@@ -39,15 +39,15 @@
|
|||||||
|
|
||||||
## Introduction🚀
|
## 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)
|
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_.
|
> **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 🔳
|
## Installation 🔳
|
||||||
@@ -58,17 +58,9 @@ Welcome to join our QQ group: [861684859](https://jq.qq.com/?_wv=1027&k=hpeRxrYr
|
|||||||
pip install Musicreater --upgrade
|
pip install Musicreater --upgrade
|
||||||
```
|
```
|
||||||
|
|
||||||
- If above command cannot fetch latest version, try:
|
- Clone the letest version under development:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
pip install -i https://pypi.python.org/simple Musicreater --upgrade
|
pip install "git+https://github.com/TriM-Organization/Musicreater.git@develop[dev]"
|
||||||
```
|
|
||||||
|
|
||||||
- Clone repo and Install (Latest but **NOT RECOMMANDED**):
|
|
||||||
```bash
|
|
||||||
git clone https://github.com/TriM-Organization/Musicreater.git
|
|
||||||
cd Musicreater
|
|
||||||
python setup.py install
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Commands such as `python`、`pip` could be changed to some like `python3` or `pip3` according to the difference of platforms.
|
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).
|
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)!
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user