-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstruments.schema.json
More file actions
94 lines (94 loc) · 2.65 KB
/
Copy pathinstruments.schema.json
File metadata and controls
94 lines (94 loc) · 2.65 KB
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
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"definitions": {
"Instrument": {
"additionalProperties": false,
"description": "A single instrument in Flat's public catalog.",
"properties": {
"group": {
"description": "Group / family ID this instrument belongs to, e.g. `\"keyboards\"`.",
"type": "string"
},
"id": {
"description": "Canonical instrument ID in `group.instrument` form, e.g. `\"keyboards.piano\"`.",
"type": "string"
},
"name": {
"description": "English display name, e.g. `\"Piano\"`.",
"type": "string"
},
"premium": {
"description": "`true` when the instrument requires a paid Flat plan.",
"type": "boolean"
},
"shortname": {
"description": "Short English label used on staves, e.g. `\"Pno.\"`.",
"type": "string"
},
"type": {
"$ref": "#/definitions/InstrumentType",
"description": "`\"pitched\"` for melodic instruments, `\"unpitched\"` for percussion / drum-style kits."
}
},
"required": [
"id",
"group",
"name",
"shortname",
"type",
"premium"
],
"type": "object"
},
"InstrumentGroup": {
"additionalProperties": false,
"description": "A group / family of instruments (e.g. Keyboards, Brass), in catalog display order.",
"properties": {
"id": {
"description": "Group ID, e.g. `\"keyboards\"`.",
"type": "string"
},
"instruments": {
"description": "Instruments in this group, in catalog display order.",
"items": {
"$ref": "#/definitions/Instrument"
},
"type": "array"
},
"name": {
"description": "English display name, e.g. `\"Keyboards\"`.",
"type": "string"
}
},
"required": [
"id",
"name",
"instruments"
],
"type": "object"
},
"InstrumentType": {
"description": "Whether an instrument is pitched (melodic) or unpitched (percussion / drum-style kit).",
"enum": [
"pitched",
"unpitched"
],
"type": "string"
}
},
"description": "Top-level shape of `data/instruments.json` — the published catalog.",
"properties": {
"groups": {
"description": "All instrument groups, in catalog display order.",
"items": {
"$ref": "#/definitions/InstrumentGroup"
},
"type": "array"
}
},
"required": [
"groups"
],
"type": "object"
}