at.atmosynth.patch

atmosynth.at

Schema Diff

+7 -1

From

CID
bafyreiaucxgbpjo...
Indexed At
2026-09-10 05:50 UTC
View this version

To

CID
bafyreicenwggxyj...
Indexed At
2026-09-14 18:09 UTC
View this version

Compatibility Analysis

Backward Compatible

Backward compatible. 2 non-breaking changes.

Non-Breaking Changes (2)
  • AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#noteEvent.velocity" }
  • AddedEdge AddedEdge { src: "at.atmosynth.patch#noteEvent", tgt: "at.atmosynth.patch#noteEvent.velocity", kind: "prop", name: Some("velocity") }

Migration Guidance

Added Elements

  • AddedVertex { vertex_id: "at.atmosynth.patch#noteEvent.velocity" }

Additional Notes

  • Non-breaking: AddedEdge { src: "at.atmosynth.patch#noteEvent", tgt: "at.atmosynth.patch#noteEvent.velocity", kind: "prop", name: Some("velocity") }
1 1
{
2 2
  "id": "at.atmosynth.patch",
3 3
  "defs": {
4 4
    "main": {
5 5
      "key": "tid",
6 6
      "type": "record",
7 7
      "record": {
8 8
        "type": "object",
9 9
        "required": [
10 10
          "descriptionVersion",
11 11
          "name",
12 12
          "description",
13 13
          "moduleInstances",
14 14
          "createdAt"
15 15
        ],
16 16
        "properties": {
17 17
          "name": {
18 18
            "type": "string",
19 19
            "maxLength": 200,
20 20
            "minLength": 1
21 21
          },
22 22
          "tags": {
23 23
            "type": "array",
24 24
            "items": {
25 25
              "type": "string",
26 26
              "maxLength": 128
27 27
            },
28 28
            "description": "Freely created tags, lower-cased on write so one hashtag matches one set of patches."
29 29
          },
30 30
          "tempo": {
31 31
            "type": "integer",
32 32
            "maximum": 300,
33 33
            "minimum": 20,
34 34
            "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."
35 35
          },
36 36
          "types": {
37 37
            "type": "array",
38 38
            "items": {
39 39
              "type": "string",
40 40
              "knownValues": [
41 41
                "Lead",
42 42
                "Pad",
43 43
                "Bass",
44 44
                "Plucked",
45 45
                "Percussion",
46 46
                "Keys",
47 47
                "Brass",
48 48
                "Strings",
49 49
                "Vocal",
50 50
                "SFX"
51 51
              ]
52 52
            },
53 53
            "description": "Zero or more of the ten fixed types. A patch may carry several."
54 54
          },
55 55
          "output": {
56 56
            "ref": "#outputRef",
57 57
            "type": "ref",
58 58
            "description": "Which instance reaches the audio output."
59 59
          },
60 60
          "createdAt": {
61 61
            "type": "string",
62 62
            "format": "datetime"
63 63
          },
64 64
          "forkedFrom": {
65 65
            "ref": "#lineage",
66 66
            "type": "ref"
67 67
          },
68 68
          "connections": {
69 69
            "type": "array",
70 70
            "items": {
71 71
              "ref": "#connection",
72 72
              "type": "ref"
73 73
            }
74 74
          },
75 75
          "description": {
76 76
            "type": "string",
77 77
            "maxLength": 3000
78 78
          },
79 79
          "midiRouting": {
80 80
            "type": "array",
81 81
            "items": {
82 82
              "ref": "#midiRoute",
83 83
              "type": "ref"
84 84
            },
85 85
            "description": "Which module instances receive MIDI input."
86 86
          },
87 87
          "moduleInstances": {
88 88
            "type": "array",
89 89
            "items": {
90 90
              "ref": "#moduleInstance",
91 91
              "type": "ref"
92 92
            }
93 93
          },
94 94
          "descriptionVersion": {
95 95
            "type": "integer",
96 96
            "minimum": 1,
97 97
            "description": "Version of the patch description this record follows."
98 98
          }
99 99
        }
100 100
      },
101 101
      "description": "A patch, held in its creator's own repository."
102 102
    },
103 103
    "glide": {
104 104
      "type": "object",
105 105
      "properties": {
106 106
        "ms": {
107 107
          "type": "integer",
108 108
          "maximum": 5000,
109 109
          "minimum": 1,
110 110
          "description": "How long a note takes to reach the next, in milliseconds."
111 111
        },
112 112
        "rate": {
113 113
          "type": "string",
114 114
          "description": "Or: how long, as a note value at the tempo. The same vocabulary the grid is written in.",
115 115
          "knownValues": [
116 116
            "bar",
117 117
            "1/2",
118 118
            "1/4",
119 119
            "1/8",
120 120
            "1/16",
121 121
            "1/32",
122 122
            "1/64",
123 123
            "1/128"
124 124
          ]
125 125
        },
126 126
        "fromLast": {
127 127
          "type": "boolean",
128 128
          "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."
129 129
        }
130 130
      },
131 131
      "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."
132 132
    },
133 133
    "lineage": {
134 134
      "type": "object",
135 135
      "required": [
136 136
        "uri",
137 137
        "creatorDid"
138 138
      ],
139 139
      "properties": {
140 140
        "uri": {
141 141
          "type": "string",
142 142
          "format": "at-uri"
143 143
        },
144 144
        "patchId": {
145 145
          "type": "string",
146 146
          "maxLength": 128
147 147
        },
148 148
        "creatorDid": {
149 149
          "type": "string",
150 150
          "format": "did"
151 151
        }
152 152
      },
153 153
      "description": "The patch this one was forked from, and its creator. Preserved even when the source is later deleted."
154 154
    },
155 155
    "inputRef": {
156 156
      "type": "object",
157 157
      "required": [
158 158
        "instanceId",
159 159
        "audioInput"
160 160
      ],
161 161
      "properties": {
162 162
        "audioInput": {
163 163
          "type": "string",
164 164
          "maxLength": 64,
165 165
          "minLength": 1
166 166
        },
167 167
        "instanceId": {
168 168
          "type": "string",
169 169
          "maxLength": 64,
170 170
          "minLength": 1
171 171
        }
172 172
      }
173 173
    },
174 174
    "position": {
175 175
      "type": "object",
176 176
      "required": [
177 177
        "x",
178 178
        "y"
179 179
      ],
180 180
      "properties": {
181 181
        "x": {
182 182
          "type": "integer"
183 183
        },
184 184
        "y": {
185 185
          "type": "integer"
186 186
        }
187 187
      }
188 188
    },
189 189
    "midiRoute": {
190 190
      "type": "object",
191 191
      "required": [
192 192
        "instanceId",
193 193
        "midiInput"
194 194
      ],
195 195
      "properties": {
196 196
        "from": {
197 197
          "ref": "#noteOutputRef",
198 198
          "type": "ref",
199 199
          "description": "The note output these notes leave. Absent where they come from the player."
200 200
        },
201 201
        "midiInput": {
202 202
          "type": "string",
203 203
          "maxLength": 64,
204 204
          "minLength": 1
205 205
        },
206 206
        "instanceId": {
207 207
          "type": "string",
208 208
          "maxLength": 64,
209 209
          "minLength": 1
210 210
        }
211 211
      },
212 212
      "description": "Where one instance's notes come from. `instanceId` and `midiInput` name the MIDI input they arrive at; `from` names the note output they leave. **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."
213 213
    },
214 214
    "moduleRef": {
215 215
      "type": "object",
216 216
      "required": [
217 217
        "moduleId",
218 218
        "versionKey",
219 219
        "authorDid"
220 220
      ],
221 221
      "properties": {
222 222
        "moduleId": {
223 223
          "type": "string",
224 224
          "maxLength": 128,
225 225
          "minLength": 1
226 226
        },
227 227
        "authorDid": {
228 228
          "type": "string",
229 229
          "format": "did"
230 230
        },
231 231
        "versionKey": {
232 232
          "type": "string",
233 233
          "maxLength": 128,
234 234
          "minLength": 1
235 235
        }
236 236
      },
237 237
      "description": "A pin to one exact published version of a module. Resolving it fetches that record, whoever authored it."
238 238
    },
239 239
    "noteEvent": {
240 240
      "type": "object",
241 241
      "required": [
242 242
        "note"
243 243
      ],
244 244
      "properties": {
245 245
        "at": {
246 246
          "type": "integer",
247 247
          "minimum": 0,
248 248
          "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."
249 249
        },
250 250
        "hold": {
251 251
          "type": "integer",
252 252
          "minimum": 1,
253 253
          "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."
254 254
        },
255 255
        "note": {
256 256
          "type": "integer",
257 257
          "maximum": 127,
258 258
          "minimum": 0,
259 259
          "description": "The MIDI note number. 60 is middle C."
260 260
        },
261 261
        "step": {
262 262
          "type": "integer",
263 263
          "minimum": 0,
264 264
          "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."
265 265
        },
266 266
        "length": {
267 267
          "type": "integer",
268 268
          "minimum": 1,
269 269
          "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."
270 +
        },
271 +
        "velocity": {
272 +
          "type": "integer",
273 +
          "maximum": 127,
274 +
          "minimum": 1,
275 +
          "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."
270 276
        }
271 277
      },
272 -
      "description": "One note struck at one moment of the loop and held from it, at one fixed strength — a pattern is what is played and not how hard. 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."
278 +
      "description": "One note struck at one moment of the loop, held from it, and struck as hard 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."
273 279
    },
274 280
    "outputRef": {
275 281
      "type": "object",
276 282
      "required": [
277 283
        "instanceId",
278 284
        "audioOutput"
279 285
      ],
280 286
      "properties": {
281 287
        "instanceId": {
282 288
          "type": "string",
283 289
          "maxLength": 64,
284 290
          "minLength": 1
285 291
        },
286 292
        "audioOutput": {
287 293
          "type": "string",
288 294
          "maxLength": 64,
289 295
          "minLength": 1
290 296
        }
291 297
      }
292 298
    },
293 299
    "connection": {
294 300
      "type": "object",
295 301
      "required": [
296 302
        "from",
297 303
        "to"
298 304
      ],
299 305
      "properties": {
300 306
        "to": {
301 307
          "ref": "#inputRef",
302 308
          "type": "ref"
303 309
        },
304 310
        "from": {
305 311
          "ref": "#outputRef",
306 312
          "type": "ref"
307 313
        }
308 314
      },
309 315
      "description": "An audio connection between two module instances, naming the declared ports at each end."
310 316
    },
311 317
    "resolution": {
312 318
      "type": "object",
313 319
      "required": [
314 320
        "value"
315 321
      ],
316 322
      "properties": {
317 323
        "unit": {
318 324
          "type": "string",
319 325
          "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.",
320 326
          "knownValues": [
321 327
            "normal",
322 328
            "triplet"
323 329
          ]
324 330
        },
325 331
        "value": {
326 332
          "type": "string",
327 333
          "description": "The note value one step is worth. A bar is four beats.",
328 334
          "knownValues": [
329 335
            "bar",
330 336
            "1/2",
331 337
            "1/4",
332 338
            "1/8",
333 339
            "1/16",
334 340
            "1/32",
335 341
            "1/64",
336 342
            "1/128"
337 343
          ]
338 344
        }
339 345
      },
340 346
      "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."
341 347
    },
342 348
    "midiControl": {
343 349
      "type": "object",
344 350
      "required": [
345 351
        "parameter",
346 352
        "controller"
347 353
      ],
348 354
      "properties": {
349 355
        "parameter": {
350 356
          "type": "string",
351 357
          "maxLength": 64,
352 358
          "minLength": 1,
353 359
          "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."
354 360
        },
355 361
        "controller": {
356 362
          "type": "integer",
357 363
          "maximum": 127,
358 364
          "minimum": 0,
359 365
          "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."
360 366
        }
361 367
      },
362 368
      "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, or, where the module declares a closed value set instead, 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."
363 369
    },
364 370
    "notePattern": {
365 371
      "type": "object",
366 372
      "required": [
367 373
        "bars",
368 374
        "resolution"
369 375
      ],
370 376
      "properties": {
371 377
        "bars": {
372 378
          "type": "integer",
373 379
          "maximum": 8,
374 380
          "minimum": 1,
375 381
          "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."
376 382
        },
377 383
        "active": {
378 384
          "type": "integer",
379 385
          "minimum": 0,
380 386
          "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."
381 387
        },
382 388
        "events": {
383 389
          "type": "array",
384 390
          "items": {
385 391
            "ref": "#noteEvent",
386 392
            "type": "ref"
387 393
          },
388 394
          "maxLength": 2048,
389 395
          "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."
390 396
        },
391 397
        "alternates": {
392 398
          "type": "array",
393 399
          "items": {
394 400
            "ref": "#alternatePattern",
395 401
            "type": "ref"
396 402
          },
397 403
          "maxLength": 7,
398 404
          "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."
399 405
        },
400 406
        "resolution": {
401 407
          "ref": "#resolution",
402 408
          "type": "ref",
403 409
          "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."
404 410
        }
405 411
      },
406 412
      "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."
407 413
    },
408 414
    "noteOutputRef": {
409 415
      "type": "object",
410 416
      "required": [
411 417
        "instanceId",
412 418
        "noteOutput"
413 419
      ],
414 420
      "properties": {
415 421
        "instanceId": {
416 422
          "type": "string",
417 423
          "maxLength": 64,
418 424
          "minLength": 1
419 425
        },
420 426
        "noteOutput": {
421 427
          "type": "string",
422 428
          "maxLength": 64,
423 429
          "minLength": 1
424 430
        }
425 431
      }
426 432
    },
427 433
    "moduleInstance": {
428 434
      "type": "object",
429 435
      "required": [
430 436
        "instanceId",
431 437
        "module",
432 438
        "voiceScope"
433 439
      ],
434 440
      "properties": {
435 441
        "glide": {
436 442
          "ref": "#glide",
437 443
          "type": "ref",
438 444
          "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."
439 445
        },
440 446
        "module": {
441 447
          "ref": "#moduleRef",
442 448
          "type": "ref"
443 449
        },
444 450
        "unison": {
445 451
          "type": "integer",
446 452
          "maximum": 6,
447 453
          "minimum": 1,
448 454
          "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."
449 455
        },
450 456
        "enabled": {
451 457
          "type": "boolean",
452 458
          "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."
453 459
        },
454 460
        "position": {
455 461
          "ref": "#position",
456 462
          "type": "ref",
457 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."
458 464
        },
459 465
        "instanceId": {
460 466
          "type": "string",
461 467
          "maxLength": 64,
462 468
          "minLength": 1
463 469
        },
464 470
        "voiceScope": {
465 471
          "enum": [
466 472
            "perNote",
467 473
            "perPatch"
468 474
          ],
469 475
          "type": "string",
470 476
          "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."
471 477
        },
472 478
        "notePattern": {
473 479
          "ref": "#notePattern",
474 480
          "type": "ref",
475 481
          "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 note source."
476 482
        },
477 483
        "midiControls": {
478 484
          "type": "array",
479 485
          "items": {
480 486
            "ref": "#midiControl",
481 487
            "type": "ref"
482 488
          },
483 489
          "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."
484 490
        },
485 491
        "parameterValues": {
486 492
          "type": "array",
487 493
          "items": {
488 494
            "ref": "#parameterValue",
489 495
            "type": "ref"
490 496
          }
491 497
        },
492 498
        "sampleSlotFills": {
493 499
          "type": "array",
494 500
          "items": {
495 501
            "ref": "#sampleSlotFill",
496 502
            "type": "ref"
497 503
          },
498 504
          "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."
499 505
        }
500 506
      },
501 507
      "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."
502 508
    },
503 509
    "parameterValue": {
504 510
      "type": "object",
505 511
      "required": [
506 512
        "id"
507 513
      ],
508 514
      "properties": {
509 515
        "id": {
510 516
          "type": "string",
511 517
          "maxLength": 64,
512 518
          "minLength": 1
513 519
        },
514 520
        "value": {
515 521
          "type": "string",
516 522
          "maxLength": 200,
517 523
          "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."
518 524
        },
519 525
        "useDefault": {
520 526
          "type": "boolean",
521 527
          "description": "Set where the patch explicitly defers to the module's default rather than recording a value."
522 528
        }
523 529
      },
524 530
      "description": "A value for one of the module's exposed parameters, or an explicit fall-back to the module's declared default."
525 531
    },
526 532
    "sampleSlotFill": {
527 533
      "type": "object",
528 534
      "required": [
529 535
        "slotId",
530 536
        "blob",
531 537
        "ownerDid"
532 538
      ],
533 539
      "properties": {
534 540
        "blob": {
535 541
          "type": "blob",
536 542
          "accept": [
537 543
            "audio/wav"
538 544
          ],
539 545
          "maxSize": 2097152
540 546
        },
541 547
        "slotId": {
542 548
          "type": "string",
543 549
          "maxLength": 64,
544 550
          "minLength": 1
545 551
        },
546 552
        "ownerDid": {
547 553
          "type": "string",
548 554
          "format": "did"
549 555
        }
550 556
      }
551 557
    },
552 558
    "alternatePattern": {
553 559
      "type": "object",
554 560
      "required": [
555 561
        "bars"
556 562
      ],
557 563
      "properties": {
558 564
        "bars": {
559 565
          "type": "integer",
560 566
          "maximum": 8,
561 567
          "minimum": 1,
562 568
          "description": "How long this loop is, in bars of four beats."
563 569
        },
564 570
        "events": {
565 571
          "type": "array",
566 572
          "items": {
567 573
            "ref": "#noteEvent",
568 574
            "type": "ref"
569 575
          },
570 576
          "maxLength": 2048,
571 577
          "description": "The notes in this loop."
572 578
        }
573 579
      },
574 580
      "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."
575 581
    }
576 582
  },
577 583
  "$type": "com.atproto.lexicon.schema",
578 584
  "lexicon": 1,
579 585
  "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."
580 586
}

Compare Other Versions

Lexicon Garden

@