Dataset Viewer
Auto-converted to Parquet Duplicate
id
int64
group_id
string
file_name
string
chahargah
int64
homayoun
int64
mahur
int64
nava
int64
rast_panjgah
int64
segah
int64
shur
int64
abuata
int64
afshari
int64
bayat_esfahan
int64
bayat_tork
int64
dashti
int64
tar
int64
setar
int64
santur
int64
ney
int64
kamanche
int64
violon
int64
piano
int64
tonbak
int64
oud
int64
qanun
int64
daf
int64
rhythm
int64
avaz
int64
man_voice
int64
solo
int64
ensemble
int64
6,523
shur_092
shur_092_270_300.mp3
0
0
0
0
0
0
1
0
0
0
0
0
0
0
1
0
0
0
0
1
0
0
0
1
0
0
0
1
3,741
homayoun_035
homayoun_035_420_450.mp3
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
1
0
1
0
0
0
1
0
0
0
1
5,330
segah_020
segah_020_30_60.mp3
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
1
0
1
0
3,987
bayat_esfahan_085
bayat_esfahan_085_60_90.mp3
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
1
0
0
1
0
6,512
bayat_tork_096
bayat_tork_096_0_30.mp3
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
1
0
0
1
0
5,483
afshari_018
afshari_018_0_30.mp3
0
0
0
0
0
0
0
0
1
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
1
0
727
bayat_esfahan_051
bayat_esfahan_051_390_420.mp3
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
1
0
0
0
0
0
0
1
0
0
1
2,134
chahargah_130
chahargah_130_150_180.mp3
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
1
0
0
0
1
0
0
0
1
5,762
shur_099
shur_099_30_60.mp3
0
0
0
0
0
0
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
1
0
1
0
337
chahargah_031
chahargah_031_1950_1980.mp3
1
0
0
0
0
0
0
0
0
0
0
0
1
0
1
1
1
1
0
1
1
0
0
1
0
0
0
1
5,627
nava_003
nava_003_150_180.mp3
0
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0
0
1
0
484
shur_025
shur_025_30_60.mp3
0
0
0
0
0
0
1
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
1
0
0
1
0
3,799
abuata_010
abuata_010_210_240.mp3
0
0
0
0
0
0
0
1
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0
0
1
0
1,915
afshari_038
afshari_038_510_540.mp3
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
1
0
0
0
1
0
0
0
1
1,338
dashti_035
dashti_035_60_90.mp3
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
0
1
0
0
1
0
3,039
bayat_esfahan_027
bayat_esfahan_027_1020_1050.mp3
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
1
0
1
1,951
abuata_033
abuata_033_510_540.mp3
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
1
0
0
1
2,901
bayat_tork_012
bayat_tork_012_150_180.mp3
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
0
0
1
0
0
1
0
2,754
shur_095
shur_095_150_180.mp3
0
0
0
0
0
0
1
0
0
0
0
0
0
0
1
0
0
0
0
1
0
0
0
1
0
0
0
1
3,183
shur_076
shur_076_1350_1380.mp3
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
1
1
0
1
2,421
nava_061
nava_061_270_300.mp3
0
0
0
1
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
1
0
0
1
0
5,856
dashti_051
dashti_051_0_30.mp3
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
0
0
1
0
1
0
6,128
bayat_esfahan_023
bayat_esfahan_023_90_120.mp3
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
1
0
1
5,645
afshari_021
afshari_021_2220_2250.mp3
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
1
0
0
1
0
0
0
1
0
0
0
1
2,608
afshari_033
afshari_033_390_420.mp3
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
1
0
0
0
0
1
0
0
0
1
0
0
1
829
shur_050
shur_050_180_210.mp3
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
1
0
6,795
nava_014
nava_014_120_150.mp3
0
0
0
1
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
1
0
244
afshari_021
afshari_021_1950_1980.mp3
0
0
0
0
0
0
0
0
1
0
0
0
1
0
1
1
1
0
0
1
1
0
0
1
0
1
0
1
5,651
nava_020
nava_020_30_60.mp3
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
1
0
1
3,005
segah_015
segah_015_30_60.mp3
0
0
0
0
0
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
1
0
6,796
bayat_tork_083
bayat_tork_083_30_60.mp3
0
0
0
0
0
0
0
0
0
0
1
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
1
0
5,536
bayat_tork_035
bayat_tork_035_750_780.mp3
0
0
0
0
0
0
0
0
0
0
1
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
1
0
3,507
mahur_062
mahur_062_330_360.mp3
0
0
1
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
1
0
0
0
1
0
0
0
1
2,633
chahargah_021
chahargah_021_0_30.mp3
1
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
1
0
1
0
6,387
bayat_esfahan_082
bayat_esfahan_082_0_30.mp3
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
1
0
0
1
0
2,057
afshari_034
afshari_034_660_690.mp3
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
1
0
1
0
0
0
1
0
0
0
1
2,215
homayoun_033
homayoun_033_420_450.mp3
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1
0
0
0
1
0
0
0
1
6,807
homayoun_056
homayoun_056_60_90.mp3
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0
1
0
4,164
bayat_tork_043
bayat_tork_043_930_960.mp3
0
0
0
0
0
0
0
0
0
0
1
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
1
0
233
abuata_031
abuata_031_1050_1080.mp3
0
0
0
0
0
0
0
1
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
5,829
nava_050
nava_050_150_180.mp3
0
0
0
1
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
1
0
0
0
1
0
0
0
1
1,671
segah_064
segah_064_840_870.mp3
0
0
0
0
0
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
1
0
1,383
segah_080
segah_080_450_480.mp3
0
0
0
0
0
1
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
1
0
2,465
mahur_052
mahur_052_120_150.mp3
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1
0
0
0
1
0
0
0
1
6,221
afshari_039
afshari_039_60_90.mp3
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
1
0
4,553
segah_062
segah_062_0_30.mp3
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
1
0
1
0
6,069
abuata_039
abuata_039_390_420.mp3
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
1
0
0
0
1
1
0
0
1
0
0
0
1
2,387
segah_053
segah_053_420_450.mp3
0
0
0
0
0
1
0
0
0
0
0
0
1
0
1
1
0
0
0
1
1
0
1
1
0
1
0
1
4,054
segah_007
segah_007_30_60.mp3
0
0
0
0
0
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
1
0
0
1
0
79
segah_060
segah_060_300_330.mp3
0
0
0
0
0
1
0
0
0
0
0
0
1
0
1
1
0
0
0
1
0
0
0
1
0
1
0
1
1,890
segah_077
segah_077_1380_1410.mp3
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
1
0
1
0
1
0
0
0
1
0
1
0
1
5,071
bayat_esfahan_006
bayat_esfahan_006_60_90.mp3
0
0
0
0
0
0
0
0
0
1
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0
0
1
0
5,011
chahargah_028
chahargah_028_3060_3090.mp3
1
0
0
0
0
0
0
0
0
0
0
0
1
0
1
1
1
0
0
0
1
0
0
1
0
0
0
1
3,995
nava_029
nava_029_810_840.mp3
0
0
0
1
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
1
0
614
nava_108
nava_108_150_180.mp3
0
0
0
1
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
1
0
0
0
1
0
0
0
1
5,478
segah_080
segah_080_840_870.mp3
0
0
0
0
0
1
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
1
0
4,034
chahargah_028
chahargah_028_1860_1890.mp3
1
0
0
0
0
0
0
0
0
0
0
0
1
0
1
1
1
0
0
0
1
0
0
1
0
0
0
1
1,181
chahargah_058
chahargah_058_0_30.mp3
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
1
0
0
0
1
0
0
0
1
1,218
bayat_esfahan_028
bayat_esfahan_028_180_210.mp3
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
1
0
0
0
1
0
0
0
1
3,130
mahur_017
mahur_017_30_60.mp3
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
1
0
0
1
0
3,993
bayat_esfahan_057
bayat_esfahan_057_90_120.mp3
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
1
0
0
0
1
0
0
0
1
4,546
bayat_tork_024
bayat_tork_024_360_390.mp3
0
0
0
0
0
0
0
0
0
0
1
0
1
0
0
0
0
0
0
1
0
0
0
1
0
0
0
1
828
bayat_esfahan_016
bayat_esfahan_016_270_300.mp3
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
1
0
644
shur_005
shur_005_390_420.mp3
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
1
0
0
1
0
3,465
nava_004
nava_004_90_120.mp3
0
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
1
0
1
0
1,215
bayat_esfahan_012
bayat_esfahan_012_90_120.mp3
0
0
0
0
0
0
0
0
0
1
0
0
0
0
1
0
0
0
0
0
0
0
0
0
1
0
1
0
560
shur_048
shur_048_60_90.mp3
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
1
1
0
0
0
1
3,386
rast_panjgah_026
rast_panjgah_026_60_90.mp3
0
0
0
0
1
0
0
0
0
0
0
0
1
0
1
1
1
0
0
1
0
0
0
1
0
0
0
1
5,614
homayoun_026
homayoun_026_150_180.mp3
0
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
1
0
1
0
3,078
shur_053
shur_053_30_60.mp3
0
0
0
0
0
0
1
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
1
0
0
1
0
4,801
abuata_059
abuata_059_0_30.mp3
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0
1
0
3,095
mahur_043
mahur_043_60_90.mp3
0
0
1
0
0
0
0
0
0
0
0
0
1
0
1
1
1
0
0
1
0
0
0
1
0
1
0
1
2,098
segah_038
segah_038_60_90.mp3
0
0
0
0
0
1
0
0
0
0
0
0
1
0
0
0
0
0
0
1
0
0
0
1
0
0
0
1
6,416
homayoun_026
homayoun_026_1530_1560.mp3
0
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
1
0
1
0
5,250
mahur_051
mahur_051_270_300.mp3
0
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
1
0
0
0
1
0
1
0
1
492
afshari_021
afshari_021_1710_1740.mp3
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
1
0
0
0
0
0
0
0
0
1
1
0
1
2,182
dashti_059
dashti_059_120_150.mp3
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
1
0
1
0
0
1
0
2,494
dashti_021
dashti_021_330_360.mp3
0
0
0
0
0
0
0
0
0
0
0
1
1
0
1
1
1
1
0
1
1
0
0
1
0
1
0
1
3,330
bayat_tork_053
bayat_tork_053_270_300.mp3
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
1
0
0
0
1
0
0
0
1
0
0
0
1
6,857
abuata_014
abuata_014_30_60.mp3
0
0
0
0
0
0
0
1
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
1
0
1
0
6,752
shur_076
shur_076_1860_1890.mp3
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
1
0
0
0
1
0
0
0
1
0
1
0
1
3,017
bayat_esfahan_051
bayat_esfahan_051_90_120.mp3
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
1
0
0
0
0
0
1
1
0
0
1
1,656
homayoun_046
homayoun_046_180_210.mp3
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
1
0
0
0
1
0
0
0
1
6,052
homayoun_026
homayoun_026_720_750.mp3
0
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
1
1
0
1
6,343
segah_009
segah_009_0_30.mp3
0
0
0
0
0
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
1
0
5,440
bayat_esfahan_027
bayat_esfahan_027_540_570.mp3
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
1
0
1
0
6,777
chahargah_038
chahargah_038_630_660.mp3
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
1
0
0
0
1
0
0
0
1
4,863
shur_051
shur_051_30_60.mp3
0
0
0
0
0
0
1
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
1
0
0
0
1
6,619
bayat_esfahan_030
bayat_esfahan_030_180_210.mp3
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
1
0
0
0
1
1
1
0
1
5,229
homayoun_025
homayoun_025_1770_1800.mp3
0
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
1
0
1
0
3,720
abuata_028
abuata_028_990_1020.mp3
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
1
0
1
663
nava_013
nava_013_120_150.mp3
0
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0
0
1
0
5,262
chahargah_033
chahargah_033_690_720.mp3
1
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
1
1
0
1
1,117
chahargah_066
chahargah_066_300_330.mp3
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
1
0
3,368
bayat_tork_031
bayat_tork_031_150_180.mp3
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
1
0
0
0
1
0
1
0
1
3,071
nava_003
nava_003_90_120.mp3
0
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0
0
1
0
166
shur_061
shur_061_420_450.mp3
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
1
0
0
0
1
0
0
0
1
2,253
afshari_015
afshari_015_0_30.mp3
0
0
0
0
0
0
0
0
1
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
1
0
2,678
homayoun_072
homayoun_072_0_30.mp3
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1
0
0
1
0
114
segah_077
segah_077_330_360.mp3
0
0
0
0
0
1
0
0
0
0
0
0
1
0
0
0
0
0
0
1
0
0
0
1
0
0
0
1
End of preview. Expand in Data Studio

YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

Chakavak: A Multi-aspect Dataset for Automatic Tagging of Microtonal Music

License: CC BY-NC-SA 4.0

Overview

Chakavak is a comprehensive dataset for automatic tagging and analysis of Persian classical music (also known as Iranian traditional music), which features microtonal characteristics. The dataset provides multi-aspect tags for each audio segment, covering dastgah (modal system), instruments, rhythmic properties, and performance type classifications.

Dataset Description

The Chakavak dataset contains 7,000+ labeled audio segments from Persian classical music recordings. Each segment is approximately 30 seconds long and is tagged with multiple aspects:

Tag Categories:

  1. Dastgah (Modal Systems):

    • Chahargah
    • Homayoun
    • Mahur
    • Nava
    • Rast-Panjgah
    • Segah
    • Shur
    • Abuata
    • Afshari
    • Bayat-Esfahan
    • Bayat-Tork
    • Dashti
  2. Musical Instruments:

    • Tar
    • Setar
    • Santur
    • Ney
    • Kamanche
    • Violin
    • Piano
    • Tonbak
    • Oud
    • Qanun
    • Daf
  3. Performance Attributes:

    • Rhythm (with/without rhythm)
    • Avaz (singing style)
    • Man_voice (male voice presence)
    • Solo/Ensemble performance

Repository Structure

chakavak/
β”œβ”€β”€ LICENSE                        # CC BY-NC-SA 4.0 License file
β”œβ”€β”€ environment.yml                # Conda environment specification
β”œβ”€β”€ data/
β”‚   β”œβ”€β”€ audio/                     # Directory for MP3 files (available upon request)
β”‚   β”œβ”€β”€ metadata/                  # Directory for CSV and JSON metadata
β”‚   β”‚   β”œβ”€β”€ chakavak_tags.csv      # Original dataset labels
β”‚   β”‚   β”œβ”€β”€ metadata.json          # Processed metadata in JSON format
β”‚   β”‚   β”œβ”€β”€ mfcc/                  # MFCC features for each audio file
β”‚   β”‚   β”œβ”€β”€ spectrograms/          # Spectrogram images for visualization
β”‚   β”‚   β”œβ”€β”€ chromagrams/           # Chroma features extraction
β”‚   β”‚   └── pitch/                 # Pitch tracking features
β”‚   └── splits/                    # Directory for dataset splits
β”‚       β”œβ”€β”€ standard/              # Standard train-validation-test split (70-15-15%)
β”‚       β”œβ”€β”€ k_fold_5/              # 5-fold stratified cross-validation
β”‚       β”œβ”€β”€ k_fold_10/             # 10-fold stratified cross-validation
β”‚       β”œβ”€β”€ grouped_k_fold_5/      # 5-fold grouped stratified cross-validation
β”‚       └── grouped_k_fold_10/     # 10-fold grouped stratified cross-validation
β”œβ”€β”€ notebooks/
β”‚   β”œβ”€β”€ 01_data_exploration.ipynb  # Dataset exploration and statistics
β”‚   β”œβ”€β”€ 02_feature_extraction.ipynb # Generate metadata features
β”‚   β”œβ”€β”€ 03_data_splitting.ipynb    # Create and analyze dataset splits
β”‚   └── 04_example_usage.ipynb     # Example usage of dataset features
└── scripts/
    β”œβ”€β”€ extract_features.py        # Scripts for feature extraction
    β”œβ”€β”€ create_splits.py           # Script to create dataset splits
    β”œβ”€β”€ visualize_features.py      # Scripts for visualization
    └── utils.py                   # Utility functions

Installation and Setup

  1. Clone the repository:
   git clone https://github.com/mehdikiani/chakavak.git
   cd chakavak
  1. Create the conda environment:
   conda env create -f environment.yml
   conda activate chakavak
  1. Request audio files: The audio files are not included in the repository due to size limitations. Please contact the authors to request access to the audio files.

Using the Dataset

Loading the Dataset

import pandas as pd

# Load the dataset labels
tags_df = pd.read_csv('data/metadata/chakavak_tags.csv')

# Preview the data
print(tags_df.head())

# Check the distribution of dastgah (modal systems)
dastgah_columns = ['chahargah', 'homayoun', 'mahur', 'nava', 
                   'rast_panjgah', 'segah', 'shur', 'abuata', 
                   'afshari', 'bayat_esfahan', 'bayat_tork', 'dashti']
dastgah_distribution = tags_df[dastgah_columns].sum().sort_values(ascending=False)
print(dastgah_distribution)

Using Extracted Features

import numpy as np
import json

# Load metadata with file paths
with open('data/metadata/metadata.json', 'r') as f:
    metadata = json.load(f)

# Load MFCC features for a specific file
file_id = "abuata_042_720_750"
mfcc_features = np.load(f"data/metadata/mfcc/{file_id}.npy")

print(f"MFCC shape: {mfcc_features.shape}")

Using Data Splits

# Load a standard train/val/test split
train_df = pd.read_csv('data/splits/standard/train.csv')
val_df = pd.read_csv('data/splits/standard/validation.csv')
test_df = pd.read_csv('data/splits/standard/test.csv')

print(f"Train set: {len(train_df)} samples")
print(f"Validation set: {len(val_df)} samples")
print(f"Test set: {len(test_df)} samples")

# Or use a specific k-fold split
fold_0 = pd.read_csv('data/splits/k_fold_5/fold_0.csv')
print(f"Fold 0 size: {len(fold_0)} samples")

Feature Extraction

The repository includes various pre-extracted features for music analysis:

  1. MFCC (Mel-Frequency Cepstral Coefficients): Captures timbral characteristics

    • Shape: (n_frames, 20) for each audio segment
    • Found in data/metadata/mfcc/
  2. Chroma Features: Represents pitch class distribution, useful for modal analysis

    • Shape: (n_frames, 12) for each audio segment
    • Found in data/metadata/chromagrams/
  3. Pitch Tracking: Fundamental frequency estimation using CREPE

    • Found in data/metadata/pitch/
  4. Spectrograms: Visual frequency representation

    • Found in data/metadata/spectrograms/

To extract features for new audio files, use the provided scripts:

from scripts.extract_features import extract_all_features

# Extract all features for a given audio file
extract_all_features('path/to/audio.mp3', 'output_id')

Citation

If you use this dataset in your research, please cite:

Kiani, M., Ramezani, R., & Ayanbod, M. H. (2025). Chakavak: A Multi-aspect Dataset for Automatic Tagging of Microtonal Music. 
Computer Engineering Faculty, University of Isfahan, & Music Faculty, Art University, Isfahan, Iran.
https://github.com/mehdikiani/chakavak

License

This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License (CC BY-NC-SA 4.0). See the LICENSE file for details.

Acknowledgments

We thank all the musicians and artists whose works have been included in this dataset.

Contact

For any questions or to request access to the audio files, please contact:

Downloads last month
135