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