at.atmosynth.patch
Schema Diff
+24 -6
Compatibility Analysis
Backward Compatible
Backward compatible. 6 non-breaking changes.
Non-Breaking Changes (6)
- AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#alternatePattern.sixteenths" }
- AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#lane.sixteenths" }
- AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#notePattern.sixteenths" }
- AddedEdge AddedEdge { src: "at.atmosynth.patch#alternatePattern", tgt: "at.atmosynth.patch#alternatePattern.sixteenths", kind: "prop", name: Some("sixteenths") }
- AddedEdge AddedEdge { src: "at.atmosynth.patch#lane", tgt: "at.atmosynth.patch#lane.sixteenths", kind: "prop", name: Some("sixteenths") }
- AddedEdge AddedEdge { src: "at.atmosynth.patch#notePattern", tgt: "at.atmosynth.patch#notePattern.sixteenths", kind: "prop", name: Some("sixteenths") }
Migration Guidance
Added Elements
AddedVertex { vertex_id: "at.atmosynth.patch#alternatePattern.sixteenths" }AddedVertex { vertex_id: "at.atmosynth.patch#lane.sixteenths" }AddedVertex { vertex_id: "at.atmosynth.patch#notePattern.sixteenths" }
Additional Notes
- Non-breaking: AddedEdge { src: "at.atmosynth.patch#alternatePattern", tgt: "at.atmosynth.patch#alternatePattern.sixteenths", kind: "prop", name: Some("sixteenths") }
- Non-breaking: AddedEdge { src: "at.atmosynth.patch#lane", tgt: "at.atmosynth.patch#lane.sixteenths", kind: "prop", name: Some("sixteenths") }
- Non-breaking: AddedEdge { src: "at.atmosynth.patch#notePattern", tgt: "at.atmosynth.patch#notePattern.sixteenths", kind: "prop", name: Some("sixteenths") }
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
-
"description": "How long this loop is, in bars of the patch's time signature.",
8
+
"description": "How long this loop is, in bars of the patch's time signature. Where `sixteenths` is present it is the length and this is the whole bars that covers, rounded up.",
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
+
},
29
+
"sixteenths": {
30
+
"description": "How long this loop is, in sixteenth notes, where it is not a whole number of bars. It keeps its length when the time signature changes. Optional permanently: absent is `bars` of the patch's bar.",
31
+
"maximum": 2048,
32
+
"minimum": 1,
33
+
"type": "integer"
28
34
}
29
35
},
30
36
"required": [
31
37
"bars"
32
38
],
33
39
"type": "object"
34
40
},
35
41
"connection": {
36
42
"description": "An audio connection between two module instances, naming the declared ports at each end.",
37
43
"properties": {
38
44
"from": {
39
45
"ref": "#outputRef",
40
46
"type": "ref"
41
47
},
42
48
"to": {
43
49
"ref": "#inputRef",
44
50
"type": "ref"
45
51
}
46
52
},
47
53
"required": [
48
54
"from",
49
55
"to"
50
56
],
51
57
"type": "object"
52
58
},
53
59
"glide": {
54
60
"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
61
"properties": {
56
62
"fromLast": {
57
63
"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
64
"type": "boolean"
59
65
},
60
66
"ms": {
61
67
"description": "How long a note takes to reach the next, in milliseconds.",
62
68
"maximum": 5000,
63
69
"minimum": 1,
64
70
"type": "integer"
65
71
},
66
72
"rate": {
67
73
"description": "Or: how long, as a note value at the tempo. The same vocabulary the grid is written in.",
68
74
"knownValues": [
69
75
"bar",
70
76
"1/2",
71
77
"1/4",
72
78
"1/8",
73
79
"1/16",
74
80
"1/32",
75
81
"1/64",
76
82
"1/128"
77
83
],
78
84
"type": "string"
79
85
}
80
86
},
81
87
"type": "object"
82
88
},
83
89
"inputRef": {
84
90
"properties": {
85
91
"audioInput": {
86
92
"maxLength": 64,
87
93
"minLength": 1,
88
94
"type": "string"
89
95
},
90
96
"instanceId": {
91
97
"maxLength": 64,
92
98
"minLength": 1,
93
99
"type": "string"
94
100
}
95
101
},
96
102
"required": [
97
103
"instanceId",
98
104
"audioInput"
99
105
],
100
106
"type": "object"
101
107
},
102
108
"inputRoute": {
103
109
"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
110
"properties": {
105
111
"from": {
106
112
"description": "The note output these notes leave: a keyboard's, a sequencer's or a note range's.",
107
113
"ref": "#noteOutputRef",
108
114
"type": "ref"
109
115
},
110
116
"instanceId": {
111
117
"description": "The sequencer or the note range, at its input.",
112
118
"maxLength": 64,
113
119
"minLength": 1,
114
120
"type": "string"
115
121
}
116
122
},
117
123
"required": [
118
124
"from",
119
125
"instanceId"
120
126
],
121
127
"type": "object"
122
128
},
123
129
"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.",
130
+
"description": "One automation lane: a line drawn over a whole number of bars, or of sixteenths where it says so, 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
131
"properties": {
126
132
"bars": {
127
-
"description": "How long this lane is, in bars of the patch's time signature.",
133
+
"description": "How long this lane is, in bars of the patch's time signature. Where `sixteenths` is present it is the length and this is the whole bars that covers, rounded up.",
128
134
"maximum": 64,
129
135
"minimum": 1,
130
136
"type": "integer"
131
137
},
132
138
"name": {
133
139
"description": "What the creator called this lane. Optional permanently: a lane that says nothing is called by its place.",
134
140
"maxGraphemes": 32,
135
141
"maxLength": 320,
136
142
"minLength": 1,
137
143
"type": "string"
138
144
},
139
145
"points": {
140
146
"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
147
"items": {
142
148
"ref": "#lanePoint",
143
149
"type": "ref"
144
150
},
145
151
"maxLength": 512,
146
152
"type": "array"
147
153
},
148
154
"resolution": {
149
155
"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
156
"ref": "#resolution",
151
157
"type": "ref"
158
+
},
159
+
"sixteenths": {
160
+
"description": "How long this lane is, in sixteenth notes, where it is not a whole number of bars. It keeps its length when the time signature changes. Optional permanently: absent is `bars` of the patch's bar.",
161
+
"maximum": 16384,
162
+
"minimum": 1,
163
+
"type": "integer"
152
164
}
153
165
},
154
166
"required": [
155
167
"bars"
156
168
],
157
169
"type": "object"
158
170
},
159
171
"lanePoint": {
160
172
"description": "One point of an automation lane: a value at a moment.",
161
173
"properties": {
162
174
"at": {
163
175
"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
176
"minimum": 0,
165
177
"type": "integer"
166
178
},
167
179
"hold": {
168
180
"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
181
"type": "boolean"
170
182
},
171
183
"value": {
172
184
"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
185
"type": "string"
174
186
}
175
187
},
176
188
"required": [
177
189
"at",
178
190
"value"
179
191
],
180
192
"type": "object"
181
193
},
182
194
"lineage": {
183
195
"description": "One patch this one came from, how, and its creator. Preserved even when that patch is later deleted, because it is written here and not there.",
184
196
"properties": {
185
197
"creatorDid": {
186
198
"format": "did",
187
199
"type": "string"
188
200
},
189
201
"patchId": {
190
202
"maxLength": 128,
191
203
"type": "string"
192
204
},
193
205
"relation": {
194
206
"description": "`fork`: this patch began as a copy of that one, and a patch is forked from one at most. `import`: that patch was put inside this one, each patch named once however often it was. A reader meeting another value still has a parent, and should say only that this patch came from it.",
195
207
"knownValues": [
196
208
"fork",
197
209
"import"
198
210
],
199
211
"maxLength": 32,
200
212
"type": "string"
201
213
},
202
214
"uri": {
203
215
"format": "at-uri",
204
216
"type": "string"
205
217
}
206
218
},
207
219
"required": [
208
220
"relation",
209
221
"uri",
210
222
"creatorDid"
211
223
],
212
224
"type": "object"
213
225
},
214
226
"main": {
215
227
"description": "A patch, held in its creator's own repository.",
216
228
"key": "tid",
217
229
"record": {
218
230
"properties": {
219
231
"concertPitch": {
220
232
"description": "The frequency A4 sounds at in this patch, in hertz, from 380 to 500, written as its decimal text — \"432\", \"415.3\" — as every number in this description that need not be whole is. Every note's frequency is tuned against it, which is what an oscillator a module does not drive itself and a module's note signal play at. A sample is not retuned: its own reference pitch is a note rather than a frequency, and it plays as recorded. Optional permanently: a patch that says nothing is tuned to 440, which is what every patch written before the field existed says.",
221
233
"maxLength": 32,
222
234
"type": "string"
223
235
},
224
236
"connections": {
225
237
"items": {
226
238
"ref": "#connection",
227
239
"type": "ref"
228
240
},
229
241
"type": "array"
230
242
},
231
243
"createdAt": {
232
244
"format": "datetime",
233
245
"type": "string"
234
246
},
235
247
"description": {
236
248
"maxLength": 3000,
237
249
"type": "string"
238
250
},
239
251
"descriptionVersion": {
240
252
"description": "Version of the patch description this record follows.",
241
253
"minimum": 1,
242
254
"type": "integer"
243
255
},
244
256
"inputRouting": {
245
257
"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.",
246
258
"items": {
247
259
"ref": "#inputRoute",
248
260
"type": "ref"
249
261
},
250
262
"type": "array"
251
263
},
252
264
"lineage": {
253
265
"description": "The patches this one came from: the one it was forked from, if it was, and every one imported into it. Only the direct ones — each of those names its own — so the whole of where a patch came from is read by following these upward. The modules it pins and the samples it fills are not repeated here: they are already in its instances. Optional permanently: a patch that says nothing came from nothing but its modules. A patch written before this field existed may say its fork as `forkedFrom` instead, `{uri, creatorDid, patchId?}`, which a reader treats as a lineage of relation `fork`; it is never written again.",
254
266
"items": {
255
267
"ref": "#lineage",
256
268
"type": "ref"
257
269
},
258
270
"maxLength": 64,
259
271
"type": "array"
260
272
},
261
273
"midiRouting": {
262
274
"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.",
263
275
"items": {
264
276
"ref": "#midiRoute",
265
277
"type": "ref"
266
278
},
267
279
"type": "array"
268
280
},
269
281
"moduleInstances": {
270
282
"items": {
271
283
"ref": "#moduleInstance",
272
284
"type": "ref"
273
285
},
274
286
"type": "array"
275
287
},
276
288
"name": {
277
289
"maxLength": 200,
278
290
"minLength": 1,
279
291
"type": "string"
280
292
},
281
293
"output": {
282
294
"description": "Which instance reaches the audio output.",
283
295
"ref": "#outputRef",
284
296
"type": "ref"
285
297
},
286
298
"patternRouting": {
287
299
"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.",
288
300
"items": {
289
301
"ref": "#patternRoute",
290
302
"type": "ref"
291
303
},
292
304
"type": "array"
293
305
},
294
306
"tags": {
295
307
"description": "Freely created tags, lower-cased on write so one hashtag matches one set of patches.",
296
308
"items": {
297
309
"maxLength": 128,
298
310
"type": "string"
299
311
},
300
312
"type": "array"
301
313
},
302
314
"tempo": {
303
315
"description": "The tempo this patch was written at, in beats per minute, a beat being a quarter note whatever the time signature says. 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.",
304
316
"maximum": 300,
305
317
"minimum": 20,
306
318
"type": "integer"
307
319
},
308
320
"timeSignature": {
309
321
"description": "How many of which note one bar of this patch is. Every length here counted in bars — a loop, a section, an automation lane — is counted in this bar, so a loop of four bars is twelve beats in 3/4. Optional permanently: a patch that says nothing is in 4/4, which is what every patch written before the field existed says.",
310
322
"ref": "#timeSignature",
311
323
"type": "ref"
312
324
},
313
325
"types": {
314
326
"description": "Zero or more of the ten fixed types. A patch may carry several.",
315
327
"items": {
316
328
"knownValues": [
317
329
"Lead",
318
330
"Pad",
319
331
"Bass",
320
332
"Plucked",
321
333
"Percussion",
322
334
"Keys",
323
335
"Brass",
324
336
"Strings",
325
337
"Vocal",
326
338
"SFX"
327
339
],
328
340
"type": "string"
329
341
},
330
342
"type": "array"
331
343
}
332
344
},
333
345
"required": [
334
346
"descriptionVersion",
335
347
"name",
336
348
"description",
337
349
"moduleInstances",
338
350
"createdAt"
339
351
],
340
352
"type": "object"
341
353
},
342
354
"type": "record"
343
355
},
344
356
"midiControl": {
345
357
"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.",
346
358
"properties": {
347
359
"controller": {
348
360
"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.",
349
361
"maximum": 127,
350
362
"minimum": 0,
351
363
"type": "integer"
352
364
},
353
365
"from": {
354
366
"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.",
355
367
"maxLength": 200,
356
368
"type": "string"
357
369
},
358
370
"parameter": {
359
371
"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.",
360
372
"maxLength": 64,
361
373
"minLength": 1,
362
374
"type": "string"
363
375
},
364
376
"to": {
365
377
"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.",
366
378
"maxLength": 200,
367
379
"type": "string"
368
380
}
369
381
},
370
382
"required": [
371
383
"parameter",
372
384
"controller"
373
385
],
374
386
"type": "object"
375
387
},
376
388
"midiRoute": {
377
389
"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.",
378
390
"properties": {
379
391
"from": {
380
392
"description": "The note output these notes leave. Absent where they come from the player.",
381
393
"ref": "#noteOutputRef",
382
394
"type": "ref"
383
395
},
384
396
"instanceId": {
385
397
"maxLength": 64,
386
398
"minLength": 1,
387
399
"type": "string"
388
400
},
389
401
"midiInput": {
390
402
"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.",
391
403
"maxLength": 64,
392
404
"minLength": 1,
393
405
"type": "string"
394
406
}
395
407
},
396
408
"required": [
397
409
"instanceId",
398
410
"midiInput"
399
411
],
400
412
"type": "object"
401
413
},
402
414
"moduleInstance": {
403
415
"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.",
404
416
"properties": {
405
417
"assignedNote": {
406
418
"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.",
407
419
"maximum": 127,
408
420
"minimum": 0,
409
421
"type": "integer"
410
422
},
411
423
"enabled": {
412
424
"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.",
413
425
"type": "boolean"
414
426
},
415
427
"glide": {
416
428
"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.",
417
429
"ref": "#glide",
418
430
"type": "ref"
419
431
},
420
432
"instanceId": {
421
433
"maxLength": 64,
422
434
"minLength": 1,
423
435
"type": "string"
424
436
},
425
437
"lane": {
426
438
"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.",
427
439
"maximum": 7,
428
440
"minimum": 0,
429
441
"type": "integer"
430
442
},
431
443
"lanes": {
432
-
"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.",
444
+
"description": "The automation lanes this instance holds, where its module is an automation block: each so many bars or sixteenths 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.",
433
445
"items": {
434
446
"ref": "#lane",
435
447
"type": "ref"
436
448
},
437
449
"maxLength": 8,
438
450
"type": "array"
439
451
},
440
452
"midiControls": {
441
453
"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.",
442
454
"items": {
443
455
"ref": "#midiControl",
444
456
"type": "ref"
445
457
},
446
458
"type": "array"
447
459
},
448
460
"module": {
449
461
"ref": "#moduleRef",
450
462
"type": "ref"
451
463
},
452
464
"name": {
453
465
"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.",
454
466
"maxGraphemes": 32,
455
467
"maxLength": 320,
456
468
"minLength": 1,
457
469
"type": "string"
458
470
},
459
471
"noteLength": {
460
472
"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.",
461
473
"maximum": 10000,
462
474
"minimum": 1,
463
475
"type": "integer"
464
476
},
465
477
"notePattern": {
466
478
"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.",
467
479
"ref": "#notePattern",
468
480
"type": "ref"
469
481
},
470
482
"noteRange": {
471
483
"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.",
472
484
"ref": "#noteRange",
473
485
"type": "ref"
474
486
},
475
487
"parameterValues": {
476
488
"items": {
477
489
"ref": "#parameterValue",
478
490
"type": "ref"
479
491
},
480
492
"type": "array"
481
493
},
482
494
"position": {
483
495
"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.",
484
496
"ref": "#position",
485
497
"type": "ref"
486
498
},
487
499
"sampleSlotFills": {
488
500
"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.",
489
501
"items": {
490
502
"ref": "#sampleSlotFill",
491
503
"type": "ref"
492
504
},
493
505
"type": "array"
494
506
},
495
507
"scene": {
496
508
"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.",
497
509
"maximum": 25,
498
510
"minimum": 0,
499
511
"type": "integer"
500
512
},
501
513
"sceneLaunch": {
502
514
"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.",
503
515
"ref": "#sceneLaunch",
504
516
"type": "ref"
505
517
},
506
518
"scenes": {
507
519
"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.",
508
520
"items": {
509
521
"ref": "#scene",
510
522
"type": "ref"
511
523
},
512
524
"maxLength": 26,
513
525
"type": "array"
514
526
},
515
527
"song": {
516
528
"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.",
517
529
"ref": "#song",
518
530
"type": "ref"
519
531
},
520
532
"thru": {
521
533
"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.",
522
534
"type": "boolean"
523
535
},
524
536
"transpose": {
525
537
"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.",
526
538
"maximum": 127,
527
539
"minimum": -127,
528
540
"type": "integer"
529
541
},
530
542
"unison": {
531
543
"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.",
532
544
"maximum": 6,
533
545
"minimum": 1,
534
546
"type": "integer"
535
547
},
536
548
"voiceScope": {
537
549
"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.",
538
550
"enum": [
539
551
"perNote",
540
552
"perPatch"
541
553
],
542
554
"type": "string"
543
555
}
544
556
},
545
557
"required": [
546
558
"instanceId",
547
559
"module",
548
560
"voiceScope"
549
561
],
550
562
"type": "object"
551
563
},
552
564
"moduleRef": {
553
565
"description": "A pin to one exact published version of a module. Resolving it fetches that record, whoever authored it.",
554
566
"properties": {
555
567
"authorDid": {
556
568
"format": "did",
557
569
"type": "string"
558
570
},
559
571
"moduleId": {
560
572
"maxLength": 128,
561
573
"minLength": 1,
562
574
"type": "string"
563
575
},
564
576
"versionKey": {
565
577
"description": "The pinned version's record key, which is also the `versionKey` that version carries. A reader fetches the module record at this key.",
566
578
"maxLength": 128,
567
579
"minLength": 1,
568
580
"type": "string"
569
581
}
570
582
},
571
583
"required": [
572
584
"moduleId",
573
585
"versionKey",
574
586
"authorDid"
575
587
],
576
588
"type": "object"
577
589
},
578
590
"noteEvent": {
579
591
"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.",
580
592
"properties": {
581
593
"at": {
582
594
"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.",
583
595
"minimum": 0,
584
596
"type": "integer"
585
597
},
586
598
"hold": {
587
599
"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.",
588
600
"minimum": 1,
589
601
"type": "integer"
590
602
},
591
603
"length": {
592
604
"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.",
593
605
"minimum": 1,
594
606
"type": "integer"
595
607
},
596
608
"note": {
597
609
"description": "The MIDI note number. 60 is middle C.",
598
610
"maximum": 127,
599
611
"minimum": 0,
600
612
"type": "integer"
601
613
},
602
614
"probability": {
603
615
"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.",
604
616
"maximum": 100,
605
617
"minimum": 1,
606
618
"type": "integer"
607
619
},
608
620
"step": {
609
621
"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.",
610
622
"minimum": 0,
611
623
"type": "integer"
612
624
},
613
625
"velocity": {
614
626
"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.",
615
627
"maximum": 127,
616
628
"minimum": 1,
617
629
"type": "integer"
618
630
}
619
631
},
620
632
"required": [
621
633
"note"
622
634
],
623
635
"type": "object"
624
636
},
625
637
"noteOutputRef": {
626
638
"properties": {
627
639
"instanceId": {
628
640
"maxLength": 64,
629
641
"minLength": 1,
630
642
"type": "string"
631
643
},
632
644
"noteOutput": {
633
645
"maxLength": 64,
634
646
"minLength": 1,
635
647
"type": "string"
636
648
}
637
649
},
638
650
"required": [
639
651
"instanceId",
640
652
"noteOutput"
641
653
],
642
654
"type": "object"
643
655
},
644
656
"notePattern": {
645
-
"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.",
657
+
"description": "The loops one sequencer holds, and the grid they are written on. A loop is a whole number of bars, or of sixteenths where it says so, 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.",
646
658
"properties": {
647
659
"active": {
648
660
"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.",
649
661
"minimum": 0,
650
662
"type": "integer"
651
663
},
652
664
"alternates": {
653
665
"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.",
654
666
"items": {
655
667
"ref": "#alternatePattern",
656
668
"type": "ref"
657
669
},
658
670
"maxLength": 7,
659
671
"type": "array"
660
672
},
661
673
"bars": {
662
-
"description": "How long the first loop is, in bars of the patch's time signature (`timeSignature`), which is 4/4 where it says none. Each loop keeps its own length: one may be four bars and the next five.",
674
+
"description": "How long the first loop is, in bars of the patch's time signature (`timeSignature`), which is 4/4 where it says none. Each loop keeps its own length: one may be four bars and the next five. Where `sixteenths` is present it is the length and this is the whole bars that covers, rounded up, so a reader that knows only bars plays the loop with a silent tail rather than refusing it.",
663
675
"maximum": 8,
664
676
"minimum": 1,
665
677
"type": "integer"
666
678
},
667
679
"events": {
668
680
"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.",
669
681
"items": {
670
682
"ref": "#noteEvent",
671
683
"type": "ref"
672
684
},
673
685
"maxLength": 2048,
674
686
"type": "array"
675
687
},
676
688
"name": {
677
689
"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.",
678
690
"maxGraphemes": 32,
679
691
"maxLength": 320,
680
692
"minLength": 1,
681
693
"type": "string"
682
694
},
683
695
"resolution": {
684
696
"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.",
685
697
"ref": "#resolution",
686
698
"type": "ref"
699
+
},
700
+
"sixteenths": {
701
+
"description": "How long the first loop is, in sixteenth notes, where it is not a whole number of bars: three beats is twelve. It is a length in the beat rather than the bar, so a loop that says it keeps its length when the time signature changes. Optional permanently: absent is `bars` of the patch's bar, which is what every loop written before a loop could end inside a bar says.",
702
+
"maximum": 2048,
703
+
"minimum": 1,
704
+
"type": "integer"
687
705
}
688
706
},
689
707
"required": [
690
708
"bars",
691
709
"resolution"
692
710
],
693
711
"type": "object"
694
712
},
695
713
"noteRange": {
696
714
"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.",
697
715
"properties": {
698
716
"highest": {
699
717
"description": "The highest note passed on, at or above the lowest. Absent is the highest there is.",
700
718
"maximum": 127,
701
719
"minimum": 0,
702
720
"type": "integer"
703
721
},
704
722
"lowest": {
705
723
"description": "The lowest note passed on. Absent is the lowest there is.",
706
724
"maximum": 127,
707
725
"minimum": 0,
708
726
"type": "integer"
709
727
}
710
728
},
711
729
"type": "object"
712
730
},
713
731
"outputRef": {
714
732
"properties": {
715
733
"audioOutput": {
716
734
"maxLength": 64,
717
735
"minLength": 1,
718
736
"type": "string"
719
737
},
720
738
"instanceId": {
721
739
"maxLength": 64,
722
740
"minLength": 1,
723
741
"type": "string"
724
742
}
725
743
},
726
744
"required": [
727
745
"instanceId",
728
746
"audioOutput"
729
747
],
730
748
"type": "object"
731
749
},
732
750
"parameterValue": {
733
751
"description": "A value for one of the module's exposed parameters, or an explicit fall-back to the module's declared default.",
734
752
"properties": {
735
753
"id": {
736
754
"maxLength": 64,
737
755
"minLength": 1,
738
756
"type": "string"
739
757
},
740
758
"useDefault": {
741
759
"description": "Set where the patch explicitly defers to the module's default rather than recording a value.",
742
760
"type": "boolean"
743
761
},
744
762
"value": {
745
763
"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.",
746
764
"maxLength": 200,
747
765
"type": "string"
748
766
}
749
767
},
750
768
"required": [
751
769
"id"
752
770
],
753
771
"type": "object"
754
772
},
755
773
"patternRoute": {
756
774
"description": "One sequencer whose loops, or one automation block whose lanes, an arranger or a scenes block chooses.",
757
775
"properties": {
758
776
"from": {
759
777
"description": "The arranger, or the scenes block.",
760
778
"maxLength": 64,
761
779
"minLength": 1,
762
780
"type": "string"
763
781
},
764
782
"instanceId": {
765
783
"description": "The sequencer or automation block, at its pattern input.",
766
784
"maxLength": 64,
767
785
"minLength": 1,
768
786
"type": "string"
769
787
}
770
788
},
771
789
"required": [
772
790
"from",
773
791
"instanceId"
774
792
],
775
793
"type": "object"
776
794
},
777
795
"position": {
778
796
"properties": {
779
797
"x": {
780
798
"type": "integer"
781
799
},
782
800
"y": {
783
801
"type": "integer"
784
802
}
785
803
},
786
804
"required": [
787
805
"x",
788
806
"y"
789
807
],
790
808
"type": "object"
791
809
},
792
810
"resolution": {
793
811
"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.",
794
812
"properties": {
795
813
"unit": {
796
814
"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.",
797
815
"knownValues": [
798
816
"normal",
799
817
"triplet"
800
818
],
801
819
"type": "string"
802
820
},
803
821
"value": {
804
822
"description": "The note value one step is worth. `bar` is one bar of the patch's time signature; every other value is a note, the same length in any bar.",
805
823
"knownValues": [
806
824
"bar",
807
825
"1/2",
808
826
"1/4",
809
827
"1/8",
810
828
"1/16",
811
829
"1/32",
812
830
"1/64",
813
831
"1/128"
814
832
],
815
833
"type": "string"
816
834
}
817
835
},
818
836
"required": [
819
837
"value"
820
838
],
821
839
"type": "object"
822
840
},
823
841
"sampleSlotFill": {
824
842
"properties": {
825
843
"blob": {
826
844
"accept": [
827
845
"audio/wav"
828
846
],
829
847
"maxSize": 2097152,
830
848
"type": "blob"
831
849
},
832
850
"ownerDid": {
833
851
"format": "did",
834
852
"type": "string"
835
853
},
836
854
"slotId": {
837
855
"maxLength": 64,
838
856
"minLength": 1,
839
857
"type": "string"
840
858
}
841
859
},
842
860
"required": [
843
861
"slotId",
844
862
"blob",
845
863
"ownerDid"
846
864
],
847
865
"type": "object"
848
866
},
849
867
"scene": {
850
868
"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.",
851
869
"properties": {
852
870
"loops": {
853
871
"description": "Which loop each sequencer plays in this scene. A sequencer wired to the scenes block with no entry here rests while it plays.",
854
872
"items": {
855
873
"ref": "#sectionLoop",
856
874
"type": "ref"
857
875
},
858
876
"maxLength": 64,
859
877
"type": "array"
860
878
},
861
879
"name": {
862
880
"description": "What the creator called this scene. Optional permanently: a scene that says nothing is called by its letter.",
863
881
"maxGraphemes": 32,
864
882
"maxLength": 320,
865
883
"minLength": 1,
866
884
"type": "string"
867
885
}
868
886
},
869
887
"type": "object"
870
888
},
871
889
"sceneLaunch": {
872
890
"description": "When a scene chosen takes over, and where its loops start.",
873
891
"properties": {
874
892
"quantize": {
875
893
"description": "Where a scene chosen takes over: `none` at once, or on the next beat, bar, two bars or four bars of the patch's time signature — a beat being the note its lower number names — counted from the downbeat the loops count from. Optional permanently: absent is `bar`.",
876
894
"knownValues": [
877
895
"none",
878
896
"beat",
879
897
"bar",
880
898
"2bars",
881
899
"4bars"
882
900
],
883
901
"type": "string"
884
902
},
885
903
"restart": {
886
904
"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.",
887
905
"type": "boolean"
888
906
}
889
907
},
890
908
"type": "object"
891
909
},
892
910
"section": {
893
911
"description": "One section of a song: how long it is, and which loop each arranged sequencer plays for that long.",
894
912
"properties": {
895
913
"bars": {
896
914
"description": "How long this section is, in bars of the patch's time signature.",
897
915
"maximum": 64,
898
916
"minimum": 1,
899
917
"type": "integer"
900
918
},
901
919
"loops": {
902
920
"description": "Which loop each sequencer plays for this section. A sequencer wired to the arranger with no entry here rests for the section.",
903
921
"items": {
904
922
"ref": "#sectionLoop",
905
923
"type": "ref"
906
924
},
907
925
"maxLength": 64,
908
926
"type": "array"
909
927
},
910
928
"name": {
911
929
"description": "What the creator called this section. Optional permanently: a section that says nothing is called by its place.",
912
930
"maxGraphemes": 32,
913
931
"maxLength": 320,
914
932
"minLength": 1,
915
933
"type": "string"
916
934
}
917
935
},
918
936
"required": [
919
937
"bars"
920
938
],
921
939
"type": "object"
922
940
},
923
941
"sectionLoop": {
924
942
"properties": {
925
943
"instanceId": {
926
944
"description": "The sequencer, or the automation block.",
927
945
"maxLength": 64,
928
946
"minLength": 1,
929
947
"type": "string"
930
948
},
931
949
"loop": {
932
950
"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.",
933
951
"maximum": 7,
934
952
"minimum": 0,
935
953
"type": "integer"
936
954
}
937
955
},
938
956
"required": [
939
957
"instanceId",
940
958
"loop"
941
959
],
942
960
"type": "object"
943
961
},
944
962
"song": {
945
963
"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.",
946
964
"properties": {
947
965
"end": {
948
966
"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`.",
949
967
"knownValues": [
950
968
"stop",
951
969
"loop",
952
970
"hold"
953
971
],
954
972
"type": "string"
955
973
},
956
974
"sections": {
957
975
"description": "The sections, in the order they are played.",
958
976
"items": {
959
977
"ref": "#section",
960
978
"type": "ref"
961
979
},
962
980
"maxLength": 64,
963
981
"type": "array"
964
982
}
965
983
},
966
984
"type": "object"
967
985
},
968
986
"timeSignature": {
969
987
"description": "A time signature as it is printed over a stave: how many beats one bar holds, over the note a beat is. The tempo counts quarter notes whatever the lower number is; what the two decide is how long a bar is, and so where every bar line falls.",
970
988
"properties": {
971
989
"denominator": {
972
990
"description": "The note a beat is: 2 a half, 4 a quarter, 8 an eighth, 16 a sixteenth. The lower number.",
973
991
"enum": [
974
992
2,
975
993
4,
976
994
8,
977
995
16
978
996
],
979
997
"type": "integer"
980
998
},
981
999
"numerator": {
982
1000
"description": "How many beats one bar holds: the upper number.",
983
1001
"maximum": 32,
984
1002
"minimum": 1,
985
1003
"type": "integer"
986
1004
}
987
1005
},
988
1006
"required": [
989
1007
"numerator",
990
1008
"denominator"
991
1009
],
992
1010
"type": "object"
993
1011
}
994
1012
},
995
1013
"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.",
996
1014
"id": "at.atmosynth.patch",
997
1015
"lexicon": 1
998
1016
}