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