at.atmosynth.patch
Schema Diff
+79 -5
Compatibility Analysis
Breaking Changes Detected
3 breaking changes, 24 non-breaking changes.
Breaking Changes (3)
- RequiredEdgeAdded RequiredEdgeAdded { vertex_id: "at.atmosynth.patch#lane", src: "at.atmosynth.patch#lane", tgt: "at.atmosynth.patch#lane.bars", kind: "prop", name: Some("bars") }
- RequiredEdgeAdded RequiredEdgeAdded { vertex_id: "at.atmosynth.patch#lanePoint", src: "at.atmosynth.patch#lanePoint", tgt: "at.atmosynth.patch#lanePoint.at", kind: "prop", name: Some("at") }
- RequiredEdgeAdded RequiredEdgeAdded { vertex_id: "at.atmosynth.patch#lanePoint", src: "at.atmosynth.patch#lanePoint", tgt: "at.atmosynth.patch#lanePoint.value", kind: "prop", name: Some("value") }
Non-Breaking Changes (24)
- AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#lane" }
- AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#lane.bars" }
- AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#lane.name" }
- AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#lane.points" }
- AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#lane.points:items" }
- AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#lane.resolution" }
- AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#lanePoint" }
- AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#lanePoint.at" }
- AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#lanePoint.hold" }
- AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#lanePoint.value" }
- AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#moduleInstance.lane" }
- AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#moduleInstance.lanes" }
- AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#moduleInstance.lanes:items" }
- AddedEdge AddedEdge { src: "at.atmosynth.patch#lane", tgt: "at.atmosynth.patch#lane.name", kind: "prop", name: Some("name") }
- AddedEdge AddedEdge { src: "at.atmosynth.patch#lane", tgt: "at.atmosynth.patch#lane.points", kind: "prop", name: Some("points") }
- AddedEdge AddedEdge { src: "at.atmosynth.patch#lane", tgt: "at.atmosynth.patch#lane.resolution", kind: "prop", name: Some("resolution") }
- AddedEdge AddedEdge { src: "at.atmosynth.patch#lane.points", tgt: "at.atmosynth.patch#lane.points:items", kind: "items", name: None }
- AddedEdge AddedEdge { src: "at.atmosynth.patch#lane.points:items", tgt: "at.atmosynth.patch#lanePoint", kind: "ref", name: None }
- AddedEdge AddedEdge { src: "at.atmosynth.patch#lane.resolution", tgt: "at.atmosynth.patch#resolution", kind: "ref", name: None }
- AddedEdge AddedEdge { src: "at.atmosynth.patch#lanePoint", tgt: "at.atmosynth.patch#lanePoint.hold", kind: "prop", name: Some("hold") }
- AddedEdge AddedEdge { src: "at.atmosynth.patch#moduleInstance", tgt: "at.atmosynth.patch#moduleInstance.lane", kind: "prop", name: Some("lane") }
- AddedEdge AddedEdge { src: "at.atmosynth.patch#moduleInstance", tgt: "at.atmosynth.patch#moduleInstance.lanes", kind: "prop", name: Some("lanes") }
- AddedEdge AddedEdge { src: "at.atmosynth.patch#moduleInstance.lanes", tgt: "at.atmosynth.patch#moduleInstance.lanes:items", kind: "items", name: None }
- AddedEdge AddedEdge { src: "at.atmosynth.patch#moduleInstance.lanes:items", tgt: "at.atmosynth.patch#lane", kind: "ref", name: None }
Migration Guidance
Added Elements
AddedVertex { vertex_id: "at.atmosynth.patch#lane" }AddedVertex { vertex_id: "at.atmosynth.patch#lane.bars" }AddedVertex { vertex_id: "at.atmosynth.patch#lane.name" }AddedVertex { vertex_id: "at.atmosynth.patch#lane.points" }AddedVertex { vertex_id: "at.atmosynth.patch#lane.points:items" }AddedVertex { vertex_id: "at.atmosynth.patch#lane.resolution" }AddedVertex { vertex_id: "at.atmosynth.patch#lanePoint" }AddedVertex { vertex_id: "at.atmosynth.patch#lanePoint.at" }AddedVertex { vertex_id: "at.atmosynth.patch#lanePoint.hold" }AddedVertex { vertex_id: "at.atmosynth.patch#lanePoint.value" }AddedVertex { vertex_id: "at.atmosynth.patch#moduleInstance.lane" }AddedVertex { vertex_id: "at.atmosynth.patch#moduleInstance.lanes" }AddedVertex { vertex_id: "at.atmosynth.patch#moduleInstance.lanes:items" }
Additional Notes
- Breaking: RequiredEdgeAdded { vertex_id: "at.atmosynth.patch#lane", src: "at.atmosynth.patch#lane", tgt: "at.atmosynth.patch#lane.bars", kind: "prop", name: Some("bars") }
- Breaking: RequiredEdgeAdded { vertex_id: "at.atmosynth.patch#lanePoint", src: "at.atmosynth.patch#lanePoint", tgt: "at.atmosynth.patch#lanePoint.at", kind: "prop", name: Some("at") }
- Breaking: RequiredEdgeAdded { vertex_id: "at.atmosynth.patch#lanePoint", src: "at.atmosynth.patch#lanePoint", tgt: "at.atmosynth.patch#lanePoint.value", kind: "prop", name: Some("value") }
- Non-breaking: AddedEdge { src: "at.atmosynth.patch#lane", tgt: "at.atmosynth.patch#lane.name", kind: "prop", name: Some("name") }
- Non-breaking: AddedEdge { src: "at.atmosynth.patch#lane", tgt: "at.atmosynth.patch#lane.points", kind: "prop", name: Some("points") }
- Non-breaking: AddedEdge { src: "at.atmosynth.patch#lane", tgt: "at.atmosynth.patch#lane.resolution", kind: "prop", name: Some("resolution") }
- Non-breaking: AddedEdge { src: "at.atmosynth.patch#lane.points", tgt: "at.atmosynth.patch#lane.points:items", kind: "items", name: None }
- Non-breaking: AddedEdge { src: "at.atmosynth.patch#lane.points:items", tgt: "at.atmosynth.patch#lanePoint", kind: "ref", name: None }
- Non-breaking: AddedEdge { src: "at.atmosynth.patch#lane.resolution", tgt: "at.atmosynth.patch#resolution", kind: "ref", name: None }
- Non-breaking: AddedEdge { src: "at.atmosynth.patch#lanePoint", tgt: "at.atmosynth.patch#lanePoint.hold", kind: "prop", name: Some("hold") }
- Non-breaking: AddedEdge { src: "at.atmosynth.patch#moduleInstance", tgt: "at.atmosynth.patch#moduleInstance.lane", kind: "prop", name: Some("lane") }
- Non-breaking: AddedEdge { src: "at.atmosynth.patch#moduleInstance", tgt: "at.atmosynth.patch#moduleInstance.lanes", kind: "prop", name: Some("lanes") }
- Non-breaking: AddedEdge { src: "at.atmosynth.patch#moduleInstance.lanes", tgt: "at.atmosynth.patch#moduleInstance.lanes:items", kind: "items", name: None }
- Non-breaking: AddedEdge { src: "at.atmosynth.patch#moduleInstance.lanes:items", tgt: "at.atmosynth.patch#lane", kind: "ref", name: None }
1
1
{
2
2
"$type": "com.atproto.lexicon.schema",
3
3
"defs": {
4
4
"alternatePattern": {
5
5
"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.",
6
6
"properties": {
7
7
"bars": {
8
8
"description": "How long this loop is, in bars of four beats.",
9
9
"maximum": 8,
10
10
"minimum": 1,
11
11
"type": "integer"
12
12
},
13
13
"events": {
14
14
"description": "The notes in this loop.",
15
15
"items": {
16
16
"ref": "#noteEvent",
17
17
"type": "ref"
18
18
},
19
19
"maxLength": 2048,
20
20
"type": "array"
21
21
},
22
22
"name": {
23
23
"description": "What the creator called this loop. Optional permanently: a loop that says nothing is called by its place.",
24
24
"maxGraphemes": 32,
25
25
"maxLength": 320,
26
26
"minLength": 1,
27
27
"type": "string"
28
28
}
29
29
},
30
30
"required": [
31
31
"bars"
32
32
],
33
33
"type": "object"
34
34
},
35
35
"connection": {
36
36
"description": "An audio connection between two module instances, naming the declared ports at each end.",
37
37
"properties": {
38
38
"from": {
39
39
"ref": "#outputRef",
40
40
"type": "ref"
41
41
},
42
42
"to": {
43
43
"ref": "#inputRef",
44
44
"type": "ref"
45
45
}
46
46
},
47
47
"required": [
48
48
"from",
49
49
"to"
50
50
],
51
51
"type": "object"
52
52
},
53
53
"glide": {
54
54
"description": "How one sequencer's notes slide into one another. Its presence is the switch: an instance carrying it slides, and one carrying nothing does not. The speed is written one of two ways, and which field is present says which — a duration, or a note value at the player's tempo, so a slide that is a sixteenth long stays a sixteenth when the song is played faster. A slide moves one note to the next, so a loop with a glide plays one note at a time.",
55
55
"properties": {
56
56
"fromLast": {
57
57
"description": "Whether a note struck after a rest slides in from the note before it. Absent is yes, so every note of the loop slides; false is fingered portamento, where only a note held over the next one slides into it and a note after a rest starts where it means to.",
58
58
"type": "boolean"
59
59
},
60
60
"ms": {
61
61
"description": "How long a note takes to reach the next, in milliseconds.",
62
62
"maximum": 5000,
63
63
"minimum": 1,
64
64
"type": "integer"
65
65
},
66
66
"rate": {
67
67
"description": "Or: how long, as a note value at the tempo. The same vocabulary the grid is written in.",
68
68
"knownValues": [
69
69
"bar",
70
70
"1/2",
71
71
"1/4",
72
72
"1/8",
73
73
"1/16",
74
74
"1/32",
75
75
"1/64",
76
76
"1/128"
77
77
],
78
78
"type": "string"
79
79
}
80
80
},
81
81
"type": "object"
82
82
},
83
83
"inputRef": {
84
84
"properties": {
85
85
"audioInput": {
86
86
"maxLength": 64,
87
87
"minLength": 1,
88
88
"type": "string"
89
89
},
90
90
"instanceId": {
91
91
"maxLength": 64,
92
92
"minLength": 1,
93
93
"type": "string"
94
94
}
95
95
},
96
96
"required": [
97
97
"instanceId",
98
98
"audioInput"
99
99
],
100
100
"type": "object"
101
101
},
102
102
"inputRoute": {
103
103
"description": "One note source wired into the input of a sequencer or a note range. Notes arriving at a sequencer's are what it records, and what it passes on to the instances it plays unless its instance says `thru: false`; notes arriving at a note range's are passed on where they fall inside its range.",
104
104
"properties": {
105
105
"from": {
106
106
"description": "The note output these notes leave: a keyboard's, a sequencer's or a note range's.",
107
107
"ref": "#noteOutputRef",
108
108
"type": "ref"
109
109
},
110
110
"instanceId": {
111
111
"description": "The sequencer or the note range, at its input.",
112
112
"maxLength": 64,
113
113
"minLength": 1,
114
114
"type": "string"
115
115
}
116
116
},
117
117
"required": [
118
118
"from",
119
119
"instanceId"
120
120
],
121
121
"type": "object"
122
122
},
123
+
"lane": {
124
+
"description": "One automation lane: a line drawn over a whole number of bars, counted from the downbeat the loops share and going round at its own length, so a point in bar 3 of a four-bar lane is heard in bar 3 of every four.",
125
+
"properties": {
126
+
"bars": {
127
+
"description": "How long this lane is, in bars of four beats.",
128
+
"maximum": 64,
129
+
"minimum": 1,
130
+
"type": "integer"
131
+
},
132
+
"name": {
133
+
"description": "What the creator called this lane. Optional permanently: a lane that says nothing is called by its place.",
134
+
"maxGraphemes": 32,
135
+
"maxLength": 320,
136
+
"minLength": 1,
137
+
"type": "string"
138
+
},
139
+
"points": {
140
+
"description": "The points, in order of `at`, one to a tick. Before the first point the lane is at the first point's value and after the last at the last's; a lane with no points is at nothing.",
141
+
"items": {
142
+
"ref": "#lanePoint",
143
+
"type": "ref"
144
+
},
145
+
"maxLength": 512,
146
+
"type": "array"
147
+
},
148
+
"resolution": {
149
+
"description": "The grid this lane's points are drawn and snapped to. It is a guide and not a part of what is played: changing it moves no point already written. Optional permanently: absent is sixteenths.",
150
+
"ref": "#resolution",
151
+
"type": "ref"
152
+
}
153
+
},
154
+
"required": [
155
+
"bars"
156
+
],
157
+
"type": "object"
158
+
},
159
+
"lanePoint": {
160
+
"description": "One point of an automation lane: a value at a moment.",
161
+
"properties": {
162
+
"at": {
163
+
"description": "The tick of the lane this point is at, counted from its start at 96 ticks to the beat, and less than the lane's length.",
164
+
"minimum": 0,
165
+
"type": "integer"
166
+
},
167
+
"hold": {
168
+
"description": "Whether the value is held until the next point, which is jumped to, rather than travelled to in a straight line. Optional permanently: absent is a straight line, and only `true` is written.",
169
+
"type": "boolean"
170
+
},
171
+
"value": {
172
+
"description": "The value here, a number from 0 to 1 written as its decimal text, as every number in this description that need not be whole is.",
173
+
"type": "string"
174
+
}
175
+
},
176
+
"required": [
177
+
"at",
178
+
"value"
179
+
],
180
+
"type": "object"
181
+
},
123
182
"lineage": {
124
183
"description": "The patch this one was forked from, and its creator. Preserved even when the source is later deleted.",
125
184
"properties": {
126
185
"creatorDid": {
127
186
"format": "did",
128
187
"type": "string"
129
188
},
130
189
"patchId": {
131
190
"maxLength": 128,
132
191
"type": "string"
133
192
},
134
193
"uri": {
135
194
"format": "at-uri",
136
195
"type": "string"
137
196
}
138
197
},
139
198
"required": [
140
199
"uri",
141
200
"creatorDid"
142
201
],
143
202
"type": "object"
144
203
},
145
204
"main": {
146
205
"description": "A patch, held in its creator's own repository.",
147
206
"key": "tid",
148
207
"record": {
149
208
"properties": {
150
209
"connections": {
151
210
"items": {
152
211
"ref": "#connection",
153
212
"type": "ref"
154
213
},
155
214
"type": "array"
156
215
},
157
216
"createdAt": {
158
217
"format": "datetime",
159
218
"type": "string"
160
219
},
161
220
"description": {
162
221
"maxLength": 3000,
163
222
"type": "string"
164
223
},
165
224
"descriptionVersion": {
166
225
"description": "Version of the patch description this record follows.",
167
226
"minimum": 1,
168
227
"type": "integer"
169
228
},
170
229
"forkedFrom": {
171
230
"ref": "#lineage",
172
231
"type": "ref"
173
232
},
174
233
"inputRouting": {
175
234
"description": "What reaches the input of each sequencer, each note range, each transpose, each pitch assignment and each one-shot: which note sources a sequencer hears, to record from and — unless it says otherwise (`thru`) — to pass on to whatever it plays; which a note range hears, to pass on what falls inside its range (`noteRange`); which a transpose or a pitch assignment hears, to pass on at another pitch (`transpose`, `assignedNote`); and which a one-shot hears, to pass on lasting one length (`noteLength`). A sequencer with nothing wired here records nothing, and the others pass nothing on. Optional permanently: a patch that says nothing has nothing wired into any of them, which is what every patch written before the input existed says.",
176
235
"items": {
177
236
"ref": "#inputRoute",
178
237
"type": "ref"
179
238
},
180
239
"type": "array"
181
240
},
182
241
"midiRouting": {
183
242
"description": "The note plane: which note inputs receive note events, and from which note source — a sequencer, or the player's keys and MIDI devices. \"MIDI\" is the historical name; what travels here is notes, whatever produced them.",
184
243
"items": {
185
244
"ref": "#midiRoute",
186
245
"type": "ref"
187
246
},
188
247
"type": "array"
189
248
},
190
249
"moduleInstances": {
191
250
"items": {
192
251
"ref": "#moduleInstance",
193
252
"type": "ref"
194
253
},
195
254
"type": "array"
196
255
},
197
256
"name": {
198
257
"maxLength": 200,
199
258
"minLength": 1,
200
259
"type": "string"
201
260
},
202
261
"output": {
203
262
"description": "Which instance reaches the audio output.",
204
263
"ref": "#outputRef",
205
264
"type": "ref"
206
265
},
207
266
"patternRouting": {
208
-
"description": "The song plane: which sequencers each arranger chooses the loops of. A sequencer has one pattern input, so it appears here at most once. Optional permanently: a patch that says nothing has no arranger in it, and every sequencer plays the loop it names as active.",
267
+
"description": "The song plane: which sequencers and automation blocks each arranger or scenes block chooses the loops or lanes of. A sequencer or an automation block has one pattern input, so it appears here at most once. Optional permanently: a patch that says nothing has no arranger in it, and every sequencer plays the loop it names as active and every automation block the lane.",
209
268
"items": {
210
269
"ref": "#patternRoute",
211
270
"type": "ref"
212
271
},
213
272
"type": "array"
214
273
},
215
274
"tags": {
216
275
"description": "Freely created tags, lower-cased on write so one hashtag matches one set of patches.",
217
276
"items": {
218
277
"maxLength": 128,
219
278
"type": "string"
220
279
},
221
280
"type": "array"
222
281
},
223
282
"tempo": {
224
283
"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.",
225
284
"maximum": 300,
226
285
"minimum": 20,
227
286
"type": "integer"
228
287
},
229
288
"types": {
230
289
"description": "Zero or more of the ten fixed types. A patch may carry several.",
231
290
"items": {
232
291
"knownValues": [
233
292
"Lead",
234
293
"Pad",
235
294
"Bass",
236
295
"Plucked",
237
296
"Percussion",
238
297
"Keys",
239
298
"Brass",
240
299
"Strings",
241
300
"Vocal",
242
301
"SFX"
243
302
],
244
303
"type": "string"
245
304
},
246
305
"type": "array"
247
306
}
248
307
},
249
308
"required": [
250
309
"descriptionVersion",
251
310
"name",
252
311
"description",
253
312
"moduleInstances",
254
313
"createdAt"
255
314
],
256
315
"type": "object"
257
316
},
258
317
"type": "record"
259
318
},
260
319
"midiControl": {
261
320
"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 — along the parameter's scale, so a logarithmic one moves by equal ratios — or across the part of it this binding names with from and to; where the module declares a closed value set instead, it sweeps 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.",
262
321
"properties": {
263
322
"controller": {
264
323
"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.",
265
324
"maximum": 127,
266
325
"minimum": 0,
267
326
"type": "integer"
268
327
},
269
328
"from": {
270
329
"description": "The value the control reaches at 0, in the parameter's own units and as its decimal form. Given with to or not at all; neither is the parameter's whole declared range. A value outside that range is read as the nearer end of it.",
271
330
"maxLength": 200,
272
331
"type": "string"
273
332
},
274
333
"parameter": {
275
334
"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.",
276
335
"maxLength": 64,
277
336
"minLength": 1,
278
337
"type": "string"
279
338
},
280
339
"to": {
281
340
"description": "The value the control reaches at 127, as from is at 0. It may be below from, which is a control that turns the parameter down as it is turned up.",
282
341
"maxLength": 200,
283
342
"type": "string"
284
343
}
285
344
},
286
345
"required": [
287
346
"parameter",
288
347
"controller"
289
348
],
290
349
"type": "object"
291
350
},
292
351
"midiRoute": {
293
352
"description": "Where one instance's notes come from. `instanceId` and `midiInput` name the note input they arrive at; `from` names the note output they leave. \"MIDI\" in these names is historical: a route carries note events from any note source, a sequencer as much as a MIDI device. **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.",
294
353
"properties": {
295
354
"from": {
296
355
"description": "The note output these notes leave. Absent where they come from the player.",
297
356
"ref": "#noteOutputRef",
298
357
"type": "ref"
299
358
},
300
359
"instanceId": {
301
360
"maxLength": 64,
302
361
"minLength": 1,
303
362
"type": "string"
304
363
},
305
364
"midiInput": {
306
365
"description": "The note input, one of the module's `midiInputs`, these notes arrive at. It receives note events from any note source; \"MIDI\" is the historical name.",
307
366
"maxLength": 64,
308
367
"minLength": 1,
309
368
"type": "string"
310
369
}
311
370
},
312
371
"required": [
313
372
"instanceId",
314
373
"midiInput"
315
374
],
316
375
"type": "object"
317
376
},
318
377
"moduleInstance": {
319
378
"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.",
320
379
"properties": {
321
380
"assignedNote": {
322
381
"description": "The one note this instance passes every note on at, whichever note arrived, where its module is a pitch assignment: a MIDI note number (60 is middle C). Only the pitch changes: each note still starts and stops when it did, at the strength it was played with. It lives here, in the patch, for the reason a note range does: which pitch a pad plays its sound at is a decision about this use of the module. Absent on every instance whose module is not a pitch assignment, and on one that passes every note at its own pitch.",
323
382
"maximum": 127,
324
383
"minimum": 0,
325
384
"type": "integer"
326
385
},
327
386
"enabled": {
328
387
"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.",
329
388
"type": "boolean"
330
389
},
331
390
"glide": {
332
391
"description": "Whether the notes this instance plays slide into one another, and how. It lives here, in the patch, beside the unison and for the unison's reason: how a line slides is a decision about this use of the module, and forks with the patch. The player's own glide is a setting of their browser and says nothing about this one, so a loop written to slide slides for everyone who opens the patch, and a loop that does not is never made monophonic by the player's. Optional permanently: an instance that says nothing has no glide, which is what every record written before this field existed says.",
333
392
"ref": "#glide",
334
393
"type": "ref"
335
394
},
336
395
"instanceId": {
337
396
"maxLength": 64,
338
397
"minLength": 1,
339
398
"type": "string"
340
399
},
400
+
"lane": {
401
+
"description": "Which of `lanes` plays, counting the first as zero. Choosing a lane is an edit like choosing a sequencer's loop, so it is written here, and the patch opens on it. Optional permanently: absent is the first, and a reader plays one past the last as the last.",
402
+
"maximum": 7,
403
+
"minimum": 0,
404
+
"type": "integer"
405
+
},
406
+
"lanes": {
407
+
"description": "The automation lanes this instance holds, where its module is an automation block: each a whole number of bars of values from nothing to one, played in time with the loops. One plays at a time, as one of a sequencer's loops does, and an arranger or a scenes block wired to the block's pattern input chooses which. It lives here, in the patch, for the reason a pattern does: what is played is a decision about this use of the module. Absent on every instance whose module is not an automation block.",
408
+
"items": {
409
+
"ref": "#lane",
410
+
"type": "ref"
411
+
},
412
+
"maxLength": 8,
413
+
"type": "array"
414
+
},
341
415
"midiControls": {
342
416
"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.",
343
417
"items": {
344
418
"ref": "#midiControl",
345
419
"type": "ref"
346
420
},
347
421
"type": "array"
348
422
},
349
423
"module": {
350
424
"ref": "#moduleRef",
351
425
"type": "ref"
352
426
},
353
427
"name": {
354
428
"description": "What the creator called this instance, so that two uses of one module — a sequencer playing the bass beside one playing the chords — are told apart by what each does. It lives here, in the patch, because what a use of a module is for is a decision about this use and not about the module. Optional permanently: an instance that says nothing is called by its module's name, which is what every record written before an instance could be named says.",
355
429
"maxGraphemes": 32,
356
430
"maxLength": 320,
357
431
"minLength": 1,
358
432
"type": "string"
359
433
},
360
434
"noteLength": {
361
435
"description": "How many milliseconds every note this instance passes on lasts, where its module is a one-shot, however briefly or long whatever played it held it: a pad tapped in front of a drum plays the drum's whole hit. When the length is up the note is let go of and its sound follows its own release. Only how long a note lasts changes: each still starts when it was struck, at its own pitch and the strength it was played with. It lives here, in the patch, for the reason a note range does. Absent on every instance whose module is not a one-shot; on a one-shot, absent is 100 milliseconds.",
362
436
"maximum": 10000,
363
437
"minimum": 1,
364
438
"type": "integer"
365
439
},
366
440
"notePattern": {
367
441
"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 sequencer.",
368
442
"ref": "#notePattern",
369
443
"type": "ref"
370
444
},
371
445
"noteRange": {
372
446
"description": "Which notes this instance passes on, where its module is a note range. It lives here, in the patch, for the reason a pattern does: which pad or which half of a keyboard plays which sound is a decision about this use of the module, and forks with the patch. Absent on every instance whose module is not a note range, and on one that passes every note.",
373
447
"ref": "#noteRange",
374
448
"type": "ref"
375
449
},
376
450
"parameterValues": {
377
451
"items": {
378
452
"ref": "#parameterValue",
379
453
"type": "ref"
380
454
},
381
455
"type": "array"
382
456
},
383
457
"position": {
384
458
"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.",
385
459
"ref": "#position",
386
460
"type": "ref"
387
461
},
388
462
"sampleSlotFills": {
389
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.",
390
464
"items": {
391
465
"ref": "#sampleSlotFill",
392
466
"type": "ref"
393
467
},
394
468
"type": "array"
395
469
},
396
470
"scene": {
397
471
"description": "Which of `scenes` is playing, counting the first as zero. Choosing a scene is an edit like choosing a sequencer's loop, so it is written here, and the patch opens on it. Optional permanently: absent is the first, and a reader plays one past the last as the last.",
398
472
"maximum": 25,
399
473
"minimum": 0,
400
474
"type": "integer"
401
475
},
402
476
"sceneLaunch": {
403
477
"description": "When a scene chosen on this instance takes over, and where the loops it names start. Optional permanently: absent is on the next bar, from their first step.",
404
478
"ref": "#sceneLaunch",
405
479
"type": "ref"
406
480
},
407
481
"scenes": {
408
482
"description": "The scenes this instance switches between, where its module is a scenes block: which loop each sequencer wired to it plays in each. It lives here for the reason a song does. Absent on every instance whose module is not a scenes block.",
409
483
"items": {
410
484
"ref": "#scene",
411
485
"type": "ref"
412
486
},
413
487
"maxLength": 26,
414
488
"type": "array"
415
489
},
416
490
"song": {
417
491
"description": "The song this instance plays, where its module is an arranger: which loop each sequencer wired to it plays, section by section. It lives here, in the patch, for the reason a pattern does: what is played is a decision about this use of the module. Absent on every instance whose module is not an arranger.",
418
492
"ref": "#song",
419
493
"type": "ref"
420
494
},
421
495
"thru": {
422
496
"description": "Whether the notes reaching this instance's input are passed on to whatever it plays, where its module is a sequencer: a keyboard wired into it is then heard through it as well as recorded by it. It lives here, in the patch, because what a sequencer passes on is part of how the patch sounds. Optional permanently: an instance that says nothing passes them on, and only `false` is ever written.",
423
497
"type": "boolean"
424
498
},
425
499
"transpose": {
426
500
"description": "How many semitones this instance moves every note it passes on, where its module is a transpose: twelve is an octave up, and a negative number is down. A note moved past the lowest or the highest MIDI note is not passed on. It lives here, in the patch, for the reason a note range does. Absent on every instance whose module is not a transpose, and on one that moves nothing.",
427
501
"maximum": 127,
428
502
"minimum": -127,
429
503
"type": "integer"
430
504
},
431
505
"unison": {
432
506
"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.",
433
507
"maximum": 6,
434
508
"minimum": 1,
435
509
"type": "integer"
436
510
},
437
511
"voiceScope": {
438
512
"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.",
439
513
"enum": [
440
514
"perNote",
441
515
"perPatch"
442
516
],
443
517
"type": "string"
444
518
}
445
519
},
446
520
"required": [
447
521
"instanceId",
448
522
"module",
449
523
"voiceScope"
450
524
],
451
525
"type": "object"
452
526
},
453
527
"moduleRef": {
454
528
"description": "A pin to one exact published version of a module. Resolving it fetches that record, whoever authored it.",
455
529
"properties": {
456
530
"authorDid": {
457
531
"format": "did",
458
532
"type": "string"
459
533
},
460
534
"moduleId": {
461
535
"maxLength": 128,
462
536
"minLength": 1,
463
537
"type": "string"
464
538
},
465
539
"versionKey": {
466
540
"description": "The pinned version's record key, which is also the `versionKey` that version carries. A reader fetches the module record at this key.",
467
541
"maxLength": 128,
468
542
"minLength": 1,
469
543
"type": "string"
470
544
}
471
545
},
472
546
"required": [
473
547
"moduleId",
474
548
"versionKey",
475
549
"authorDid"
476
550
],
477
551
"type": "object"
478
552
},
479
553
"noteEvent": {
480
554
"description": "One note struck at one moment of the loop, held from it, and struck as hard and as often as it says. 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.",
481
555
"properties": {
482
556
"at": {
483
557
"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.",
484
558
"minimum": 0,
485
559
"type": "integer"
486
560
},
487
561
"hold": {
488
562
"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.",
489
563
"minimum": 1,
490
564
"type": "integer"
491
565
},
492
566
"length": {
493
567
"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.",
494
568
"minimum": 1,
495
569
"type": "integer"
496
570
},
497
571
"note": {
498
572
"description": "The MIDI note number. 60 is middle C.",
499
573
"maximum": 127,
500
574
"minimum": 0,
501
575
"type": "integer"
502
576
},
503
577
"probability": {
504
578
"description": "How likely this note is to be struck each time the loop comes round, in percent, asked afresh on every pass. Optional permanently: a note that says nothing is struck every time, which is what every pattern written before a note could say otherwise says, and a certain note writes no field. Nought is not offered, for the reason a velocity of nought is not.",
505
579
"maximum": 100,
506
580
"minimum": 1,
507
581
"type": "integer"
508
582
},
509
583
"step": {
510
584
"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.",
511
585
"minimum": 0,
512
586
"type": "integer"
513
587
},
514
588
"velocity": {
515
589
"description": "How hard this note is struck, on the MIDI scale. It is part of what is played rather than how it is listened to — a phrase is written with its accents in it, and a loop where every note lands identically is a loop nobody wrote. Optional permanently: a note that says nothing is struck at 100, which is what every pattern written before a note could say says, and a note struck at 100 writes no field. Nought is not offered, since a note that could never be heard is a note taken off the loop rather than one written onto it.",
516
590
"maximum": 127,
517
591
"minimum": 1,
518
592
"type": "integer"
519
593
}
520
594
},
521
595
"required": [
522
596
"note"
523
597
],
524
598
"type": "object"
525
599
},
526
600
"noteOutputRef": {
527
601
"properties": {
528
602
"instanceId": {
529
603
"maxLength": 64,
530
604
"minLength": 1,
531
605
"type": "string"
532
606
},
533
607
"noteOutput": {
534
608
"maxLength": 64,
535
609
"minLength": 1,
536
610
"type": "string"
537
611
}
538
612
},
539
613
"required": [
540
614
"instanceId",
541
615
"noteOutput"
542
616
],
543
617
"type": "object"
544
618
},
545
619
"notePattern": {
546
620
"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.",
547
621
"properties": {
548
622
"active": {
549
623
"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.",
550
624
"minimum": 0,
551
625
"type": "integer"
552
626
},
553
627
"alternates": {
554
628
"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.",
555
629
"items": {
556
630
"ref": "#alternatePattern",
557
631
"type": "ref"
558
632
},
559
633
"maxLength": 7,
560
634
"type": "array"
561
635
},
562
636
"bars": {
563
637
"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.",
564
638
"maximum": 8,
565
639
"minimum": 1,
566
640
"type": "integer"
567
641
},
568
642
"events": {
569
643
"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.",
570
644
"items": {
571
645
"ref": "#noteEvent",
572
646
"type": "ref"
573
647
},
574
648
"maxLength": 2048,
575
649
"type": "array"
576
650
},
577
651
"name": {
578
652
"description": "What the creator called the first loop. Optional permanently: a loop that says nothing is called by its place, which is what every loop written before a loop could be named says.",
579
653
"maxGraphemes": 32,
580
654
"maxLength": 320,
581
655
"minLength": 1,
582
656
"type": "string"
583
657
},
584
658
"resolution": {
585
659
"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.",
586
660
"ref": "#resolution",
587
661
"type": "ref"
588
662
}
589
663
},
590
664
"required": [
591
665
"bars",
592
666
"resolution"
593
667
],
594
668
"type": "object"
595
669
},
596
670
"noteRange": {
597
671
"description": "The notes a note range passes on: from its lowest to its highest, both included, as MIDI note numbers (60 is middle C). Either end may be left out, and an end left out is open, so a range with only a lowest passes that note and everything above it. The same note at both ends is one key or one pad.",
598
672
"properties": {
599
673
"highest": {
600
674
"description": "The highest note passed on, at or above the lowest. Absent is the highest there is.",
601
675
"maximum": 127,
602
676
"minimum": 0,
603
677
"type": "integer"
604
678
},
605
679
"lowest": {
606
680
"description": "The lowest note passed on. Absent is the lowest there is.",
607
681
"maximum": 127,
608
682
"minimum": 0,
609
683
"type": "integer"
610
684
}
611
685
},
612
686
"type": "object"
613
687
},
614
688
"outputRef": {
615
689
"properties": {
616
690
"audioOutput": {
617
691
"maxLength": 64,
618
692
"minLength": 1,
619
693
"type": "string"
620
694
},
621
695
"instanceId": {
622
696
"maxLength": 64,
623
697
"minLength": 1,
624
698
"type": "string"
625
699
}
626
700
},
627
701
"required": [
628
702
"instanceId",
629
703
"audioOutput"
630
704
],
631
705
"type": "object"
632
706
},
633
707
"parameterValue": {
634
708
"description": "A value for one of the module's exposed parameters, or an explicit fall-back to the module's declared default.",
635
709
"properties": {
636
710
"id": {
637
711
"maxLength": 64,
638
712
"minLength": 1,
639
713
"type": "string"
640
714
},
641
715
"useDefault": {
642
716
"description": "Set where the patch explicitly defers to the module's default rather than recording a value.",
643
717
"type": "boolean"
644
718
},
645
719
"value": {
646
720
"description": "The value this patch sets the parameter to, always as text. A number is its decimal form — \"0.5\", and \"2\" for a whole one — because the ATproto data model has no floating-point type and a string is the only type that carries both a number and a word. 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: the module's own description says which of the two this parameter is.",
647
721
"maxLength": 200,
648
722
"type": "string"
649
723
}
650
724
},
651
725
"required": [
652
726
"id"
653
727
],
654
728
"type": "object"
655
729
},
656
730
"patternRoute": {
657
-
"description": "One sequencer whose loops an arranger or a scenes block chooses.",
731
+
"description": "One sequencer whose loops, or one automation block whose lanes, an arranger or a scenes block chooses.",
658
732
"properties": {
659
733
"from": {
660
734
"description": "The arranger, or the scenes block.",
661
735
"maxLength": 64,
662
736
"minLength": 1,
663
737
"type": "string"
664
738
},
665
739
"instanceId": {
666
-
"description": "The sequencer, at its pattern input.",
740
+
"description": "The sequencer or automation block, at its pattern input.",
667
741
"maxLength": 64,
668
742
"minLength": 1,
669
743
"type": "string"
670
744
}
671
745
},
672
746
"required": [
673
747
"from",
674
748
"instanceId"
675
749
],
676
750
"type": "object"
677
751
},
678
752
"position": {
679
753
"properties": {
680
754
"x": {
681
755
"type": "integer"
682
756
},
683
757
"y": {
684
758
"type": "integer"
685
759
}
686
760
},
687
761
"required": [
688
762
"x",
689
763
"y"
690
764
],
691
765
"type": "object"
692
766
},
693
767
"resolution": {
694
768
"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.",
695
769
"properties": {
696
770
"unit": {
697
771
"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.",
698
772
"knownValues": [
699
773
"normal",
700
774
"triplet"
701
775
],
702
776
"type": "string"
703
777
},
704
778
"value": {
705
779
"description": "The note value one step is worth. A bar is four beats.",
706
780
"knownValues": [
707
781
"bar",
708
782
"1/2",
709
783
"1/4",
710
784
"1/8",
711
785
"1/16",
712
786
"1/32",
713
787
"1/64",
714
788
"1/128"
715
789
],
716
790
"type": "string"
717
791
}
718
792
},
719
793
"required": [
720
794
"value"
721
795
],
722
796
"type": "object"
723
797
},
724
798
"sampleSlotFill": {
725
799
"properties": {
726
800
"blob": {
727
801
"accept": [
728
802
"audio/wav"
729
803
],
730
804
"maxSize": 2097152,
731
805
"type": "blob"
732
806
},
733
807
"ownerDid": {
734
808
"format": "did",
735
809
"type": "string"
736
810
},
737
811
"slotId": {
738
812
"maxLength": 64,
739
813
"minLength": 1,
740
814
"type": "string"
741
815
}
742
816
},
743
817
"required": [
744
818
"slotId",
745
819
"blob",
746
820
"ownerDid"
747
821
],
748
822
"type": "object"
749
823
},
750
824
"scene": {
751
825
"description": "One scene: which loop each sequencer wired to the scenes block plays while it is the scene playing. It lasts until another scene is chosen.",
752
826
"properties": {
753
827
"loops": {
754
828
"description": "Which loop each sequencer plays in this scene. A sequencer wired to the scenes block with no entry here rests while it plays.",
755
829
"items": {
756
830
"ref": "#sectionLoop",
757
831
"type": "ref"
758
832
},
759
833
"maxLength": 64,
760
834
"type": "array"
761
835
},
762
836
"name": {
763
837
"description": "What the creator called this scene. Optional permanently: a scene that says nothing is called by its letter.",
764
838
"maxGraphemes": 32,
765
839
"maxLength": 320,
766
840
"minLength": 1,
767
841
"type": "string"
768
842
}
769
843
},
770
844
"type": "object"
771
845
},
772
846
"sceneLaunch": {
773
847
"description": "When a scene chosen takes over, and where its loops start.",
774
848
"properties": {
775
849
"quantize": {
776
850
"description": "Where a scene chosen takes over: `none` at once, or on the next beat, bar, two bars or four bars, counted from the downbeat the loops count from. Optional permanently: absent is `bar`.",
777
851
"knownValues": [
778
852
"none",
779
853
"beat",
780
854
"bar",
781
855
"2bars",
782
856
"4bars"
783
857
],
784
858
"type": "string"
785
859
},
786
860
"restart": {
787
861
"description": "Whether the loops a scene names start from their first step where it takes over, or carry on from where they already were. Optional permanently: absent is from their first step, so only `false` is written.",
788
862
"type": "boolean"
789
863
}
790
864
},
791
865
"type": "object"
792
866
},
793
867
"section": {
794
868
"description": "One section of a song: how long it is, and which loop each arranged sequencer plays for that long.",
795
869
"properties": {
796
870
"bars": {
797
871
"description": "How long this section is, in bars of four beats.",
798
872
"maximum": 64,
799
873
"minimum": 1,
800
874
"type": "integer"
801
875
},
802
876
"loops": {
803
877
"description": "Which loop each sequencer plays for this section. A sequencer wired to the arranger with no entry here rests for the section.",
804
878
"items": {
805
879
"ref": "#sectionLoop",
806
880
"type": "ref"
807
881
},
808
882
"maxLength": 64,
809
883
"type": "array"
810
884
},
811
885
"name": {
812
886
"description": "What the creator called this section. Optional permanently: a section that says nothing is called by its place.",
813
887
"maxGraphemes": 32,
814
888
"maxLength": 320,
815
889
"minLength": 1,
816
890
"type": "string"
817
891
}
818
892
},
819
893
"required": [
820
894
"bars"
821
895
],
822
896
"type": "object"
823
897
},
824
898
"sectionLoop": {
825
899
"properties": {
826
900
"instanceId": {
827
-
"description": "The sequencer.",
901
+
"description": "The sequencer, or the automation block.",
828
902
"maxLength": 64,
829
903
"minLength": 1,
830
904
"type": "string"
831
905
},
832
906
"loop": {
833
-
"description": "Which of the sequencer's loops it plays, counting the one its pattern writes first as zero. One it does not hold is played as its last.",
907
+
"description": "Which of the sequencer's loops it plays, counting the one its pattern writes first as zero, or which of the automation block's lanes. One it does not hold is played as its last.",
834
908
"maximum": 7,
835
909
"minimum": 0,
836
910
"type": "integer"
837
911
}
838
912
},
839
913
"required": [
840
914
"instanceId",
841
915
"loop"
842
916
],
843
917
"type": "object"
844
918
},
845
919
"song": {
846
920
"description": "An arranger's song: sections played one after another from its first beat. Each section starts every loop it names from that loop's first step, and lets go of whatever is still sounding when it ends, so a loop shorter than its section repeats and one longer is cut off.",
847
921
"properties": {
848
922
"end": {
849
923
"description": "What happens when the last section ends: `stop` leaves the sequencers it arranges silent, `loop` plays the song again from its first section, and `hold` keeps playing the last section. Optional permanently: absent is `stop`.",
850
924
"knownValues": [
851
925
"stop",
852
926
"loop",
853
927
"hold"
854
928
],
855
929
"type": "string"
856
930
},
857
931
"sections": {
858
932
"description": "The sections, in the order they are played.",
859
933
"items": {
860
934
"ref": "#section",
861
935
"type": "ref"
862
936
},
863
937
"maxLength": 64,
864
938
"type": "array"
865
939
}
866
940
},
867
941
"type": "object"
868
942
}
869
943
},
870
944
"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.",
871
945
"id": "at.atmosynth.patch",
872
946
"lexicon": 1
873
947
}