-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdemo.js
103 lines (102 loc) · 6.87 KB
/
demo.js
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
const demoFiles = {
"Beethoven Op53_1": {
"meiFile": "https://raw.githubusercontent.com/trompamusic-encodings/Beethoven_Op53_HenleUrtext/master/Beethoven_Op53_1-HenleUrtext.mei",
"performances": {
"53 P02 Performance A": "./eval/Op53_1_P02-A.boe.mid.maps.expansion-default.json",
"53 P02 Performance B": "./eval/Op53_1_P02-B.boe.mid.maps.expansion-default.json",
"53 P02 Performance C": "./eval/Op53_1_P02-C.boe.mid.maps.expansion-default.json",
"53 P04 Performance A": "./eval/Op53_1_P04-A.boe.mid.maps.expansion-default.json",
"53 P04 Performance B": "./eval/Op53_1_P04-B.boe.mid.maps.expansion-default.json",
"53 P04 Performance C": "./eval/Op53_1_P04-C.boe.mid.maps.expansion-default.json",
"53 P07 Performance A": "./eval/Op53_1_P07-A.boe.mid.maps.expansion-default.json",
"53 P07 Performance B": "./eval/Op53_1_P07-B.boe.mid.maps.expansion-default.json",
"53 P08 Performance A": "./eval/Op53_1_P08-A.boe.mid.maps.expansion-default.json",
"53 P08 Performance B": "./eval/Op53_1_P08-B.boe.mid.maps.expansion-default.json",
"53 P08 Performance C": "./eval/Op53_1_P08-C.boe.mid.maps.expansion-default.json"
}
},
"Beethoven Op53_2": {
"meiFile": "https://raw.githubusercontent.com/trompamusic-encodings/Beethoven_Op53_HenleUrtext/master/Beethoven_Op53_2-HenleUrtext.mei",
"performances": {
"P02 Performance A": "./eval/Op53_2_P02-A.boe.mid.maps.json",
"P02 Performance B": "./eval/Op53_2_P02-B.boe.mid.maps.json",
"P02 Performance C": "./eval/Op53_2_P02-C.boe.mid.maps.json",
"P04 Performance A": "./eval/Op53_2_P04-A.boe.mid.maps.json",
"P04 Performance B": "./eval/Op53_2_P04-B.boe.mid.maps.json",
"P04 Performance C": "./eval/Op53_2_P04-C.boe.mid.maps.json",
"P07 Performance A": "./eval/Op53_2_P07-A.boe.mid.maps.json",
"P07 Performance B": "./eval/Op53_2_P07-B.boe.mid.maps.json",
"P07 Performance C": "./eval/Op53_2_P07-C.boe.mid.maps.json",
"P08 Performance A": "./eval/Op53_2_P08-A.boe.mid.maps.json",
"P08 Performance B": "./eval/Op53_2_P08-B.boe.mid.maps.json",
"P08 Performance C": "./eval/Op53_2_P08-C.boe.mid.maps.json"
}
},
"Beethoven Op31_No2_2": {
"meiFile": "https://raw.githubusercontent.com/trompamusic-encodings/Beethoven_Op31_No2_HenleUrtext/master/Beethoven_Op31_No2_2-HenleUrtext.mei",
"performances": {
"Op31-No2_2 D1": "./eval/REC041_12-19_1133.boe.mid.maps.expansion-default.json",
"Op31-No2_2 D2": "./eval/REC042_12-19_1153.boe.mid.maps.expansion-default.json",
"Op31-No2_2 D3": "./eval/REC043_12-19_1202.boe.mid.maps.expansion-default.json",
"Op31-No2_2 D4": "./eval/REC044_12-19_1210.boe.mid.maps.expansion-default.json"
}
},
"Beethoven Op31_No3_1": {
"meiFile": "https://raw.githubusercontent.com/trompamusic-encodings/Beethoven_Op31_No3_HenleUrtext/master/Beethoven_Op31_No3_1-HenleUrtext.mei",
"performances": {
"Op31-No3_1 P01 Performance A": "./eval/Op31_No3_1_P01-A.boe.mid.maps.expansion-default.json",
"Op31-No3_1 P01 Performance B": "./eval/Op31_No3_1_P01-B.boe.mid.maps.expansion-default.json",
"Op31-No3_1 P01 Performance C": "./eval/Op31_No3_1_P01-C.boe.mid.maps.expansion-default.json",
"Op31-No3_1 P05 Performance A": "./eval/Op31_No3_1_P05-A.boe.mid.maps.expansion-default.json",
"Op31-No3_1 P05 Performance B": "./eval/Op31_No3_1_P05-B.boe.mid.maps.expansion-default.json",
"Op31-No3_1 P05 Performance C": "./eval/Op31_No3_1_P05-C.boe.mid.maps.expansion-default.json",
"Op31-No3_1 P06 Performance A": "./eval/Op31_No3_1_P06-A.boe.mid.maps.expansion-default.json",
"Op31-No3_1 P06 Performance B": "./eval/Op31_No3_1_P06-B.boe.mid.maps.expansion-default.json",
"Op31-No3_1 P06 Performance C": "./eval/Op31_No3_1_P06-C.boe.mid.maps.expansion-default.json"
}
},
"Beethoven Op31_No3_2": {
"meiFile": "https://raw.githubusercontent.com/trompamusic-encodings/Beethoven_Op31_No3_HenleUrtext/master/Beethoven_Op31_No3_2-HenleUrtext.mei",
"performances": {
"Op31-No3_2 P01 Performance A": "./eval/Op31_No3_2_P01-A.boe.mid.maps.expansion-default.json",
"Op31-No3_2 P01 Performance B": "./eval/Op31_No3_2_P01-B.boe.mid.maps.expansion-default.json",
"Op31-No3_2 P01 Performance C": "./eval/Op31_No3_2_P01-C.boe.mid.maps.expansion-default.json",
"Op31-No3_2 P05 Performance A": "./eval/Op31_No3_2_P05-A.boe.mid.maps.expansion-default.json",
"Op31-No3_2 P05 Performance B": "./eval/Op31_No3_2_P05-B.boe.mid.maps.expansion-default.json",
"Op31-No3_2 P05 Performance C": "./eval/Op31_No3_2_P05-C.boe.mid.maps.expansion-default.json",
"Op31-No3_2 P05 Performance D": "./eval/Op31_No3_2_P05-D.boe.mid.maps.expansion-default.json",
"Op31-No3_2 P06 Performance A": "./eval/Op31_No3_2_P06-A.boe.mid.maps.expansion-default.json",
"Op31-No3_2 P06 Performance B": "./eval/Op31_No3_2_P06-B.boe.mid.maps.expansion-default.json",
"Op31-No3_2 P06 Performance C": "./eval/Op31_No3_2_P06-C.boe.mid.maps.expansion-default.json"
}
},
"Beethoven Op31_No3_3": {
"meiFile": "https://raw.githubusercontent.com/trompamusic-encodings/Beethoven_Op31_No3_HenleUrtext/master/Beethoven_Op31_No3_3-HenleUrtext.mei",
"performances": {
"Op31-No3_3 P01 Performance A": "./eval/Op31_No3_3_P01-A.boe.mid.maps.expansion-default.json",
"Op31-No3_3 P01 Performance B": "./eval/Op31_No3_3_P01-B.boe.mid.maps.expansion-default.json",
"Op31-No3_3 P01 Performance C": "./eval/Op31_No3_3_P01-C.boe.mid.maps.expansion-default.json",
"Op31-No3_3 P05 Performance A": "./eval/Op31_No3_3_P05-A.boe.mid.maps.expansion-default.json",
"Op31-No3_3 P05 Performance B": "./eval/Op31_No3_3_P05-B.boe.mid.maps.expansion-default.json",
"Op31-No3_3 P05 Performance C": "./eval/Op31_No3_3_P05-C.boe.mid.maps.expansion-default.json",
"Op31-No3_3 P05 Performance D": "./eval/Op31_No3_3_P05-D.boe.mid.maps.expansion-default.json",
"Op31-No3_3 P06 Performance A": "./eval/Op31_No3_3_P06-A.boe.mid.maps.expansion-default.json",
"Op31-No3_3 P06 Performance B": "./eval/Op31_No3_3_P06-B.boe.mid.maps.expansion-default.json",
"Op31-No3_3 P06 Performance C": "./eval/Op31_No3_3_P06-C.boe.mid.maps.expansion-default.json"
}
},
"Beethoven Op119_No1_1": {
"meiFile": "https://raw.githubusercontent.com/trompamusic-encodings/Beethoven_Op119_BreitkopfHaertel/master/Beethoven_Op119_Nr01-Breitkopf.mei",
"performances": {
"119 Pianist 1": "./eval/Beethoven_Op119_1_maps.json",
"119 Pianist 2": "./eval/Beethoven_Op119_1_maps.json"
}
}
};
const defaultPiece = '';
const defaultMapsFileName = '';
const defaultMeiFileName = '';
// const defaultPiece = 'Beethoven Op119_No1_1';
// const defaultMapsFileName = './eval/Beethoven_Op119_1_maps.json';
// const defaultMeiFileName =
// "https://raw.githubusercontent.com/trompamusic-encodings/Beethoven_Op119_BreitkopfHaertel/master/Beethoven_Op119_Nr01-Breitkopf.mei";