at.atmosynth.patch
Schema Diff
+177 -1
Compatibility Analysis
Breaking Changes Detected
7 breaking changes, 50 non-breaking changes.
Breaking Changes (7)
- RequiredEdgeAdded RequiredEdgeAdded { vertex_id: "at.atmosynth.patch#noteEvent", src: "at.atmosynth.patch#noteEvent", tgt: "at.atmosynth.patch#noteEvent.note", kind: "prop", name: Some("note") }
- RequiredEdgeAdded RequiredEdgeAdded { vertex_id: "at.atmosynth.patch#resolution", src: "at.atmosynth.patch#resolution", tgt: "at.atmosynth.patch#resolution.value", kind: "prop", name: Some("value") }
- RequiredEdgeAdded RequiredEdgeAdded { vertex_id: "at.atmosynth.patch#noteOutputRef", src: "at.atmosynth.patch#noteOutputRef", tgt: "at.atmosynth.patch#noteOutputRef.instanceId", kind: "prop", name: Some("instanceId") }
- RequiredEdgeAdded RequiredEdgeAdded { vertex_id: "at.atmosynth.patch#noteOutputRef", src: "at.atmosynth.patch#noteOutputRef", tgt: "at.atmosynth.patch#noteOutputRef.noteOutput", kind: "prop", name: Some("noteOutput") }
- RequiredEdgeAdded RequiredEdgeAdded { vertex_id: "at.atmosynth.patch#notePattern", src: "at.atmosynth.patch#notePattern", tgt: "at.atmosynth.patch#notePattern.bars", kind: "prop", name: Some("bars") }
- RequiredEdgeAdded RequiredEdgeAdded { vertex_id: "at.atmosynth.patch#notePattern", src: "at.atmosynth.patch#notePattern", tgt: "at.atmosynth.patch#notePattern.resolution", kind: "prop", name: Some("resolution") }
- RequiredEdgeAdded RequiredEdgeAdded { vertex_id: "at.atmosynth.patch#alternatePattern", src: "at.atmosynth.patch#alternatePattern", tgt: "at.atmosynth.patch#alternatePattern.bars", kind: "prop", name: Some("bars") }
Non-Breaking Changes (50)
- AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#alternatePattern" }
- AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#alternatePattern.bars" }
- AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#alternatePattern.events" }
- AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#alternatePattern.events:items" }
- AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#midiRoute.from" }
- AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#moduleInstance.notePattern" }
- AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#moduleInstance.unison" }
- AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#noteEvent" }
- AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#noteEvent.at" }
- AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#noteEvent.hold" }
- AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#noteEvent.length" }
- AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#noteEvent.note" }
- AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#noteEvent.step" }
- AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#noteOutputRef" }
- AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#noteOutputRef.instanceId" }
- AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#noteOutputRef.noteOutput" }
- AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#notePattern" }
- AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#notePattern.active" }
- AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#notePattern.alternates" }
- AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#notePattern.alternates:items" }
- AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#notePattern.bars" }
- AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#notePattern.events" }
- AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#notePattern.events:items" }
- AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#notePattern.resolution" }
- AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#resolution" }
- AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#resolution.unit" }
- AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#resolution.value" }
- AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch:body.tempo" }
- AddedEdge AddedEdge { src: "at.atmosynth.patch#alternatePattern", tgt: "at.atmosynth.patch#alternatePattern.events", kind: "prop", name: Some("events") }
- AddedEdge AddedEdge { src: "at.atmosynth.patch#alternatePattern.events", tgt: "at.atmosynth.patch#alternatePattern.events:items", kind: "items", name: None }
- AddedEdge AddedEdge { src: "at.atmosynth.patch#alternatePattern.events:items", tgt: "at.atmosynth.patch#noteEvent", kind: "ref", name: None }
- AddedEdge AddedEdge { src: "at.atmosynth.patch#midiRoute", tgt: "at.atmosynth.patch#midiRoute.from", kind: "prop", name: Some("from") }
- AddedEdge AddedEdge { src: "at.atmosynth.patch#midiRoute.from", tgt: "at.atmosynth.patch#noteOutputRef", kind: "ref", name: None }
- AddedEdge AddedEdge { src: "at.atmosynth.patch#moduleInstance", tgt: "at.atmosynth.patch#moduleInstance.notePattern", kind: "prop", name: Some("notePattern") }
- AddedEdge AddedEdge { src: "at.atmosynth.patch#moduleInstance", tgt: "at.atmosynth.patch#moduleInstance.unison", kind: "prop", name: Some("unison") }
- AddedEdge AddedEdge { src: "at.atmosynth.patch#moduleInstance.notePattern", tgt: "at.atmosynth.patch#notePattern", kind: "ref", name: None }
- AddedEdge AddedEdge { src: "at.atmosynth.patch#noteEvent", tgt: "at.atmosynth.patch#noteEvent.at", kind: "prop", name: Some("at") }
- AddedEdge AddedEdge { src: "at.atmosynth.patch#noteEvent", tgt: "at.atmosynth.patch#noteEvent.hold", kind: "prop", name: Some("hold") }
- AddedEdge AddedEdge { src: "at.atmosynth.patch#noteEvent", tgt: "at.atmosynth.patch#noteEvent.length", kind: "prop", name: Some("length") }
- AddedEdge AddedEdge { src: "at.atmosynth.patch#noteEvent", tgt: "at.atmosynth.patch#noteEvent.step", kind: "prop", name: Some("step") }
- AddedEdge AddedEdge { src: "at.atmosynth.patch#notePattern", tgt: "at.atmosynth.patch#notePattern.active", kind: "prop", name: Some("active") }
- AddedEdge AddedEdge { src: "at.atmosynth.patch#notePattern", tgt: "at.atmosynth.patch#notePattern.alternates", kind: "prop", name: Some("alternates") }
- AddedEdge AddedEdge { src: "at.atmosynth.patch#notePattern", tgt: "at.atmosynth.patch#notePattern.events", kind: "prop", name: Some("events") }
- AddedEdge AddedEdge { src: "at.atmosynth.patch#notePattern.alternates", tgt: "at.atmosynth.patch#notePattern.alternates:items", kind: "items", name: None }
- AddedEdge AddedEdge { src: "at.atmosynth.patch#notePattern.alternates:items", tgt: "at.atmosynth.patch#alternatePattern", kind: "ref", name: None }
- AddedEdge AddedEdge { src: "at.atmosynth.patch#notePattern.events", tgt: "at.atmosynth.patch#notePattern.events:items", kind: "items", name: None }
- AddedEdge AddedEdge { src: "at.atmosynth.patch#notePattern.events:items", tgt: "at.atmosynth.patch#noteEvent", kind: "ref", name: None }
- AddedEdge AddedEdge { src: "at.atmosynth.patch#notePattern.resolution", tgt: "at.atmosynth.patch#resolution", kind: "ref", name: None }
- AddedEdge AddedEdge { src: "at.atmosynth.patch#resolution", tgt: "at.atmosynth.patch#resolution.unit", kind: "prop", name: Some("unit") }
- AddedEdge AddedEdge { src: "at.atmosynth.patch:body", tgt: "at.atmosynth.patch:body.tempo", kind: "prop", name: Some("tempo") }
Migration Guidance
Added Elements
AddedVertex { vertex_id: "at.atmosynth.patch#alternatePattern" }AddedVertex { vertex_id: "at.atmosynth.patch#alternatePattern.bars" }AddedVertex { vertex_id: "at.atmosynth.patch#alternatePattern.events" }AddedVertex { vertex_id: "at.atmosynth.patch#alternatePattern.events:items" }AddedVertex { vertex_id: "at.atmosynth.patch#midiRoute.from" }AddedVertex { vertex_id: "at.atmosynth.patch#moduleInstance.notePattern" }AddedVertex { vertex_id: "at.atmosynth.patch#moduleInstance.unison" }AddedVertex { vertex_id: "at.atmosynth.patch#noteEvent" }AddedVertex { vertex_id: "at.atmosynth.patch#noteEvent.at" }AddedVertex { vertex_id: "at.atmosynth.patch#noteEvent.hold" }AddedVertex { vertex_id: "at.atmosynth.patch#noteEvent.length" }AddedVertex { vertex_id: "at.atmosynth.patch#noteEvent.note" }AddedVertex { vertex_id: "at.atmosynth.patch#noteEvent.step" }AddedVertex { vertex_id: "at.atmosynth.patch#noteOutputRef" }AddedVertex { vertex_id: "at.atmosynth.patch#noteOutputRef.instanceId" }AddedVertex { vertex_id: "at.atmosynth.patch#noteOutputRef.noteOutput" }AddedVertex { vertex_id: "at.atmosynth.patch#notePattern" }AddedVertex { vertex_id: "at.atmosynth.patch#notePattern.active" }AddedVertex { vertex_id: "at.atmosynth.patch#notePattern.alternates" }AddedVertex { vertex_id: "at.atmosynth.patch#notePattern.alternates:items" }AddedVertex { vertex_id: "at.atmosynth.patch#notePattern.bars" }AddedVertex { vertex_id: "at.atmosynth.patch#notePattern.events" }AddedVertex { vertex_id: "at.atmosynth.patch#notePattern.events:items" }AddedVertex { vertex_id: "at.atmosynth.patch#notePattern.resolution" }AddedVertex { vertex_id: "at.atmosynth.patch#resolution" }AddedVertex { vertex_id: "at.atmosynth.patch#resolution.unit" }AddedVertex { vertex_id: "at.atmosynth.patch#resolution.value" }AddedVertex { vertex_id: "at.atmosynth.patch:body.tempo" }
Additional Notes
- Breaking: RequiredEdgeAdded { vertex_id: "at.atmosynth.patch#notePattern", src: "at.atmosynth.patch#notePattern", tgt: "at.atmosynth.patch#notePattern.bars", kind: "prop", name: Some("bars") }
- Breaking: RequiredEdgeAdded { vertex_id: "at.atmosynth.patch#notePattern", src: "at.atmosynth.patch#notePattern", tgt: "at.atmosynth.patch#notePattern.resolution", kind: "prop", name: Some("resolution") }
- Breaking: RequiredEdgeAdded { vertex_id: "at.atmosynth.patch#noteOutputRef", src: "at.atmosynth.patch#noteOutputRef", tgt: "at.atmosynth.patch#noteOutputRef.instanceId", kind: "prop", name: Some("instanceId") }
- Breaking: RequiredEdgeAdded { vertex_id: "at.atmosynth.patch#noteOutputRef", src: "at.atmosynth.patch#noteOutputRef", tgt: "at.atmosynth.patch#noteOutputRef.noteOutput", kind: "prop", name: Some("noteOutput") }
- Breaking: RequiredEdgeAdded { vertex_id: "at.atmosynth.patch#alternatePattern", src: "at.atmosynth.patch#alternatePattern", tgt: "at.atmosynth.patch#alternatePattern.bars", kind: "prop", name: Some("bars") }
- Breaking: RequiredEdgeAdded { vertex_id: "at.atmosynth.patch#noteEvent", src: "at.atmosynth.patch#noteEvent", tgt: "at.atmosynth.patch#noteEvent.note", kind: "prop", name: Some("note") }
- Breaking: RequiredEdgeAdded { vertex_id: "at.atmosynth.patch#resolution", src: "at.atmosynth.patch#resolution", tgt: "at.atmosynth.patch#resolution.value", kind: "prop", name: Some("value") }
- Non-breaking: AddedEdge { src: "at.atmosynth.patch#alternatePattern", tgt: "at.atmosynth.patch#alternatePattern.events", kind: "prop", name: Some("events") }
- Non-breaking: AddedEdge { src: "at.atmosynth.patch#alternatePattern.events", tgt: "at.atmosynth.patch#alternatePattern.events:items", kind: "items", name: None }
- Non-breaking: AddedEdge { src: "at.atmosynth.patch#alternatePattern.events:items", tgt: "at.atmosynth.patch#noteEvent", kind: "ref", name: None }
- Non-breaking: AddedEdge { src: "at.atmosynth.patch#midiRoute", tgt: "at.atmosynth.patch#midiRoute.from", kind: "prop", name: Some("from") }
- Non-breaking: AddedEdge { src: "at.atmosynth.patch#midiRoute.from", tgt: "at.atmosynth.patch#noteOutputRef", kind: "ref", name: None }
- Non-breaking: AddedEdge { src: "at.atmosynth.patch#moduleInstance", tgt: "at.atmosynth.patch#moduleInstance.notePattern", kind: "prop", name: Some("notePattern") }
- Non-breaking: AddedEdge { src: "at.atmosynth.patch#moduleInstance", tgt: "at.atmosynth.patch#moduleInstance.unison", kind: "prop", name: Some("unison") }
- Non-breaking: AddedEdge { src: "at.atmosynth.patch#moduleInstance.notePattern", tgt: "at.atmosynth.patch#notePattern", kind: "ref", name: None }
- Non-breaking: AddedEdge { src: "at.atmosynth.patch#noteEvent", tgt: "at.atmosynth.patch#noteEvent.at", kind: "prop", name: Some("at") }
- Non-breaking: AddedEdge { src: "at.atmosynth.patch#noteEvent", tgt: "at.atmosynth.patch#noteEvent.hold", kind: "prop", name: Some("hold") }
- Non-breaking: AddedEdge { src: "at.atmosynth.patch#noteEvent", tgt: "at.atmosynth.patch#noteEvent.length", kind: "prop", name: Some("length") }
- Non-breaking: AddedEdge { src: "at.atmosynth.patch#noteEvent", tgt: "at.atmosynth.patch#noteEvent.step", kind: "prop", name: Some("step") }
- Non-breaking: AddedEdge { src: "at.atmosynth.patch#notePattern", tgt: "at.atmosynth.patch#notePattern.active", kind: "prop", name: Some("active") }
- Non-breaking: AddedEdge { src: "at.atmosynth.patch#notePattern", tgt: "at.atmosynth.patch#notePattern.alternates", kind: "prop", name: Some("alternates") }
- Non-breaking: AddedEdge { src: "at.atmosynth.patch#notePattern", tgt: "at.atmosynth.patch#notePattern.events", kind: "prop", name: Some("events") }
- Non-breaking: AddedEdge { src: "at.atmosynth.patch#notePattern.alternates", tgt: "at.atmosynth.patch#notePattern.alternates:items", kind: "items", name: None }
- Non-breaking: AddedEdge { src: "at.atmosynth.patch#notePattern.alternates:items", tgt: "at.atmosynth.patch#alternatePattern", kind: "ref", name: None }
- Non-breaking: AddedEdge { src: "at.atmosynth.patch#notePattern.events", tgt: "at.atmosynth.patch#notePattern.events:items", kind: "items", name: None }
- Non-breaking: AddedEdge { src: "at.atmosynth.patch#notePattern.events:items", tgt: "at.atmosynth.patch#noteEvent", kind: "ref", name: None }
- Non-breaking: AddedEdge { src: "at.atmosynth.patch#notePattern.resolution", tgt: "at.atmosynth.patch#resolution", kind: "ref", name: None }
- Non-breaking: AddedEdge { src: "at.atmosynth.patch#resolution", tgt: "at.atmosynth.patch#resolution.unit", kind: "prop", name: Some("unit") }
- Non-breaking: AddedEdge { src: "at.atmosynth.patch:body", tgt: "at.atmosynth.patch:body.tempo", kind: "prop", name: Some("tempo") }
1
1
{
2
2
"id": "at.atmosynth.patch",
3
3
"defs": {
4
4
"main": {
5
5
"key": "tid",
6
6
"type": "record",
7
7
"record": {
8
8
"type": "object",
9
9
"required": [
10
10
"descriptionVersion",
11
11
"name",
12
12
"description",
13
13
"moduleInstances",
14
14
"createdAt"
15
15
],
16
16
"properties": {
17
17
"name": {
18
18
"type": "string",
19
19
"maxLength": 200,
20
20
"minLength": 1
21
21
},
22
22
"tags": {
23
23
"type": "array",
24
24
"items": {
25
25
"type": "string",
26
26
"maxLength": 128
27
27
},
28
28
"description": "Freely created tags, lower-cased on write so one hashtag matches one set of patches."
29
29
},
30
+
"tempo": {
31
+
"type": "integer",
32
+
"maximum": 300,
33
+
"minimum": 20,
34
+
"description": "The tempo this patch was written at, in beats per minute. It is what a sequenced patch counts its bars against, so a patch that plays itself arrives at the speed its creator meant. It seeds the player's own tempo rather than replacing it: how fast a visitor plays is still theirs, and moving it moves everything counting against it. Optional permanently — a patch that says nothing is played at whatever tempo the player already had."
35
+
},
30
36
"types": {
31
37
"type": "array",
32
38
"items": {
33
39
"type": "string",
34
40
"knownValues": [
35
41
"Lead",
36
42
"Pad",
37
43
"Bass",
38
44
"Plucked",
39
45
"Percussion",
40
46
"Keys",
41
47
"Brass",
42
48
"Strings",
43
49
"Vocal",
44
50
"SFX"
45
51
]
46
52
},
47
53
"description": "Zero or more of the ten fixed types. A patch may carry several."
48
54
},
49
55
"output": {
50
56
"ref": "#outputRef",
51
57
"type": "ref",
52
58
"description": "Which instance reaches the audio output."
53
59
},
54
60
"createdAt": {
55
61
"type": "string",
56
62
"format": "datetime"
57
63
},
58
64
"forkedFrom": {
59
65
"ref": "#lineage",
60
66
"type": "ref"
61
67
},
62
68
"connections": {
63
69
"type": "array",
64
70
"items": {
65
71
"ref": "#connection",
66
72
"type": "ref"
67
73
}
68
74
},
69
75
"description": {
70
76
"type": "string",
71
77
"maxLength": 3000
72
78
},
73
79
"midiRouting": {
74
80
"type": "array",
75
81
"items": {
76
82
"ref": "#midiRoute",
77
83
"type": "ref"
78
84
},
79
85
"description": "Which module instances receive MIDI input."
80
86
},
81
87
"moduleInstances": {
82
88
"type": "array",
83
89
"items": {
84
90
"ref": "#moduleInstance",
85
91
"type": "ref"
86
92
}
87
93
},
88
94
"descriptionVersion": {
89
95
"type": "integer",
90
96
"minimum": 1,
91
97
"description": "Version of the patch description this record follows."
92
98
}
93
99
}
94
100
},
95
101
"description": "A patch, held in its creator's own repository."
96
102
},
97
103
"lineage": {
98
104
"type": "object",
99
105
"required": [
100
106
"uri",
101
107
"creatorDid"
102
108
],
103
109
"properties": {
104
110
"uri": {
105
111
"type": "string",
106
112
"format": "at-uri"
107
113
},
108
114
"patchId": {
109
115
"type": "string",
110
116
"maxLength": 128
111
117
},
112
118
"creatorDid": {
113
119
"type": "string",
114
120
"format": "did"
115
121
}
116
122
},
117
123
"description": "The patch this one was forked from, and its creator. Preserved even when the source is later deleted."
118
124
},
119
125
"inputRef": {
120
126
"type": "object",
121
127
"required": [
122
128
"instanceId",
123
129
"audioInput"
124
130
],
125
131
"properties": {
126
132
"audioInput": {
127
133
"type": "string",
128
134
"maxLength": 64,
129
135
"minLength": 1
130
136
},
131
137
"instanceId": {
132
138
"type": "string",
133
139
"maxLength": 64,
134
140
"minLength": 1
135
141
}
136
142
}
137
143
},
138
144
"position": {
139
145
"type": "object",
140
146
"required": [
141
147
"x",
142
148
"y"
143
149
],
144
150
"properties": {
145
151
"x": {
146
152
"type": "integer"
147
153
},
148
154
"y": {
149
155
"type": "integer"
150
156
}
151
157
}
152
158
},
153
159
"midiRoute": {
154
160
"type": "object",
155
161
"required": [
156
162
"instanceId",
157
163
"midiInput"
158
164
],
159
165
"properties": {
166
+
"from": {
167
+
"ref": "#noteOutputRef",
168
+
"type": "ref",
169
+
"description": "The note output these notes leave. Absent where they come from the player."
170
+
},
160
171
"midiInput": {
161
172
"type": "string",
162
173
"maxLength": 64,
163
174
"minLength": 1
164
175
},
165
176
"instanceId": {
166
177
"type": "string",
167
178
"maxLength": 64,
168
179
"minLength": 1
169
180
}
170
-
}
181
+
},
182
+
"description": "Where one instance's notes come from. `instanceId` and `midiInput` name the MIDI input they arrive at; `from` names the note output they leave. **A route with no `from` comes from the player** — the on-screen keys, the computer keyboard and every MIDI device at once — which is what every route written before note sources existed says, and what it goes on saying."
171
183
},
172
184
"moduleRef": {
173
185
"type": "object",
174
186
"required": [
175
187
"moduleId",
176
188
"versionKey",
177
189
"authorDid"
178
190
],
179
191
"properties": {
180
192
"moduleId": {
181
193
"type": "string",
182
194
"maxLength": 128,
183
195
"minLength": 1
184
196
},
185
197
"authorDid": {
186
198
"type": "string",
187
199
"format": "did"
188
200
},
189
201
"versionKey": {
190
202
"type": "string",
191
203
"maxLength": 128,
192
204
"minLength": 1
193
205
}
194
206
},
195
207
"description": "A pin to one exact published version of a module. Resolving it fetches that record, whoever authored it."
196
208
},
209
+
"noteEvent": {
210
+
"type": "object",
211
+
"required": [
212
+
"note"
213
+
],
214
+
"properties": {
215
+
"at": {
216
+
"type": "integer",
217
+
"minimum": 0,
218
+
"description": "The tick of the loop this note is struck at, counted from its start at 96 ticks to the beat. Ticks rather than steps of the grid, because a note is at a moment and the grid is a guide over it: 96 is divided exactly by every grid this description offers, so a note keeps its moment however the grid is changed."
219
+
},
220
+
"hold": {
221
+
"type": "integer",
222
+
"minimum": 1,
223
+
"description": "How many ticks this note is held for. Counted in ticks rather than in seconds for the reason the start is: a phrase written at 90 is the same phrase, held notes and all, at 140. A note is cut off by the loop's end and by the next note of its own pitch, since the same pitch overlapping itself is one voice rather than two."
224
+
},
225
+
"note": {
226
+
"type": "integer",
227
+
"maximum": 127,
228
+
"minimum": 0,
229
+
"description": "The MIDI note number. 60 is middle C."
230
+
},
231
+
"step": {
232
+
"type": "integer",
233
+
"minimum": 0,
234
+
"description": "Which step of the grid this note is on, counted from the start of the loop. The older way of saying where a note is, read from every pattern published before a note carried a tick and written by none."
235
+
},
236
+
"length": {
237
+
"type": "integer",
238
+
"minimum": 1,
239
+
"description": "How many steps of the grid this note is held for, where its start is written as a step. Absent is one, which is what every pattern written before notes had a length says."
240
+
}
241
+
},
242
+
"description": "One note struck at one moment of the loop and held from it, at one fixed strength — a pattern is what is played and not how hard. It is written one of two ways: a note written now says the tick it is at and how many ticks it is held for, and a note written while the grid was part of what a note was says the step of that grid and how many of those steps it was held for. Both are read; the first is written."
243
+
},
197
244
"outputRef": {
198
245
"type": "object",
199
246
"required": [
200
247
"instanceId",
201
248
"audioOutput"
202
249
],
203
250
"properties": {
204
251
"instanceId": {
205
252
"type": "string",
206
253
"maxLength": 64,
207
254
"minLength": 1
208
255
},
209
256
"audioOutput": {
210
257
"type": "string",
211
258
"maxLength": 64,
212
259
"minLength": 1
213
260
}
214
261
}
215
262
},
216
263
"connection": {
217
264
"type": "object",
218
265
"required": [
219
266
"from",
220
267
"to"
221
268
],
222
269
"properties": {
223
270
"to": {
224
271
"ref": "#inputRef",
225
272
"type": "ref"
226
273
},
227
274
"from": {
228
275
"ref": "#outputRef",
229
276
"type": "ref"
230
277
}
231
278
},
232
279
"description": "An audio connection between two module instances, naming the declared ports at each end."
233
280
},
281
+
"resolution": {
282
+
"type": "object",
283
+
"required": [
284
+
"value"
285
+
],
286
+
"properties": {
287
+
"unit": {
288
+
"type": "string",
289
+
"description": "Three of them into the time of two, or not. Absent is normal. A dotted grid is not offered: it does not divide a bar evenly, so it would leave a pattern whose steps do not line up with its own loop.",
290
+
"knownValues": [
291
+
"normal",
292
+
"triplet"
293
+
]
294
+
},
295
+
"value": {
296
+
"type": "string",
297
+
"description": "The note value one step is worth. A bar is four beats.",
298
+
"knownValues": [
299
+
"bar",
300
+
"1/2",
301
+
"1/4",
302
+
"1/8",
303
+
"1/16",
304
+
"1/32",
305
+
"1/64",
306
+
"1/128"
307
+
]
308
+
}
309
+
},
310
+
"description": "One note value, as a length and what that length is multiplied by. The same vocabulary the player's own musical time is counted in."
311
+
},
234
312
"midiControl": {
235
313
"type": "object",
236
314
"required": [
237
315
"parameter",
238
316
"controller"
239
317
],
240
318
"properties": {
241
319
"parameter": {
242
320
"type": "string",
243
321
"maxLength": 64,
244
322
"minLength": 1,
245
323
"description": "The id of the exposed parameter this control moves. One parameter is moved by at most one controller; one controller may move several parameters."
246
324
},
247
325
"controller": {
248
326
"type": "integer",
249
327
"maximum": 127,
250
328
"minimum": 0,
251
329
"description": "The control change number. Five are spoken for by MIDI itself and cannot be bound: 64, the sustain pedal, and 6, 38, 100 and 101, which carry registered-parameter traffic."
252
330
}
253
331
},
254
332
"description": "One MIDI control change bound to one of the module's exposed parameters. The controller's 0 to 127 sweeps the parameter across the range the module declares, or, where the module declares a closed value set instead, across those values in order. A control is read from every input on every channel, like every other MIDI message here: there is nothing to configure."
255
333
},
334
+
"notePattern": {
335
+
"type": "object",
336
+
"required": [
337
+
"bars",
338
+
"resolution"
339
+
],
340
+
"properties": {
341
+
"bars": {
342
+
"type": "integer",
343
+
"maximum": 8,
344
+
"minimum": 1,
345
+
"description": "How long the first loop is, in bars of four beats. There is no time signature anywhere here, and 4/4 is what a bar means to everyone who has not been told otherwise. Each loop keeps its own length: one may be four bars and the next five."
346
+
},
347
+
"active": {
348
+
"type": "integer",
349
+
"minimum": 0,
350
+
"description": "Which loop is played, counting the one written here as zero. Absent is the first. It is in the record because it is what a visitor opening the patch hears — unlike stopping a loop, which is how a browser is listening and is written nowhere. Every loop counts from the same downbeat and wraps at its own length whether or not it is the one being heard, so switching between them reveals where the other had got to rather than starting it."
351
+
},
352
+
"events": {
353
+
"type": "array",
354
+
"items": {
355
+
"ref": "#noteEvent",
356
+
"type": "ref"
357
+
},
358
+
"maxLength": 2048,
359
+
"description": "The notes in the first loop. A moment carrying no note is a rest; a note starting outside the loop's length is not played."
360
+
},
361
+
"alternates": {
362
+
"type": "array",
363
+
"items": {
364
+
"ref": "#alternatePattern",
365
+
"type": "ref"
366
+
},
367
+
"maxLength": 7,
368
+
"description": "The loops after the first. Absent while the sequencer holds a single pattern, which is what every sequencer written before there could be more than one says."
369
+
},
370
+
"resolution": {
371
+
"ref": "#resolution",
372
+
"type": "ref",
373
+
"description": "The grid every loop on this sequencer is drawn and snapped to. It is a guide and not a part of what is played: it decides where a note being put down lands, and changing it moves nothing already written, so a loop may hold a note no line of the current grid passes through."
374
+
}
375
+
},
376
+
"description": "The loops one sequencer holds, and the grid they are written on. A loop is a whole number of bars and the notes in it are counted in ticks of the beat, so a pattern means the same thing at any tempo — what a tick is worth in seconds is the player's tempo's business and not the pattern's. The first loop is written here, where a pattern has always been written; any after it are alternates."
377
+
},
378
+
"noteOutputRef": {
379
+
"type": "object",
380
+
"required": [
381
+
"instanceId",
382
+
"noteOutput"
383
+
],
384
+
"properties": {
385
+
"instanceId": {
386
+
"type": "string",
387
+
"maxLength": 64,
388
+
"minLength": 1
389
+
},
390
+
"noteOutput": {
391
+
"type": "string",
392
+
"maxLength": 64,
393
+
"minLength": 1
394
+
}
395
+
}
396
+
},
256
397
"moduleInstance": {
257
398
"type": "object",
258
399
"required": [
259
400
"instanceId",
260
401
"module",
261
402
"voiceScope"
262
403
],
263
404
"properties": {
264
405
"module": {
265
406
"ref": "#moduleRef",
266
407
"type": "ref"
267
408
},
409
+
"unison": {
410
+
"type": "integer",
411
+
"maximum": 6,
412
+
"minimum": 1,
413
+
"description": "How many voices each note this instance plays is sounded by, detuned narrowly against each other and centred on the note. It lives here, in the patch, for the reason the pattern above it does: how a loop is voiced is a decision about this use of the module. The player's own unison is a setting of their browser and says nothing about this one, so a loop written thick stays thick for everyone who opens the patch. Optional permanently: an instance that says nothing plays one voice per note, which is what every record written before this field existed says."
414
+
},
268
415
"enabled": {
269
416
"type": "boolean",
270
417
"description": "Whether this instance does its work. An instance that is switched off makes no sound of its own, and anything reaching its audio inputs leaves its audio outputs unaltered. Optional permanently: an instance that says nothing is on, which is what every record written before this field existed says."
271
418
},
272
419
"position": {
273
420
"ref": "#position",
274
421
"type": "ref",
275
422
"description": "Where the creator placed this instance in the patch's arrangement, so the arrangement travels with the patch and a fork inherits it. Optional permanently, and the only field in either description that exists for presentation."
276
423
},
277
424
"instanceId": {
278
425
"type": "string",
279
426
"maxLength": 64,
280
427
"minLength": 1
281
428
},
282
429
"voiceScope": {
283
430
"enum": [
284
431
"perNote",
285
432
"perPatch"
286
433
],
287
434
"type": "string",
288
435
"description": "Whether this instance is built once for each sounding note or once for the whole patch. One of the two, always: the choice is made when the module is added, from what the module is, and is the creator's to move afterwards. There is no third value and no leaving it out — an instance that said nothing left the answer to be worked out afresh every time the patch was played, which is a decision nobody could see and nobody could change."
289
436
},
437
+
"notePattern": {
438
+
"ref": "#notePattern",
439
+
"type": "ref",
440
+
"description": "The pattern this instance loops, where its module is a sequencer. It lives here, in the patch, for the reason a sample slot fill and a control binding do: what is played is a decision about this use of the module, and writing one never touches the module's record. Absent on every instance whose module is not a note source."
441
+
},
290
442
"midiControls": {
291
443
"type": "array",
292
444
"items": {
293
445
"ref": "#midiControl",
294
446
"type": "ref"
295
447
},
296
448
"description": "Which MIDI control changes move this instance's parameters while it is played. A binding lives here, in the patch, because which knob moves what is a decision about this use of the module and not about the module."
297
449
},
298
450
"parameterValues": {
299
451
"type": "array",
300
452
"items": {
301
453
"ref": "#parameterValue",
302
454
"type": "ref"
303
455
}
304
456
},
305
457
"sampleSlotFills": {
306
458
"type": "array",
307
459
"items": {
308
460
"ref": "#sampleSlotFill",
309
461
"type": "ref"
310
462
},
311
463
"description": "Samples this instance supplies for the module's declared slots. A fill lives here, in the patch, so writing one never touches the module."
312
464
}
313
465
},
314
466
"description": "One use of one module version. A patch may use the same module more than once; each instance is separately addressable and carries its own parameter values and slot fills."
315
467
},
316
468
"parameterValue": {
317
469
"type": "object",
318
470
"required": [
319
471
"id"
320
472
],
321
473
"properties": {
322
474
"id": {
323
475
"type": "string",
324
476
"maxLength": 64,
325
477
"minLength": 1
326
478
},
327
479
"value": {
328
480
"type": "unknown",
329
481
"description": "The value this patch sets the parameter to. A number that is not a whole number is carried as its decimal string — \"0.5\", not 0.5 — because the ATproto data model has no floating-point type and a PDS refuses one. A whole number is an ordinary integer, and a reader turns such a string back into a number. Where the module declares a closed set of values instead, this is one of those strings, and a label that looks like a number stays the label it is."
330
482
},
331
483
"useDefault": {
332
484
"type": "boolean",
333
485
"description": "Set where the patch explicitly defers to the module's default rather than recording a value."
334
486
}
335
487
},
336
488
"description": "A value for one of the module's exposed parameters, or an explicit fall-back to the module's declared default."
337
489
},
338
490
"sampleSlotFill": {
339
491
"type": "object",
340
492
"required": [
341
493
"slotId",
342
494
"blob",
343
495
"ownerDid"
344
496
],
345
497
"properties": {
346
498
"blob": {
347
499
"type": "blob",
348
500
"accept": [
349
501
"audio/wav"
350
502
],
351
503
"maxSize": 2097152
352
504
},
353
505
"slotId": {
354
506
"type": "string",
355
507
"maxLength": 64,
356
508
"minLength": 1
357
509
},
358
510
"ownerDid": {
359
511
"type": "string",
360
512
"format": "did"
361
513
}
362
514
}
515
+
},
516
+
"alternatePattern": {
517
+
"type": "object",
518
+
"required": [
519
+
"bars"
520
+
],
521
+
"properties": {
522
+
"bars": {
523
+
"type": "integer",
524
+
"maximum": 8,
525
+
"minimum": 1,
526
+
"description": "How long this loop is, in bars of four beats."
527
+
},
528
+
"events": {
529
+
"type": "array",
530
+
"items": {
531
+
"ref": "#noteEvent",
532
+
"type": "ref"
533
+
},
534
+
"maxLength": 2048,
535
+
"description": "The notes in this loop."
536
+
}
537
+
},
538
+
"description": "One of the loops after the first on a sequencer. It has its own length and its own notes, and shares the grid written beside the first."
363
539
}
364
540
},
365
541
"$type": "com.atproto.lexicon.schema",
366
542
"lexicon": 1,
367
543
"description": "A synth patch: which modules it uses, how they are wired, what their parameters are set to, and how it is played. A patch plus the module records it pins is everything needed to reproduce it."
368
544
}