at.atmosynth.module
Schema Diff
+1 -1
Compatibility Analysis
Backward Compatible
No changes detected.
1
1
{
2
2
"$type": "com.atproto.lexicon.schema",
3
3
"defs": {
4
4
"automation": {
5
5
"description": "A breakpoint envelope scheduled onto an AudioParam. Breakpoints up to and including sustainAt are scheduled on note-on; those after it on note-off.",
6
6
"properties": {
7
7
"breakpoints": {
8
8
"items": {
9
9
"ref": "#breakpoint",
10
10
"type": "ref"
11
11
},
12
12
"minLength": 1,
13
13
"type": "array"
14
14
},
15
15
"id": {
16
16
"maxLength": 64,
17
17
"minLength": 1,
18
18
"type": "string"
19
19
},
20
20
"label": {
21
21
"maxLength": 200,
22
22
"type": "string"
23
23
},
24
24
"sustainAt": {
25
25
"description": "Index into breakpoints where the value holds while a note is held. Absent means a one-shot.",
26
26
"minimum": 0,
27
27
"type": "integer"
28
28
},
29
29
"target": {
30
30
"ref": "#paramTarget",
31
31
"type": "ref"
32
32
}
33
33
},
34
34
"required": [
35
35
"id",
36
36
"target",
37
37
"breakpoints"
38
38
],
39
39
"type": "object"
40
40
},
41
41
"breakpoint": {
42
42
"properties": {
43
43
"curve": {
44
44
"description": "How the value travels from the previous breakpoint.",
45
45
"knownValues": [
46
46
"step",
47
47
"linear",
48
48
"exponential"
49
49
],
50
50
"type": "string"
51
51
},
52
52
"time": {
53
53
"description": "Milliseconds from the trigger.",
54
54
"minimum": 0,
55
55
"type": "integer"
56
56
},
57
57
"value": {
58
58
"description": "The param's value at this instant, as its decimal form — \"0.25\", \"1\" — because the ATproto data model has no floating-point type and a PDS refuses one. An automation is numeric by definition, so a reader turns it back into a number without asking anything else.",
59
59
"maxLength": 200,
60
60
"type": "string"
61
61
}
62
62
},
63
63
"required": [
64
64
"time",
65
65
"value"
66
66
],
67
67
"type": "object"
68
68
},
69
69
"connection": {
70
70
"description": "An audio connection from a node output to either an audio input or a named AudioParam.",
71
71
"properties": {
72
72
"from": {
73
73
"ref": "#source",
74
74
"type": "ref"
75
75
},
76
76
"to": {
77
77
"ref": "#target",
78
78
"type": "ref"
79
79
}
80
80
},
81
81
"required": [
82
82
"from",
83
83
"to"
84
84
],
85
85
"type": "object"
86
86
},
87
87
"lineage": {
88
88
"description": "The module this one was forked from, and its author.",
89
89
"properties": {
90
90
"authorDid": {
91
91
"format": "did",
92
92
"type": "string"
93
93
},
94
94
"moduleId": {
95
95
"maxLength": 128,
96
96
"type": "string"
97
97
},
98
98
"uri": {
99
99
"format": "at-uri",
100
100
"type": "string"
101
101
}
102
102
},
103
103
"required": [
104
104
"uri",
105
105
"authorDid"
106
106
],
107
107
"type": "object"
108
108
},
109
109
"main": {
110
110
"description": "A module, held in its author's own repository.",
111
111
"key": "tid",
112
112
"record": {
113
113
"properties": {
114
114
"audioInputs": {
115
115
"description": "Zero or more individually identified audio inputs.",
116
116
"items": {
117
117
"ref": "#port",
118
118
"type": "ref"
119
119
},
120
120
"type": "array"
121
121
},
122
122
"audioOutputs": {
123
123
"items": {
124
124
"ref": "#port",
125
125
"type": "ref"
126
126
},
127
127
"type": "array"
128
128
},
129
129
"automation": {
130
130
"description": "Scheduled AudioParam envelopes. Web Audio has no envelope node, so these are their own structure.",
131
131
"items": {
132
132
"ref": "#automation",
133
133
"type": "ref"
134
134
},
135
135
"type": "array"
136
136
},
137
137
"connections": {
138
138
"items": {
139
139
"ref": "#connection",
140
140
"type": "ref"
141
141
},
142
142
"type": "array"
143
143
},
144
144
"createdAt": {
145
145
"format": "datetime",
146
146
"type": "string"
147
147
},
148
148
"description": {
149
149
"maxLength": 3000,
150
150
"type": "string"
151
151
},
152
152
"descriptionVersion": {
153
153
"description": "Version of the module description this record follows. A reader accepts any version at or below its own.",
154
154
"minimum": 1,
155
155
"type": "integer"
156
156
},
157
157
"forkedFrom": {
158
158
"ref": "#lineage",
159
159
"type": "ref"
160
160
},
161
161
"midiInputs": {
162
162
"description": "Zero or more note inputs. A note input carries note events — what is played, and when — from any note source: a sequencer's note output, or the player, which is the on-screen keys, the computer keyboard and every MIDI device at once. \"MIDI\" is the historical name; nothing arriving here need have come from MIDI.",
163
163
"items": {
164
164
"ref": "#port",
165
165
"type": "ref"
166
166
},
167
167
"type": "array"
168
168
},
169
169
"moduleId": {
170
170
"description": "Stable identity shared by every published version of this module.",
171
171
"maxLength": 128,
172
172
"type": "string"
173
173
},
174
174
"name": {
175
175
"maxLength": 200,
176
176
"minLength": 1,
177
177
"type": "string"
178
178
},
179
179
"nodes": {
180
180
"items": {
181
181
"ref": "#node",
182
182
"type": "ref"
183
183
},
184
184
"type": "array"
185
185
},
186
186
"noteOutputs": {
187
187
"description": "Zero or more note outputs. A note output carries note events — what is played, and when — rather than a signal, so it is wired to another instance's note input (`midiInputs`) rather than to an audio input. A module that declares one is a source of what is played; a module that declares none is what plays it.",
188
188
"items": {
189
189
"ref": "#port",
190
190
"type": "ref"
191
191
},
192
192
"type": "array"
193
193
},
194
194
"noteSource": {
195
195
"description": "What this module emits notes by, where it is not made of Web Audio nodes at all. A note source has no `nodes` and no `connections`: it produces note events, and the behaviour that produces them is named here rather than described, because there is no vocabulary of nodes for a thing that makes no sound. `range` emits none of its own: it passes on the notes wired into its input that fall inside the range its instance names (`noteRange` on the patch's instance), each still the note of whatever played it. `transpose` and `assign` emit none of their own either: they pass on every note wired into their input at another pitch — moved by the semitones the instance names (`transpose`), or at the one note it names (`assignedNote`) — each still the note of whatever played it, and starting and stopping when it did. `oneshot` emits none of its own either: it passes on every note wired into its input lasting as many milliseconds as the instance names (`noteLength`), however long whatever played it held it — each still the note of whatever played it, at its own pitch, and starting when it did. A reader that does not know the named behaviour cannot run the module, and says so rather than guessing.",
196
196
"knownValues": [
197
197
"keyboard",
198
198
"sequencer",
199
199
"range",
200
200
"transpose",
201
201
"assign",
202
202
"oneshot"
203
203
],
204
204
"maxLength": 64,
205
205
"type": "string"
206
206
},
207
207
"parameters": {
208
208
"items": {
209
209
"ref": "#parameter",
210
210
"type": "ref"
211
211
},
212
212
"type": "array"
213
213
},
214
214
"patternSource": {
215
215
"description": "What this module chooses a sequencer's loops by, where it is not made of Web Audio nodes at all. A pattern source emits neither sound nor notes: it is wired to a sequencer's pattern input and decides which of that sequencer's loops is played, and when. Like a note source it has no `nodes` and no `connections`, and its behaviour is named here rather than described. A module is a note source or a pattern source, never both. A reader that does not know the named behaviour cannot run the module, and says so rather than guessing.",
216
216
"knownValues": [
217
217
"arranger",
218
218
"scenes"
219
219
],
220
220
"maxLength": 64,
221
221
"type": "string"
222
222
},
223
223
"sampleSlots": {
224
224
"items": {
225
225
"ref": "#sampleSlot",
226
226
"type": "ref"
227
227
},
228
228
"type": "array"
229
229
},
230
230
"versionKey": {
231
231
"description": "The record key this version is published under, repeated in the record so a reader holding only the record knows which version it is. A patch's `moduleRef.versionKey` is this value, and it is the record key a reader fetches: a record whose `versionKey` differs from its own key is pinned by the key and misdescribed by this field.",
232
232
"maxLength": 128,
233
233
"type": "string"
234
234
}
235
235
},
236
236
"required": [
237
237
"descriptionVersion",
238
238
"moduleId",
239
239
"name",
240
240
"description",
241
241
"audioInputs",
242
242
"audioOutputs",
243
243
"midiInputs",
244
244
"nodes",
245
245
"connections",
246
246
"createdAt"
247
247
],
248
248
"type": "object"
249
249
},
250
250
"type": "record"
251
251
},
252
252
"node": {
253
253
"description": "One Web Audio node. `kind` is drawn from a closed vocabulary; `options` are its construction-time settings, which are not AudioParams and cannot be modulated.",
254
254
"properties": {
255
255
"id": {
256
256
"maxLength": 64,
257
257
"minLength": 1,
258
258
"type": "string"
259
259
},
260
260
"kind": {
261
261
"maxLength": 64,
262
262
"minLength": 1,
263
263
"type": "string"
264
264
},
265
265
"options": {
266
266
"description": "The node's settings, as its kind defines them. This is an object — which is the whole of what `unknown` means here — so the data model applies inside it: a whole number is an ordinary integer, and a number that is not a whole number is carried as its decimal string, \"0.5\" rather than 0.5, because the ATproto data model has no floating-point type and a PDS refuses one. That is the one difference from the fields this description types as strings, which have nowhere to put an integer.",
267
267
"type": "unknown"
268
268
}
269
269
},
270
270
"required": [
271
271
"id",
272
272
"kind"
273
273
],
274
274
"type": "object"
275
275
},
276
276
"paramTarget": {
277
277
"properties": {
278
278
"node": {
279
279
"maxLength": 64,
280
280
"minLength": 1,
281
281
"type": "string"
282
282
},
283
283
"param": {
284
284
"maxLength": 64,
285
285
"minLength": 1,
286
286
"type": "string"
287
287
}
288
288
},
289
289
"required": [
290
290
"node",
291
291
"param"
292
292
],
293
293
"type": "object"
294
294
},
295
295
"parameter": {
296
296
"description": "A parameter the module exposes for a patch to set. Each target reaches an AudioParam, a construction option, or one field of an automation breakpoint.",
297
297
"properties": {
298
298
"default": {
299
299
"description": "The value used where a patch sets none, 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 this parameter declares a closed value set, it is one of those strings instead, and a label that looks like a number stays the label it is.",
300
300
"maxLength": 200,
301
301
"type": "string"
302
302
},
303
303
"id": {
304
304
"maxLength": 64,
305
305
"minLength": 1,
306
306
"type": "string"
307
307
},
308
308
"label": {
309
309
"maxLength": 200,
310
310
"minLength": 1,
311
311
"type": "string"
312
312
},
313
313
"range": {
314
314
"ref": "#range",
315
315
"type": "ref"
316
316
},
317
317
"scale": {
318
318
"description": "How a slider or a MIDI control moves through the range. linear moves by equal differences; log moves by equal ratios, which is how a frequency is heard, so the middle of a 20 to 20000 sweep is about 632 rather than about 10000. log needs a range above zero at both ends. Absent is linear. A parameter with a closed value set has no scale.",
319
319
"knownValues": [
320
320
"linear",
321
321
"log"
322
322
],
323
323
"type": "string"
324
324
},
325
325
"targets": {
326
326
"items": {
327
327
"ref": "#parameterTarget",
328
328
"type": "ref"
329
329
},
330
330
"minLength": 1,
331
331
"type": "array"
332
332
},
333
333
"values": {
334
334
"description": "A closed value set, where the parameter is not numeric. A construction option the parameter targets is given the chosen value itself; an AudioParam it targets is given the chosen value's position in this set, counting from zero, which is how a worklet offers a choice its own code interprets.",
335
335
"items": {
336
336
"maxLength": 200,
337
337
"type": "string"
338
338
},
339
339
"type": "array"
340
340
}
341
341
},
342
342
"required": [
343
343
"id",
344
344
"label",
345
345
"targets"
346
346
],
347
347
"type": "object"
348
348
},
349
349
"parameterTarget": {
350
350
"description": "One of: {node, param}, {node, option}, or {automation, breakpoint, field}.",
351
351
"properties": {
352
352
"automation": {
353
353
"maxLength": 64,
354
354
"type": "string"
355
355
},
356
356
"breakpoint": {
357
357
"minimum": 0,
358
358
"type": "integer"
359
359
},
360
360
"field": {
361
361
"knownValues": [
362
362
"time",
363
363
"value"
364
364
],
365
365
"type": "string"
366
366
},
367
367
"node": {
368
368
"maxLength": 64,
369
369
"type": "string"
370
370
},
371
371
"option": {
372
372
"maxLength": 64,
373
373
"type": "string"
374
374
},
375
375
"param": {
376
376
"maxLength": 64,
377
377
"type": "string"
378
378
}
379
379
},
380
380
"type": "object"
381
381
},
382
382
"port": {
383
383
"description": "One individually identified audio or MIDI boundary of the module.",
384
384
"properties": {
385
385
"id": {
386
386
"maxLength": 64,
387
387
"minLength": 1,
388
388
"type": "string"
389
389
},
390
390
"label": {
391
391
"maxLength": 200,
392
392
"type": "string"
393
393
}
394
394
},
395
395
"required": [
396
396
"id"
397
397
],
398
398
"type": "object"
399
399
},
400
400
"range": {
401
401
"properties": {
402
402
"max": {
403
403
"description": "The high bound, as its decimal form — \"20000\", \"0.5\" — because the ATproto data model has no floating-point type and a PDS refuses one. A range is numeric by definition, so a reader turns it back into a number without asking anything else.",
404
404
"maxLength": 200,
405
405
"type": "string"
406
406
},
407
407
"min": {
408
408
"description": "The low bound, as its decimal form — \"0.0001\", \"-1\" — because the ATproto data model has no floating-point type and a PDS refuses one. A range is numeric by definition, so a reader turns it back into a number without asking anything else.",
409
409
"maxLength": 200,
410
410
"type": "string"
411
411
}
412
412
},
413
413
"required": [
414
414
"min",
415
415
"max"
416
416
],
417
417
"type": "object"
418
418
},
419
419
"sampleRef": {
420
420
"description": "A sample blob and the account that holds it.",
421
421
"properties": {
422
422
"blob": {
423
423
"accept": [
424
424
"audio/wav"
425
425
],
426
-
"maxSize": 2097152,
426
+
"maxSize": 10485760,
427
427
"type": "blob"
428
428
},
429
429
"ownerDid": {
430
430
"format": "did",
431
431
"type": "string"
432
432
}
433
433
},
434
434
"required": [
435
435
"blob",
436
436
"ownerDid"
437
437
],
438
438
"type": "object"
439
439
},
440
440
"sampleSlot": {
441
441
"description": "A named slot a patch instance may fill with its own sample. `node` names a node in this graph and `property` the thing the sample feeds.",
442
442
"properties": {
443
443
"default": {
444
444
"ref": "#sampleRef",
445
445
"type": "ref"
446
446
},
447
447
"id": {
448
448
"maxLength": 64,
449
449
"minLength": 1,
450
450
"type": "string"
451
451
},
452
452
"label": {
453
453
"maxLength": 200,
454
454
"type": "string"
455
455
},
456
456
"node": {
457
457
"maxLength": 64,
458
458
"minLength": 1,
459
459
"type": "string"
460
460
},
461
461
"property": {
462
462
"knownValues": [
463
463
"buffer"
464
464
],
465
465
"type": "string"
466
466
}
467
467
},
468
468
"required": [
469
469
"id",
470
470
"node",
471
471
"property"
472
472
],
473
473
"type": "object"
474
474
},
475
475
"source": {
476
476
"properties": {
477
477
"node": {
478
478
"maxLength": 64,
479
479
"minLength": 1,
480
480
"type": "string"
481
481
},
482
482
"output": {
483
483
"minimum": 0,
484
484
"type": "integer"
485
485
}
486
486
},
487
487
"required": [
488
488
"node"
489
489
],
490
490
"type": "object"
491
491
},
492
492
"target": {
493
493
"description": "Exactly one of `input` or `param` is present. `param` is modulation: a node output reaching a named AudioParam.",
494
494
"properties": {
495
495
"input": {
496
496
"minimum": 0,
497
497
"type": "integer"
498
498
},
499
499
"node": {
500
500
"maxLength": 64,
501
501
"minLength": 1,
502
502
"type": "string"
503
503
},
504
504
"param": {
505
505
"maxLength": 64,
506
506
"type": "string"
507
507
}
508
508
},
509
509
"required": [
510
510
"node"
511
511
],
512
512
"type": "object"
513
513
}
514
514
},
515
515
"description": "A reusable synth module: Web Audio nodes wired together, with declared audio and MIDI boundaries, exposed parameters, automation and sample slots. Each published version is its own record; records sharing a moduleId form a series.",
516
516
"id": "at.atmosynth.module",
517
517
"lexicon": 1
518
518
}