Datasets:
audio
audioduration (s) 15.4
778
| mel
imagewidth (px) 1.33k
67k
| system
class label 12
classes | tonic
class label 11
classes | pattern
class label 5
classes | type
class label 6
classes | mode
stringlengths 4
10
|
---|---|---|---|---|---|---|
7G
| 7G
| 0Gong
| 4Heptatonic_Qingyue
| G宫七声清乐 |
||
2D
| 2D
| 0Gong
| 0Pentatonic
| D宫五声调式 |
||
4E
| 1#C/bD
| 4Yu
| 0Pentatonic
| 升C羽五声 |
||
7G
| 7G
| 0Gong
| 2Hexatonic_Biangong
| G宫六声+变宫 |
||
2D
| 6#F/bG
| 2Jue
| 0Pentatonic
| #F角五声 |
||
0C
| 7G
| 3Zhi
| 4Heptatonic_Qingyue
| G徵清乐七声调式 |
||
7G
| 9A
| 1Shang
| 4Heptatonic_Qingyue
| A商七声清乐 |
||
2D
| 2D
| 0Gong
| 0Pentatonic
| D宫五声调式 |
||
2D
| 6#F/bG
| 2Jue
| 0Pentatonic
| #F角五声 |
||
7G
| 9A
| 1Shang
| 0Pentatonic
| A商五声 |
||
5F
| 2D
| 4Yu
| 0Pentatonic
| D羽五声 |
||
2D
| 2D
| 0Gong
| 4Heptatonic_Qingyue
| D宫七声清乐 |
||
10#A/bB
| 2D
| 2Jue
| 0Pentatonic
| D角五声 |
||
0C
| 2D
| 1Shang
| 3Heptatonic_Yayue
| D商七声雅乐 |
||
7G
| 11B
| 2Jue
| 2Hexatonic_Biangong
| B角六声加变宫 |
||
2D
| 2D
| 0Gong
| 0Pentatonic
| D宫五声 |
||
5F
| 5F
| 0Gong
| 4Heptatonic_Qingyue
| F宫清乐 |
||
2D
| 4E
| 1Shang
| 0Pentatonic
| E商五声 |
||
3#D/bE
| 3#D/bE
| 0Gong
| 0Pentatonic
| 降E宫五声 |
||
5F
| 9A
| 2Jue
| 0Pentatonic
| A角五声 |
||
3#D/bE
| 5F
| 1Shang
| 4Heptatonic_Qingyue
| F商七声清乐 |
||
5F
| 2D
| 4Yu
| 0Pentatonic
| D羽五声调式 |
||
6#F/bG
| 6#F/bG
| 0Gong
| 0Pentatonic
| #F宫五声 |
||
2D
| 11B
| 4Yu
| 2Hexatonic_Biangong
| B羽六声+变宫 |
||
0C
| 0C
| 0Gong
| 2Hexatonic_Biangong
| C宫六声+变宫 |
||
7G
| 7G
| 0Gong
| 4Heptatonic_Qingyue
| G宫清乐七声 |
||
5F
| 5F
| 0Gong
| 0Pentatonic
| F宫五声 |
||
0C
| 0C
| 0Gong
| 0Pentatonic
| C宫五声 |
||
7G
| 2D
| 3Zhi
| 0Pentatonic
| D徵五声 |
||
2D
| 4E
| 1Shang
| 4Heptatonic_Qingyue
| E商七声清乐 |
||
5F
| 9A
| 2Jue
| 0Pentatonic
| A角五声 |
||
2D
| 4E
| 1Shang
| 4Heptatonic_Qingyue
| E商清乐七声调式 |
||
5F
| 2D
| 4Yu
| 4Heptatonic_Qingyue
| D羽七声清乐 |
||
2D
| 9A
| 3Zhi
| 4Heptatonic_Qingyue
| A徵清乐七声调式 |
||
8#G/bA
| 5F
| 4Yu
| 0Pentatonic
| F羽五声 |
||
2D
| 9A
| 3Zhi
| 0Pentatonic
| A徵五声 |
||
3#D/bE
| 3#D/bE
| 0Gong
| 1Hexatonic_Qingjue
| 降E宫六声+清角 |
||
5F
| 7G
| 1Shang
| 0Pentatonic
| G商五声 |
||
2D
| 9A
| 3Zhi
| 0Pentatonic
| A徵五声调式 |
||
0C
| 0C
| 0Gong
| 0Pentatonic
| C宫五声 |
||
10#A/bB
| 0C
| 1Shang
| 0Pentatonic
| C商五声调式 |
||
10#A/bB
| 2D
| 2Jue
| 0Pentatonic
| D角五声 |
||
10#A/bB
| 2D
| 2Jue
| 0Pentatonic
| D角五声 |
||
5F
| 2D
| 4Yu
| 1Hexatonic_Qingjue
| D羽六声加清角 |
||
10#A/bB
| 2D
| 2Jue
| 0Pentatonic
| D角五声 |
||
0C
| 9A
| 4Yu
| 0Pentatonic
| A羽五声调式 |
||
0C
| 2D
| 1Shang
| 0Pentatonic
| D商五声 |
||
2D
| 9A
| 3Zhi
| 0Pentatonic
| A徵五声调式 |
||
2D
| 4E
| 1Shang
| 0Pentatonic
| E商五声 |
||
2D
| 11B
| 4Yu
| 0Pentatonic
| B羽五声 |
||
0C
| 9A
| 4Yu
| 2Hexatonic_Biangong
| A羽六声+变宫 |
||
2D
| 9A
| 3Zhi
| 4Heptatonic_Qingyue
| A徵七声清乐 |
||
1#C/bD
| 5F
| 2Jue
| 2Hexatonic_Biangong
| F角六声+变宫 |
||
2D
| 2D
| 0Gong
| 1Hexatonic_Qingjue
| D宫六声+清角 |
||
10#A/bB
| 2D
| 2Jue
| 0Pentatonic
| D角五声 |
||
5F
| 5F
| 0Gong
| 0Pentatonic
| F宫五声调式 |
||
6#F/bG
| 3#D/bE
| 4Yu
| 0Pentatonic
| bE羽五声 |
||
5F
| 5F
| 0Gong
| 0Pentatonic
| F宫五声调式 |
||
7G
| 9A
| 1Shang
| 3Heptatonic_Yayue
| A商七声雅乐 |
||
7G
| 7G
| 0Gong
| 2Hexatonic_Biangong
| G宫六声+变宫 |
||
3#D/bE
| 3#D/bE
| 0Gong
| 0Pentatonic
| bE宫五声调式 |
||
5F
| 5F
| 0Gong
| 0Pentatonic
| F宫五声调式 |
||
2D
| 4E
| 1Shang
| 4Heptatonic_Qingyue
| E商七声清乐 |
||
7G
| 2D
| 3Zhi
| 0Pentatonic
| D徵五声调式 |
||
0C
| 0C
| 0Gong
| 1Hexatonic_Qingjue
| C宫六声加清角 |
||
7G
| 7G
| 0Gong
| 0Pentatonic
| G宫五声 |
||
9A
| 9A
| 0Gong
| 0Pentatonic
| A宫五声调式 |
||
5F
| 0C
| 3Zhi
| 0Pentatonic
| C徵五声调式 |
||
2D
| 6#F/bG
| 2Jue
| 0Pentatonic
| #F角五声 |
||
7G
| 11B
| 2Jue
| 0Pentatonic
| B角五声 |
||
9A
| 6#F/bG
| 4Yu
| 2Hexatonic_Biangong
| 升F羽六声+变宫 |
||
2D
| 2D
| 0Gong
| 0Pentatonic
| D宫五声 |
||
7G
| 2D
| 3Zhi
| 2Hexatonic_Biangong
| D徵六声调式?变宫 |
||
5F
| 0C
| 3Zhi
| 0Pentatonic
| C徵五声调式 |
||
2D
| 2D
| 0Gong
| 0Pentatonic
| D宫五声 |
||
2D
| 2D
| 0Gong
| 0Pentatonic
| D宫五声调式 |
||
0C
| 0C
| 0Gong
| 0Pentatonic
| C宫五声调式 |
||
9A
| 4E
| 3Zhi
| 2Hexatonic_Biangong
| E徵六声+变宫 |
||
2D
| 2D
| 0Gong
| 4Heptatonic_Qingyue
| D宫七声清乐 |
||
5F
| 5F
| 0Gong
| 0Pentatonic
| F宫五声调式 |
||
2D
| 4E
| 1Shang
| 3Heptatonic_Yayue
| E商七声雅乐 |
||
10#A/bB
| 0C
| 1Shang
| 0Pentatonic
| C商五声 |
||
0C
| 9A
| 4Yu
| 4Heptatonic_Qingyue
| A羽清乐七声 |
||
2D
| 2D
| 0Gong
| 0Pentatonic
| D宫五声调式 |
||
7G
| 11B
| 2Jue
| 0Pentatonic
| B角五声 |
||
3#D/bE
| 0C
| 4Yu
| 0Pentatonic
| C羽五声调式 |
||
0C
| 9A
| 4Yu
| 2Hexatonic_Biangong
| A羽六声+变宫 |
||
7G
| 7G
| 0Gong
| 0Pentatonic
| G宫五声 |
||
8#G/bA
| 10#A/bB
| 1Shang
| 0Pentatonic
| 降B商五声 |
||
2D
| 2D
| 0Gong
| 1Hexatonic_Qingjue
| D宫六声加清角 |
||
2D
| 11B
| 4Yu
| 4Heptatonic_Qingyue
| B羽七声清乐 |
||
1#C/bD
| 1#C/bD
| 0Gong
| 0Pentatonic
| #C宫五声 |
||
0C
| 9A
| 4Yu
| 2Hexatonic_Biangong
| A羽六声+变宫 |
||
7G
| 2D
| 3Zhi
| 4Heptatonic_Qingyue
| D徵七声清乐 |
||
2D
| 2D
| 0Gong
| 0Pentatonic
| D宫五声 |
||
7G
| 2D
| 3Zhi
| 5Heptatonic_Yanyue
| D徵七声燕乐 |
||
0C
| 7G
| 3Zhi
| 4Heptatonic_Qingyue
| G徵七声清乐 |
||
9A
| 11B
| 1Shang
| 2Hexatonic_Biangong
| B商六声加变宫 |
||
2D
| 11B
| 4Yu
| 0Pentatonic
| B羽五声调式 |
||
7G
| 2D
| 3Zhi
| 0Pentatonic
| D徵五声调式 |
Dataset Card for Chinese National Pentatonic Mode Dataset
Original Content
The dataset is initially created by [1]. It is then expanded and used for automatic Chinese national pentatonic mode recognition by [2], to which readers can refer for more details along with a brief introduction to the modern theory of Chinese pentatonic mode. This includes the definition of "system", "tonic", "pattern", and "type," which will be included in one unified table during our integration process as described below. The original dataset includes audio recordings and annotations of five modes of Chinese music, encompassing the Gong (宫), Shang (商), Jue (角), Zhi (徵), and Yu (羽) modes. The total recording number is 287.
Integration
The labels in this dataset were initially stored in a separate CSV file, which led to certain usability issues. Through our integration, labels are integrated with audio data into a single dictionary. After the integration, the data structure consists of seven columns: the first and second columns denote the audio recording (sampled at 44,100 Hz) and mel spectrogram. The subsequent columns represent the system, tonic, pattern, and type of the musical piece, respectively. The final column contains an additional Chinese name of the mode. The total recording number remains at 287, and the total duration is 858.63 minutes. The average duration is 179.51 seconds.
We have constructed the default subset of this integrated version of the dataset, and its data structure can be viewed in the viewer. As this dataset has been cited and used in published articles, no further eval subset needs to be constructed for evaluation. Because the default subset is multi-labelled, it is difficult to maintain the integrity of labels in the split for all label columns, hence only a single split for the training set is provided. Users can perform their own splits on specified columns according to their specific downstream tasks. Building on the default subset, we segmented the audio into 20-second slices and used zero padding to complete segments shorter than 20 seconds. The audio was then converted into mel, CQT, and chroma spectrograms. This process resulted in the construction of the eval subset for dataset evaluation experiments.
Statistics
In this part, we provide statistics for the "pattern" in the dataset, which includes five categories: Gong, Shang, Jue, Zhi, and Yu. Our evaluation is also conducted on "pattern." In a Western context, identifying these patterns is analogous to identifying a musical mode, such as determining whether a piece of music is in the Dorian mode or Lydian mode. These patterns form the core of modern Chinese pentatonic mode theory.
To begin with, Fig. 1 presents the number of audio clips by category. Gong accounts for the largest proportion among all modes, making up 28.6% of the dataset with 82 audio clips. The second-largest mode is Yu, accounting for 20.6% with 59 audio clips. The smallest mode is Shang, which accounts for 15.7% with only 45 audio clips. The difference in proportion between the largest and smallest modes is 12.9%.
Moving on to Fig. 2, it displays the total audio duration by category. The total duration of Gong audio is significantly longer than that of other modes, at 290.6 minutes. The second-longest mode is Yu, with a total duration of 227.7 minutes, consistent with the proportions shown in the pie chart. However, the shortest mode is not Shang, which has the smallest proportion in the pie chart, but rather Jue, with a total duration of only 69.13 minutes. The difference in duration between the longest and shortest modes is 221.47 minutes.
When we consider the pie chart and the duration statistics together, they clearly expose a data imbalance problem within the dataset. Finally, Fig. 3 depicts the number of audio clips across various duration intervals. The time interval with the highest concentration of audio clips is 185-270 seconds, closely followed by 15-100 seconds. However, once we go beyond 355 seconds, the number of audio clips experiences a sharp decline, with only single-digit counts in these longer intervals.
Statistical items | Values |
---|---|
Total count | 287 |
Total duration(s) | 51517.97027494332 |
Mean duration(s) | 179.50512290921014 |
Min duration(s) | 15.413333333333334 |
Max duration(s) | 778.0065306122449 |
Classes with max durs | Jue, Zhi |
Default Subset Structure
Data Instances
.zip(.wav), .csv
Data Fields
Audio Links, Mel Image, Tonggong System, Mode Tonic/Pattern/Type, Mode Chinese Name
Data Splits
train / validation / test
Labels
System
TongGong System | C | #C/bD | D | #D/bE | E | F | #F/bG | G | #G/bA | A | #A/bB | B |
---|---|---|---|---|---|---|---|---|---|---|---|---|
Label | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 |
Mode
Pitch of Tonic (The rules are the same as the TongGong system)
Pattern
Mode Pattern | Gong | Shang | Jue | Zhi | Yu |
---|---|---|---|---|---|
Label | 0 | 1 | 2 | 3 | 4 |
Type
Mode Type | Pentatonic | Hexatonic (Qingjue) | Hexatonic (Biangong) | Heptatonic Yayue | Heptatonic Qingyue | Heptatonic Yanyue |
---|---|---|---|---|---|---|
Label | 0 | 1 | 2 | 3 | 4 | 5 |
Dataset Description
Dataset Summary
Each data entry of the dataset consists of seven columns: the first column denotes the audio recording in .wav format, sampled at 22,050 Hz. The second and third presents the name of the piece and artist. The subsequent columns represent the system, tonic, pattern, and type of the musical piece, respectively. The eighth column contains an additional Chinese name of the mode, while the final column indicates the duration of the audio in seconds.
Supported Tasks and Leaderboards
MIR, audio classification, music mode classification
Languages
Chinese, English
Usage
Default Subset
from datasets import load_dataset
ds = load_dataset("ccmusic-database/CNPM", name="default", split="train")
for data in ds:
print(data)
Eval Subset
from datasets import load_dataset
ds = load_dataset("ccmusic-database/CNPM", name="eval")
for item in ds["train"]:
print(item)
for item in ds["validation"]:
print(item)
for item in ds["test"]:
print(item)
Maintenance
GIT_LFS_SKIP_SMUDGE=1 git clone git@hf.co:datasets/ccmusic-database/CNPM
cd CNPM
Mirror
https://www.modelscope.cn/datasets/ccmusic-database/CNPM
Additional Information
Dataset Curators
Weixin Ren, Mingjin Che, Zhaowen Wang, Qinyu Li, Jiaye Hu, Fan Xia, Wei Li.
Evaluation
[1] Wang, Z., Che, M., Yang, Y., Meng, W., Li, Q., Xia, F., and Li, W. (2022b). Automatic chinese national pentatonic modes recognition using convolutional neural network. In Proc. Int. Society Music Information Retrieval (ISMIR).
[2] Ren, W., Che, M., Wang, Z., Meng, W., Li, Q., Hu, J., Xia, F., and Li, W. (2022). Cnpm database: A chinese national pentatonic modulation database for computational musicology. Journal of Fudan University(Natural Science), 61(5):9.
[3] https://huggingface.co/ccmusic-database/CNPM
Citation Information
@inproceedings{WangCYMLX022,
author = {Zhaowen Wang and Mingjin Che and Yue Yang and Wenwu Meng and Qinyu Li and Fan Xia and Wei Li},
title = {Automatic Chinese National Pentatonic Modes Recognition Using Convolutional Neural Network},
booktitle = {Proceedings of the 23rd International Society for Music Information Retrieval Conference, {ISMIR} 2022, Bengaluru, India, December 4-8, 2022},
pages = {345-352},
year = {2022}
}
Contributions
Provide a dataset for the modern Chinese National Pentatonic Mode
- Downloads last month
- 143