at.atmosynth.patch
Schema Diff
+65 -2
Compatibility Analysis
Backward Compatible
Backward compatible. 23 non-breaking changes.
Non-Breaking Changes (23)
- AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#moduleInstance.scene" }
- AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#moduleInstance.sceneLaunch" }
- AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#moduleInstance.scenes" }
- AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#moduleInstance.scenes:items" }
- AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#scene" }
- AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#scene.loops" }
- AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#scene.loops:items" }
- AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#scene.name" }
- AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#sceneLaunch" }
- AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#sceneLaunch.quantize" }
- AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#sceneLaunch.restart" }
- AddedEdge AddedEdge { src: "at.atmosynth.patch#moduleInstance", tgt: "at.atmosynth.patch#moduleInstance.scene", kind: "prop", name: Some("scene") }
- AddedEdge AddedEdge { src: "at.atmosynth.patch#moduleInstance", tgt: "at.atmosynth.patch#moduleInstance.sceneLaunch", kind: "prop", name: Some("sceneLaunch") }
- AddedEdge AddedEdge { src: "at.atmosynth.patch#moduleInstance", tgt: "at.atmosynth.patch#moduleInstance.scenes", kind: "prop", name: Some("scenes") }
- AddedEdge AddedEdge { src: "at.atmosynth.patch#moduleInstance.sceneLaunch", tgt: "at.atmosynth.patch#sceneLaunch", kind: "ref", name: None }
- AddedEdge AddedEdge { src: "at.atmosynth.patch#moduleInstance.scenes", tgt: "at.atmosynth.patch#moduleInstance.scenes:items", kind: "items", name: None }
- AddedEdge AddedEdge { src: "at.atmosynth.patch#moduleInstance.scenes:items", tgt: "at.atmosynth.patch#scene", kind: "ref", name: None }
- AddedEdge AddedEdge { src: "at.atmosynth.patch#scene", tgt: "at.atmosynth.patch#scene.loops", kind: "prop", name: Some("loops") }
- AddedEdge AddedEdge { src: "at.atmosynth.patch#scene", tgt: "at.atmosynth.patch#scene.name", kind: "prop", name: Some("name") }
- AddedEdge AddedEdge { src: "at.atmosynth.patch#scene.loops", tgt: "at.atmosynth.patch#scene.loops:items", kind: "items", name: None }
- AddedEdge AddedEdge { src: "at.atmosynth.patch#scene.loops:items", tgt: "at.atmosynth.patch#sectionLoop", kind: "ref", name: None }
- AddedEdge AddedEdge { src: "at.atmosynth.patch#sceneLaunch", tgt: "at.atmosynth.patch#sceneLaunch.quantize", kind: "prop", name: Some("quantize") }
- AddedEdge AddedEdge { src: "at.atmosynth.patch#sceneLaunch", tgt: "at.atmosynth.patch#sceneLaunch.restart", kind: "prop", name: Some("restart") }
Migration Guidance
Added Elements
AddedVertex { vertex_id: "at.atmosynth.patch#moduleInstance.scene" }AddedVertex { vertex_id: "at.atmosynth.patch#moduleInstance.sceneLaunch" }AddedVertex { vertex_id: "at.atmosynth.patch#moduleInstance.scenes" }AddedVertex { vertex_id: "at.atmosynth.patch#moduleInstance.scenes:items" }AddedVertex { vertex_id: "at.atmosynth.patch#scene" }AddedVertex { vertex_id: "at.atmosynth.patch#scene.loops" }AddedVertex { vertex_id: "at.atmosynth.patch#scene.loops:items" }AddedVertex { vertex_id: "at.atmosynth.patch#scene.name" }AddedVertex { vertex_id: "at.atmosynth.patch#sceneLaunch" }AddedVertex { vertex_id: "at.atmosynth.patch#sceneLaunch.quantize" }AddedVertex { vertex_id: "at.atmosynth.patch#sceneLaunch.restart" }
Additional Notes
- Non-breaking: AddedEdge { src: "at.atmosynth.patch#moduleInstance", tgt: "at.atmosynth.patch#moduleInstance.scene", kind: "prop", name: Some("scene") }
- Non-breaking: AddedEdge { src: "at.atmosynth.patch#moduleInstance", tgt: "at.atmosynth.patch#moduleInstance.sceneLaunch", kind: "prop", name: Some("sceneLaunch") }
- Non-breaking: AddedEdge { src: "at.atmosynth.patch#moduleInstance", tgt: "at.atmosynth.patch#moduleInstance.scenes", kind: "prop", name: Some("scenes") }
- Non-breaking: AddedEdge { src: "at.atmosynth.patch#moduleInstance.sceneLaunch", tgt: "at.atmosynth.patch#sceneLaunch", kind: "ref", name: None }
- Non-breaking: AddedEdge { src: "at.atmosynth.patch#moduleInstance.scenes", tgt: "at.atmosynth.patch#moduleInstance.scenes:items", kind: "items", name: None }
- Non-breaking: AddedEdge { src: "at.atmosynth.patch#moduleInstance.scenes:items", tgt: "at.atmosynth.patch#scene", kind: "ref", name: None }
- Non-breaking: AddedEdge { src: "at.atmosynth.patch#scene", tgt: "at.atmosynth.patch#scene.loops", kind: "prop", name: Some("loops") }
- Non-breaking: AddedEdge { src: "at.atmosynth.patch#scene", tgt: "at.atmosynth.patch#scene.name", kind: "prop", name: Some("name") }
- Non-breaking: AddedEdge { src: "at.atmosynth.patch#scene.loops", tgt: "at.atmosynth.patch#scene.loops:items", kind: "items", name: None }
- Non-breaking: AddedEdge { src: "at.atmosynth.patch#scene.loops:items", tgt: "at.atmosynth.patch#sectionLoop", kind: "ref", name: None }
- Non-breaking: AddedEdge { src: "at.atmosynth.patch#sceneLaunch", tgt: "at.atmosynth.patch#sceneLaunch.quantize", kind: "prop", name: Some("quantize") }
- Non-breaking: AddedEdge { src: "at.atmosynth.patch#sceneLaunch", tgt: "at.atmosynth.patch#sceneLaunch.restart", kind: "prop", name: Some("restart") }
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
123
"lineage": {
124
124
"description": "The patch this one was forked from, and its creator. Preserved even when the source is later deleted.",
125
125
"properties": {
126
126
"creatorDid": {
127
127
"format": "did",
128
128
"type": "string"
129
129
},
130
130
"patchId": {
131
131
"maxLength": 128,
132
132
"type": "string"
133
133
},
134
134
"uri": {
135
135
"format": "at-uri",
136
136
"type": "string"
137
137
}
138
138
},
139
139
"required": [
140
140
"uri",
141
141
"creatorDid"
142
142
],
143
143
"type": "object"
144
144
},
145
145
"main": {
146
146
"description": "A patch, held in its creator's own repository.",
147
147
"key": "tid",
148
148
"record": {
149
149
"properties": {
150
150
"connections": {
151
151
"items": {
152
152
"ref": "#connection",
153
153
"type": "ref"
154
154
},
155
155
"type": "array"
156
156
},
157
157
"createdAt": {
158
158
"format": "datetime",
159
159
"type": "string"
160
160
},
161
161
"description": {
162
162
"maxLength": 3000,
163
163
"type": "string"
164
164
},
165
165
"descriptionVersion": {
166
166
"description": "Version of the patch description this record follows.",
167
167
"minimum": 1,
168
168
"type": "integer"
169
169
},
170
170
"forkedFrom": {
171
171
"ref": "#lineage",
172
172
"type": "ref"
173
173
},
174
174
"inputRouting": {
175
175
"description": "What reaches the input of each sequencer, each note range, each transpose and each pitch assignment: 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`); and which a transpose or a pitch assignment hears, to pass on at another pitch (`transpose`, `assignedNote`). 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
176
"items": {
177
177
"ref": "#inputRoute",
178
178
"type": "ref"
179
179
},
180
180
"type": "array"
181
181
},
182
182
"midiRouting": {
183
183
"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
184
"items": {
185
185
"ref": "#midiRoute",
186
186
"type": "ref"
187
187
},
188
188
"type": "array"
189
189
},
190
190
"moduleInstances": {
191
191
"items": {
192
192
"ref": "#moduleInstance",
193
193
"type": "ref"
194
194
},
195
195
"type": "array"
196
196
},
197
197
"name": {
198
198
"maxLength": 200,
199
199
"minLength": 1,
200
200
"type": "string"
201
201
},
202
202
"output": {
203
203
"description": "Which instance reaches the audio output.",
204
204
"ref": "#outputRef",
205
205
"type": "ref"
206
206
},
207
207
"patternRouting": {
208
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.",
209
209
"items": {
210
210
"ref": "#patternRoute",
211
211
"type": "ref"
212
212
},
213
213
"type": "array"
214
214
},
215
215
"tags": {
216
216
"description": "Freely created tags, lower-cased on write so one hashtag matches one set of patches.",
217
217
"items": {
218
218
"maxLength": 128,
219
219
"type": "string"
220
220
},
221
221
"type": "array"
222
222
},
223
223
"tempo": {
224
224
"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
225
"maximum": 300,
226
226
"minimum": 20,
227
227
"type": "integer"
228
228
},
229
229
"types": {
230
230
"description": "Zero or more of the ten fixed types. A patch may carry several.",
231
231
"items": {
232
232
"knownValues": [
233
233
"Lead",
234
234
"Pad",
235
235
"Bass",
236
236
"Plucked",
237
237
"Percussion",
238
238
"Keys",
239
239
"Brass",
240
240
"Strings",
241
241
"Vocal",
242
242
"SFX"
243
243
],
244
244
"type": "string"
245
245
},
246
246
"type": "array"
247
247
}
248
248
},
249
249
"required": [
250
250
"descriptionVersion",
251
251
"name",
252
252
"description",
253
253
"moduleInstances",
254
254
"createdAt"
255
255
],
256
256
"type": "object"
257
257
},
258
258
"type": "record"
259
259
},
260
260
"midiControl": {
261
261
"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
262
"properties": {
263
263
"controller": {
264
264
"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
265
"maximum": 127,
266
266
"minimum": 0,
267
267
"type": "integer"
268
268
},
269
269
"from": {
270
270
"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
271
"maxLength": 200,
272
272
"type": "string"
273
273
},
274
274
"parameter": {
275
275
"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
276
"maxLength": 64,
277
277
"minLength": 1,
278
278
"type": "string"
279
279
},
280
280
"to": {
281
281
"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
282
"maxLength": 200,
283
283
"type": "string"
284
284
}
285
285
},
286
286
"required": [
287
287
"parameter",
288
288
"controller"
289
289
],
290
290
"type": "object"
291
291
},
292
292
"midiRoute": {
293
293
"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
294
"properties": {
295
295
"from": {
296
296
"description": "The note output these notes leave. Absent where they come from the player.",
297
297
"ref": "#noteOutputRef",
298
298
"type": "ref"
299
299
},
300
300
"instanceId": {
301
301
"maxLength": 64,
302
302
"minLength": 1,
303
303
"type": "string"
304
304
},
305
305
"midiInput": {
306
306
"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
307
"maxLength": 64,
308
308
"minLength": 1,
309
309
"type": "string"
310
310
}
311
311
},
312
312
"required": [
313
313
"instanceId",
314
314
"midiInput"
315
315
],
316
316
"type": "object"
317
317
},
318
318
"moduleInstance": {
319
319
"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
320
"properties": {
321
321
"assignedNote": {
322
322
"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
323
"maximum": 127,
324
324
"minimum": 0,
325
325
"type": "integer"
326
326
},
327
327
"enabled": {
328
328
"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
329
"type": "boolean"
330
330
},
331
331
"glide": {
332
332
"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
333
"ref": "#glide",
334
334
"type": "ref"
335
335
},
336
336
"instanceId": {
337
337
"maxLength": 64,
338
338
"minLength": 1,
339
339
"type": "string"
340
340
},
341
341
"midiControls": {
342
342
"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
343
"items": {
344
344
"ref": "#midiControl",
345
345
"type": "ref"
346
346
},
347
347
"type": "array"
348
348
},
349
349
"module": {
350
350
"ref": "#moduleRef",
351
351
"type": "ref"
352
352
},
353
353
"name": {
354
354
"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
355
"maxGraphemes": 32,
356
356
"maxLength": 320,
357
357
"minLength": 1,
358
358
"type": "string"
359
359
},
360
360
"notePattern": {
361
361
"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.",
362
362
"ref": "#notePattern",
363
363
"type": "ref"
364
364
},
365
365
"noteRange": {
366
366
"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.",
367
367
"ref": "#noteRange",
368
368
"type": "ref"
369
369
},
370
370
"parameterValues": {
371
371
"items": {
372
372
"ref": "#parameterValue",
373
373
"type": "ref"
374
374
},
375
375
"type": "array"
376
376
},
377
377
"position": {
378
378
"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.",
379
379
"ref": "#position",
380
380
"type": "ref"
381
381
},
382
382
"sampleSlotFills": {
383
383
"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.",
384
384
"items": {
385
385
"ref": "#sampleSlotFill",
386
386
"type": "ref"
387
387
},
388
388
"type": "array"
389
389
},
390
+
"scene": {
391
+
"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.",
392
+
"maximum": 25,
393
+
"minimum": 0,
394
+
"type": "integer"
395
+
},
396
+
"sceneLaunch": {
397
+
"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.",
398
+
"ref": "#sceneLaunch",
399
+
"type": "ref"
400
+
},
401
+
"scenes": {
402
+
"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.",
403
+
"items": {
404
+
"ref": "#scene",
405
+
"type": "ref"
406
+
},
407
+
"maxLength": 26,
408
+
"type": "array"
409
+
},
390
410
"song": {
391
411
"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.",
392
412
"ref": "#song",
393
413
"type": "ref"
394
414
},
395
415
"thru": {
396
416
"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.",
397
417
"type": "boolean"
398
418
},
399
419
"transpose": {
400
420
"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.",
401
421
"maximum": 127,
402
422
"minimum": -127,
403
423
"type": "integer"
404
424
},
405
425
"unison": {
406
426
"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.",
407
427
"maximum": 6,
408
428
"minimum": 1,
409
429
"type": "integer"
410
430
},
411
431
"voiceScope": {
412
432
"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.",
413
433
"enum": [
414
434
"perNote",
415
435
"perPatch"
416
436
],
417
437
"type": "string"
418
438
}
419
439
},
420
440
"required": [
421
441
"instanceId",
422
442
"module",
423
443
"voiceScope"
424
444
],
425
445
"type": "object"
426
446
},
427
447
"moduleRef": {
428
448
"description": "A pin to one exact published version of a module. Resolving it fetches that record, whoever authored it.",
429
449
"properties": {
430
450
"authorDid": {
431
451
"format": "did",
432
452
"type": "string"
433
453
},
434
454
"moduleId": {
435
455
"maxLength": 128,
436
456
"minLength": 1,
437
457
"type": "string"
438
458
},
439
459
"versionKey": {
440
460
"description": "The pinned version's record key, which is also the `versionKey` that version carries. A reader fetches the module record at this key.",
441
461
"maxLength": 128,
442
462
"minLength": 1,
443
463
"type": "string"
444
464
}
445
465
},
446
466
"required": [
447
467
"moduleId",
448
468
"versionKey",
449
469
"authorDid"
450
470
],
451
471
"type": "object"
452
472
},
453
473
"noteEvent": {
454
474
"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.",
455
475
"properties": {
456
476
"at": {
457
477
"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.",
458
478
"minimum": 0,
459
479
"type": "integer"
460
480
},
461
481
"hold": {
462
482
"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.",
463
483
"minimum": 1,
464
484
"type": "integer"
465
485
},
466
486
"length": {
467
487
"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.",
468
488
"minimum": 1,
469
489
"type": "integer"
470
490
},
471
491
"note": {
472
492
"description": "The MIDI note number. 60 is middle C.",
473
493
"maximum": 127,
474
494
"minimum": 0,
475
495
"type": "integer"
476
496
},
477
497
"probability": {
478
498
"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.",
479
499
"maximum": 100,
480
500
"minimum": 1,
481
501
"type": "integer"
482
502
},
483
503
"step": {
484
504
"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.",
485
505
"minimum": 0,
486
506
"type": "integer"
487
507
},
488
508
"velocity": {
489
509
"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.",
490
510
"maximum": 127,
491
511
"minimum": 1,
492
512
"type": "integer"
493
513
}
494
514
},
495
515
"required": [
496
516
"note"
497
517
],
498
518
"type": "object"
499
519
},
500
520
"noteOutputRef": {
501
521
"properties": {
502
522
"instanceId": {
503
523
"maxLength": 64,
504
524
"minLength": 1,
505
525
"type": "string"
506
526
},
507
527
"noteOutput": {
508
528
"maxLength": 64,
509
529
"minLength": 1,
510
530
"type": "string"
511
531
}
512
532
},
513
533
"required": [
514
534
"instanceId",
515
535
"noteOutput"
516
536
],
517
537
"type": "object"
518
538
},
519
539
"notePattern": {
520
540
"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.",
521
541
"properties": {
522
542
"active": {
523
543
"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.",
524
544
"minimum": 0,
525
545
"type": "integer"
526
546
},
527
547
"alternates": {
528
548
"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.",
529
549
"items": {
530
550
"ref": "#alternatePattern",
531
551
"type": "ref"
532
552
},
533
553
"maxLength": 7,
534
554
"type": "array"
535
555
},
536
556
"bars": {
537
557
"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.",
538
558
"maximum": 8,
539
559
"minimum": 1,
540
560
"type": "integer"
541
561
},
542
562
"events": {
543
563
"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.",
544
564
"items": {
545
565
"ref": "#noteEvent",
546
566
"type": "ref"
547
567
},
548
568
"maxLength": 2048,
549
569
"type": "array"
550
570
},
551
571
"name": {
552
572
"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.",
553
573
"maxGraphemes": 32,
554
574
"maxLength": 320,
555
575
"minLength": 1,
556
576
"type": "string"
557
577
},
558
578
"resolution": {
559
579
"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.",
560
580
"ref": "#resolution",
561
581
"type": "ref"
562
582
}
563
583
},
564
584
"required": [
565
585
"bars",
566
586
"resolution"
567
587
],
568
588
"type": "object"
569
589
},
570
590
"noteRange": {
571
591
"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.",
572
592
"properties": {
573
593
"highest": {
574
594
"description": "The highest note passed on, at or above the lowest. Absent is the highest there is.",
575
595
"maximum": 127,
576
596
"minimum": 0,
577
597
"type": "integer"
578
598
},
579
599
"lowest": {
580
600
"description": "The lowest note passed on. Absent is the lowest there is.",
581
601
"maximum": 127,
582
602
"minimum": 0,
583
603
"type": "integer"
584
604
}
585
605
},
586
606
"type": "object"
587
607
},
588
608
"outputRef": {
589
609
"properties": {
590
610
"audioOutput": {
591
611
"maxLength": 64,
592
612
"minLength": 1,
593
613
"type": "string"
594
614
},
595
615
"instanceId": {
596
616
"maxLength": 64,
597
617
"minLength": 1,
598
618
"type": "string"
599
619
}
600
620
},
601
621
"required": [
602
622
"instanceId",
603
623
"audioOutput"
604
624
],
605
625
"type": "object"
606
626
},
607
627
"parameterValue": {
608
628
"description": "A value for one of the module's exposed parameters, or an explicit fall-back to the module's declared default.",
609
629
"properties": {
610
630
"id": {
611
631
"maxLength": 64,
612
632
"minLength": 1,
613
633
"type": "string"
614
634
},
615
635
"useDefault": {
616
636
"description": "Set where the patch explicitly defers to the module's default rather than recording a value.",
617
637
"type": "boolean"
618
638
},
619
639
"value": {
620
640
"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.",
621
641
"maxLength": 200,
622
642
"type": "string"
623
643
}
624
644
},
625
645
"required": [
626
646
"id"
627
647
],
628
648
"type": "object"
629
649
},
630
650
"patternRoute": {
631
-
"description": "One sequencer whose loops an arranger chooses.",
651
+
"description": "One sequencer whose loops an arranger or a scenes block chooses.",
632
652
"properties": {
633
653
"from": {
634
-
"description": "The arranger.",
654
+
"description": "The arranger, or the scenes block.",
635
655
"maxLength": 64,
636
656
"minLength": 1,
637
657
"type": "string"
638
658
},
639
659
"instanceId": {
640
660
"description": "The sequencer, at its pattern input.",
641
661
"maxLength": 64,
642
662
"minLength": 1,
643
663
"type": "string"
644
664
}
645
665
},
646
666
"required": [
647
667
"from",
648
668
"instanceId"
649
669
],
650
670
"type": "object"
651
671
},
652
672
"position": {
653
673
"properties": {
654
674
"x": {
655
675
"type": "integer"
656
676
},
657
677
"y": {
658
678
"type": "integer"
659
679
}
660
680
},
661
681
"required": [
662
682
"x",
663
683
"y"
664
684
],
665
685
"type": "object"
666
686
},
667
687
"resolution": {
668
688
"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.",
669
689
"properties": {
670
690
"unit": {
671
691
"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.",
672
692
"knownValues": [
673
693
"normal",
674
694
"triplet"
675
695
],
676
696
"type": "string"
677
697
},
678
698
"value": {
679
699
"description": "The note value one step is worth. A bar is four beats.",
680
700
"knownValues": [
681
701
"bar",
682
702
"1/2",
683
703
"1/4",
684
704
"1/8",
685
705
"1/16",
686
706
"1/32",
687
707
"1/64",
688
708
"1/128"
689
709
],
690
710
"type": "string"
691
711
}
692
712
},
693
713
"required": [
694
714
"value"
695
715
],
696
716
"type": "object"
697
717
},
698
718
"sampleSlotFill": {
699
719
"properties": {
700
720
"blob": {
701
721
"accept": [
702
722
"audio/wav"
703
723
],
704
724
"maxSize": 2097152,
705
725
"type": "blob"
706
726
},
707
727
"ownerDid": {
708
728
"format": "did",
709
729
"type": "string"
710
730
},
711
731
"slotId": {
712
732
"maxLength": 64,
713
733
"minLength": 1,
714
734
"type": "string"
715
735
}
716
736
},
717
737
"required": [
718
738
"slotId",
719
739
"blob",
720
740
"ownerDid"
721
741
],
722
742
"type": "object"
723
743
},
744
+
"scene": {
745
+
"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.",
746
+
"properties": {
747
+
"loops": {
748
+
"description": "Which loop each sequencer plays in this scene. A sequencer wired to the scenes block with no entry here rests while it plays.",
749
+
"items": {
750
+
"ref": "#sectionLoop",
751
+
"type": "ref"
752
+
},
753
+
"maxLength": 64,
754
+
"type": "array"
755
+
},
756
+
"name": {
757
+
"description": "What the creator called this scene. Optional permanently: a scene that says nothing is called by its letter.",
758
+
"maxGraphemes": 32,
759
+
"maxLength": 320,
760
+
"minLength": 1,
761
+
"type": "string"
762
+
}
763
+
},
764
+
"type": "object"
765
+
},
766
+
"sceneLaunch": {
767
+
"description": "When a scene chosen takes over, and where its loops start.",
768
+
"properties": {
769
+
"quantize": {
770
+
"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`.",
771
+
"knownValues": [
772
+
"none",
773
+
"beat",
774
+
"bar",
775
+
"2bars",
776
+
"4bars"
777
+
],
778
+
"type": "string"
779
+
},
780
+
"restart": {
781
+
"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.",
782
+
"type": "boolean"
783
+
}
784
+
},
785
+
"type": "object"
786
+
},
724
787
"section": {
725
788
"description": "One section of a song: how long it is, and which loop each arranged sequencer plays for that long.",
726
789
"properties": {
727
790
"bars": {
728
791
"description": "How long this section is, in bars of four beats.",
729
792
"maximum": 64,
730
793
"minimum": 1,
731
794
"type": "integer"
732
795
},
733
796
"loops": {
734
797
"description": "Which loop each sequencer plays for this section. A sequencer wired to the arranger with no entry here rests for the section.",
735
798
"items": {
736
799
"ref": "#sectionLoop",
737
800
"type": "ref"
738
801
},
739
802
"maxLength": 64,
740
803
"type": "array"
741
804
},
742
805
"name": {
743
806
"description": "What the creator called this section. Optional permanently: a section that says nothing is called by its place.",
744
807
"maxGraphemes": 32,
745
808
"maxLength": 320,
746
809
"minLength": 1,
747
810
"type": "string"
748
811
}
749
812
},
750
813
"required": [
751
814
"bars"
752
815
],
753
816
"type": "object"
754
817
},
755
818
"sectionLoop": {
756
819
"properties": {
757
820
"instanceId": {
758
821
"description": "The sequencer.",
759
822
"maxLength": 64,
760
823
"minLength": 1,
761
824
"type": "string"
762
825
},
763
826
"loop": {
764
827
"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.",
765
828
"maximum": 7,
766
829
"minimum": 0,
767
830
"type": "integer"
768
831
}
769
832
},
770
833
"required": [
771
834
"instanceId",
772
835
"loop"
773
836
],
774
837
"type": "object"
775
838
},
776
839
"song": {
777
840
"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.",
778
841
"properties": {
779
842
"end": {
780
843
"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`.",
781
844
"knownValues": [
782
845
"stop",
783
846
"loop",
784
847
"hold"
785
848
],
786
849
"type": "string"
787
850
},
788
851
"sections": {
789
852
"description": "The sections, in the order they are played.",
790
853
"items": {
791
854
"ref": "#section",
792
855
"type": "ref"
793
856
},
794
857
"maxLength": 64,
795
858
"type": "array"
796
859
}
797
860
},
798
861
"type": "object"
799
862
}
800
863
},
801
864
"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.",
802
865
"id": "at.atmosynth.patch",
803
866
"lexicon": 1
804
867
}