forked from gregchapman-dev/musicdiff
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsymbols.txt
285 lines (225 loc) · 10.5 KB
/
symbols.txt
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
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
First a glossary of terms:
AnnNote is a musicdiff-annotated note/rest/chord (by default, there are no chords, only the notes within them)
AnnVoice is a musicdiff-annotated voice (by default, there are no AnnVoices, only the AnnNotes within them)
AnnLyric is a musicidff-annotated lyric syllable
AnnExtra is a musicdiff-annotated musical object such as dynamic, text, clef, keysig, timesig, metronome mark, etc
AnnMeasure is a musicdiff-annotated measure
AnnPart is a musicdiff-annotated staff
AnnStaffGroup is a musicdiff-annotated staff group (as denoted by braces/brackets/etc to the left of the score)
AnnMetadataItem is a musicdiff-annotated metadata item, such as composer, date of composition, etc
AnnScore is a musicdiff-annotated score
AnnNote symbol count (rest, note, chord):
(If Voicing is not specified explicitly on the command line, there are no chords,
only the individual notes from the chords)
For each note (1 rest, 1 note, or N notes in a chord):
1 symbol for the pitch (even if unpitched)
1 symbol if there is an accidental (even a triple flat is just 1 symbol)
1 symbol if a tie starts on the note (we don't count tie stops)
1 symbol for note head type: quarter, half, whole, breve etc
1 symbol for each dot (e.g. double-dotted quarter note gets 2 symbols for dots)
1 symbol for each flag or beam
1 symbol for each enclosing tuplet
1 symbol for each enclosing tuplet's style (is it visible? bracketed?)
# note head type + dots + flags/beams + tuplets implies duration
1 symbol for each articulation (staccato, tenuto, etc)
1 symbol for each expression (mordent, trill, etc) (*** someday add 1 for ornament accidental? ***)
1 symbol if a grace note
1 symbol if that grace note has a slash
1 symbol if there is abnormal note head shape (diamond, etc)
1 symbol if there is abnormal note head fill
1 symbol if there are parentheses around note head
1 symbol if stem direction is specified
1 symbol if there is a space (hidden rest) before the note
1 symbol for all specified style info (e.g. color, size, etc) (in future might count entries)
AnnNote diff symbol error count:
for each note (1 rest, 1 note, or N notes in a chord):
pitch diff: 1
accidental diff: 1
tie start diff: 1
note head type (quarter/half/whole/breve/etc) diff: 1
dots diff: 1 for each dot added or deleted
grace type diff (acc vs unacc vs not grace): 1
grace slash diff: 1
beams/flags diff: Levenshtein distance between lists of beams/flags
tuplet diff: 1 for difference in tuplet actual count/normal count + 1 for difference in
visibility, bracketing, etc. If there is more than one (nested) tuplet, instead of
1 + 1, use Levenshtein distance between lists of tuplets (actual/normal) + Levenshtein
distance between lists of tuplets (visibility/bracket).
articulation diff: Levenshtein distance between lists of articulations
expression diff: Levenshtein distance between lists of expressions
note shape diff (diamond, etc): 1
note head fill diff (beyond the usual quarter vs half): 1
note head parentheses diff: 1
"space before" diff: 1
note stem direction diff: 1
note style diff (e.g. color, size, etc): 1
-------------------------------------------------------------------
AnnExtras have custom counts by type, as follows:
clef symbol count:
1 symbol for clef itself (e.g. G2, F4, C3, G2-8, etc)
1 symbol if styled in any way
clef diff symbol error count:
clef diff: 1
clef style diff: 1
timesig symbol count:
1 symbol for timesig itself (e.g. 2/2, 4/4, 3/8, common, cut)
1 symbol if styled in any way
timesig diff symbol error count:
timesig diff: 1
timesig style diff: 1
keysig symbol count:
1 symbol for keysig itself (number of sharps/flats)
1 symbol if styled in any way
keysig diff symbol error count:
keysig diff: 1
keysig style diff: 1
tempo symbol count:
1 symbol for anything like "<note> = 80"
len(string) symbols for any other string (like "Andante")
- both may be present (e.g. "Andante <note> = 80" is len(“Andante”)+1=8)
1 symbol if styled in any way
tempo diff symbol error count:
diff in "<note> = 80" portion: 1
diff in other string portion: Levenshtein distance between other string portions
tempo style diff: 1
barline symbol count:
1 symbol for non-regular barline (e.g. double, light-heavy, repeat, etc)
1 symbol for repeat direction, if present
1 symbol for repeat count, if specified
1 symbol for barline fermata if present
1 symbol for non-normal barline fermata shape (if barline fermata present)
barline diff symbol error count:
barline type diff: 1
repeat direction diff: 1
repeat count diff: 1
barline fermata diff: 1
barline fermata shape diff: 1
ottava symbol count:
1 symbol for ottava type (e.g. 8va, 8ba, 15ma)
1 symbol for ottava duration
1 symbol if styled in any way
ottava diff symbol error count:
ottava type diff: 1
ottava duration diff: 1
style diff: 1
direction symbol count:
len(string) symbols for direction string
1 symbol if styled in any way (italics, bold, color, placement, etc)
direction diff symbol error count:
string diff: Levenshtein distance between strings
style diff: 1
dynamic (text, not wedge) symbol count:
1 symbol for the name (e.g. fff)
1 symbol if styled in any way (italics, bold, color, placement, etc)
dynamic diff symbol error count:
string diff: 1
style diff: 1
dynamic wedge symbol count:
1 symbol for the wedge type (crescendo or diminuendo)
1 symbol for the wedge duration
1 symbol if styled in any way (placement, etc)
dynamic wedge diff symbol error count:
wedge type diff: 1
duration diff: 1
style diff: 1
slur symbol count:
1 symbol for the slur duration
1 symbol if styled in any way (placement, etc)
slur diff symbol error count:
duration diff: 1
style diff: 1
arpeggio symbol count:
1 symbol for arpeggio type (up, down, undirected, non-arpeggiated)
1 symbol if span length > 1 (e.g. if arpeggio spans multiple chords)
1 symbol if styled in any way
arpeggio diff symbol error count:
arpeggio type diff: 1
span length diff: 1
style diff: 1
chordsym symbol count:
1 symbol for chord name
1 symbol if styled in any way
chordsym diff symbol error count:
chord name diff: 1
style diff: 1
ending symbol count:
len(string) symbols for ending name
1 symbol for measure count
ending diff symbol error count:
name diff: Levenshtein distance between strings
measure count diff: 1
system break/page break symbol count:
1 symbol
system break/page break diff symbol error count:
they are never different, just deleted/inserted
staffinfo symbol count:
1 symbol if lines per staff specified
1 symbol if staff size % specified
staffinfo diff symbol error count:
lines/staff diff: 1
staff size diff: 1
-------------------------------------------------------------------
AnnLyric symbol count (a single word or syllable):
len(text) symbols for word/syllable (including any implied hyphens, etc)
1 symbol for offset (horizontal position in measure)
1 symbol if there is a verse number
1 symbol if there is a verse identifier (that is not the verse number)
1 symbol if styled (text style, color, etc)
AnnLyric diff symbol error count:
text diff: Levenshtein distance between strings
verse number diff: 1
verse identifier diff: 1
offset diff: 1
style diff: 1
-------------------------------------------------------------------
AnnVoice symbol count (if Voicing is not explicitly specified on the command line,
there are no AnnVoices):
Sum of the symbols in all the AnnNotes in the AnnVoice
AnnVoice diff symbol error count:
Sum of the symbol errors due to the AnnNotes in the AnnVoice
If a voice is deleted or added, the symbol error count is the AnnVoice symbol count.
-------------------------------------------------------------------
AnnMeasure symbol count:
if Voicing specified explicitly:
Sum of symbol count for all AnnVoices, AnnExtras, and AnnLyrics in the AnnMeasure
Normally:
Sum of symbol count for all AnnNotes, AnnExtras, and AnnLyrics in the AnnMeasure
AnnMeasure diff symbol error count:
Sum of the symbol errors for all objects in the AnnMeasure.
If Voicing specified explicitly:
If an entire AnnVoice is deleted or added, the symbol error count is incremented
by that AnnVoice's symbol count.
-------------------------------------------------------------------
AnnPart symbol count:
Sum of symbol count for all AnnMeasures in the AnnPart
AnnPart diff symbol error count:
Sum of the symbol errors for all AnnMeasures in the AnnPart.
If an entire AnnMeasure is deleted or added, the symbol error count is incremented
by the AnnMeasure symbol count.
-------------------------------------------------------------------
AnnStaffGroup symbol count:
len(name) symbols for staff group name (e.g. instrument name)
1 symbol for staff group abbreviation
1 symbol for staff group symbol shape (curly brace, bracket, line, etc)
1 symbol for staff group barline type (bar together, don't bar together, Mensurstrich)
1 symbol for the lowest staff index the staff group encloses (i.e. vertical position)
1 symbol for the highest staff index the staff group encloses (i.e. vertical height)
AnnStaffGroup diff symbol error count:
name diff: Levenshtein distance between names
abbreviation diff: 1
symbol diff: 1
barline type diff: 1
staff list diff: 1 for lowest staff index diff, 1 for highest staff index diff
-------------------------------------------------------------------
AnnMetadataItem symbol count (e.g. composer name, date composed, etc):
len(key) + len(value) symbols for the item
AnnMetadataItem diff symbol error count:
key difference: Levenshtein distance between key strings
value difference: Levenshtein distance between value strings
-------------------------------------------------------------------
AnnScore symbol count:
Sum of symbol counts for all AnnParts, AnnStaffGroups, and AnnMetadataItems in the AnnScore.
AnnScore diff symbol error count:
Sum of symbol errors in all AnnParts, AnnStaffGroups, and AnnMetadataItems in the AnnScore
If an entire AnnPart is added or deleted, the symbol error count is incremented
by the AnnPart symbol count.