@gondola-lyrics/kit 0.4.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/formats.d.ts +327 -4
- package/dist/formats.js +1991 -292
- package/dist/formats.js.map +1 -1
- package/dist/generator.d.ts +7 -3
- package/dist/index.d.ts +242 -4
- package/dist/index.js +3 -3
- package/dist/parser.d.ts +236 -2
- package/dist/parser.js +3 -3
- package/dist/rules.js +166 -0
- package/dist/rules.js.map +1 -0
- package/dist/transforms.d.ts +95 -0
- package/dist/transforms.js +2251 -32
- package/dist/transforms.js.map +1 -1
- package/package.json +1 -1
package/dist/transforms.js
CHANGED
|
@@ -1,20 +1,170 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { n as toRuleMatchKey, o as mapShared, r as trimRuleWhitespace, t as findRuleMatchCuts } from "./rules.js";
|
|
2
|
+
import { AgentType, CreditRole, LineType, Timing, WordType, deriveLanguageUsages, getContentText, isWordLevelLine, makeAgent, makeLineAnnotation, makeLineAnnotationRoman, makeLineAnnotationTranslation, makeLineBackground, makeLineContentText, makeLineContentWords, makeLineInstrumental, makeMeta, makeMetaCredit, makeText, makeTimeRange, makeWordEmphasis, makeWordSpace, validateTimeRange } from "@gondola-lyrics/model/runtime";
|
|
3
|
+
//#region src/transforms/agent/extract.ts
|
|
4
|
+
var hashName = (name) => {
|
|
5
|
+
let hash = 0;
|
|
6
|
+
for (let index = 0; index < name.length; index += 1) hash = (hash << 5) - hash + name.charCodeAt(index) | 0;
|
|
7
|
+
return (hash >>> 0).toString(16).padStart(8, "0").toUpperCase();
|
|
8
|
+
};
|
|
9
|
+
var haveSameAgents = (first, second) => {
|
|
10
|
+
return first.length === second.length && first.every((id, index) => id === second[index]);
|
|
11
|
+
};
|
|
12
|
+
var prepareBindings = (bindings, agents) => {
|
|
13
|
+
if (!bindings) return;
|
|
14
|
+
const knownIds = new Set(agents.map((agent) => agent.id));
|
|
15
|
+
return new Map(Object.entries(bindings).map(([prefix, target]) => {
|
|
16
|
+
const ids = [...new Set(typeof target === "string" ? [target] : target)];
|
|
17
|
+
const missingId = ids.find((id) => !knownIds.has(id));
|
|
18
|
+
if (missingId !== void 0) throw new TypeError(`binding for ${JSON.stringify(prefix)} references unknown agent id ${JSON.stringify(missingId)}`);
|
|
19
|
+
return [prefix.trim(), ids];
|
|
20
|
+
}));
|
|
21
|
+
};
|
|
3
22
|
/**
|
|
4
|
-
*
|
|
23
|
+
* Retains the legacy clock exclusion, including its accepted hour and minute bounds.
|
|
24
|
+
*/
|
|
25
|
+
var isClockTimeColon = (before, after) => {
|
|
26
|
+
const hour = /(\d+)$/.exec(before)?.[1];
|
|
27
|
+
const minute = /^(\d+)/.exec(after)?.[1];
|
|
28
|
+
if (!hour || !minute) return false;
|
|
29
|
+
return hour.length <= 2 && Number(hour) <= 24 && minute.length <= 2 && Number(minute) <= 60;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Cuts only source text, so retained word ranges and annotations do not need fabricated character timings.
|
|
33
|
+
*/
|
|
34
|
+
var removePrefix = (content, length) => {
|
|
35
|
+
if (!content) return;
|
|
36
|
+
if (content.text !== void 0) {
|
|
37
|
+
const text = content.text.slice(length).trim();
|
|
38
|
+
return text ? makeLineContentText(text) : void 0;
|
|
39
|
+
}
|
|
40
|
+
const words = [];
|
|
41
|
+
let remaining = length;
|
|
42
|
+
for (const word of content.words) {
|
|
43
|
+
if (remaining >= word.text.length) {
|
|
44
|
+
remaining -= word.text.length;
|
|
45
|
+
continue;
|
|
46
|
+
}
|
|
47
|
+
if (remaining > 0) {
|
|
48
|
+
const text = word.text.slice(remaining).trim();
|
|
49
|
+
remaining = 0;
|
|
50
|
+
if (text) words.push({
|
|
51
|
+
...word,
|
|
52
|
+
text
|
|
53
|
+
});
|
|
54
|
+
} else words.push(word);
|
|
55
|
+
}
|
|
56
|
+
return words.some((word) => !!word.text.trim()) ? makeLineContentWords(words) : void 0;
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* Extracts colon-prefixed performers and carries them across nonempty normal lines, replacing their existing agent lists.
|
|
60
|
+
* Missing bindings enables legacy name inference; supplied bindings accept exact prefixes and reset propagation on unmatched prefixes.
|
|
61
|
+
* Removing prefixes preserves retained line and word times, but drops prefix-only lines with their attached content.
|
|
5
62
|
*
|
|
6
|
-
* The
|
|
63
|
+
* @returns The input when unchanged, or a new lyric sharing all unchanged nodes.
|
|
64
|
+
*
|
|
65
|
+
* @throws {TypeError} If bindings reference an agent id absent from lyric.agents.
|
|
7
66
|
*/
|
|
8
|
-
var
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
67
|
+
var extractAgents = (lyric, options = {}) => {
|
|
68
|
+
const bindings = prepareBindings(options.bindings, lyric.agents);
|
|
69
|
+
if (bindings?.size === 0 || !lyric.lines.length) return lyric;
|
|
70
|
+
const removePrefixes = options.removePrefixes ?? true;
|
|
71
|
+
const usedIds = new Set(lyric.agents.map((agent) => agent.id));
|
|
72
|
+
const names = /* @__PURE__ */ new Map();
|
|
73
|
+
for (const agent of lyric.agents) {
|
|
74
|
+
if (!agent.id) continue;
|
|
75
|
+
for (const item of agent.names) {
|
|
76
|
+
const name = item.text.trim();
|
|
77
|
+
if (!name) continue;
|
|
78
|
+
if (!names.has(name)) names.set(name, agent.id);
|
|
79
|
+
else if (names.get(name) !== agent.id) names.set(name, null);
|
|
15
80
|
}
|
|
16
81
|
}
|
|
17
|
-
|
|
82
|
+
let agents = lyric.agents;
|
|
83
|
+
const resolveName = (name) => {
|
|
84
|
+
const existing = names.get(name);
|
|
85
|
+
if (existing) return [existing];
|
|
86
|
+
const base = hashName(name);
|
|
87
|
+
let id = base;
|
|
88
|
+
for (let suffix = 1; usedIds.has(id); suffix += 1) id = `${base}-${suffix}`;
|
|
89
|
+
const agent = makeAgent({
|
|
90
|
+
id,
|
|
91
|
+
type: AgentType.PERSON,
|
|
92
|
+
names: [makeText({ text: name })]
|
|
93
|
+
});
|
|
94
|
+
if (agents === lyric.agents) agents = [...agents];
|
|
95
|
+
agents.push(agent);
|
|
96
|
+
usedIds.add(id);
|
|
97
|
+
names.set(name, id);
|
|
98
|
+
return [id];
|
|
99
|
+
};
|
|
100
|
+
const originalLines = lyric.lines;
|
|
101
|
+
let lines;
|
|
102
|
+
let current;
|
|
103
|
+
let contentChanged = false;
|
|
104
|
+
for (const [index, line] of originalLines.entries()) {
|
|
105
|
+
const text = line.type === LineType.NORMAL ? getContentText(line.content) : "";
|
|
106
|
+
if (line.type !== LineType.NORMAL || !text.trim()) {
|
|
107
|
+
current = void 0;
|
|
108
|
+
lines?.push(line);
|
|
109
|
+
continue;
|
|
110
|
+
}
|
|
111
|
+
const colon = text.search(/[::]/u);
|
|
112
|
+
let matched = false;
|
|
113
|
+
if (colon !== -1) {
|
|
114
|
+
const name = text.slice(0, colon).trim();
|
|
115
|
+
if (bindings) {
|
|
116
|
+
const target = bindings.get(name);
|
|
117
|
+
if (!target) {
|
|
118
|
+
current = void 0;
|
|
119
|
+
lines?.push(line);
|
|
120
|
+
continue;
|
|
121
|
+
}
|
|
122
|
+
current = target;
|
|
123
|
+
matched = true;
|
|
124
|
+
} else if (!isClockTimeColon(text.slice(0, colon), text.slice(colon + 1))) {
|
|
125
|
+
if (!name) {
|
|
126
|
+
current = void 0;
|
|
127
|
+
lines?.push(line);
|
|
128
|
+
continue;
|
|
129
|
+
}
|
|
130
|
+
current = resolveName(name);
|
|
131
|
+
matched = true;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
let content = line.content;
|
|
135
|
+
if (matched && removePrefixes) {
|
|
136
|
+
content = removePrefix(content, colon + 1);
|
|
137
|
+
contentChanged = true;
|
|
138
|
+
if (!content) {
|
|
139
|
+
lines ??= originalLines.slice(0, index);
|
|
140
|
+
continue;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
const nextAgents = current && !haveSameAgents(line.agents, current) ? [...current] : line.agents;
|
|
144
|
+
if (content !== line.content || nextAgents !== line.agents) {
|
|
145
|
+
lines ??= originalLines.slice(0, index);
|
|
146
|
+
lines.push({
|
|
147
|
+
...line,
|
|
148
|
+
content,
|
|
149
|
+
agents: nextAgents
|
|
150
|
+
});
|
|
151
|
+
} else lines?.push(line);
|
|
152
|
+
}
|
|
153
|
+
if (!lines && agents === lyric.agents) return lyric;
|
|
154
|
+
const remainingLines = lines ?? originalLines;
|
|
155
|
+
let timing = lyric.timing;
|
|
156
|
+
if (contentChanged && timing === Timing.WORD) {
|
|
157
|
+
if (!remainingLines.some((line) => {
|
|
158
|
+
return isWordLevelLine(line) || line.backgrounds.some(isWordLevelLine);
|
|
159
|
+
})) timing = Timing.LINE;
|
|
160
|
+
}
|
|
161
|
+
return {
|
|
162
|
+
...lyric,
|
|
163
|
+
agents,
|
|
164
|
+
lines: remainingLines,
|
|
165
|
+
timing,
|
|
166
|
+
languages: contentChanged ? deriveLanguageUsages(remainingLines) : lyric.languages
|
|
167
|
+
};
|
|
18
168
|
};
|
|
19
169
|
//#endregion
|
|
20
170
|
//#region src/transforms/background/utils.ts
|
|
@@ -175,7 +325,7 @@ var splitText = (text) => {
|
|
|
175
325
|
return {
|
|
176
326
|
main: main.trim().replaceAll(/\s{2,}/gu, " "),
|
|
177
327
|
runs: runs.filter((run) => {
|
|
178
|
-
return run.text.trim()
|
|
328
|
+
return !!run.text.trim();
|
|
179
329
|
}),
|
|
180
330
|
length: chars.length
|
|
181
331
|
};
|
|
@@ -247,13 +397,13 @@ var splitWords = (words) => {
|
|
|
247
397
|
main,
|
|
248
398
|
runs: runs.filter((run) => {
|
|
249
399
|
return run.some((word) => {
|
|
250
|
-
return word.text.trim()
|
|
400
|
+
return !!word.text.trim();
|
|
251
401
|
});
|
|
252
402
|
})
|
|
253
403
|
};
|
|
254
404
|
};
|
|
255
405
|
var mapSpan = (range, length, run) => {
|
|
256
|
-
if (range.end === void 0 || length
|
|
406
|
+
if (range.end === void 0 || !length) return makeTimeRange({
|
|
257
407
|
start: range.start,
|
|
258
408
|
end: range.end
|
|
259
409
|
});
|
|
@@ -270,7 +420,7 @@ var mapSpan = (range, length, run) => {
|
|
|
270
420
|
*/
|
|
271
421
|
var readWordRange = (words, fallback) => {
|
|
272
422
|
const timed = words.filter((word) => {
|
|
273
|
-
return isNormalWord(word) && word.time
|
|
423
|
+
return isNormalWord(word) && !!word.time;
|
|
274
424
|
});
|
|
275
425
|
const first = timed[0]?.time;
|
|
276
426
|
const last = timed.at(-1)?.time;
|
|
@@ -316,7 +466,7 @@ var boundOpenBackgrounds = (lines) => {
|
|
|
316
466
|
const last = lines.length - 1;
|
|
317
467
|
return lines.map((line, index) => {
|
|
318
468
|
if (!line.backgrounds.filter((background) => {
|
|
319
|
-
return background.time
|
|
469
|
+
return !!background.time && background.time.end === void 0;
|
|
320
470
|
}).length) return line;
|
|
321
471
|
if (index === last) return line.time ? {
|
|
322
472
|
...line,
|
|
@@ -428,7 +578,7 @@ var toBackground = (line, time, wordLevel) => {
|
|
|
428
578
|
var isBracketOnlyLine = (line) => {
|
|
429
579
|
if (!line || line.type !== LineType.NORMAL) return false;
|
|
430
580
|
const { main, runs } = splitText(readLineText(line));
|
|
431
|
-
return runs.length
|
|
581
|
+
return !!runs.length && !main;
|
|
432
582
|
};
|
|
433
583
|
/**
|
|
434
584
|
* A line that held nothing but brackets has no text of its own to sing, so it cannot be the one a background accompanies.
|
|
@@ -457,8 +607,8 @@ var joinCrossLine = (lines, wordLevel) => {
|
|
|
457
607
|
if (line.type === LineType.NORMAL && next?.type === LineType.NORMAL && parentIndex !== -1) {
|
|
458
608
|
const opened = splitText(readLineText(line));
|
|
459
609
|
const closed = splitText(readLineText(next));
|
|
460
|
-
const opens = opened.runs.length
|
|
461
|
-
const closes = closed.runs.length
|
|
610
|
+
const opens = !opened.runs.length && isOpenBracket(opened.main.charAt(0));
|
|
611
|
+
const closes = !closed.runs.length && isCloseBracket(closed.main.charAt(closed.main.length - 1));
|
|
462
612
|
if (opens && closes) {
|
|
463
613
|
const start = line.time?.start;
|
|
464
614
|
const end = next.time?.end ?? next.time?.start;
|
|
@@ -556,15 +706,1832 @@ var extractBackgroundLines = (lyric, options = {}) => {
|
|
|
556
706
|
languages: deriveLanguageUsages(lines)
|
|
557
707
|
};
|
|
558
708
|
};
|
|
709
|
+
var en_default$1 = {
|
|
710
|
+
$schema: "../schema.json",
|
|
711
|
+
version: 1,
|
|
712
|
+
language: "en",
|
|
713
|
+
normalization: {
|
|
714
|
+
"whitespace": "remove",
|
|
715
|
+
"case": "asciiLower"
|
|
716
|
+
},
|
|
717
|
+
groups: [
|
|
718
|
+
{
|
|
719
|
+
"id": "lyricist",
|
|
720
|
+
"kind": "role",
|
|
721
|
+
"roles": ["LYRICIST"],
|
|
722
|
+
"words": [
|
|
723
|
+
"Lyrics",
|
|
724
|
+
"Lyricsby",
|
|
725
|
+
"Lyricist",
|
|
726
|
+
"Words",
|
|
727
|
+
"Wordsby",
|
|
728
|
+
"Lyric",
|
|
729
|
+
"Lyr",
|
|
730
|
+
"Lyricists",
|
|
731
|
+
"Lyricwriting"
|
|
732
|
+
]
|
|
733
|
+
},
|
|
734
|
+
{
|
|
735
|
+
"id": "composer",
|
|
736
|
+
"kind": "role",
|
|
737
|
+
"roles": ["COMPOSER"],
|
|
738
|
+
"words": [
|
|
739
|
+
"Music",
|
|
740
|
+
"Musicby",
|
|
741
|
+
"Composer",
|
|
742
|
+
"Composedby",
|
|
743
|
+
"Compose",
|
|
744
|
+
"Composition",
|
|
745
|
+
"Melody",
|
|
746
|
+
"Melodyby",
|
|
747
|
+
"Comp",
|
|
748
|
+
"Composers",
|
|
749
|
+
"Score",
|
|
750
|
+
"Scoredby",
|
|
751
|
+
"Composed"
|
|
752
|
+
]
|
|
753
|
+
},
|
|
754
|
+
{
|
|
755
|
+
"id": "arranger",
|
|
756
|
+
"kind": "role",
|
|
757
|
+
"roles": ["ARRANGER"],
|
|
758
|
+
"words": [
|
|
759
|
+
"Arrangement",
|
|
760
|
+
"Arranger",
|
|
761
|
+
"Arrangedby",
|
|
762
|
+
"Arranged",
|
|
763
|
+
"Arrange",
|
|
764
|
+
"Arr",
|
|
765
|
+
"Orchestration",
|
|
766
|
+
"StringArrangement",
|
|
767
|
+
"VocalArrangement",
|
|
768
|
+
"ChoirArrangement",
|
|
769
|
+
"Orchestrator",
|
|
770
|
+
"Orchestratedby",
|
|
771
|
+
"Orch",
|
|
772
|
+
"AdditionalArrangement",
|
|
773
|
+
"BGVsArranger",
|
|
774
|
+
"BVArranger",
|
|
775
|
+
"BackgroundVocalArrangement",
|
|
776
|
+
"BackgroundVocalsArrangement",
|
|
777
|
+
"BackingVocalsArranger",
|
|
778
|
+
"BackingVocalArrangement",
|
|
779
|
+
"BackingVocalsArrangement",
|
|
780
|
+
"BrassArrangement",
|
|
781
|
+
"HornArrangement",
|
|
782
|
+
"OrchestralArrangement",
|
|
783
|
+
"RhythmArrangement",
|
|
784
|
+
"StringArrangedby",
|
|
785
|
+
"StringArranger",
|
|
786
|
+
"VocalArrangedby",
|
|
787
|
+
"VocalArranger"
|
|
788
|
+
]
|
|
789
|
+
},
|
|
790
|
+
{
|
|
791
|
+
"id": "producer",
|
|
792
|
+
"kind": "role",
|
|
793
|
+
"roles": ["PRODUCER"],
|
|
794
|
+
"words": [
|
|
795
|
+
"Producer",
|
|
796
|
+
"Producedby",
|
|
797
|
+
"Produced",
|
|
798
|
+
"Production",
|
|
799
|
+
"Prod",
|
|
800
|
+
"Prodby",
|
|
801
|
+
"Producers",
|
|
802
|
+
"Produce",
|
|
803
|
+
"CoProducer",
|
|
804
|
+
"Co-Producer",
|
|
805
|
+
"ExecutiveProducer",
|
|
806
|
+
"AdditionalProducer",
|
|
807
|
+
"AdditionalProduction",
|
|
808
|
+
"VocalProducer",
|
|
809
|
+
"MusicProducer",
|
|
810
|
+
"AssociateProducer",
|
|
811
|
+
"Co-Produced",
|
|
812
|
+
"Co-Producedby",
|
|
813
|
+
"Co-Production",
|
|
814
|
+
"Co-Productionby",
|
|
815
|
+
"CoProd",
|
|
816
|
+
"Coproduction",
|
|
817
|
+
"CreativeProducer",
|
|
818
|
+
"ExProd",
|
|
819
|
+
"ExecProducer",
|
|
820
|
+
"ExecutiveProducers",
|
|
821
|
+
"Productionby",
|
|
822
|
+
"VocalProduction",
|
|
823
|
+
"MusicSupervisor",
|
|
824
|
+
"Supervisor",
|
|
825
|
+
"Presentedby",
|
|
826
|
+
"Presenter"
|
|
827
|
+
]
|
|
828
|
+
},
|
|
829
|
+
{
|
|
830
|
+
"id": "performer",
|
|
831
|
+
"kind": "role",
|
|
832
|
+
"roles": ["PERFORMER"],
|
|
833
|
+
"words": [
|
|
834
|
+
"Vocals",
|
|
835
|
+
"Vocal",
|
|
836
|
+
"Vocalist",
|
|
837
|
+
"Singer",
|
|
838
|
+
"Voice",
|
|
839
|
+
"Performer",
|
|
840
|
+
"Featuring",
|
|
841
|
+
"Feat",
|
|
842
|
+
"Ft",
|
|
843
|
+
"Artist",
|
|
844
|
+
"Vocalsby",
|
|
845
|
+
"Sungby",
|
|
846
|
+
"Performedby",
|
|
847
|
+
"Performed",
|
|
848
|
+
"LeadVocal",
|
|
849
|
+
"LeadVocals",
|
|
850
|
+
"BackgroundVocals",
|
|
851
|
+
"BackingVocals",
|
|
852
|
+
"Harmony",
|
|
853
|
+
"Choir",
|
|
854
|
+
"Band",
|
|
855
|
+
"Rap",
|
|
856
|
+
"Rapper",
|
|
857
|
+
"Soloist",
|
|
858
|
+
"Musician",
|
|
859
|
+
"Player",
|
|
860
|
+
"GuestVocals",
|
|
861
|
+
"FeaturedArtist",
|
|
862
|
+
"Narrator",
|
|
863
|
+
"Guitarist",
|
|
864
|
+
"Bassist",
|
|
865
|
+
"Pianist",
|
|
866
|
+
"Drummer",
|
|
867
|
+
"Keyboardist",
|
|
868
|
+
"Violinist",
|
|
869
|
+
"Cellist",
|
|
870
|
+
"Accompaniment",
|
|
871
|
+
"Accompanist",
|
|
872
|
+
"Accordionist",
|
|
873
|
+
"Ad-lib",
|
|
874
|
+
"Ad-libs",
|
|
875
|
+
"AdditionalVocals",
|
|
876
|
+
"Adlib",
|
|
877
|
+
"Adlibs",
|
|
878
|
+
"Allvocals",
|
|
879
|
+
"Allvocalsby",
|
|
880
|
+
"BGV",
|
|
881
|
+
"BGVs",
|
|
882
|
+
"BGs",
|
|
883
|
+
"BV",
|
|
884
|
+
"BackgroundVocal",
|
|
885
|
+
"BackingVocal",
|
|
886
|
+
"Banjoist",
|
|
887
|
+
"Beatbox",
|
|
888
|
+
"Beatboxer",
|
|
889
|
+
"Bvox",
|
|
890
|
+
"CV",
|
|
891
|
+
"ChildrenVoice",
|
|
892
|
+
"Clarinetist",
|
|
893
|
+
"Contrabassist",
|
|
894
|
+
"CoverSong",
|
|
895
|
+
"Dialogue",
|
|
896
|
+
"Ensemble",
|
|
897
|
+
"FemaleVoice",
|
|
898
|
+
"Flutist",
|
|
899
|
+
"GuestArtist",
|
|
900
|
+
"GuestSinger",
|
|
901
|
+
"Harmonies",
|
|
902
|
+
"Harpist",
|
|
903
|
+
"Hornist",
|
|
904
|
+
"HumanBeatbox",
|
|
905
|
+
"HumanVoice",
|
|
906
|
+
"LeadSinger",
|
|
907
|
+
"LeadVocalist",
|
|
908
|
+
"LiveBand",
|
|
909
|
+
"MainVocal",
|
|
910
|
+
"MainVocals",
|
|
911
|
+
"MaleVoice",
|
|
912
|
+
"Mandolinist",
|
|
913
|
+
"Narration",
|
|
914
|
+
"Orchestra",
|
|
915
|
+
"Organist",
|
|
916
|
+
"OriginalSinger",
|
|
917
|
+
"Percussionist",
|
|
918
|
+
"Recitation",
|
|
919
|
+
"Saxophonist",
|
|
920
|
+
"SessionMusician",
|
|
921
|
+
"SessionPlayer",
|
|
922
|
+
"Singers",
|
|
923
|
+
"Singing",
|
|
924
|
+
"Sitarist",
|
|
925
|
+
"Trombonist",
|
|
926
|
+
"Trumpeter",
|
|
927
|
+
"Tubist",
|
|
928
|
+
"Ukuleleist",
|
|
929
|
+
"Violist",
|
|
930
|
+
"VocalPerformance",
|
|
931
|
+
"Vocalists",
|
|
932
|
+
"VoiceActor",
|
|
933
|
+
"VoiceActress",
|
|
934
|
+
"Vox",
|
|
935
|
+
"Chorus",
|
|
936
|
+
"Solo"
|
|
937
|
+
]
|
|
938
|
+
},
|
|
939
|
+
{
|
|
940
|
+
"id": "instruments",
|
|
941
|
+
"kind": "instrument",
|
|
942
|
+
"roles": ["PERFORMER"],
|
|
943
|
+
"words": [
|
|
944
|
+
"Guitar",
|
|
945
|
+
"Piano",
|
|
946
|
+
"Bass",
|
|
947
|
+
"Drums",
|
|
948
|
+
"Keyboard",
|
|
949
|
+
"Strings",
|
|
950
|
+
"Synth",
|
|
951
|
+
"Violin",
|
|
952
|
+
"Cello",
|
|
953
|
+
"Saxophone",
|
|
954
|
+
"Trumpet",
|
|
955
|
+
"Flute",
|
|
956
|
+
"Clarinet",
|
|
957
|
+
"Trombone",
|
|
958
|
+
"Horn",
|
|
959
|
+
"Organ",
|
|
960
|
+
"Percussion",
|
|
961
|
+
"Ukulele",
|
|
962
|
+
"Banjo",
|
|
963
|
+
"Mandolin",
|
|
964
|
+
"Harp",
|
|
965
|
+
"Viola",
|
|
966
|
+
"AcousticGuitar",
|
|
967
|
+
"ElectricGuitar",
|
|
968
|
+
"BassGuitar",
|
|
969
|
+
"ElectricBass",
|
|
970
|
+
"Keyboards",
|
|
971
|
+
"Keys",
|
|
972
|
+
"Synthesizer",
|
|
973
|
+
"Perc",
|
|
974
|
+
"12-StringGuitar",
|
|
975
|
+
"A.Gtr",
|
|
976
|
+
"A.Sax",
|
|
977
|
+
"Accordion",
|
|
978
|
+
"AcousticBass",
|
|
979
|
+
"AcousticElectricGuitar",
|
|
980
|
+
"Allinstrumental",
|
|
981
|
+
"Allinstrumentalby",
|
|
982
|
+
"Allinstruments",
|
|
983
|
+
"AltoSax",
|
|
984
|
+
"AltoSaxophone",
|
|
985
|
+
"AppalachianDulcimer",
|
|
986
|
+
"Autoharp",
|
|
987
|
+
"B.Cl",
|
|
988
|
+
"B.Sax",
|
|
989
|
+
"B3",
|
|
990
|
+
"BANDONEÓN",
|
|
991
|
+
"BODHRÁN",
|
|
992
|
+
"Bagpipe",
|
|
993
|
+
"Bagpipes",
|
|
994
|
+
"Balalaika",
|
|
995
|
+
"Bandoneon",
|
|
996
|
+
"Bandoneón",
|
|
997
|
+
"Banhu",
|
|
998
|
+
"Bansuri",
|
|
999
|
+
"BaritoneSax",
|
|
1000
|
+
"BaritoneSaxophone",
|
|
1001
|
+
"BassClarinet",
|
|
1002
|
+
"BassSynth",
|
|
1003
|
+
"Bassoon",
|
|
1004
|
+
"Bawu",
|
|
1005
|
+
"Bodhran",
|
|
1006
|
+
"Bodhrán",
|
|
1007
|
+
"Bongo",
|
|
1008
|
+
"Bouzouki",
|
|
1009
|
+
"Brass",
|
|
1010
|
+
"Bsn",
|
|
1011
|
+
"Bss",
|
|
1012
|
+
"CAJÓN",
|
|
1013
|
+
"Cajon",
|
|
1014
|
+
"Cajón",
|
|
1015
|
+
"Castanets",
|
|
1016
|
+
"Cb",
|
|
1017
|
+
"Celesta",
|
|
1018
|
+
"Charango",
|
|
1019
|
+
"Chimes",
|
|
1020
|
+
"Cl",
|
|
1021
|
+
"ClassicalGuitar",
|
|
1022
|
+
"Clav",
|
|
1023
|
+
"Claves",
|
|
1024
|
+
"Clavinet",
|
|
1025
|
+
"Cnt",
|
|
1026
|
+
"Concertina",
|
|
1027
|
+
"Conga",
|
|
1028
|
+
"Contrabass",
|
|
1029
|
+
"Cornet",
|
|
1030
|
+
"Cowbell",
|
|
1031
|
+
"Cymbal",
|
|
1032
|
+
"Cymbals",
|
|
1033
|
+
"DJ",
|
|
1034
|
+
"Daegeum",
|
|
1035
|
+
"Darbuka",
|
|
1036
|
+
"Daruan",
|
|
1037
|
+
"Didgeridoo",
|
|
1038
|
+
"Dizi",
|
|
1039
|
+
"Djembe",
|
|
1040
|
+
"Dobro",
|
|
1041
|
+
"DoubleBass",
|
|
1042
|
+
"Doumbek",
|
|
1043
|
+
"Dr",
|
|
1044
|
+
"Drum",
|
|
1045
|
+
"DrumMachine",
|
|
1046
|
+
"DrumPad",
|
|
1047
|
+
"DrumSet",
|
|
1048
|
+
"Duduk",
|
|
1049
|
+
"Dulcimer",
|
|
1050
|
+
"E.Bss",
|
|
1051
|
+
"E.Gtr",
|
|
1052
|
+
"E.Hn",
|
|
1053
|
+
"EP",
|
|
1054
|
+
"ElectricPiano",
|
|
1055
|
+
"ElectronicKeyboard",
|
|
1056
|
+
"EnglishHorn",
|
|
1057
|
+
"Erhu",
|
|
1058
|
+
"Euph",
|
|
1059
|
+
"Euphonium",
|
|
1060
|
+
"FingerDrumming",
|
|
1061
|
+
"Fingerpicking",
|
|
1062
|
+
"FingerstyleGuitar",
|
|
1063
|
+
"Fl",
|
|
1064
|
+
"Flageolet",
|
|
1065
|
+
"Flt",
|
|
1066
|
+
"Flugelhorn",
|
|
1067
|
+
"FrameDrum",
|
|
1068
|
+
"FrenchHorn",
|
|
1069
|
+
"Gaohu",
|
|
1070
|
+
"Gayageum",
|
|
1071
|
+
"Glockenspiel",
|
|
1072
|
+
"Gong",
|
|
1073
|
+
"Gtr",
|
|
1074
|
+
"Guiro",
|
|
1075
|
+
"Guitars",
|
|
1076
|
+
"Guqin",
|
|
1077
|
+
"Guzheng",
|
|
1078
|
+
"GÜIRO",
|
|
1079
|
+
"Güiro",
|
|
1080
|
+
"Haegeum",
|
|
1081
|
+
"HammeredDulcimer",
|
|
1082
|
+
"Hammond",
|
|
1083
|
+
"HammondOrgan",
|
|
1084
|
+
"HandDrum",
|
|
1085
|
+
"Handpan",
|
|
1086
|
+
"HangDrum",
|
|
1087
|
+
"Harmonica",
|
|
1088
|
+
"Harmonium",
|
|
1089
|
+
"Harpsichord",
|
|
1090
|
+
"Hn",
|
|
1091
|
+
"HornSection",
|
|
1092
|
+
"Horns",
|
|
1093
|
+
"Hpschd",
|
|
1094
|
+
"Hrp",
|
|
1095
|
+
"Hulusi",
|
|
1096
|
+
"Hurdy-Gurdy",
|
|
1097
|
+
"HurdyGurdy",
|
|
1098
|
+
"Janggu",
|
|
1099
|
+
"Jinghu",
|
|
1100
|
+
"Kalimba",
|
|
1101
|
+
"Keytar",
|
|
1102
|
+
"Konghou",
|
|
1103
|
+
"Kora",
|
|
1104
|
+
"Koto",
|
|
1105
|
+
"Kybd",
|
|
1106
|
+
"LapSteel",
|
|
1107
|
+
"LapSteelGuitar",
|
|
1108
|
+
"LeadGuitar",
|
|
1109
|
+
"Liuqin",
|
|
1110
|
+
"Lute",
|
|
1111
|
+
"MPC",
|
|
1112
|
+
"Marimba",
|
|
1113
|
+
"Matouqin",
|
|
1114
|
+
"Mbira",
|
|
1115
|
+
"Mellotron",
|
|
1116
|
+
"Melodica",
|
|
1117
|
+
"MorinKhuur",
|
|
1118
|
+
"MusicalInstruments",
|
|
1119
|
+
"Nyckelharpa",
|
|
1120
|
+
"NylonGuitar",
|
|
1121
|
+
"Ob",
|
|
1122
|
+
"Oboe",
|
|
1123
|
+
"Ocarina",
|
|
1124
|
+
"Org",
|
|
1125
|
+
"Oud",
|
|
1126
|
+
"PanFlute",
|
|
1127
|
+
"Panpipes",
|
|
1128
|
+
"PedalSteel",
|
|
1129
|
+
"PedalSteelGuitar",
|
|
1130
|
+
"PennyWhistle",
|
|
1131
|
+
"Picc",
|
|
1132
|
+
"Piccolo",
|
|
1133
|
+
"Pipa",
|
|
1134
|
+
"Pno",
|
|
1135
|
+
"Rebab",
|
|
1136
|
+
"Recorder",
|
|
1137
|
+
"Resonator",
|
|
1138
|
+
"ResonatorGuitar",
|
|
1139
|
+
"Rhodes",
|
|
1140
|
+
"RhythmGuitar",
|
|
1141
|
+
"Ruan",
|
|
1142
|
+
"S.Sax",
|
|
1143
|
+
"Sampler",
|
|
1144
|
+
"Sanxian",
|
|
1145
|
+
"Sax",
|
|
1146
|
+
"Scratching",
|
|
1147
|
+
"Sequencer",
|
|
1148
|
+
"Shaker",
|
|
1149
|
+
"Shakuhachi",
|
|
1150
|
+
"Shamisen",
|
|
1151
|
+
"Sheng",
|
|
1152
|
+
"Sitar",
|
|
1153
|
+
"SlideGuitar",
|
|
1154
|
+
"Snare",
|
|
1155
|
+
"SnareDrum",
|
|
1156
|
+
"SopranoSax",
|
|
1157
|
+
"SteelDrum",
|
|
1158
|
+
"SteelGuitar",
|
|
1159
|
+
"SteelPan",
|
|
1160
|
+
"Str",
|
|
1161
|
+
"String",
|
|
1162
|
+
"StringQuartet",
|
|
1163
|
+
"StringSection",
|
|
1164
|
+
"SubBass",
|
|
1165
|
+
"Suona",
|
|
1166
|
+
"SynthBass",
|
|
1167
|
+
"Synthesizers",
|
|
1168
|
+
"Synths",
|
|
1169
|
+
"T.Sax",
|
|
1170
|
+
"Tabla",
|
|
1171
|
+
"Taiko",
|
|
1172
|
+
"TalkingDrum",
|
|
1173
|
+
"Tamb",
|
|
1174
|
+
"Tambourine",
|
|
1175
|
+
"Tba",
|
|
1176
|
+
"Tbn",
|
|
1177
|
+
"TenorSax",
|
|
1178
|
+
"TenorSaxophone",
|
|
1179
|
+
"Theremin",
|
|
1180
|
+
"Timbales",
|
|
1181
|
+
"Timp",
|
|
1182
|
+
"Timpani",
|
|
1183
|
+
"TinWhistle",
|
|
1184
|
+
"Tpt",
|
|
1185
|
+
"Triangle",
|
|
1186
|
+
"Tuba",
|
|
1187
|
+
"TubularBells",
|
|
1188
|
+
"Turntable",
|
|
1189
|
+
"Turntables",
|
|
1190
|
+
"Uke",
|
|
1191
|
+
"UprightBass",
|
|
1192
|
+
"Vc",
|
|
1193
|
+
"Vib",
|
|
1194
|
+
"Vibes",
|
|
1195
|
+
"Vibraphone",
|
|
1196
|
+
"Vla",
|
|
1197
|
+
"Vln",
|
|
1198
|
+
"Vocoder",
|
|
1199
|
+
"Whistle",
|
|
1200
|
+
"Winds",
|
|
1201
|
+
"Woodblock",
|
|
1202
|
+
"Woodwinds",
|
|
1203
|
+
"Wurlitzer",
|
|
1204
|
+
"Xiao",
|
|
1205
|
+
"Xiaoruan",
|
|
1206
|
+
"Xun",
|
|
1207
|
+
"Xylo",
|
|
1208
|
+
"Xylophone",
|
|
1209
|
+
"Yangqin",
|
|
1210
|
+
"Yueqin",
|
|
1211
|
+
"Zhonghu",
|
|
1212
|
+
"Zither"
|
|
1213
|
+
]
|
|
1214
|
+
},
|
|
1215
|
+
{
|
|
1216
|
+
"id": "mixer",
|
|
1217
|
+
"kind": "role",
|
|
1218
|
+
"roles": ["MIXER"],
|
|
1219
|
+
"words": [
|
|
1220
|
+
"Mix",
|
|
1221
|
+
"Mixedby",
|
|
1222
|
+
"Mixing",
|
|
1223
|
+
"Mixer",
|
|
1224
|
+
"MixingEngineer",
|
|
1225
|
+
"MixEngineer",
|
|
1226
|
+
"Remix",
|
|
1227
|
+
"Remixedby",
|
|
1228
|
+
"Remixer",
|
|
1229
|
+
"Mixdown",
|
|
1230
|
+
"Mixdownby",
|
|
1231
|
+
"Mixed",
|
|
1232
|
+
"Remixby"
|
|
1233
|
+
]
|
|
1234
|
+
},
|
|
1235
|
+
{
|
|
1236
|
+
"id": "mastering",
|
|
1237
|
+
"kind": "role",
|
|
1238
|
+
"roles": ["MASTERING"],
|
|
1239
|
+
"words": [
|
|
1240
|
+
"Mastering",
|
|
1241
|
+
"Masteredby",
|
|
1242
|
+
"Master",
|
|
1243
|
+
"MasteringEngineer",
|
|
1244
|
+
"MasterEngineer",
|
|
1245
|
+
"Mst",
|
|
1246
|
+
"Mastered",
|
|
1247
|
+
"MasteringEngineerby",
|
|
1248
|
+
"Masteringby"
|
|
1249
|
+
]
|
|
1250
|
+
},
|
|
1251
|
+
{
|
|
1252
|
+
"id": "lyrics-and-composition",
|
|
1253
|
+
"kind": "role",
|
|
1254
|
+
"roles": ["LYRICIST", "COMPOSER"],
|
|
1255
|
+
"words": [
|
|
1256
|
+
"Lyrics&Music",
|
|
1257
|
+
"Music&Lyrics",
|
|
1258
|
+
"Words&Music",
|
|
1259
|
+
"Lyrics&Musicby",
|
|
1260
|
+
"Music&Lyricsby",
|
|
1261
|
+
"Words&Musicby",
|
|
1262
|
+
"Composed&Writtenby",
|
|
1263
|
+
"ComposedandWrittenby",
|
|
1264
|
+
"Composer&Lyricist",
|
|
1265
|
+
"Composer/Lyricist",
|
|
1266
|
+
"Lyricist&Composer",
|
|
1267
|
+
"Lyricist/Composer",
|
|
1268
|
+
"Lyrics&Melody",
|
|
1269
|
+
"Lyrics/Music",
|
|
1270
|
+
"LyricsandMusic",
|
|
1271
|
+
"LyricsandMusicby",
|
|
1272
|
+
"Melody&Lyrics",
|
|
1273
|
+
"Melody&Words",
|
|
1274
|
+
"Music&Words",
|
|
1275
|
+
"Music/Lyrics",
|
|
1276
|
+
"MusicandLyrics",
|
|
1277
|
+
"MusicandLyricsby",
|
|
1278
|
+
"Words&Melody",
|
|
1279
|
+
"Words/Music",
|
|
1280
|
+
"WordsandMusic",
|
|
1281
|
+
"WordsandMusicby",
|
|
1282
|
+
"Written&Composedby",
|
|
1283
|
+
"WrittenandComposedby"
|
|
1284
|
+
]
|
|
1285
|
+
},
|
|
1286
|
+
{
|
|
1287
|
+
"id": "composition-and-arrangement",
|
|
1288
|
+
"kind": "role",
|
|
1289
|
+
"roles": ["COMPOSER", "ARRANGER"],
|
|
1290
|
+
"words": [
|
|
1291
|
+
"Composer&Arranger",
|
|
1292
|
+
"Composer/Arranger",
|
|
1293
|
+
"Composed&Arrangedby",
|
|
1294
|
+
"Music&Arrangement",
|
|
1295
|
+
"Composed&Arranged",
|
|
1296
|
+
"ComposedandArrangedby",
|
|
1297
|
+
"ComposerandArranger",
|
|
1298
|
+
"Composition&Arrangement",
|
|
1299
|
+
"MusicandArrangement"
|
|
1300
|
+
]
|
|
1301
|
+
},
|
|
1302
|
+
{
|
|
1303
|
+
"id": "mixing-and-mastering",
|
|
1304
|
+
"kind": "role",
|
|
1305
|
+
"roles": ["MIXER", "MASTERING"],
|
|
1306
|
+
"words": [
|
|
1307
|
+
"Mix&Master",
|
|
1308
|
+
"Mix/Master",
|
|
1309
|
+
"Mixed&Masteredby",
|
|
1310
|
+
"Mixing&Mastering",
|
|
1311
|
+
"Mixing/Mastering",
|
|
1312
|
+
"Mix&Mastering",
|
|
1313
|
+
"MixandMaster",
|
|
1314
|
+
"MixandMastering",
|
|
1315
|
+
"MixedandMasteredby",
|
|
1316
|
+
"Mixing&Master",
|
|
1317
|
+
"MixingandMaster",
|
|
1318
|
+
"MixingandMastering"
|
|
1319
|
+
]
|
|
1320
|
+
},
|
|
1321
|
+
{
|
|
1322
|
+
"id": "lyrics-and-arrangement",
|
|
1323
|
+
"kind": "role",
|
|
1324
|
+
"roles": ["LYRICIST", "ARRANGER"],
|
|
1325
|
+
"words": [
|
|
1326
|
+
"Lyrics&Arrangement",
|
|
1327
|
+
"LyricsArrangement",
|
|
1328
|
+
"LyricsandArrangement",
|
|
1329
|
+
"Words&Arrangement",
|
|
1330
|
+
"WordsArrangement"
|
|
1331
|
+
]
|
|
1332
|
+
},
|
|
1333
|
+
{
|
|
1334
|
+
"id": "lyrics-composition-and-arrangement",
|
|
1335
|
+
"kind": "role",
|
|
1336
|
+
"roles": [
|
|
1337
|
+
"LYRICIST",
|
|
1338
|
+
"COMPOSER",
|
|
1339
|
+
"ARRANGER"
|
|
1340
|
+
],
|
|
1341
|
+
"words": [
|
|
1342
|
+
"ComposedWritten&Arrangedby",
|
|
1343
|
+
"ComposedWrittenandArrangedby",
|
|
1344
|
+
"LyricsMusic&Arrangement",
|
|
1345
|
+
"LyricsMusicArrangement",
|
|
1346
|
+
"LyricsMusicandArrangement",
|
|
1347
|
+
"MusicLyrics&Arrangement",
|
|
1348
|
+
"WordsMusic&Arrangement",
|
|
1349
|
+
"WrittenComposed&Arrangedby",
|
|
1350
|
+
"WrittenComposedandArrangedby"
|
|
1351
|
+
]
|
|
1352
|
+
},
|
|
1353
|
+
{
|
|
1354
|
+
"id": "singer-songwriter",
|
|
1355
|
+
"kind": "role",
|
|
1356
|
+
"roles": [
|
|
1357
|
+
"LYRICIST",
|
|
1358
|
+
"COMPOSER",
|
|
1359
|
+
"PERFORMER"
|
|
1360
|
+
],
|
|
1361
|
+
"words": [
|
|
1362
|
+
"Singer-Songwriter",
|
|
1363
|
+
"SingerSongwriter",
|
|
1364
|
+
"SingerSongwriterby"
|
|
1365
|
+
]
|
|
1366
|
+
},
|
|
1367
|
+
{
|
|
1368
|
+
"id": "other",
|
|
1369
|
+
"kind": "role",
|
|
1370
|
+
"roles": ["OTHER"],
|
|
1371
|
+
"words": [
|
|
1372
|
+
"Engineer",
|
|
1373
|
+
"RecordingEngineer",
|
|
1374
|
+
"SoundEngineer",
|
|
1375
|
+
"MixAssistant",
|
|
1376
|
+
"MixingAssistant",
|
|
1377
|
+
"MasteringAssistant",
|
|
1378
|
+
"A&R",
|
|
1379
|
+
"ArtDirection",
|
|
1380
|
+
"ArtDirector",
|
|
1381
|
+
"Design",
|
|
1382
|
+
"Designer",
|
|
1383
|
+
"Photographer",
|
|
1384
|
+
"Photography",
|
|
1385
|
+
"Photo",
|
|
1386
|
+
"Director",
|
|
1387
|
+
"Video",
|
|
1388
|
+
"Manager",
|
|
1389
|
+
"Management",
|
|
1390
|
+
"Coordinator",
|
|
1391
|
+
"Consultant",
|
|
1392
|
+
"Translator",
|
|
1393
|
+
"Translation",
|
|
1394
|
+
"Transcription",
|
|
1395
|
+
"Editor",
|
|
1396
|
+
"Edit",
|
|
1397
|
+
"Programmer",
|
|
1398
|
+
"Programming",
|
|
1399
|
+
"Conductor",
|
|
1400
|
+
"Choreographer",
|
|
1401
|
+
"A.Eng",
|
|
1402
|
+
"Acknowledgments",
|
|
1403
|
+
"AdditionalEngineering",
|
|
1404
|
+
"Adjustment",
|
|
1405
|
+
"AlbumArt",
|
|
1406
|
+
"Animatedby",
|
|
1407
|
+
"Animation",
|
|
1408
|
+
"Animator",
|
|
1409
|
+
"Animatorby",
|
|
1410
|
+
"ArtConsultant",
|
|
1411
|
+
"ArtistManagement",
|
|
1412
|
+
"Artistassistant",
|
|
1413
|
+
"ArtistsandRepertoire",
|
|
1414
|
+
"Artwork",
|
|
1415
|
+
"AssetManagement",
|
|
1416
|
+
"Assistance",
|
|
1417
|
+
"Assistant",
|
|
1418
|
+
"AssistantEngineer",
|
|
1419
|
+
"AssistantMixEngineer",
|
|
1420
|
+
"AsstEng",
|
|
1421
|
+
"AudioEditing",
|
|
1422
|
+
"AudioEditor",
|
|
1423
|
+
"AudioEngineer",
|
|
1424
|
+
"Auto-Tune",
|
|
1425
|
+
"BTS",
|
|
1426
|
+
"Beatby",
|
|
1427
|
+
"Beatmaker",
|
|
1428
|
+
"Beats",
|
|
1429
|
+
"Behind-the-Scenes",
|
|
1430
|
+
"Behind-theScenes",
|
|
1431
|
+
"Behindthe-Scenes",
|
|
1432
|
+
"BehindtheScenes",
|
|
1433
|
+
"CG",
|
|
1434
|
+
"COO",
|
|
1435
|
+
"ChiefOperatingOfficer",
|
|
1436
|
+
"Choreography",
|
|
1437
|
+
"Clothing",
|
|
1438
|
+
"ComputerEngineer",
|
|
1439
|
+
"Cond",
|
|
1440
|
+
"Conductedby",
|
|
1441
|
+
"Contractor",
|
|
1442
|
+
"Copyist",
|
|
1443
|
+
"Copywriter",
|
|
1444
|
+
"Copywriting",
|
|
1445
|
+
"Costume",
|
|
1446
|
+
"CoverArt",
|
|
1447
|
+
"CoverDesign",
|
|
1448
|
+
"CreativeDirection",
|
|
1449
|
+
"CreativeDirector",
|
|
1450
|
+
"Designedby",
|
|
1451
|
+
"Digitaledit",
|
|
1452
|
+
"Digitalediting",
|
|
1453
|
+
"Directedby",
|
|
1454
|
+
"Distributedby",
|
|
1455
|
+
"DolbyAtmos",
|
|
1456
|
+
"Drawing",
|
|
1457
|
+
"DrumProgramming",
|
|
1458
|
+
"DrumTech",
|
|
1459
|
+
"Editedby",
|
|
1460
|
+
"Eng",
|
|
1461
|
+
"Engineeredby",
|
|
1462
|
+
"FOHEngineer",
|
|
1463
|
+
"Fashion",
|
|
1464
|
+
"Film",
|
|
1465
|
+
"Filmedby",
|
|
1466
|
+
"FineArts",
|
|
1467
|
+
"Flatdesign",
|
|
1468
|
+
"Foley",
|
|
1469
|
+
"FoleyArtist",
|
|
1470
|
+
"FrontofHouse",
|
|
1471
|
+
"FrontofHouseEngineer",
|
|
1472
|
+
"GraphicDesign",
|
|
1473
|
+
"Graphics",
|
|
1474
|
+
"Graphicvisual",
|
|
1475
|
+
"GuitarTech",
|
|
1476
|
+
"Hair",
|
|
1477
|
+
"Hair-Stylist",
|
|
1478
|
+
"HairStylist",
|
|
1479
|
+
"Illustratedby",
|
|
1480
|
+
"Illustration",
|
|
1481
|
+
"Illustrator",
|
|
1482
|
+
"Inscription",
|
|
1483
|
+
"InstrumentTech",
|
|
1484
|
+
"Librarian",
|
|
1485
|
+
"LightTech",
|
|
1486
|
+
"LightingDesigner",
|
|
1487
|
+
"LiveSoundEngineer",
|
|
1488
|
+
"Loops",
|
|
1489
|
+
"LyricVideo",
|
|
1490
|
+
"MD",
|
|
1491
|
+
"MIDI",
|
|
1492
|
+
"MIDIProgramming",
|
|
1493
|
+
"MV",
|
|
1494
|
+
"MVDirector",
|
|
1495
|
+
"MainCreators",
|
|
1496
|
+
"Make-up",
|
|
1497
|
+
"Makeup",
|
|
1498
|
+
"MakeupArtist",
|
|
1499
|
+
"Making",
|
|
1500
|
+
"Making-of",
|
|
1501
|
+
"Makingof",
|
|
1502
|
+
"Marketing",
|
|
1503
|
+
"Marketing&promotion",
|
|
1504
|
+
"MonitorEngineer",
|
|
1505
|
+
"MusicConcept",
|
|
1506
|
+
"MusicDirector",
|
|
1507
|
+
"MusicVideo",
|
|
1508
|
+
"MusicVideoDirector",
|
|
1509
|
+
"Musicproductionassistant",
|
|
1510
|
+
"OP",
|
|
1511
|
+
"PGM",
|
|
1512
|
+
"PRpromotion",
|
|
1513
|
+
"PV",
|
|
1514
|
+
"Photoby",
|
|
1515
|
+
"PitchCorrection",
|
|
1516
|
+
"PitchEditing",
|
|
1517
|
+
"Planner",
|
|
1518
|
+
"Planning",
|
|
1519
|
+
"Post-production",
|
|
1520
|
+
"PostMastering",
|
|
1521
|
+
"PostProd",
|
|
1522
|
+
"Pre-production",
|
|
1523
|
+
"Printvisual",
|
|
1524
|
+
"Productionassistant",
|
|
1525
|
+
"Prog",
|
|
1526
|
+
"Program",
|
|
1527
|
+
"Programmedby",
|
|
1528
|
+
"ProjectCoordinator",
|
|
1529
|
+
"ProjectPlanning",
|
|
1530
|
+
"Promo-Material",
|
|
1531
|
+
"PromoMaterial",
|
|
1532
|
+
"Promotion",
|
|
1533
|
+
"Proofreading",
|
|
1534
|
+
"Publicity",
|
|
1535
|
+
"Publishedby",
|
|
1536
|
+
"Publisher",
|
|
1537
|
+
"Rec",
|
|
1538
|
+
"Recordedby",
|
|
1539
|
+
"Recording",
|
|
1540
|
+
"RecordingAssistant",
|
|
1541
|
+
"Recordist",
|
|
1542
|
+
"SFX",
|
|
1543
|
+
"SFXDesigner",
|
|
1544
|
+
"SP",
|
|
1545
|
+
"Samples",
|
|
1546
|
+
"Sampling",
|
|
1547
|
+
"Scoring",
|
|
1548
|
+
"Short-Form",
|
|
1549
|
+
"Short-Video",
|
|
1550
|
+
"ShortForm",
|
|
1551
|
+
"ShortVideo",
|
|
1552
|
+
"Songby",
|
|
1553
|
+
"Songwriter",
|
|
1554
|
+
"Songwriting",
|
|
1555
|
+
"SoundDes",
|
|
1556
|
+
"SoundDesign",
|
|
1557
|
+
"SoundDesigner",
|
|
1558
|
+
"SoundEffects",
|
|
1559
|
+
"SoundEffectsDesigner",
|
|
1560
|
+
"SoundMixer",
|
|
1561
|
+
"SpecialThanks",
|
|
1562
|
+
"SpecialThanksto",
|
|
1563
|
+
"StageManager",
|
|
1564
|
+
"Styling",
|
|
1565
|
+
"Stylist",
|
|
1566
|
+
"Sub-publisher",
|
|
1567
|
+
"Subpublisher",
|
|
1568
|
+
"Subtitles",
|
|
1569
|
+
"Supervisedby",
|
|
1570
|
+
"Tech",
|
|
1571
|
+
"Thanks",
|
|
1572
|
+
"Thanksto",
|
|
1573
|
+
"Timing",
|
|
1574
|
+
"Topliner",
|
|
1575
|
+
"TrackingEng",
|
|
1576
|
+
"TrackingEngineer",
|
|
1577
|
+
"Training",
|
|
1578
|
+
"Trans",
|
|
1579
|
+
"Transcriber",
|
|
1580
|
+
"Translatedby",
|
|
1581
|
+
"Tunedby",
|
|
1582
|
+
"Tuning",
|
|
1583
|
+
"Videoby",
|
|
1584
|
+
"Visual",
|
|
1585
|
+
"VisualDesign",
|
|
1586
|
+
"VocalCoach",
|
|
1587
|
+
"VocalDirectedby",
|
|
1588
|
+
"VocalDirection",
|
|
1589
|
+
"VocalDirector",
|
|
1590
|
+
"VocalEdit",
|
|
1591
|
+
"VocalEditing",
|
|
1592
|
+
"VocalEditor",
|
|
1593
|
+
"VocalTuning",
|
|
1594
|
+
"Wardrobe",
|
|
1595
|
+
"Writer",
|
|
1596
|
+
"Written",
|
|
1597
|
+
"Writtenby",
|
|
1598
|
+
"Art",
|
|
1599
|
+
"Image",
|
|
1600
|
+
"Material",
|
|
1601
|
+
"Marketing-Material",
|
|
1602
|
+
"MarketingMaterial",
|
|
1603
|
+
"Copyrightmanagement",
|
|
1604
|
+
"Copyrightoperation",
|
|
1605
|
+
"StudioManager",
|
|
1606
|
+
"Beat",
|
|
1607
|
+
"Cut",
|
|
1608
|
+
"Guest",
|
|
1609
|
+
"Stage"
|
|
1610
|
+
]
|
|
1611
|
+
}
|
|
1612
|
+
]
|
|
1613
|
+
};
|
|
1614
|
+
var zh_hans_default$1 = {
|
|
1615
|
+
$schema: "../schema.json",
|
|
1616
|
+
version: 1,
|
|
1617
|
+
language: "zh-hans",
|
|
1618
|
+
normalization: {
|
|
1619
|
+
"whitespace": "remove",
|
|
1620
|
+
"case": "asciiLower"
|
|
1621
|
+
},
|
|
1622
|
+
groups: [
|
|
1623
|
+
{
|
|
1624
|
+
"id": "lyricist",
|
|
1625
|
+
"kind": "role",
|
|
1626
|
+
"roles": ["LYRICIST"],
|
|
1627
|
+
"words": [
|
|
1628
|
+
"作词",
|
|
1629
|
+
"填词",
|
|
1630
|
+
"词",
|
|
1631
|
+
"歌词",
|
|
1632
|
+
"作词人",
|
|
1633
|
+
"词作者",
|
|
1634
|
+
"作词者",
|
|
1635
|
+
"填词人",
|
|
1636
|
+
"词作",
|
|
1637
|
+
"中文词",
|
|
1638
|
+
"英文词",
|
|
1639
|
+
"粤语词",
|
|
1640
|
+
"韩文词",
|
|
1641
|
+
"日文词",
|
|
1642
|
+
"RAP词"
|
|
1643
|
+
]
|
|
1644
|
+
},
|
|
1645
|
+
{
|
|
1646
|
+
"id": "composer",
|
|
1647
|
+
"kind": "role",
|
|
1648
|
+
"roles": ["COMPOSER"],
|
|
1649
|
+
"words": [
|
|
1650
|
+
"作曲",
|
|
1651
|
+
"曲",
|
|
1652
|
+
"谱曲",
|
|
1653
|
+
"作曲人",
|
|
1654
|
+
"曲作者",
|
|
1655
|
+
"作曲者"
|
|
1656
|
+
]
|
|
1657
|
+
},
|
|
1658
|
+
{
|
|
1659
|
+
"id": "arranger",
|
|
1660
|
+
"kind": "role",
|
|
1661
|
+
"roles": ["ARRANGER"],
|
|
1662
|
+
"words": [
|
|
1663
|
+
"编曲",
|
|
1664
|
+
"配器",
|
|
1665
|
+
"和声编写",
|
|
1666
|
+
"弦乐编写",
|
|
1667
|
+
"管乐编写",
|
|
1668
|
+
"节奏编写",
|
|
1669
|
+
"合唱编写",
|
|
1670
|
+
"和声编排",
|
|
1671
|
+
"弦乐编排",
|
|
1672
|
+
"管弦乐编排",
|
|
1673
|
+
"编曲人",
|
|
1674
|
+
"编曲者",
|
|
1675
|
+
"编曲师",
|
|
1676
|
+
"和声编配",
|
|
1677
|
+
"弦乐编配",
|
|
1678
|
+
"和音编写"
|
|
1679
|
+
]
|
|
1680
|
+
},
|
|
1681
|
+
{
|
|
1682
|
+
"id": "producer",
|
|
1683
|
+
"kind": "role",
|
|
1684
|
+
"roles": ["PRODUCER"],
|
|
1685
|
+
"words": [
|
|
1686
|
+
"制作人",
|
|
1687
|
+
"制作",
|
|
1688
|
+
"监制",
|
|
1689
|
+
"出品人",
|
|
1690
|
+
"出品",
|
|
1691
|
+
"音乐制作人",
|
|
1692
|
+
"执行制作人",
|
|
1693
|
+
"制作总监",
|
|
1694
|
+
"总制作人",
|
|
1695
|
+
"人声制作",
|
|
1696
|
+
"人声制作人",
|
|
1697
|
+
"配唱制作人",
|
|
1698
|
+
"共同制作",
|
|
1699
|
+
"共同制作人",
|
|
1700
|
+
"协力制作人",
|
|
1701
|
+
"制作协力",
|
|
1702
|
+
"单曲制作",
|
|
1703
|
+
"创意制作人",
|
|
1704
|
+
"出品方",
|
|
1705
|
+
"联合出品",
|
|
1706
|
+
"联合出品方",
|
|
1707
|
+
"执制",
|
|
1708
|
+
"执行监制",
|
|
1709
|
+
"总监制",
|
|
1710
|
+
"音乐监制"
|
|
1711
|
+
]
|
|
1712
|
+
},
|
|
1713
|
+
{
|
|
1714
|
+
"id": "performer",
|
|
1715
|
+
"kind": "role",
|
|
1716
|
+
"roles": ["PERFORMER"],
|
|
1717
|
+
"words": [
|
|
1718
|
+
"演唱",
|
|
1719
|
+
"主唱",
|
|
1720
|
+
"歌手",
|
|
1721
|
+
"唱",
|
|
1722
|
+
"和声",
|
|
1723
|
+
"和音",
|
|
1724
|
+
"伴唱",
|
|
1725
|
+
"合唱",
|
|
1726
|
+
"原唱",
|
|
1727
|
+
"翻唱",
|
|
1728
|
+
"配唱",
|
|
1729
|
+
"女声",
|
|
1730
|
+
"男声",
|
|
1731
|
+
"童声",
|
|
1732
|
+
"人声",
|
|
1733
|
+
"合声",
|
|
1734
|
+
"合音",
|
|
1735
|
+
"领唱",
|
|
1736
|
+
"独奏",
|
|
1737
|
+
"演奏",
|
|
1738
|
+
"演奏者",
|
|
1739
|
+
"说唱",
|
|
1740
|
+
"配音",
|
|
1741
|
+
"旁白",
|
|
1742
|
+
"念白",
|
|
1743
|
+
"对白",
|
|
1744
|
+
"口技",
|
|
1745
|
+
"人声打击",
|
|
1746
|
+
"乐队",
|
|
1747
|
+
"乐团",
|
|
1748
|
+
"交响乐团",
|
|
1749
|
+
"管弦乐团",
|
|
1750
|
+
"弦乐团",
|
|
1751
|
+
"现场乐队",
|
|
1752
|
+
"乐手",
|
|
1753
|
+
"乐师",
|
|
1754
|
+
"伴奏",
|
|
1755
|
+
"演唱者",
|
|
1756
|
+
"演唱人",
|
|
1757
|
+
"和声者",
|
|
1758
|
+
"伴唱者",
|
|
1759
|
+
"领唱者",
|
|
1760
|
+
"吉他手",
|
|
1761
|
+
"贝斯手",
|
|
1762
|
+
"鼓手",
|
|
1763
|
+
"键盘手",
|
|
1764
|
+
"钢琴家",
|
|
1765
|
+
"小提琴手",
|
|
1766
|
+
"大提琴手",
|
|
1767
|
+
"中提琴手",
|
|
1768
|
+
"长笛手",
|
|
1769
|
+
"萨克斯手",
|
|
1770
|
+
"小号手",
|
|
1771
|
+
"长号手",
|
|
1772
|
+
"圆号手",
|
|
1773
|
+
"打击乐手",
|
|
1774
|
+
"单簧管手",
|
|
1775
|
+
"口琴手",
|
|
1776
|
+
"合唱团",
|
|
1777
|
+
"手风琴手",
|
|
1778
|
+
"竖琴手",
|
|
1779
|
+
"艺人"
|
|
1780
|
+
]
|
|
1781
|
+
},
|
|
1782
|
+
{
|
|
1783
|
+
"id": "instruments",
|
|
1784
|
+
"kind": "instrument",
|
|
1785
|
+
"roles": ["PERFORMER"],
|
|
1786
|
+
"words": [
|
|
1787
|
+
"吉他",
|
|
1788
|
+
"钢琴",
|
|
1789
|
+
"贝斯",
|
|
1790
|
+
"贝司",
|
|
1791
|
+
"鼓",
|
|
1792
|
+
"键盘",
|
|
1793
|
+
"弦乐",
|
|
1794
|
+
"小提琴",
|
|
1795
|
+
"大提琴",
|
|
1796
|
+
"中提琴",
|
|
1797
|
+
"长笛",
|
|
1798
|
+
"萨克斯",
|
|
1799
|
+
"小号",
|
|
1800
|
+
"长号",
|
|
1801
|
+
"圆号",
|
|
1802
|
+
"单簧管",
|
|
1803
|
+
"双簧管",
|
|
1804
|
+
"手风琴",
|
|
1805
|
+
"口琴",
|
|
1806
|
+
"二胡",
|
|
1807
|
+
"古筝",
|
|
1808
|
+
"琵琶",
|
|
1809
|
+
"架子鼓",
|
|
1810
|
+
"电子琴",
|
|
1811
|
+
"合成器",
|
|
1812
|
+
"打击乐",
|
|
1813
|
+
"打击乐器",
|
|
1814
|
+
"管乐",
|
|
1815
|
+
"木管",
|
|
1816
|
+
"铜管",
|
|
1817
|
+
"三味线",
|
|
1818
|
+
"三弦",
|
|
1819
|
+
"三角铁",
|
|
1820
|
+
"中国笛",
|
|
1821
|
+
"中提",
|
|
1822
|
+
"中胡",
|
|
1823
|
+
"中阮",
|
|
1824
|
+
"乌德琴",
|
|
1825
|
+
"乐器",
|
|
1826
|
+
"乐器独奏",
|
|
1827
|
+
"京胡",
|
|
1828
|
+
"伽倻琴",
|
|
1829
|
+
"低音单簧管",
|
|
1830
|
+
"低音吉他",
|
|
1831
|
+
"低音提琴",
|
|
1832
|
+
"克拉维奈",
|
|
1833
|
+
"全部乐器",
|
|
1834
|
+
"六角手风琴",
|
|
1835
|
+
"军鼓",
|
|
1836
|
+
"刮壶",
|
|
1837
|
+
"十二弦吉他",
|
|
1838
|
+
"卡洪",
|
|
1839
|
+
"口风琴",
|
|
1840
|
+
"古琴",
|
|
1841
|
+
"合成贝斯",
|
|
1842
|
+
"哈蒙德风琴",
|
|
1843
|
+
"响板",
|
|
1844
|
+
"哨笛",
|
|
1845
|
+
"唢呐",
|
|
1846
|
+
"埙",
|
|
1847
|
+
"塔布拉",
|
|
1848
|
+
"声码器",
|
|
1849
|
+
"大号",
|
|
1850
|
+
"大提",
|
|
1851
|
+
"大笒",
|
|
1852
|
+
"大管",
|
|
1853
|
+
"大键琴",
|
|
1854
|
+
"大阮",
|
|
1855
|
+
"太鼓",
|
|
1856
|
+
"奚琴",
|
|
1857
|
+
"定音鼓",
|
|
1858
|
+
"富鲁格",
|
|
1859
|
+
"富鲁格号",
|
|
1860
|
+
"小提",
|
|
1861
|
+
"小阮",
|
|
1862
|
+
"小鼓",
|
|
1863
|
+
"尤克里里",
|
|
1864
|
+
"尺八",
|
|
1865
|
+
"巴乌",
|
|
1866
|
+
"巴拉莱卡",
|
|
1867
|
+
"巴松",
|
|
1868
|
+
"布祖基",
|
|
1869
|
+
"序列器",
|
|
1870
|
+
"康加鼓",
|
|
1871
|
+
"弦",
|
|
1872
|
+
"德西马",
|
|
1873
|
+
"恰朗戈",
|
|
1874
|
+
"所有乐器",
|
|
1875
|
+
"所有乐器演奏",
|
|
1876
|
+
"手摇琴",
|
|
1877
|
+
"手碟",
|
|
1878
|
+
"手鼓",
|
|
1879
|
+
"打击垫",
|
|
1880
|
+
"扬琴",
|
|
1881
|
+
"拇指琴",
|
|
1882
|
+
"拉巴卜",
|
|
1883
|
+
"指弹吉他",
|
|
1884
|
+
"排笛",
|
|
1885
|
+
"排箫",
|
|
1886
|
+
"提琴",
|
|
1887
|
+
"曼陀林",
|
|
1888
|
+
"月琴",
|
|
1889
|
+
"木吉他",
|
|
1890
|
+
"木棒",
|
|
1891
|
+
"木琴",
|
|
1892
|
+
"木箱鼓",
|
|
1893
|
+
"木鱼",
|
|
1894
|
+
"杜杜克",
|
|
1895
|
+
"板胡",
|
|
1896
|
+
"柳琴",
|
|
1897
|
+
"框鼓",
|
|
1898
|
+
"梅洛特隆",
|
|
1899
|
+
"次中音号",
|
|
1900
|
+
"沙锤",
|
|
1901
|
+
"波德兰鼓",
|
|
1902
|
+
"洞萧",
|
|
1903
|
+
"滑棒吉他",
|
|
1904
|
+
"牛铃",
|
|
1905
|
+
"特雷门琴",
|
|
1906
|
+
"玉琴",
|
|
1907
|
+
"班卓琴",
|
|
1908
|
+
"班多钮",
|
|
1909
|
+
"班苏里笛",
|
|
1910
|
+
"瑶琴",
|
|
1911
|
+
"电吉他",
|
|
1912
|
+
"电子打击垫",
|
|
1913
|
+
"电子鼓",
|
|
1914
|
+
"电贝司",
|
|
1915
|
+
"电贝斯",
|
|
1916
|
+
"电钢琴",
|
|
1917
|
+
"短号",
|
|
1918
|
+
"短笛",
|
|
1919
|
+
"竖琴",
|
|
1920
|
+
"竖笛",
|
|
1921
|
+
"竹笛",
|
|
1922
|
+
"笙",
|
|
1923
|
+
"笛子",
|
|
1924
|
+
"笛萧",
|
|
1925
|
+
"筝",
|
|
1926
|
+
"箜篌",
|
|
1927
|
+
"管钟",
|
|
1928
|
+
"箫",
|
|
1929
|
+
"箱琴",
|
|
1930
|
+
"簧风琴",
|
|
1931
|
+
"编钟",
|
|
1932
|
+
"肩背键盘",
|
|
1933
|
+
"自动竖琴",
|
|
1934
|
+
"英国管",
|
|
1935
|
+
"葫芦丝",
|
|
1936
|
+
"蒂姆巴尔鼓",
|
|
1937
|
+
"西塔琴",
|
|
1938
|
+
"说话鼓",
|
|
1939
|
+
"谐振吉他",
|
|
1940
|
+
"踏板钢弦吉他",
|
|
1941
|
+
"转盘",
|
|
1942
|
+
"达布卡",
|
|
1943
|
+
"迪吉里杜管",
|
|
1944
|
+
"邦戈鼓",
|
|
1945
|
+
"采样器",
|
|
1946
|
+
"金贝鼓",
|
|
1947
|
+
"钟琴",
|
|
1948
|
+
"钢片琴",
|
|
1949
|
+
"钢鼓",
|
|
1950
|
+
"钹",
|
|
1951
|
+
"铃鼓",
|
|
1952
|
+
"锡笛",
|
|
1953
|
+
"锣",
|
|
1954
|
+
"键提琴",
|
|
1955
|
+
"镲",
|
|
1956
|
+
"长鼓",
|
|
1957
|
+
"阮",
|
|
1958
|
+
"陶笛",
|
|
1959
|
+
"非洲鼓",
|
|
1960
|
+
"颤音琴",
|
|
1961
|
+
"风琴",
|
|
1962
|
+
"风笛",
|
|
1963
|
+
"马头琴",
|
|
1964
|
+
"马林巴",
|
|
1965
|
+
"高胡",
|
|
1966
|
+
"鲁特琴",
|
|
1967
|
+
"齐特琴"
|
|
1968
|
+
]
|
|
1969
|
+
},
|
|
1970
|
+
{
|
|
1971
|
+
"id": "mixer",
|
|
1972
|
+
"kind": "role",
|
|
1973
|
+
"roles": ["MIXER"],
|
|
1974
|
+
"words": [
|
|
1975
|
+
"混音",
|
|
1976
|
+
"混音师",
|
|
1977
|
+
"混",
|
|
1978
|
+
"混音工程师",
|
|
1979
|
+
"缩混",
|
|
1980
|
+
"贴混",
|
|
1981
|
+
"混音工程",
|
|
1982
|
+
"重混音师"
|
|
1983
|
+
]
|
|
1984
|
+
},
|
|
1985
|
+
{
|
|
1986
|
+
"id": "mastering",
|
|
1987
|
+
"kind": "role",
|
|
1988
|
+
"roles": ["MASTERING"],
|
|
1989
|
+
"words": [
|
|
1990
|
+
"母带",
|
|
1991
|
+
"母带工程师",
|
|
1992
|
+
"母带处理",
|
|
1993
|
+
"母带制作",
|
|
1994
|
+
"母带后期",
|
|
1995
|
+
"母带工程",
|
|
1996
|
+
"母带师",
|
|
1997
|
+
"母带制作人",
|
|
1998
|
+
"母带处理制作人"
|
|
1999
|
+
]
|
|
2000
|
+
},
|
|
2001
|
+
{
|
|
2002
|
+
"id": "lyrics-and-composition",
|
|
2003
|
+
"kind": "role",
|
|
2004
|
+
"roles": ["LYRICIST", "COMPOSER"],
|
|
2005
|
+
"words": [
|
|
2006
|
+
"词曲",
|
|
2007
|
+
"作词/作曲",
|
|
2008
|
+
"作词作曲",
|
|
2009
|
+
"词/曲",
|
|
2010
|
+
"词&曲",
|
|
2011
|
+
"词曲作者",
|
|
2012
|
+
"词曲创作",
|
|
2013
|
+
"作曲/作词",
|
|
2014
|
+
"作曲、作词",
|
|
2015
|
+
"作词+作曲",
|
|
2016
|
+
"作词,作曲",
|
|
2017
|
+
"作词·作曲",
|
|
2018
|
+
"作词、作曲",
|
|
2019
|
+
"作词,作曲",
|
|
2020
|
+
"词/曲作",
|
|
2021
|
+
"词、曲",
|
|
2022
|
+
"词,曲"
|
|
2023
|
+
]
|
|
2024
|
+
},
|
|
2025
|
+
{
|
|
2026
|
+
"id": "composition-and-arrangement",
|
|
2027
|
+
"kind": "role",
|
|
2028
|
+
"roles": ["COMPOSER", "ARRANGER"],
|
|
2029
|
+
"words": [
|
|
2030
|
+
"作编曲",
|
|
2031
|
+
"作曲/编曲",
|
|
2032
|
+
"作曲编曲",
|
|
2033
|
+
"曲/编",
|
|
2034
|
+
"曲编",
|
|
2035
|
+
"作曲、编曲",
|
|
2036
|
+
"作曲,编曲"
|
|
2037
|
+
]
|
|
2038
|
+
},
|
|
2039
|
+
{
|
|
2040
|
+
"id": "mixing-and-mastering",
|
|
2041
|
+
"kind": "role",
|
|
2042
|
+
"roles": ["MIXER", "MASTERING"],
|
|
2043
|
+
"words": [
|
|
2044
|
+
"混音/母带",
|
|
2045
|
+
"混音母带",
|
|
2046
|
+
"混音&母带",
|
|
2047
|
+
"混音与母带",
|
|
2048
|
+
"混音及母带",
|
|
2049
|
+
"母带/混音",
|
|
2050
|
+
"混音、母带",
|
|
2051
|
+
"混音,母带"
|
|
2052
|
+
]
|
|
2053
|
+
},
|
|
2054
|
+
{
|
|
2055
|
+
"id": "lyrics-and-arrangement",
|
|
2056
|
+
"kind": "role",
|
|
2057
|
+
"roles": ["LYRICIST", "ARRANGER"],
|
|
2058
|
+
"words": [
|
|
2059
|
+
"作词/编曲",
|
|
2060
|
+
"作词、编曲",
|
|
2061
|
+
"作词编曲",
|
|
2062
|
+
"词/编",
|
|
2063
|
+
"词编"
|
|
2064
|
+
]
|
|
2065
|
+
},
|
|
2066
|
+
{
|
|
2067
|
+
"id": "lyrics-composition-and-arrangement",
|
|
2068
|
+
"kind": "role",
|
|
2069
|
+
"roles": [
|
|
2070
|
+
"LYRICIST",
|
|
2071
|
+
"COMPOSER",
|
|
2072
|
+
"ARRANGER"
|
|
2073
|
+
],
|
|
2074
|
+
"words": [
|
|
2075
|
+
"作词/作曲/编曲",
|
|
2076
|
+
"作词、作曲、编曲",
|
|
2077
|
+
"作词作曲编曲",
|
|
2078
|
+
"词曲编",
|
|
2079
|
+
"词曲编曲"
|
|
2080
|
+
]
|
|
2081
|
+
},
|
|
2082
|
+
{
|
|
2083
|
+
"id": "singer-songwriter",
|
|
2084
|
+
"kind": "role",
|
|
2085
|
+
"roles": [
|
|
2086
|
+
"LYRICIST",
|
|
2087
|
+
"COMPOSER",
|
|
2088
|
+
"PERFORMER"
|
|
2089
|
+
],
|
|
2090
|
+
"words": [
|
|
2091
|
+
"唱作",
|
|
2092
|
+
"唱作人",
|
|
2093
|
+
"唱作歌手"
|
|
2094
|
+
]
|
|
2095
|
+
},
|
|
2096
|
+
{
|
|
2097
|
+
"id": "other",
|
|
2098
|
+
"kind": "role",
|
|
2099
|
+
"roles": ["OTHER"],
|
|
2100
|
+
"words": [
|
|
2101
|
+
"录音师",
|
|
2102
|
+
"录音工程师",
|
|
2103
|
+
"录音",
|
|
2104
|
+
"录制",
|
|
2105
|
+
"工程师",
|
|
2106
|
+
"混音助理",
|
|
2107
|
+
"母带助理",
|
|
2108
|
+
"制作助理",
|
|
2109
|
+
"策划",
|
|
2110
|
+
"宣发",
|
|
2111
|
+
"摄影师",
|
|
2112
|
+
"摄像",
|
|
2113
|
+
"设计师",
|
|
2114
|
+
"美术",
|
|
2115
|
+
"美工",
|
|
2116
|
+
"视觉设计",
|
|
2117
|
+
"封面设计",
|
|
2118
|
+
"插画",
|
|
2119
|
+
"插画师",
|
|
2120
|
+
"曲绘",
|
|
2121
|
+
"校对",
|
|
2122
|
+
"打轴",
|
|
2123
|
+
"时轴",
|
|
2124
|
+
"时间轴",
|
|
2125
|
+
"修音",
|
|
2126
|
+
"修音师",
|
|
2127
|
+
"调音",
|
|
2128
|
+
"调音师",
|
|
2129
|
+
"拟音",
|
|
2130
|
+
"音效",
|
|
2131
|
+
"音响",
|
|
2132
|
+
"指挥",
|
|
2133
|
+
"经纪",
|
|
2134
|
+
"顾问",
|
|
2135
|
+
"艺术指导",
|
|
2136
|
+
"艺术总监",
|
|
2137
|
+
"音乐总监",
|
|
2138
|
+
"创意总监",
|
|
2139
|
+
"舞台监督",
|
|
2140
|
+
"灯光师",
|
|
2141
|
+
"特别感谢",
|
|
2142
|
+
"特别鸣谢",
|
|
2143
|
+
"感谢",
|
|
2144
|
+
"鸣谢",
|
|
2145
|
+
"致谢",
|
|
2146
|
+
"短视频",
|
|
2147
|
+
"MIDI编程",
|
|
2148
|
+
"OP",
|
|
2149
|
+
"PGM",
|
|
2150
|
+
"Program",
|
|
2151
|
+
"SP",
|
|
2152
|
+
"主创",
|
|
2153
|
+
"乐器技师",
|
|
2154
|
+
"乐谱",
|
|
2155
|
+
"乐谱管理员",
|
|
2156
|
+
"人声指导",
|
|
2157
|
+
"人声编辑",
|
|
2158
|
+
"企划宣传",
|
|
2159
|
+
"企宣",
|
|
2160
|
+
"分轨",
|
|
2161
|
+
"分镜",
|
|
2162
|
+
"制作统筹",
|
|
2163
|
+
"前台工程师",
|
|
2164
|
+
"剪辑",
|
|
2165
|
+
"剪辑师",
|
|
2166
|
+
"动画师",
|
|
2167
|
+
"助工",
|
|
2168
|
+
"助理",
|
|
2169
|
+
"助理工程师",
|
|
2170
|
+
"化妆",
|
|
2171
|
+
"协力",
|
|
2172
|
+
"吉他技师",
|
|
2173
|
+
"后期制作",
|
|
2174
|
+
"图绘",
|
|
2175
|
+
"声工",
|
|
2176
|
+
"声设",
|
|
2177
|
+
"声音设计师",
|
|
2178
|
+
"妆发",
|
|
2179
|
+
"妆造",
|
|
2180
|
+
"客串",
|
|
2181
|
+
"宣推",
|
|
2182
|
+
"平面",
|
|
2183
|
+
"平面视觉",
|
|
2184
|
+
"平面设计",
|
|
2185
|
+
"录音助理",
|
|
2186
|
+
"录音室经理",
|
|
2187
|
+
"扒谱",
|
|
2188
|
+
"扒谱员",
|
|
2189
|
+
"承办人",
|
|
2190
|
+
"技术支持",
|
|
2191
|
+
"抄谱",
|
|
2192
|
+
"抄谱员",
|
|
2193
|
+
"拟音师",
|
|
2194
|
+
"数字剪辑",
|
|
2195
|
+
"数字编辑",
|
|
2196
|
+
"文案策划",
|
|
2197
|
+
"映像",
|
|
2198
|
+
"服装",
|
|
2199
|
+
"杜比全景声",
|
|
2200
|
+
"歌词翻译",
|
|
2201
|
+
"灯光",
|
|
2202
|
+
"特约嘉宾",
|
|
2203
|
+
"特邀",
|
|
2204
|
+
"电脑",
|
|
2205
|
+
"电脑工程师",
|
|
2206
|
+
"监听",
|
|
2207
|
+
"监听工程师",
|
|
2208
|
+
"策监",
|
|
2209
|
+
"筹划",
|
|
2210
|
+
"编程",
|
|
2211
|
+
"编程播放",
|
|
2212
|
+
"编调",
|
|
2213
|
+
"编辑",
|
|
2214
|
+
"美术指导",
|
|
2215
|
+
"舞台总监",
|
|
2216
|
+
"艺人与产品",
|
|
2217
|
+
"艺人助理",
|
|
2218
|
+
"艺人统筹",
|
|
2219
|
+
"艺术顾问",
|
|
2220
|
+
"节拍",
|
|
2221
|
+
"节拍制作",
|
|
2222
|
+
"节拍制作人",
|
|
2223
|
+
"营销",
|
|
2224
|
+
"视觉总监",
|
|
2225
|
+
"调教",
|
|
2226
|
+
"调校",
|
|
2227
|
+
"谱务",
|
|
2228
|
+
"资产管理",
|
|
2229
|
+
"跟踪工程师",
|
|
2230
|
+
"辅助监督",
|
|
2231
|
+
"造型",
|
|
2232
|
+
"造型师",
|
|
2233
|
+
"采样",
|
|
2234
|
+
"音乐制作助理",
|
|
2235
|
+
"音乐统筹",
|
|
2236
|
+
"音乐视频导演",
|
|
2237
|
+
"音响工程师",
|
|
2238
|
+
"音序",
|
|
2239
|
+
"音控师",
|
|
2240
|
+
"音效设计",
|
|
2241
|
+
"音频编辑",
|
|
2242
|
+
"项目策划",
|
|
2243
|
+
"项目统筹",
|
|
2244
|
+
"预制作",
|
|
2245
|
+
"题字",
|
|
2246
|
+
"首席运营官",
|
|
2247
|
+
"鼓技师",
|
|
2248
|
+
"封面",
|
|
2249
|
+
"海报",
|
|
2250
|
+
"原版权",
|
|
2251
|
+
"原始版权",
|
|
2252
|
+
"次级版权",
|
|
2253
|
+
"版权运营",
|
|
2254
|
+
"业务",
|
|
2255
|
+
"企划",
|
|
2256
|
+
"宣传",
|
|
2257
|
+
"推广",
|
|
2258
|
+
"发行",
|
|
2259
|
+
"统筹",
|
|
2260
|
+
"设计",
|
|
2261
|
+
"摄影",
|
|
2262
|
+
"导演",
|
|
2263
|
+
"翻译",
|
|
2264
|
+
"后期",
|
|
2265
|
+
"工程",
|
|
2266
|
+
"声音",
|
|
2267
|
+
"支持",
|
|
2268
|
+
"艺术",
|
|
2269
|
+
"指导",
|
|
2270
|
+
"监督",
|
|
2271
|
+
"视觉",
|
|
2272
|
+
"舞台",
|
|
2273
|
+
"物料",
|
|
2274
|
+
"台词",
|
|
2275
|
+
"字幕",
|
|
2276
|
+
"文案",
|
|
2277
|
+
"脚本",
|
|
2278
|
+
"花絮",
|
|
2279
|
+
"视频",
|
|
2280
|
+
"作",
|
|
2281
|
+
"封",
|
|
2282
|
+
"监",
|
|
2283
|
+
"编",
|
|
2284
|
+
"译",
|
|
2285
|
+
"谱"
|
|
2286
|
+
]
|
|
2287
|
+
}
|
|
2288
|
+
]
|
|
2289
|
+
};
|
|
2290
|
+
//#endregion
|
|
2291
|
+
//#region src/transforms/credit/rules.ts
|
|
2292
|
+
var MATCH_CACHE_LIMIT = 256;
|
|
2293
|
+
var MAX_CACHED_LABEL_LENGTH = 256;
|
|
2294
|
+
var CREDIT_ROLES = /* @__PURE__ */ new Map([
|
|
2295
|
+
["OTHER", CreditRole.OTHER],
|
|
2296
|
+
["LYRICIST", CreditRole.LYRICIST],
|
|
2297
|
+
["COMPOSER", CreditRole.COMPOSER],
|
|
2298
|
+
["ARRANGER", CreditRole.ARRANGER],
|
|
2299
|
+
["PRODUCER", CreditRole.PRODUCER],
|
|
2300
|
+
["PERFORMER", CreditRole.PERFORMER],
|
|
2301
|
+
["MIXER", CreditRole.MIXER],
|
|
2302
|
+
["MASTERING", CreditRole.MASTERING]
|
|
2303
|
+
]);
|
|
2304
|
+
var creditRules = /* @__PURE__ */ new Map();
|
|
2305
|
+
var matchCache = /* @__PURE__ */ new Map();
|
|
2306
|
+
for (const ruleSet of [zh_hans_default$1, en_default$1]) for (const group of ruleSet.groups) {
|
|
2307
|
+
const roles = group.roles.map((name) => {
|
|
2308
|
+
const role = CREDIT_ROLES.get(name);
|
|
2309
|
+
if (role === void 0) throw new TypeError("Unsupported credit role: " + name);
|
|
2310
|
+
return role;
|
|
2311
|
+
});
|
|
2312
|
+
for (const word of group.words) {
|
|
2313
|
+
const key = toRuleMatchKey(word);
|
|
2314
|
+
if (!creditRules.has(key)) creditRules.set(key, roles);
|
|
2315
|
+
}
|
|
2316
|
+
}
|
|
2317
|
+
var haveSameRoles = (first, second) => {
|
|
2318
|
+
if (first === second) return true;
|
|
2319
|
+
if (first.length !== second.length) return false;
|
|
2320
|
+
if (first.length === 1) return first[0] === second[0];
|
|
2321
|
+
return first.every((role) => second.includes(role));
|
|
2322
|
+
};
|
|
2323
|
+
var findCoveringRoles = (label, key) => {
|
|
2324
|
+
const cuts = findRuleMatchCuts(label);
|
|
2325
|
+
if (!cuts) return;
|
|
2326
|
+
const last = cuts.length - 1;
|
|
2327
|
+
let bestCount = last + 1;
|
|
2328
|
+
let bestRoles;
|
|
2329
|
+
const search = (from, count, roles) => {
|
|
2330
|
+
if (from === last) {
|
|
2331
|
+
if (count < bestCount) {
|
|
2332
|
+
bestCount = count;
|
|
2333
|
+
bestRoles = roles;
|
|
2334
|
+
return true;
|
|
2335
|
+
}
|
|
2336
|
+
return count > bestCount || haveSameRoles(roles, bestRoles);
|
|
2337
|
+
}
|
|
2338
|
+
if (count + 1 > bestCount) return true;
|
|
2339
|
+
for (let to = last; to > from; to -= 1) {
|
|
2340
|
+
const matched = creditRules.get(key.slice(cuts[from], cuts[to]));
|
|
2341
|
+
if (!matched || roles && !haveSameRoles(roles, matched)) continue;
|
|
2342
|
+
if (!search(to, count + 1, roles ?? matched)) return false;
|
|
2343
|
+
}
|
|
2344
|
+
return true;
|
|
2345
|
+
};
|
|
2346
|
+
return search(0, 0, void 0) ? bestRoles : void 0;
|
|
2347
|
+
};
|
|
2348
|
+
/**
|
|
2349
|
+
* Prefers the complete alias, then accepts adjacent parts that each resolve to the same roles.
|
|
2350
|
+
* Parts are cut only where the source has whitespace or a script boundary, and the covering with the fewest parts wins.
|
|
2351
|
+
* Unknown parts, role conflicts, and equally short coverings that disagree stay unmatched so the source remains available to later processing.
|
|
2352
|
+
*/
|
|
2353
|
+
var matchCreditLabel = (label) => {
|
|
2354
|
+
const cached = matchCache.get(label);
|
|
2355
|
+
if (cached !== void 0) return cached ?? void 0;
|
|
2356
|
+
const key = toRuleMatchKey(label);
|
|
2357
|
+
const roles = creditRules.get(key) ?? findCoveringRoles(label, key);
|
|
2358
|
+
if (label.length <= MAX_CACHED_LABEL_LENGTH) {
|
|
2359
|
+
if (matchCache.size === MATCH_CACHE_LIMIT) {
|
|
2360
|
+
const oldest = matchCache.keys().next().value;
|
|
2361
|
+
if (oldest !== void 0) matchCache.delete(oldest);
|
|
2362
|
+
}
|
|
2363
|
+
matchCache.set(label, roles ?? null);
|
|
2364
|
+
}
|
|
2365
|
+
return roles;
|
|
2366
|
+
};
|
|
2367
|
+
//#endregion
|
|
2368
|
+
//#region src/transforms/credit/extract.ts
|
|
2369
|
+
var DEFAULT_CREDIT_NAME_SEPARATORS = [
|
|
2370
|
+
"+",
|
|
2371
|
+
":",
|
|
2372
|
+
"/"
|
|
2373
|
+
];
|
|
2374
|
+
var createCreditIndex = (credits) => {
|
|
2375
|
+
const creditIndex = /* @__PURE__ */ new Map();
|
|
2376
|
+
for (let index = 0; index < credits.length; index += 1) {
|
|
2377
|
+
const credit = credits[index];
|
|
2378
|
+
let entries = creditIndex.get(credit.raw);
|
|
2379
|
+
if (!entries) {
|
|
2380
|
+
entries = /* @__PURE__ */ new Map();
|
|
2381
|
+
creditIndex.set(credit.raw, entries);
|
|
2382
|
+
}
|
|
2383
|
+
let entry = entries.get(credit.role);
|
|
2384
|
+
if (!entry) {
|
|
2385
|
+
entry = {
|
|
2386
|
+
index,
|
|
2387
|
+
names: /* @__PURE__ */ new Set()
|
|
2388
|
+
};
|
|
2389
|
+
entries.set(credit.role, entry);
|
|
2390
|
+
}
|
|
2391
|
+
for (const name of credit.names) entry.names.add(name.text);
|
|
2392
|
+
}
|
|
2393
|
+
return creditIndex;
|
|
2394
|
+
};
|
|
2395
|
+
var prepareCreditSeparators = (selected) => {
|
|
2396
|
+
if (!selected || selected === DEFAULT_CREDIT_NAME_SEPARATORS) return DEFAULT_CREDIT_NAME_SEPARATORS;
|
|
2397
|
+
if (selected.length === DEFAULT_CREDIT_NAME_SEPARATORS.length && selected.every((separator, index) => separator === DEFAULT_CREDIT_NAME_SEPARATORS[index])) return DEFAULT_CREDIT_NAME_SEPARATORS;
|
|
2398
|
+
return [...new Set(selected)].filter(Boolean).sort((first, second) => second.length - first.length);
|
|
2399
|
+
};
|
|
2400
|
+
var readCreditNames = (text, separators) => {
|
|
2401
|
+
if (!separators.some((separator) => text.includes(separator))) {
|
|
2402
|
+
const name = trimRuleWhitespace(text);
|
|
2403
|
+
return name ? [name] : [];
|
|
2404
|
+
}
|
|
2405
|
+
let names = [text];
|
|
2406
|
+
for (const separator of separators) if (names.some((name) => name.includes(separator))) names = names.flatMap((name) => name.split(separator));
|
|
2407
|
+
const unique = /* @__PURE__ */ new Set();
|
|
2408
|
+
for (const name of names) {
|
|
2409
|
+
const trimmed = trimRuleWhitespace(name);
|
|
2410
|
+
if (trimmed) unique.add(trimmed);
|
|
2411
|
+
}
|
|
2412
|
+
return [...unique];
|
|
2413
|
+
};
|
|
2414
|
+
var hasCreditColon = (word) => {
|
|
2415
|
+
return word.text.includes(":") || word.text.includes(":");
|
|
2416
|
+
};
|
|
2417
|
+
/**
|
|
2418
|
+
* Preserves source labels and name spelling while matching normalized credit labels in normal lead lines.
|
|
2419
|
+
* Merges names by role and original label without inferring their language.
|
|
2420
|
+
* Unknown metadata is processed only when matchUnknowns is enabled; consumed entries leave the unknown list.
|
|
2421
|
+
*
|
|
2422
|
+
* @returns The input when unchanged, or a new lyric sharing all unchanged nodes.
|
|
2423
|
+
*/
|
|
2424
|
+
var extractCredits = (lyric, options = {}) => {
|
|
2425
|
+
const separators = prepareCreditSeparators(options.nameSeparators);
|
|
2426
|
+
const originalCredits = lyric.meta?.credits ?? [];
|
|
2427
|
+
let credits = originalCredits;
|
|
2428
|
+
let creditIndex;
|
|
2429
|
+
const appendCredit = (raw, names) => {
|
|
2430
|
+
const roles = matchCreditLabel(raw);
|
|
2431
|
+
if (!roles || !names.length) return false;
|
|
2432
|
+
creditIndex ??= createCreditIndex(originalCredits);
|
|
2433
|
+
let entries = creditIndex.get(raw);
|
|
2434
|
+
if (!entries) {
|
|
2435
|
+
entries = /* @__PURE__ */ new Map();
|
|
2436
|
+
creditIndex.set(raw, entries);
|
|
2437
|
+
}
|
|
2438
|
+
for (const role of roles) {
|
|
2439
|
+
let entry = entries.get(role);
|
|
2440
|
+
const additions = names.filter((name) => !entry?.names.has(name));
|
|
2441
|
+
if (!additions.length) continue;
|
|
2442
|
+
if (credits === originalCredits) credits = [...originalCredits];
|
|
2443
|
+
const nameNodes = additions.map((name) => makeText({ text: name }));
|
|
2444
|
+
if (!entry) {
|
|
2445
|
+
entry = {
|
|
2446
|
+
index: credits.length,
|
|
2447
|
+
names: /* @__PURE__ */ new Set()
|
|
2448
|
+
};
|
|
2449
|
+
entries.set(role, entry);
|
|
2450
|
+
credits.push(makeMetaCredit({
|
|
2451
|
+
role,
|
|
2452
|
+
raw,
|
|
2453
|
+
names: nameNodes
|
|
2454
|
+
}));
|
|
2455
|
+
} else {
|
|
2456
|
+
const credit = credits[entry.index];
|
|
2457
|
+
credits[entry.index] = {
|
|
2458
|
+
...credit,
|
|
2459
|
+
names: [...credit.names, ...nameNodes]
|
|
2460
|
+
};
|
|
2461
|
+
}
|
|
2462
|
+
for (const name of additions) entry.names.add(name);
|
|
2463
|
+
}
|
|
2464
|
+
return true;
|
|
2465
|
+
};
|
|
2466
|
+
const originalUnknowns = lyric.meta?.unknowns ?? [];
|
|
2467
|
+
let unknowns = originalUnknowns;
|
|
2468
|
+
if (options.matchUnknowns) for (const [index, entry] of originalUnknowns.entries()) {
|
|
2469
|
+
const raw = trimRuleWhitespace(entry.key);
|
|
2470
|
+
if (appendCredit(raw, matchCreditLabel(raw) ? readCreditNames(entry.value, separators) : [])) {
|
|
2471
|
+
if (unknowns === originalUnknowns) unknowns = originalUnknowns.slice(0, index);
|
|
2472
|
+
} else if (unknowns !== originalUnknowns) unknowns.push(entry);
|
|
2473
|
+
}
|
|
2474
|
+
const originalLines = lyric.lines;
|
|
2475
|
+
let remainingLines;
|
|
2476
|
+
for (let index = 0; index < originalLines.length; index += 1) {
|
|
2477
|
+
const line = originalLines[index];
|
|
2478
|
+
if (line.type !== LineType.NORMAL) {
|
|
2479
|
+
remainingLines?.push(line);
|
|
2480
|
+
continue;
|
|
2481
|
+
}
|
|
2482
|
+
const content = line.content;
|
|
2483
|
+
if (!(content?.text !== void 0 || (content?.words.some(hasCreditColon) ?? false))) {
|
|
2484
|
+
remainingLines?.push(line);
|
|
2485
|
+
continue;
|
|
2486
|
+
}
|
|
2487
|
+
const text = getContentText(content);
|
|
2488
|
+
const colon = text.search(/[::]/);
|
|
2489
|
+
if (colon === -1) {
|
|
2490
|
+
remainingLines?.push(line);
|
|
2491
|
+
continue;
|
|
2492
|
+
}
|
|
2493
|
+
const raw = trimRuleWhitespace(text.slice(0, colon));
|
|
2494
|
+
if (!appendCredit(raw, matchCreditLabel(raw) ? readCreditNames(text.slice(colon + 1), separators) : [])) {
|
|
2495
|
+
remainingLines?.push(line);
|
|
2496
|
+
continue;
|
|
2497
|
+
}
|
|
2498
|
+
if (options.removeSourceLines) remainingLines ??= originalLines.slice(0, index);
|
|
2499
|
+
else remainingLines?.push(line);
|
|
2500
|
+
}
|
|
2501
|
+
if (credits === originalCredits && unknowns === originalUnknowns && !remainingLines) return lyric;
|
|
2502
|
+
const removed = !!remainingLines;
|
|
2503
|
+
const lines = remainingLines ?? originalLines;
|
|
2504
|
+
let timing = lyric.timing;
|
|
2505
|
+
if (removed && timing === Timing.WORD) {
|
|
2506
|
+
if (!lines.some((line) => {
|
|
2507
|
+
return isWordLevelLine(line) || line.backgrounds.some(isWordLevelLine);
|
|
2508
|
+
})) timing = Timing.LINE;
|
|
2509
|
+
}
|
|
2510
|
+
const meta = credits === originalCredits && unknowns === originalUnknowns ? lyric.meta : lyric.meta ? {
|
|
2511
|
+
...lyric.meta,
|
|
2512
|
+
credits,
|
|
2513
|
+
unknowns
|
|
2514
|
+
} : makeMeta({
|
|
2515
|
+
credits,
|
|
2516
|
+
unknowns
|
|
2517
|
+
});
|
|
2518
|
+
return {
|
|
2519
|
+
...lyric,
|
|
2520
|
+
meta,
|
|
2521
|
+
lines,
|
|
2522
|
+
timing,
|
|
2523
|
+
languages: removed ? deriveLanguageUsages(lines) : lyric.languages
|
|
2524
|
+
};
|
|
2525
|
+
};
|
|
559
2526
|
//#endregion
|
|
560
2527
|
//#region src/transforms/emphasis/index.ts
|
|
561
2528
|
var deriveContentEmphasis = (content, durationThreshold) => {
|
|
562
|
-
if (content
|
|
2529
|
+
if (!content) return content;
|
|
563
2530
|
const words = mapShared(content.words, (word) => {
|
|
564
2531
|
if (word.type !== WordType.NORMAL || word.emphasis?.derived === false) return word;
|
|
565
2532
|
const time = word.time;
|
|
566
|
-
if (time
|
|
567
|
-
if (word.emphasis?.value
|
|
2533
|
+
if (!!time && time.end !== void 0 && !validateTimeRange(time).length && time.end - time.start > durationThreshold) {
|
|
2534
|
+
if (word.emphasis?.value) return word;
|
|
568
2535
|
return {
|
|
569
2536
|
...word,
|
|
570
2537
|
emphasis: makeWordEmphasis({
|
|
@@ -573,7 +2540,7 @@ var deriveContentEmphasis = (content, durationThreshold) => {
|
|
|
573
2540
|
})
|
|
574
2541
|
};
|
|
575
2542
|
}
|
|
576
|
-
if (word.emphasis
|
|
2543
|
+
if (!word.emphasis) return word;
|
|
577
2544
|
return {
|
|
578
2545
|
...word,
|
|
579
2546
|
emphasis: void 0
|
|
@@ -619,6 +2586,258 @@ var deriveWordEmphasis = (lyric, options = {}) => {
|
|
|
619
2586
|
};
|
|
620
2587
|
};
|
|
621
2588
|
//#endregion
|
|
2589
|
+
//#region src/transforms/filter/rules.ts
|
|
2590
|
+
var nonLyricGroups = [{
|
|
2591
|
+
$schema: "../schema.json",
|
|
2592
|
+
version: 1,
|
|
2593
|
+
language: "zh-hans",
|
|
2594
|
+
normalization: {
|
|
2595
|
+
"whitespace": "remove",
|
|
2596
|
+
"case": "asciiLower"
|
|
2597
|
+
},
|
|
2598
|
+
groups: [
|
|
2599
|
+
{
|
|
2600
|
+
"id": "copyright-notice",
|
|
2601
|
+
"category": "copyright",
|
|
2602
|
+
"match": "contains",
|
|
2603
|
+
"words": [
|
|
2604
|
+
"版权所有",
|
|
2605
|
+
"保留所有权利",
|
|
2606
|
+
"侵权必究",
|
|
2607
|
+
"翻版必究",
|
|
2608
|
+
"违者必究",
|
|
2609
|
+
"未经授权",
|
|
2610
|
+
"未经许可",
|
|
2611
|
+
"版权归",
|
|
2612
|
+
"版权属于",
|
|
2613
|
+
"不得转载",
|
|
2614
|
+
"严禁转载",
|
|
2615
|
+
"盗版必究",
|
|
2616
|
+
"禁止转载"
|
|
2617
|
+
]
|
|
2618
|
+
},
|
|
2619
|
+
{
|
|
2620
|
+
"id": "copyright-label",
|
|
2621
|
+
"category": "copyright",
|
|
2622
|
+
"match": "whole",
|
|
2623
|
+
"words": ["版权", "授权"]
|
|
2624
|
+
},
|
|
2625
|
+
{
|
|
2626
|
+
"id": "adaptation-label",
|
|
2627
|
+
"category": "adaptation",
|
|
2628
|
+
"match": "whole",
|
|
2629
|
+
"words": [
|
|
2630
|
+
"改编",
|
|
2631
|
+
"翻唱",
|
|
2632
|
+
"致敬"
|
|
2633
|
+
]
|
|
2634
|
+
},
|
|
2635
|
+
{
|
|
2636
|
+
"id": "disclaimer-notice",
|
|
2637
|
+
"category": "disclaimer",
|
|
2638
|
+
"match": "contains",
|
|
2639
|
+
"words": [
|
|
2640
|
+
"仅供学习",
|
|
2641
|
+
"仅供个人",
|
|
2642
|
+
"仅供参考",
|
|
2643
|
+
"仅供交流",
|
|
2644
|
+
"禁止商业用途",
|
|
2645
|
+
"非商业用途"
|
|
2646
|
+
]
|
|
2647
|
+
},
|
|
2648
|
+
{
|
|
2649
|
+
"id": "organization-label",
|
|
2650
|
+
"category": "organization",
|
|
2651
|
+
"match": "contains",
|
|
2652
|
+
"words": [
|
|
2653
|
+
"唱片公司",
|
|
2654
|
+
"制作公司",
|
|
2655
|
+
"发行公司",
|
|
2656
|
+
"承办单位",
|
|
2657
|
+
"次级发行方",
|
|
2658
|
+
"厂牌"
|
|
2659
|
+
]
|
|
2660
|
+
},
|
|
2661
|
+
{
|
|
2662
|
+
"id": "studio-label",
|
|
2663
|
+
"category": "studio",
|
|
2664
|
+
"match": "contains",
|
|
2665
|
+
"words": [
|
|
2666
|
+
"录音室",
|
|
2667
|
+
"录音棚",
|
|
2668
|
+
"混音室",
|
|
2669
|
+
"混音工作室",
|
|
2670
|
+
"混音录音室",
|
|
2671
|
+
"母带录音室",
|
|
2672
|
+
"母带处理录音室"
|
|
2673
|
+
]
|
|
2674
|
+
}
|
|
2675
|
+
]
|
|
2676
|
+
}, {
|
|
2677
|
+
$schema: "../schema.json",
|
|
2678
|
+
version: 1,
|
|
2679
|
+
language: "en",
|
|
2680
|
+
normalization: {
|
|
2681
|
+
"whitespace": "remove",
|
|
2682
|
+
"case": "asciiLower"
|
|
2683
|
+
},
|
|
2684
|
+
groups: [
|
|
2685
|
+
{
|
|
2686
|
+
"id": "copyright-notice",
|
|
2687
|
+
"category": "copyright",
|
|
2688
|
+
"match": "contains",
|
|
2689
|
+
"words": [
|
|
2690
|
+
"Allrightsreserved",
|
|
2691
|
+
"Allrightsofthe",
|
|
2692
|
+
"Nopartofthis",
|
|
2693
|
+
"Unauthorizedreproduction",
|
|
2694
|
+
"Unauthorizedduplication",
|
|
2695
|
+
"Unauthorizedcopying",
|
|
2696
|
+
"Unauthorizeduse",
|
|
2697
|
+
"Underexclusivelicense",
|
|
2698
|
+
"Allrightsreservedby",
|
|
2699
|
+
"Anyunauthorizeduse",
|
|
2700
|
+
"Usedbypermission"
|
|
2701
|
+
]
|
|
2702
|
+
},
|
|
2703
|
+
{
|
|
2704
|
+
"id": "copyright-label",
|
|
2705
|
+
"category": "copyright",
|
|
2706
|
+
"match": "whole",
|
|
2707
|
+
"words": ["Copyright", "License"]
|
|
2708
|
+
},
|
|
2709
|
+
{
|
|
2710
|
+
"id": "adaptation-label",
|
|
2711
|
+
"category": "adaptation",
|
|
2712
|
+
"match": "whole",
|
|
2713
|
+
"words": [
|
|
2714
|
+
"Cover",
|
|
2715
|
+
"Remake",
|
|
2716
|
+
"Tribute",
|
|
2717
|
+
"Adaptation"
|
|
2718
|
+
]
|
|
2719
|
+
},
|
|
2720
|
+
{
|
|
2721
|
+
"id": "disclaimer-notice",
|
|
2722
|
+
"category": "disclaimer",
|
|
2723
|
+
"match": "contains",
|
|
2724
|
+
"words": [
|
|
2725
|
+
"Foreducationalpurposes",
|
|
2726
|
+
"Fornon-commercial",
|
|
2727
|
+
"Fornoncommercial",
|
|
2728
|
+
"Fornonprofitable",
|
|
2729
|
+
"Forpersonaluse",
|
|
2730
|
+
"Forpromotionalpurposes"
|
|
2731
|
+
]
|
|
2732
|
+
},
|
|
2733
|
+
{
|
|
2734
|
+
"id": "organization-label",
|
|
2735
|
+
"category": "organization",
|
|
2736
|
+
"match": "contains",
|
|
2737
|
+
"words": [
|
|
2738
|
+
"ManufacturingCompany",
|
|
2739
|
+
"RecordCompany",
|
|
2740
|
+
"RecordLabel",
|
|
2741
|
+
"Distribution"
|
|
2742
|
+
]
|
|
2743
|
+
},
|
|
2744
|
+
{
|
|
2745
|
+
"id": "studio-label",
|
|
2746
|
+
"category": "studio",
|
|
2747
|
+
"match": "contains",
|
|
2748
|
+
"words": [
|
|
2749
|
+
"RecordingStudio",
|
|
2750
|
+
"MasteringStudio",
|
|
2751
|
+
"Mixingstudio",
|
|
2752
|
+
"Mixstudio",
|
|
2753
|
+
"StudioPersonnel"
|
|
2754
|
+
]
|
|
2755
|
+
}
|
|
2756
|
+
]
|
|
2757
|
+
}].flatMap((ruleSet) => {
|
|
2758
|
+
return ruleSet.groups.map((group) => {
|
|
2759
|
+
if (group.match !== "contains" && group.match !== "whole") throw new TypeError("Unsupported filter match: " + group.match);
|
|
2760
|
+
return {
|
|
2761
|
+
category: group.category,
|
|
2762
|
+
whole: group.match === "whole",
|
|
2763
|
+
words: group.words.map(toRuleMatchKey)
|
|
2764
|
+
};
|
|
2765
|
+
});
|
|
2766
|
+
});
|
|
2767
|
+
/**
|
|
2768
|
+
* Categories the bundled filter rules identify, in rule order.
|
|
2769
|
+
*/
|
|
2770
|
+
var NON_LYRIC_CATEGORIES = [...new Set(nonLyricGroups.map((group) => group.category))];
|
|
2771
|
+
/**
|
|
2772
|
+
* Keeps rule order so earlier groups still take precedence within a selection; undefined selects every group.
|
|
2773
|
+
*/
|
|
2774
|
+
var selectNonLyricGroups = (categories) => {
|
|
2775
|
+
if (!categories) return nonLyricGroups;
|
|
2776
|
+
return nonLyricGroups.filter((group) => categories.includes(group.category));
|
|
2777
|
+
};
|
|
2778
|
+
/**
|
|
2779
|
+
* Returns the category of the first group that identifies the normalized text.
|
|
2780
|
+
* whole needs the complete text to equal a word, while contains accepts a word anywhere because the rules carry no word boundaries.
|
|
2781
|
+
*/
|
|
2782
|
+
var matchNonLyricCategory = (text, groups) => {
|
|
2783
|
+
const key = toRuleMatchKey(text);
|
|
2784
|
+
if (!key) return;
|
|
2785
|
+
for (const group of groups) if (group.whole ? group.words.includes(key) : group.words.some((word) => key.includes(word))) return group.category;
|
|
2786
|
+
};
|
|
2787
|
+
//#endregion
|
|
2788
|
+
//#region src/transforms/filter/remove.ts
|
|
2789
|
+
var toMusicInfoMatchText = (text) => {
|
|
2790
|
+
return text.normalize("NFC").trim().replace(/\s+/gu, " ").replace(/[A-Z]+/g, (run) => run.toLowerCase());
|
|
2791
|
+
};
|
|
2792
|
+
var findFirstMusicInfoLine = (lyric, musicInfo) => {
|
|
2793
|
+
const titles = (musicInfo.titles ?? []).map(toMusicInfoMatchText).filter(Boolean);
|
|
2794
|
+
const artists = (musicInfo.artists ?? []).map(toMusicInfoMatchText).filter(Boolean);
|
|
2795
|
+
if (!titles.length || !artists.length) return -1;
|
|
2796
|
+
const index = lyric.lines.findIndex((line) => {
|
|
2797
|
+
return line.type === LineType.NORMAL && !!getContentText(line.content).trim();
|
|
2798
|
+
});
|
|
2799
|
+
if (index === -1) return -1;
|
|
2800
|
+
const parts = getContentText(lyric.lines[index].content).trim().split(" - ");
|
|
2801
|
+
if (parts.length !== 2) return -1;
|
|
2802
|
+
const left = toMusicInfoMatchText(parts[0]);
|
|
2803
|
+
const right = toMusicInfoMatchText(parts[1]);
|
|
2804
|
+
if (!left || !right) return -1;
|
|
2805
|
+
const titleOnLeft = titles.some((title) => left.includes(title));
|
|
2806
|
+
const titleOnRight = titles.some((title) => right.includes(title));
|
|
2807
|
+
const artistOnLeft = artists.some((artist) => left.includes(artist));
|
|
2808
|
+
const artistOnRight = artists.some((artist) => right.includes(artist));
|
|
2809
|
+
return titleOnLeft && artistOnRight || artistOnLeft && titleOnRight ? index : -1;
|
|
2810
|
+
};
|
|
2811
|
+
/**
|
|
2812
|
+
* Removes normal lead lines matched by the shared notice rules and, when musicInfo is provided, first-line song information.
|
|
2813
|
+
* The first non-empty normal line must have one literal " - " separator and a known title and artist on opposite sides; either order and extra text such as bracketed aliases are accepted.
|
|
2814
|
+
* Drops attached annotations and backgrounds, refreshes language usages, and falls back to line timing when no word-level content remains.
|
|
2815
|
+
*
|
|
2816
|
+
* @returns The input when unchanged, or a new lyric sharing all unchanged nodes.
|
|
2817
|
+
*/
|
|
2818
|
+
var removeNonLyricLines = (lyric, options = {}) => {
|
|
2819
|
+
const groups = selectNonLyricGroups(options.categories);
|
|
2820
|
+
const musicInfoIndex = options.musicInfo ? findFirstMusicInfoLine(lyric, options.musicInfo) : -1;
|
|
2821
|
+
if (!groups.length && musicInfoIndex === -1) return lyric;
|
|
2822
|
+
const lines = lyric.lines.filter((line, index) => {
|
|
2823
|
+
if (index === musicInfoIndex) return false;
|
|
2824
|
+
return line.type !== LineType.NORMAL || matchNonLyricCategory(getContentText(line.content), groups) === void 0;
|
|
2825
|
+
});
|
|
2826
|
+
if (lines.length === lyric.lines.length) return lyric;
|
|
2827
|
+
let timing = lyric.timing;
|
|
2828
|
+
if (timing === Timing.WORD) {
|
|
2829
|
+
if (!lines.some((line) => {
|
|
2830
|
+
return isWordLevelLine(line) || line.backgrounds.some(isWordLevelLine);
|
|
2831
|
+
})) timing = Timing.LINE;
|
|
2832
|
+
}
|
|
2833
|
+
return {
|
|
2834
|
+
...lyric,
|
|
2835
|
+
lines,
|
|
2836
|
+
timing,
|
|
2837
|
+
languages: deriveLanguageUsages(lines)
|
|
2838
|
+
};
|
|
2839
|
+
};
|
|
2840
|
+
//#endregion
|
|
622
2841
|
//#region src/transforms/instrumental/index.ts
|
|
623
2842
|
var MAX_TIME = 2 ** 31 - 1;
|
|
624
2843
|
var readMinimum = (value, fallback, name) => {
|
|
@@ -642,7 +2861,7 @@ var readOccupiedTimeline = (lyric) => {
|
|
|
642
2861
|
const ranges = [];
|
|
643
2862
|
let firstSungStart = Infinity;
|
|
644
2863
|
const append = (time, sung) => {
|
|
645
|
-
if (time
|
|
2864
|
+
if (!time || validateTimeRange(time).length) return false;
|
|
646
2865
|
if (time.end === time.start) return true;
|
|
647
2866
|
ranges.push(time);
|
|
648
2867
|
if (sung) firstSungStart = Math.min(firstSungStart, time.start);
|
|
@@ -665,7 +2884,7 @@ var mergeLines = (lines, inserted) => {
|
|
|
665
2884
|
let source = lines;
|
|
666
2885
|
for (const [index, line] of lines.entries()) {
|
|
667
2886
|
const previous = lines[index - 1];
|
|
668
|
-
if (previous
|
|
2887
|
+
if (previous && compareLineTimes(previous, line) > 0) {
|
|
669
2888
|
source = [...lines].sort(compareLineTimes);
|
|
670
2889
|
break;
|
|
671
2890
|
}
|
|
@@ -674,7 +2893,7 @@ var mergeLines = (lines, inserted) => {
|
|
|
674
2893
|
let nextIndex = 0;
|
|
675
2894
|
for (const line of source) {
|
|
676
2895
|
let next = inserted[nextIndex];
|
|
677
|
-
while (next
|
|
2896
|
+
while (next && compareLineTimes(next, line) < 0) {
|
|
678
2897
|
merged.push(next);
|
|
679
2898
|
nextIndex += 1;
|
|
680
2899
|
next = inserted[nextIndex];
|
|
@@ -696,7 +2915,7 @@ var insertInstrumentalLines = (lyric, options = {}) => {
|
|
|
696
2915
|
const minDuration = readMinimum(options.minDuration, 1e4, "minDuration");
|
|
697
2916
|
const minIntroDuration = readMinimum(options.minIntroDuration, 5e3, "minIntroDuration");
|
|
698
2917
|
const endTime = readEndTime(options.endTime);
|
|
699
|
-
if (lyric.timing !== Timing.LINE && lyric.timing !== Timing.WORD || lyric.lines.length
|
|
2918
|
+
if (lyric.timing !== Timing.LINE && lyric.timing !== Timing.WORD || !lyric.lines.length) return lyric;
|
|
700
2919
|
const occupied = readOccupiedTimeline(lyric);
|
|
701
2920
|
if (!occupied || occupied.firstSungStart === Infinity) return lyric;
|
|
702
2921
|
const inserted = [];
|
|
@@ -714,7 +2933,7 @@ var insertInstrumentalLines = (lyric, options = {}) => {
|
|
|
714
2933
|
if (coveredEnd === Infinity) break;
|
|
715
2934
|
}
|
|
716
2935
|
if (endTime !== void 0) appendGap(endTime, minDuration);
|
|
717
|
-
if (inserted.length
|
|
2936
|
+
if (!inserted.length) return lyric;
|
|
718
2937
|
return {
|
|
719
2938
|
...lyric,
|
|
720
2939
|
lines: mergeLines(lyric.lines, inserted)
|
|
@@ -793,10 +3012,10 @@ var REPEATED_SPACES = / {2,}/gu;
|
|
|
793
3012
|
var REPEATED_MARKS = /[!;,\\?:+\-=/&]{2,}/gu;
|
|
794
3013
|
var PLACEHOLDER = /\u0001(\d+)\u0001/gu;
|
|
795
3014
|
var isDigit = (char) => {
|
|
796
|
-
return char
|
|
3015
|
+
return !!char && char >= "0" && char <= "9";
|
|
797
3016
|
};
|
|
798
3017
|
var isLatin = (char) => {
|
|
799
|
-
return char
|
|
3018
|
+
return !!char && (char >= "A" && char <= "Z" || char >= "a" && char <= "z");
|
|
800
3019
|
};
|
|
801
3020
|
/**
|
|
802
3021
|
* A comma or colon between two digits belongs to one number or clock time, so it stays tight.
|
|
@@ -1043,6 +3262,6 @@ var insertSpacesInLines = (lyric, options = {}) => {
|
|
|
1043
3262
|
};
|
|
1044
3263
|
};
|
|
1045
3264
|
//#endregion
|
|
1046
|
-
export { INSERT_SPACES_RULES, InsertSpacesRules, deriveWordEmphasis, extractBackgroundLines, insertInstrumentalLines, insertSpacesInLines, stripBackgroundBrackets };
|
|
3265
|
+
export { DEFAULT_CREDIT_NAME_SEPARATORS, INSERT_SPACES_RULES, InsertSpacesRules, NON_LYRIC_CATEGORIES, deriveWordEmphasis, extractAgents, extractBackgroundLines, extractCredits, insertInstrumentalLines, insertSpacesInLines, removeNonLyricLines, stripBackgroundBrackets };
|
|
1047
3266
|
|
|
1048
3267
|
//# sourceMappingURL=transforms.js.map
|