-
Notifications
You must be signed in to change notification settings - Fork 5
/
schema
266 lines (266 loc) · 9.84 KB
/
schema
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
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "https://raw.githubusercontent.com/qwertymodo/msupcmplusplus/master/configs/schema",
"description": "Configuration file schema for msupcm++",
"type": "object",
"required": [ "tracks" ],
"properties": {
"game": {
"type": "string",
"description": "The SNES game this audio pack is intended for"
},
"pack": {
"type": "string",
"description": "The name of this audio pack"
},
"artist": {
"type": "string",
"description": "The original artist of the audio files used in this pack"
},
"url": {
"type": "string",
"format": "uri",
"description": "The location where the original audio files can be found"
},
"output_prefix": {
"type": "string",
"description": "The prefix used for the final output files, followed by the track number"
},
"normalization": {
"type": "number",
"description": "The default RMS normalization level, in dBFS, to be applied to the entire pack"
},
"dither": {
"type": "boolean",
"description": "Whether or not to apply audio dither to the final output"
},
"verbosity": {
"type": "integer",
"description": "Sets the verbosity level of the application during processing"
},
"keep_temps": {
"type": "boolean",
"description": "Whether or not to keep temporary files generated during processing"
},
"first_track": {
"type": "integer",
"description": "Any track number less than this will not be processed"
},
"last_track": {
"type": "integer",
"description": "Any track number greater than this will not be processed"
},
"tracks": {
"type": "array",
"minItems": 1,
"items": {
"$ref": "#/definitions/track"
},
"uniqueItems": true
}
},
"definitions": {
"track": {
"properties": {
"track_number": { "type": "integer" },
"title": { "type": "string" },
"sub_channels": {
"type": "array",
"description": "Files which will be mixed together to form the input to the parent track",
"minItems": 1,
"items": {
"$ref": "#/definitions/sub_channel"
},
"uniqueItems": true
},
"sub_tracks": {
"type": "array",
"description": "Files which will be concatenated together to form the input to the parent track",
"minItems": 1,
"items": {
"$ref": "#/definitions/sub_track"
},
"uniqueItems": false
}
},
"required": [ "track_number" ],
"anyOf": [
{ "required": [ "file" ] },
{
"oneOf": [
{
"required": [ "sub_channels" ],
"$ref": "#/definitions/sub_channel"
},
{
"required": [ "sub_tracks" ],
"$ref": "#/definitions/sub_channel"
},
{
"not": {
"anyOf": [
{ "required": [ "sub_channels" ] },
{ "required": [ "sub_tracks" ] }
]
},
"$ref": "#/definitions/track_base"
}
]
},
{
"allOf": [
{ "required": [ "options" ] },
{ "required": [ "use_option" ] }
]
}
],
"allOf": [
{ "$ref": "#/definitions/track_base" }
],
"not":{
"allOf": [
{ "required": [ "sub_channels" ] },
{ "required": [ "sub_tracks" ] }
]
}
},
"sub_track": {
"properties": {
"sub_channels": {
"type": "array",
"description": "Files which will be mixed together to form the input to the parent sub-track",
"minItems": 1,
"items": {
"$ref": "#/definitions/sub_channel"
},
"uniqueItems": true
}
},
"allOf": [
{ "$ref": "#/definitions/track_base" }
]
},
"sub_channel": {
"properties": {
"sub_tracks": {
"type": "array",
"description": "Files which will be concatenated together to form the input to the parent sub-channel",
"minItems": 1,
"items": {
"$ref": "#/definitions/sub_track"
},
"uniqueItems": false
}
},
"allOf": [
{ "$ref": "#/definitions/track_base" }
]
},
"track_base": {
"properties": {
"file": {
"type": "string",
"description": "The file to be used as the input for this track/sub-track/sub-channel"
},
"output": {
"type": "string",
"description": "The final output filename, overrides output_prefix"
},
"loop": {
"type": "integer",
"description": "The loop point of the current track, relative to this track/sub-track/sub-channel, in samples"
},
"trim_start": {
"type": "integer",
"description": "Trim the start of the current track at the specified sample"
},
"trim_end": {
"type": "integer",
"description": "Trim the end of the current track at the specified sample"
},
"fade_in": {
"type": "integer",
"description": "Apply a fade in effect to the current track lasting a specified number of samples"
},
"fade_out": {
"type": "integer",
"description": "Apply a fade out effect to the current track lasting a specified number of samples"
},
"cross_fade": {
"type": "integer",
"description": "Apply a cross fade effect from the end of the current track to its loop point lasting a specified number of samples"
},
"pad_start": {
"type": "integer",
"description": "Pad the beginning of the current track with a specified number of silent samples"
},
"pad_end": {
"type": "integer",
"description": "Pad the end of the current track with a specified number of silent samples"
},
"tempo": {
"type": "number",
"description": "Alter the tempo of the current track by a specified ratio"
},
"normalization": {
"type": "number",
"description": "Normalize the current track to the specified RMS level, overrides the global normalization value"
},
"compression": {
"type": "boolean",
"description": "Apply dynamic range compression to the current track"
},
"use_option": { "type": "integer" },
"options": {
"type": "array",
"minItems": 1,
"items": {
"anyOf": [
{ "$ref": "#/definitions/track_option" },
{ "$ref": "#/definitions/sub_track_option" },
{ "$ref": "#/definitions/sub_channel_option" },
{ "$ref": "#/definitions/base_option" }
]
},
"uniqueItems": true
}
}
},
"track_option": {
"properties": {
"option": { "type": "integer" }
},
"required": [ "option" ],
"allOf": [
{ "$ref": "#/definitions/track" }
]
},
"sub_track_option": {
"properties": {
"option": { "type": "integer" }
},
"required": [ "option" ],
"allOf": [
{ "$ref": "#/definitions/sub_track" }
]
},
"sub_channel_option": {
"properties": {
"option": { "type": "integer" }
},
"required": [ "option" ],
"allOf": [
{ "$ref": "#/definitions/sub_channel" }
]
},
"base_option": {
"properties": {
"option": { "type": "integer" }
},
"required": [ "option" ],
"allOf": [
{ "$ref": "#/definitions/track_base" }
]
}
}
}