File size: 7,255 Bytes
e346195
 
a5775a1
 
7be6cee
a5775a1
 
 
 
 
151dd33
a5775a1
b014bfd
106fe4c
e346195
07529c3
151dd33
d94d1f8
 
07529c3
d94d1f8
55eca30
07529c3
 
d94d1f8
 
 
 
 
 
07529c3
d94d1f8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
07529c3
 
 
55eca30
 
d94d1f8
07529c3
 
cf4d742
 
7be6cee
cf4d742
d94d1f8
151dd33
cf4d742
 
d94d1f8
cf4d742
 
784aa77
cf4d742
 
 
 
 
d94d1f8
841c41a
d94d1f8
841c41a
 
 
d94d1f8
841c41a
 
 
d94d1f8
841c41a
ac75631
9f545ea
 
841c41a
 
d94d1f8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
243f5d4
d94d1f8
 
 
 
67fade1
d94d1f8
b014bfd
841c41a
 
 
 
 
 
d94d1f8
841c41a
 
 
cf4d742
841c41a
cf4d742
 
 
 
 
 
 
 
 
 
 
 
 
d94d1f8
 
 
 
 
 
 
cf4d742
 
 
 
 
 
 
 
 
b014bfd
cf4d742
 
 
39cc657
cf4d742
 
b014bfd
cf4d742
 
b014bfd
cf4d742
 
 
d94d1f8
cf4d742
 
 
 
 
b014bfd
cf4d742
 
 
 
 
7f255f9
d94d1f8
7f255f9
d94d1f8
85b50df
cf4d742
 
 
 
686fbcf
cf4d742
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d94d1f8
07529c3
d94d1f8
 
 
 
 
 
 
07529c3
cf4d742
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
---
license: mit
task_categories:
- audio-classification
- image-classification
language:
- en
tags:
- music
- art
pretty_name: Piano Sound Quality Dataset
size_categories:
- 10K<n<100K
viewer: false
---

# Dataset Card for Piano Sound Quality Dataset
The raw dataset comprises 12 full-range audio files in .wav/.mp3/.m4a format representing seven models of pianos: Kawai upright piano, Kawai grand piano, Young Change upright piano, Hsinghai upright piano, Grand Theatre Steinway piano, Steinway grand piano, and Pearl River upright piano. Additionally, there are 1,320 split monophonic audio files in .wav/.mp3/.m4a format, bringing the total number of files to 1,332. Furthermore, the dataset includes a score sheet in .xls format containing subjective evaluations of piano sound quality provided by 29 participants with musical backgrounds.

## Usage
### Raw Subset
```python
from datasets import load_dataset

ds = load_dataset("ccmusic-database/pianos", name="default")
for item in ds["train"]:
    print(item)

for item in ds["validation"]:
    print(item)

for item in ds["test"]:
    print(item)
```

### Eval Subset
```python
from datasets import load_dataset

ds = load_dataset("ccmusic-database/pianos", name="eval")
for item in ds["train"]:
    print(item)

for item in ds["validation"]:
    print(item)

for item in ds["test"]:
    print(item)
```

## Maintenance
```bash
GIT_LFS_SKIP_SMUDGE=1 git clone git@hf.co:datasets/ccmusic-database/pianos
cd pianos
```

## Dataset Description
- **Homepage:** <https://ccmusic-database.github.io>
- **Repository:** <https://huggingface.co/datasets/CCMUSIC/pianos>
- **Paper:** <https://doi.org/10.5281/zenodo.5676893>
- **Leaderboard:** <https://www.modelscope.cn/datasets/ccmusic/pianos>
- **Point of Contact:** <https://arxiv.org/abs/2310.04722>

### Dataset Summary
Due to the need to increase the dataset size and the absence of a popular piano brand, Yamaha, the dataset is expanded by recording an upright Yamaha piano in [[1]](https://arxiv.org/pdf/2310.04722.pdf), in which the recording details can be found. This results in a total of 2,020 audio files. As models used in that article require a larger dataset, data augmentation was performed. The original audio was transformed into Mel spectrograms and sliced into 0.18-second segments, a parameter chosen based on empirical experience. This results in 18,745 spectrogram slices. Although 0.18 seconds may seem narrow, this duration is sufficient for the task at hand, as the classification of piano sound quality does not heavily rely on the temporal characteristics of the audio segments.

### Supported Tasks and Leaderboards
Piano Sound Classification, pitch detection

### Languages
English

## Dataset Structure
### Eval Subset
<style>
  .pianos td {
    vertical-align: middle !important;
    text-align: center;
  }
  .pianos th {
    text-align: center;
  }
</style>
<table class="pianos">
    <tr>
        <th>mel(.jpg, 0.18s 48000Hz)</th>
        <th>label(8-class)</th>
        <th>pitch(88-class)</th>
    </tr>
    <tr>
        <td><img src="./data/TYYnuJqndeWzXLJMmOyXJ.jpeg"></td>
        <td>PearlRiver / YoungChang / Steinway-T / Hsinghai / Kawai / Steinway / Kawai-G / Yamaha</td>
        <td>88 pitches on piano</td>
    </tr>
    <tr>
        <td>...</td>
        <td>...</td>
        <td>...</td>
    </tr>
</table>

### Raw Subset
<table class="pianos">
    <tr>
        <th>audio(.wav, 22050Hz)</th>
        <th>mel(.jpg, 22050Hz)</th>
        <th>label(8-class)</th>
        <th>pitch(88-class)</th>
    </tr>
    <tr>
        <td><audio controls src="https://huggingface.co/datasets/ccmusic-database/pianos/resolve/main/data/3800.wav"></audio></td>
        <td><img src="./data/3800.jpg"></td>
        <td>PearlRiver / YoungChang / Steinway-T / Hsinghai / Kawai / Steinway / Kawai-G / Yamaha</td>
        <td>88 pitches on piano</td>
    </tr>
    <tr>
        <td>...</td>
        <td>...</td>
        <td>...</td>
        <td>...</td>
    </tr>
</table>

### Data Instances
.zip(.wav, jpg)

### Data Fields
```
1_PearlRiver
2_YoungChang
3_Steinway-T
4_Hsinghai
5_Kawai
6_Steinway
7_Kawai-G
8_Yamaha
```

### Data Splits for Eval Subset
|      Split      | Eval  | Eval  |
| :-------------: | :---: | :---: |
|      total      | 18745 |  668  |
|   train(80%)    | 14996 |  534  |
| validation(10%) | 1874  |  67   |
|    test(10%)    | 1875  |  67   |

## Dataset Creation
### Curation Rationale
Lack of a dataset for piano sound quality

### Source Data
#### Initial Data Collection and Normalization
Zhaorui Liu, Shaohua Ji, Monan Zhou
#### Who are the source language producers?
Students from CCMUSIC & CCOM

### Annotations
#### Annotation process
Students from CCMUSIC recorded different piano sounds and labeled them, and then a subjective survey of sound quality was conducted to score them.

#### Who are the annotators?
Students from CCMUSIC & CCOM

### Personal and Sensitive Information
Piano brands

## Considerations for Using the Data
### Social Impact of Dataset
Help develop piano sound quality scoring apps

### Discussion of Biases
Only for pianos

### Other Known Limitations
Lack of black keys for Steinway, data imbalance

## Additional Information
### Dataset Curators
Zijin Li

### Evaluation
[1] [Monan Zhou, Shangda Wu, Shaohua Ji, Zijin Li, and Wei Li. A Holistic Evaluation of Piano Sound Quality[C]//Proceedings of the 10th Conference on Sound and Music Technology (CSMT). Springer, Singapore, 2023.](https://arxiv.org/pdf/2310.04722.pdf)

(Note: this paper only uses the first 7 piano classes in the dataset, its future work has finished the 8-class evaluation)

### Licensing Information
```
MIT License

Copyright (c) CCMUSIC

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
```

### Citation Information
```bibtex
@dataset{zhaorui_liu_2021_5676893,
  author       = {Monan Zhou, Shenyang Xu, Zhaorui Liu, Zhaowen Wang, Feng Yu, Wei Li and Baoqiang Han},
  title        = {CCMusic: an Open and Diverse Database for Chinese and General Music Information Retrieval Research},
  month        = {mar},
  year         = {2024},
  publisher    = {HuggingFace},
  version      = {1.2},
  url          = {https://huggingface.co/ccmusic-database}
}
```

### Contributions
Provide a dataset for piano sound quality