-
-
Notifications
You must be signed in to change notification settings - Fork 130
Musicpy algorithms 模块介绍
Rainbow Dreamer edited this page Nov 13, 2022
·
1 revision
有一些我正在开发的基于musicpy的音乐分析算法,你可以在musicpy包的algorithms模块中找到它们。
algorithms模块在musicpy中默认以alg
的名称导入,所以你可以像这样使用musicpy的algorithms模块:
import musicpy as mp
chord_type = mp.alg.detect(chord('C,E,G,B'))
>>> print(chord_type)
Cmaj7
# detect函数是algorithms模块中的音乐分析算法之一
算法模块中的大部分音乐分析算法仍在开发中,我将在业余时间尝试为一些相对成熟的算法写文档。
- Basic syntax of note type
- Basic syntax of chord type
- Basic syntax of scale type
- Basic syntax of piece type
- Basic syntax of track type
- Basic syntax of tempo type
- Basic syntax of pitch_bend type
- Basic syntax of pan type
- Basic syntax of volume type
- Basic syntax of drum type
- Basic syntax of rhythm type
- Musicpy composition code examples Part 1
- Musicpy composition code examples Part 2
- Musicpy composition code examples Part 3
- Introduction of musicpy algorithms module
- The algorithm to split the main melody and chords from a piece of music
- The algorithm to determine the chord type of any group of notes according to the logic of music theory
- The algorithm to analyze the chord progressions of a piece of music
- The algorithm to analyze tonality and modulations in a piece of music