at.atmosynth.patch

atmosynth.at

Schema Diff

+11 -1

From

CID
bafyreidnxsvz7ce...
Indexed At
2026-09-24 12:51 UTC
View this version

To

CID
bafyreihdsocnsvl...
Indexed At
2026-09-25 10:58 UTC
View this version

Compatibility Analysis

Backward Compatible

Backward compatible. 4 non-breaking changes.

Non-Breaking Changes (4)
  • AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#midiControl.from" }
  • AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#midiControl.to" }
  • AddedEdge AddedEdge { src: "at.atmosynth.patch#midiControl", tgt: "at.atmosynth.patch#midiControl.from", kind: "prop", name: Some("from") }
  • AddedEdge AddedEdge { src: "at.atmosynth.patch#midiControl", tgt: "at.atmosynth.patch#midiControl.to", kind: "prop", name: Some("to") }

Migration Guidance

Added Elements

  • AddedVertex { vertex_id: "at.atmosynth.patch#midiControl.from" }
  • AddedVertex { vertex_id: "at.atmosynth.patch#midiControl.to" }

Additional Notes

  • Non-breaking: AddedEdge { src: "at.atmosynth.patch#midiControl", tgt: "at.atmosynth.patch#midiControl.from", kind: "prop", name: Some("from") }
  • Non-breaking: AddedEdge { src: "at.atmosynth.patch#midiControl", tgt: "at.atmosynth.patch#midiControl.to", kind: "prop", name: Some("to") }
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 four beats.",
9 9
          "maximum": 8,
10 10
          "minimum": 1,
11 11
          "type": "integer"
12 12
        },
13 13
        "events": {
14 14
          "description": "The notes in this loop.",
15 15
          "items": {
16 16
            "ref": "#noteEvent",
17 17
            "type": "ref"
18 18
          },
19 19
          "maxLength": 2048,
20 20
          "type": "array"
21 21
        },
22 22
        "name": {
23 23
          "description": "What the creator called this loop. Optional permanently: a loop that says nothing is called by its place.",
24 24
          "maxGraphemes": 32,
25 25
          "maxLength": 320,
26 26
          "minLength": 1,
27 27
          "type": "string"
28 28
        }
29 29
      },
30 30
      "required": [
31 31
        "bars"
32 32
      ],
33 33
      "type": "object"
34 34
    },
35 35
    "connection": {
36 36
      "description": "An audio connection between two module instances, naming the declared ports at each end.",
37 37
      "properties": {
38 38
        "from": {
39 39
          "ref": "#outputRef",
40 40
          "type": "ref"
41 41
        },
42 42
        "to": {
43 43
          "ref": "#inputRef",
44 44
          "type": "ref"
45 45
        }
46 46
      },
47 47
      "required": [
48 48
        "from",
49 49
        "to"
50 50
      ],
51 51
      "type": "object"
52 52
    },
53 53
    "glide": {
54 54
      "description": "How one sequencer's notes slide into one another. Its presence is the switch: an instance carrying it slides, and one carrying nothing does not. The speed is written one of two ways, and which field is present says which — a duration, or a note value at the player's tempo, so a slide that is a sixteenth long stays a sixteenth when the song is played faster. A slide moves one note to the next, so a loop with a glide plays one note at a time.",
55 55
      "properties": {
56 56
        "fromLast": {
57 57
          "description": "Whether a note struck after a rest slides in from the note before it. Absent is yes, so every note of the loop slides; false is fingered portamento, where only a note held over the next one slides into it and a note after a rest starts where it means to.",
58 58
          "type": "boolean"
59 59
        },
60 60
        "ms": {
61 61
          "description": "How long a note takes to reach the next, in milliseconds.",
62 62
          "maximum": 5000,
63 63
          "minimum": 1,
64 64
          "type": "integer"
65 65
        },
66 66
        "rate": {
67 67
          "description": "Or: how long, as a note value at the tempo. The same vocabulary the grid is written in.",
68 68
          "knownValues": [
69 69
            "bar",
70 70
            "1/2",
71 71
            "1/4",
72 72
            "1/8",
73 73
            "1/16",
74 74
            "1/32",
75 75
            "1/64",
76 76
            "1/128"
77 77
          ],
78 78
          "type": "string"
79 79
        }
80 80
      },
81 81
      "type": "object"
82 82
    },
83 83
    "inputRef": {
84 84
      "properties": {
85 85
        "audioInput": {
86 86
          "maxLength": 64,
87 87
          "minLength": 1,
88 88
          "type": "string"
89 89
        },
90 90
        "instanceId": {
91 91
          "maxLength": 64,
92 92
          "minLength": 1,
93 93
          "type": "string"
94 94
        }
95 95
      },
96 96
      "required": [
97 97
        "instanceId",
98 98
        "audioInput"
99 99
      ],
100 100
      "type": "object"
101 101
    },
102 102
    "inputRoute": {
103 103
      "description": "One note source wired into the input of a sequencer or a note range. Notes arriving at a sequencer's are what it records, and what it passes on to the instances it plays unless its instance says `thru: false`; notes arriving at a note range's are passed on where they fall inside its range.",
104 104
      "properties": {
105 105
        "from": {
106 106
          "description": "The note output these notes leave: a keyboard's, a sequencer's or a note range's.",
107 107
          "ref": "#noteOutputRef",
108 108
          "type": "ref"
109 109
        },
110 110
        "instanceId": {
111 111
          "description": "The sequencer or the note range, at its input.",
112 112
          "maxLength": 64,
113 113
          "minLength": 1,
114 114
          "type": "string"
115 115
        }
116 116
      },
117 117
      "required": [
118 118
        "from",
119 119
        "instanceId"
120 120
      ],
121 121
      "type": "object"
122 122
    },
123 123
    "lineage": {
124 124
      "description": "The patch this one was forked from, and its creator. Preserved even when the source is later deleted.",
125 125
      "properties": {
126 126
        "creatorDid": {
127 127
          "format": "did",
128 128
          "type": "string"
129 129
        },
130 130
        "patchId": {
131 131
          "maxLength": 128,
132 132
          "type": "string"
133 133
        },
134 134
        "uri": {
135 135
          "format": "at-uri",
136 136
          "type": "string"
137 137
        }
138 138
      },
139 139
      "required": [
140 140
        "uri",
141 141
        "creatorDid"
142 142
      ],
143 143
      "type": "object"
144 144
    },
145 145
    "main": {
146 146
      "description": "A patch, held in its creator's own repository.",
147 147
      "key": "tid",
148 148
      "record": {
149 149
        "properties": {
150 150
          "connections": {
151 151
            "items": {
152 152
              "ref": "#connection",
153 153
              "type": "ref"
154 154
            },
155 155
            "type": "array"
156 156
          },
157 157
          "createdAt": {
158 158
            "format": "datetime",
159 159
            "type": "string"
160 160
          },
161 161
          "description": {
162 162
            "maxLength": 3000,
163 163
            "type": "string"
164 164
          },
165 165
          "descriptionVersion": {
166 166
            "description": "Version of the patch description this record follows.",
167 167
            "minimum": 1,
168 168
            "type": "integer"
169 169
          },
170 170
          "forkedFrom": {
171 171
            "ref": "#lineage",
172 172
            "type": "ref"
173 173
          },
174 174
          "inputRouting": {
175 175
            "description": "What reaches the input of each sequencer, each note range, each transpose and each pitch assignment: 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`); and which a transpose or a pitch assignment hears, to pass on at another pitch (`transpose`, `assignedNote`). 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.",
176 176
            "items": {
177 177
              "ref": "#inputRoute",
178 178
              "type": "ref"
179 179
            },
180 180
            "type": "array"
181 181
          },
182 182
          "midiRouting": {
183 183
            "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.",
184 184
            "items": {
185 185
              "ref": "#midiRoute",
186 186
              "type": "ref"
187 187
            },
188 188
            "type": "array"
189 189
          },
190 190
          "moduleInstances": {
191 191
            "items": {
192 192
              "ref": "#moduleInstance",
193 193
              "type": "ref"
194 194
            },
195 195
            "type": "array"
196 196
          },
197 197
          "name": {
198 198
            "maxLength": 200,
199 199
            "minLength": 1,
200 200
            "type": "string"
201 201
          },
202 202
          "output": {
203 203
            "description": "Which instance reaches the audio output.",
204 204
            "ref": "#outputRef",
205 205
            "type": "ref"
206 206
          },
207 207
          "patternRouting": {
208 208
            "description": "The song plane: which sequencers each arranger chooses the loops of. A sequencer 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.",
209 209
            "items": {
210 210
              "ref": "#patternRoute",
211 211
              "type": "ref"
212 212
            },
213 213
            "type": "array"
214 214
          },
215 215
          "tags": {
216 216
            "description": "Freely created tags, lower-cased on write so one hashtag matches one set of patches.",
217 217
            "items": {
218 218
              "maxLength": 128,
219 219
              "type": "string"
220 220
            },
221 221
            "type": "array"
222 222
          },
223 223
          "tempo": {
224 224
            "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.",
225 225
            "maximum": 300,
226 226
            "minimum": 20,
227 227
            "type": "integer"
228 228
          },
229 229
          "types": {
230 230
            "description": "Zero or more of the ten fixed types. A patch may carry several.",
231 231
            "items": {
232 232
              "knownValues": [
233 233
                "Lead",
234 234
                "Pad",
235 235
                "Bass",
236 236
                "Plucked",
237 237
                "Percussion",
238 238
                "Keys",
239 239
                "Brass",
240 240
                "Strings",
241 241
                "Vocal",
242 242
                "SFX"
243 243
              ],
244 244
              "type": "string"
245 245
            },
246 246
            "type": "array"
247 247
          }
248 248
        },
249 249
        "required": [
250 250
          "descriptionVersion",
251 251
          "name",
252 252
          "description",
253 253
          "moduleInstances",
254 254
          "createdAt"
255 255
        ],
256 256
        "type": "object"
257 257
      },
258 258
      "type": "record"
259 259
    },
260 260
    "midiControl": {
261 -
      "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.",
261 +
      "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.",
262 262
      "properties": {
263 263
        "controller": {
264 264
          "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.",
265 265
          "maximum": 127,
266 266
          "minimum": 0,
267 267
          "type": "integer"
268 268
        },
269 +
        "from": {
270 +
          "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.",
271 +
          "maxLength": 200,
272 +
          "type": "string"
273 +
        },
269 274
        "parameter": {
270 275
          "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.",
271 276
          "maxLength": 64,
272 277
          "minLength": 1,
273 278
          "type": "string"
279 +
        },
280 +
        "to": {
281 +
          "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.",
282 +
          "maxLength": 200,
283 +
          "type": "string"
274 284
        }
275 285
      },
276 286
      "required": [
277 287
        "parameter",
278 288
        "controller"
279 289
      ],
280 290
      "type": "object"
281 291
    },
282 292
    "midiRoute": {
283 293
      "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.",
284 294
      "properties": {
285 295
        "from": {
286 296
          "description": "The note output these notes leave. Absent where they come from the player.",
287 297
          "ref": "#noteOutputRef",
288 298
          "type": "ref"
289 299
        },
290 300
        "instanceId": {
291 301
          "maxLength": 64,
292 302
          "minLength": 1,
293 303
          "type": "string"
294 304
        },
295 305
        "midiInput": {
296 306
          "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.",
297 307
          "maxLength": 64,
298 308
          "minLength": 1,
299 309
          "type": "string"
300 310
        }
301 311
      },
302 312
      "required": [
303 313
        "instanceId",
304 314
        "midiInput"
305 315
      ],
306 316
      "type": "object"
307 317
    },
308 318
    "moduleInstance": {
309 319
      "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.",
310 320
      "properties": {
311 321
        "assignedNote": {
312 322
          "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.",
313 323
          "maximum": 127,
314 324
          "minimum": 0,
315 325
          "type": "integer"
316 326
        },
317 327
        "enabled": {
318 328
          "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.",
319 329
          "type": "boolean"
320 330
        },
321 331
        "glide": {
322 332
          "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.",
323 333
          "ref": "#glide",
324 334
          "type": "ref"
325 335
        },
326 336
        "instanceId": {
327 337
          "maxLength": 64,
328 338
          "minLength": 1,
329 339
          "type": "string"
330 340
        },
331 341
        "midiControls": {
332 342
          "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.",
333 343
          "items": {
334 344
            "ref": "#midiControl",
335 345
            "type": "ref"
336 346
          },
337 347
          "type": "array"
338 348
        },
339 349
        "module": {
340 350
          "ref": "#moduleRef",
341 351
          "type": "ref"
342 352
        },
343 353
        "name": {
344 354
          "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.",
345 355
          "maxGraphemes": 32,
346 356
          "maxLength": 320,
347 357
          "minLength": 1,
348 358
          "type": "string"
349 359
        },
350 360
        "notePattern": {
351 361
          "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.",
352 362
          "ref": "#notePattern",
353 363
          "type": "ref"
354 364
        },
355 365
        "noteRange": {
356 366
          "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.",
357 367
          "ref": "#noteRange",
358 368
          "type": "ref"
359 369
        },
360 370
        "parameterValues": {
361 371
          "items": {
362 372
            "ref": "#parameterValue",
363 373
            "type": "ref"
364 374
          },
365 375
          "type": "array"
366 376
        },
367 377
        "position": {
368 378
          "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.",
369 379
          "ref": "#position",
370 380
          "type": "ref"
371 381
        },
372 382
        "sampleSlotFills": {
373 383
          "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.",
374 384
          "items": {
375 385
            "ref": "#sampleSlotFill",
376 386
            "type": "ref"
377 387
          },
378 388
          "type": "array"
379 389
        },
380 390
        "song": {
381 391
          "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.",
382 392
          "ref": "#song",
383 393
          "type": "ref"
384 394
        },
385 395
        "thru": {
386 396
          "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.",
387 397
          "type": "boolean"
388 398
        },
389 399
        "transpose": {
390 400
          "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.",
391 401
          "maximum": 127,
392 402
          "minimum": -127,
393 403
          "type": "integer"
394 404
        },
395 405
        "unison": {
396 406
          "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.",
397 407
          "maximum": 6,
398 408
          "minimum": 1,
399 409
          "type": "integer"
400 410
        },
401 411
        "voiceScope": {
402 412
          "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.",
403 413
          "enum": [
404 414
            "perNote",
405 415
            "perPatch"
406 416
          ],
407 417
          "type": "string"
408 418
        }
409 419
      },
410 420
      "required": [
411 421
        "instanceId",
412 422
        "module",
413 423
        "voiceScope"
414 424
      ],
415 425
      "type": "object"
416 426
    },
417 427
    "moduleRef": {
418 428
      "description": "A pin to one exact published version of a module. Resolving it fetches that record, whoever authored it.",
419 429
      "properties": {
420 430
        "authorDid": {
421 431
          "format": "did",
422 432
          "type": "string"
423 433
        },
424 434
        "moduleId": {
425 435
          "maxLength": 128,
426 436
          "minLength": 1,
427 437
          "type": "string"
428 438
        },
429 439
        "versionKey": {
430 440
          "description": "The pinned version's record key, which is also the `versionKey` that version carries. A reader fetches the module record at this key.",
431 441
          "maxLength": 128,
432 442
          "minLength": 1,
433 443
          "type": "string"
434 444
        }
435 445
      },
436 446
      "required": [
437 447
        "moduleId",
438 448
        "versionKey",
439 449
        "authorDid"
440 450
      ],
441 451
      "type": "object"
442 452
    },
443 453
    "noteEvent": {
444 454
      "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.",
445 455
      "properties": {
446 456
        "at": {
447 457
          "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.",
448 458
          "minimum": 0,
449 459
          "type": "integer"
450 460
        },
451 461
        "hold": {
452 462
          "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.",
453 463
          "minimum": 1,
454 464
          "type": "integer"
455 465
        },
456 466
        "length": {
457 467
          "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.",
458 468
          "minimum": 1,
459 469
          "type": "integer"
460 470
        },
461 471
        "note": {
462 472
          "description": "The MIDI note number. 60 is middle C.",
463 473
          "maximum": 127,
464 474
          "minimum": 0,
465 475
          "type": "integer"
466 476
        },
467 477
        "probability": {
468 478
          "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.",
469 479
          "maximum": 100,
470 480
          "minimum": 1,
471 481
          "type": "integer"
472 482
        },
473 483
        "step": {
474 484
          "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.",
475 485
          "minimum": 0,
476 486
          "type": "integer"
477 487
        },
478 488
        "velocity": {
479 489
          "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.",
480 490
          "maximum": 127,
481 491
          "minimum": 1,
482 492
          "type": "integer"
483 493
        }
484 494
      },
485 495
      "required": [
486 496
        "note"
487 497
      ],
488 498
      "type": "object"
489 499
    },
490 500
    "noteOutputRef": {
491 501
      "properties": {
492 502
        "instanceId": {
493 503
          "maxLength": 64,
494 504
          "minLength": 1,
495 505
          "type": "string"
496 506
        },
497 507
        "noteOutput": {
498 508
          "maxLength": 64,
499 509
          "minLength": 1,
500 510
          "type": "string"
501 511
        }
502 512
      },
503 513
      "required": [
504 514
        "instanceId",
505 515
        "noteOutput"
506 516
      ],
507 517
      "type": "object"
508 518
    },
509 519
    "notePattern": {
510 520
      "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.",
511 521
      "properties": {
512 522
        "active": {
513 523
          "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.",
514 524
          "minimum": 0,
515 525
          "type": "integer"
516 526
        },
517 527
        "alternates": {
518 528
          "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.",
519 529
          "items": {
520 530
            "ref": "#alternatePattern",
521 531
            "type": "ref"
522 532
          },
523 533
          "maxLength": 7,
524 534
          "type": "array"
525 535
        },
526 536
        "bars": {
527 537
          "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.",
528 538
          "maximum": 8,
529 539
          "minimum": 1,
530 540
          "type": "integer"
531 541
        },
532 542
        "events": {
533 543
          "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.",
534 544
          "items": {
535 545
            "ref": "#noteEvent",
536 546
            "type": "ref"
537 547
          },
538 548
          "maxLength": 2048,
539 549
          "type": "array"
540 550
        },
541 551
        "name": {
542 552
          "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.",
543 553
          "maxGraphemes": 32,
544 554
          "maxLength": 320,
545 555
          "minLength": 1,
546 556
          "type": "string"
547 557
        },
548 558
        "resolution": {
549 559
          "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.",
550 560
          "ref": "#resolution",
551 561
          "type": "ref"
552 562
        }
553 563
      },
554 564
      "required": [
555 565
        "bars",
556 566
        "resolution"
557 567
      ],
558 568
      "type": "object"
559 569
    },
560 570
    "noteRange": {
561 571
      "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.",
562 572
      "properties": {
563 573
        "highest": {
564 574
          "description": "The highest note passed on, at or above the lowest. Absent is the highest there is.",
565 575
          "maximum": 127,
566 576
          "minimum": 0,
567 577
          "type": "integer"
568 578
        },
569 579
        "lowest": {
570 580
          "description": "The lowest note passed on. Absent is the lowest there is.",
571 581
          "maximum": 127,
572 582
          "minimum": 0,
573 583
          "type": "integer"
574 584
        }
575 585
      },
576 586
      "type": "object"
577 587
    },
578 588
    "outputRef": {
579 589
      "properties": {
580 590
        "audioOutput": {
581 591
          "maxLength": 64,
582 592
          "minLength": 1,
583 593
          "type": "string"
584 594
        },
585 595
        "instanceId": {
586 596
          "maxLength": 64,
587 597
          "minLength": 1,
588 598
          "type": "string"
589 599
        }
590 600
      },
591 601
      "required": [
592 602
        "instanceId",
593 603
        "audioOutput"
594 604
      ],
595 605
      "type": "object"
596 606
    },
597 607
    "parameterValue": {
598 608
      "description": "A value for one of the module's exposed parameters, or an explicit fall-back to the module's declared default.",
599 609
      "properties": {
600 610
        "id": {
601 611
          "maxLength": 64,
602 612
          "minLength": 1,
603 613
          "type": "string"
604 614
        },
605 615
        "useDefault": {
606 616
          "description": "Set where the patch explicitly defers to the module's default rather than recording a value.",
607 617
          "type": "boolean"
608 618
        },
609 619
        "value": {
610 620
          "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.",
611 621
          "maxLength": 200,
612 622
          "type": "string"
613 623
        }
614 624
      },
615 625
      "required": [
616 626
        "id"
617 627
      ],
618 628
      "type": "object"
619 629
    },
620 630
    "patternRoute": {
621 631
      "description": "One sequencer whose loops an arranger chooses.",
622 632
      "properties": {
623 633
        "from": {
624 634
          "description": "The arranger.",
625 635
          "maxLength": 64,
626 636
          "minLength": 1,
627 637
          "type": "string"
628 638
        },
629 639
        "instanceId": {
630 640
          "description": "The sequencer, at its pattern input.",
631 641
          "maxLength": 64,
632 642
          "minLength": 1,
633 643
          "type": "string"
634 644
        }
635 645
      },
636 646
      "required": [
637 647
        "from",
638 648
        "instanceId"
639 649
      ],
640 650
      "type": "object"
641 651
    },
642 652
    "position": {
643 653
      "properties": {
644 654
        "x": {
645 655
          "type": "integer"
646 656
        },
647 657
        "y": {
648 658
          "type": "integer"
649 659
        }
650 660
      },
651 661
      "required": [
652 662
        "x",
653 663
        "y"
654 664
      ],
655 665
      "type": "object"
656 666
    },
657 667
    "resolution": {
658 668
      "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.",
659 669
      "properties": {
660 670
        "unit": {
661 671
          "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.",
662 672
          "knownValues": [
663 673
            "normal",
664 674
            "triplet"
665 675
          ],
666 676
          "type": "string"
667 677
        },
668 678
        "value": {
669 679
          "description": "The note value one step is worth. A bar is four beats.",
670 680
          "knownValues": [
671 681
            "bar",
672 682
            "1/2",
673 683
            "1/4",
674 684
            "1/8",
675 685
            "1/16",
676 686
            "1/32",
677 687
            "1/64",
678 688
            "1/128"
679 689
          ],
680 690
          "type": "string"
681 691
        }
682 692
      },
683 693
      "required": [
684 694
        "value"
685 695
      ],
686 696
      "type": "object"
687 697
    },
688 698
    "sampleSlotFill": {
689 699
      "properties": {
690 700
        "blob": {
691 701
          "accept": [
692 702
            "audio/wav"
693 703
          ],
694 704
          "maxSize": 2097152,
695 705
          "type": "blob"
696 706
        },
697 707
        "ownerDid": {
698 708
          "format": "did",
699 709
          "type": "string"
700 710
        },
701 711
        "slotId": {
702 712
          "maxLength": 64,
703 713
          "minLength": 1,
704 714
          "type": "string"
705 715
        }
706 716
      },
707 717
      "required": [
708 718
        "slotId",
709 719
        "blob",
710 720
        "ownerDid"
711 721
      ],
712 722
      "type": "object"
713 723
    },
714 724
    "section": {
715 725
      "description": "One section of a song: how long it is, and which loop each arranged sequencer plays for that long.",
716 726
      "properties": {
717 727
        "bars": {
718 728
          "description": "How long this section is, in bars of four beats.",
719 729
          "maximum": 64,
720 730
          "minimum": 1,
721 731
          "type": "integer"
722 732
        },
723 733
        "loops": {
724 734
          "description": "Which loop each sequencer plays for this section. A sequencer wired to the arranger with no entry here rests for the section.",
725 735
          "items": {
726 736
            "ref": "#sectionLoop",
727 737
            "type": "ref"
728 738
          },
729 739
          "maxLength": 64,
730 740
          "type": "array"
731 741
        },
732 742
        "name": {
733 743
          "description": "What the creator called this section. Optional permanently: a section that says nothing is called by its place.",
734 744
          "maxGraphemes": 32,
735 745
          "maxLength": 320,
736 746
          "minLength": 1,
737 747
          "type": "string"
738 748
        }
739 749
      },
740 750
      "required": [
741 751
        "bars"
742 752
      ],
743 753
      "type": "object"
744 754
    },
745 755
    "sectionLoop": {
746 756
      "properties": {
747 757
        "instanceId": {
748 758
          "description": "The sequencer.",
749 759
          "maxLength": 64,
750 760
          "minLength": 1,
751 761
          "type": "string"
752 762
        },
753 763
        "loop": {
754 764
          "description": "Which of the sequencer's loops it plays, counting the one its pattern writes first as zero. One it does not hold is played as its last.",
755 765
          "maximum": 7,
756 766
          "minimum": 0,
757 767
          "type": "integer"
758 768
        }
759 769
      },
760 770
      "required": [
761 771
        "instanceId",
762 772
        "loop"
763 773
      ],
764 774
      "type": "object"
765 775
    },
766 776
    "song": {
767 777
      "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.",
768 778
      "properties": {
769 779
        "end": {
770 780
          "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`.",
771 781
          "knownValues": [
772 782
            "stop",
773 783
            "loop",
774 784
            "hold"
775 785
          ],
776 786
          "type": "string"
777 787
        },
778 788
        "sections": {
779 789
          "description": "The sections, in the order they are played.",
780 790
          "items": {
781 791
            "ref": "#section",
782 792
            "type": "ref"
783 793
          },
784 794
          "maxLength": 64,
785 795
          "type": "array"
786 796
        }
787 797
      },
788 798
      "type": "object"
789 799
    }
790 800
  },
791 801
  "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.",
792 802
  "id": "at.atmosynth.patch",
793 803
  "lexicon": 1
794 804
}

Compare Other Versions

Lexicon Garden

@