at.atmosynth.patch
Schema Diff
+51 -7
Compatibility Analysis
Breaking Changes Detected
2 breaking changes, 12 non-breaking changes.
Breaking Changes (2)
- KindChanged KindChanged { vertex_id: "at.atmosynth.patch#parameterValue.value", old_kind: "unknown", new_kind: "string" }
- ConstraintAdded ConstraintAdded { vertex_id: "at.atmosynth.patch#parameterValue.value", sort: "maxLength", value: "200" }
Non-Breaking Changes (12)
- AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#glide" }
- AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#glide.fromLast" }
- AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#glide.ms" }
- AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#glide.rate" }
- AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#moduleInstance.glide" }
- AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#noteEvent.velocity" }
- AddedEdge AddedEdge { src: "at.atmosynth.patch#glide", tgt: "at.atmosynth.patch#glide.fromLast", kind: "prop", name: Some("fromLast") }
- AddedEdge AddedEdge { src: "at.atmosynth.patch#glide", tgt: "at.atmosynth.patch#glide.ms", kind: "prop", name: Some("ms") }
- AddedEdge AddedEdge { src: "at.atmosynth.patch#glide", tgt: "at.atmosynth.patch#glide.rate", kind: "prop", name: Some("rate") }
- AddedEdge AddedEdge { src: "at.atmosynth.patch#moduleInstance", tgt: "at.atmosynth.patch#moduleInstance.glide", kind: "prop", name: Some("glide") }
- AddedEdge AddedEdge { src: "at.atmosynth.patch#moduleInstance.glide", tgt: "at.atmosynth.patch#glide", kind: "ref", name: None }
- 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#glide" }AddedVertex { vertex_id: "at.atmosynth.patch#glide.fromLast" }AddedVertex { vertex_id: "at.atmosynth.patch#glide.ms" }AddedVertex { vertex_id: "at.atmosynth.patch#glide.rate" }AddedVertex { vertex_id: "at.atmosynth.patch#moduleInstance.glide" }AddedVertex { vertex_id: "at.atmosynth.patch#noteEvent.velocity" }
Constraint Changes
- ConstraintAdded ConstraintAdded { vertex_id: "at.atmosynth.patch#parameterValue.value", sort: "maxLength", value: "200" }
Additional Notes
- Breaking: KindChanged { vertex_id: "at.atmosynth.patch#parameterValue.value", old_kind: "unknown", new_kind: "string" }
- Non-breaking: AddedEdge { src: "at.atmosynth.patch#glide", tgt: "at.atmosynth.patch#glide.fromLast", kind: "prop", name: Some("fromLast") }
- Non-breaking: AddedEdge { src: "at.atmosynth.patch#glide", tgt: "at.atmosynth.patch#glide.ms", kind: "prop", name: Some("ms") }
- Non-breaking: AddedEdge { src: "at.atmosynth.patch#glide", tgt: "at.atmosynth.patch#glide.rate", kind: "prop", name: Some("rate") }
- Non-breaking: AddedEdge { src: "at.atmosynth.patch#moduleInstance", tgt: "at.atmosynth.patch#moduleInstance.glide", kind: "prop", name: Some("glide") }
- Non-breaking: AddedEdge { src: "at.atmosynth.patch#moduleInstance.glide", tgt: "at.atmosynth.patch#glide", kind: "ref", name: None }
- 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
-
"description": "Which module instances receive MIDI input."
85
+
"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."
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
+
"glide": {
104
+
"type": "object",
105
+
"properties": {
106
+
"ms": {
107
+
"type": "integer",
108
+
"maximum": 5000,
109
+
"minimum": 1,
110
+
"description": "How long a note takes to reach the next, in milliseconds."
111
+
},
112
+
"rate": {
113
+
"type": "string",
114
+
"description": "Or: how long, as a note value at the tempo. The same vocabulary the grid is written in.",
115
+
"knownValues": [
116
+
"bar",
117
+
"1/2",
118
+
"1/4",
119
+
"1/8",
120
+
"1/16",
121
+
"1/32",
122
+
"1/64",
123
+
"1/128"
124
+
]
125
+
},
126
+
"fromLast": {
127
+
"type": "boolean",
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
+
}
130
+
},
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
+
},
103
133
"lineage": {
104
134
"type": "object",
105
135
"required": [
106
136
"uri",
107
137
"creatorDid"
108
138
],
109
139
"properties": {
110
140
"uri": {
111
141
"type": "string",
112
142
"format": "at-uri"
113
143
},
114
144
"patchId": {
115
145
"type": "string",
116
146
"maxLength": 128
117
147
},
118
148
"creatorDid": {
119
149
"type": "string",
120
150
"format": "did"
121
151
}
122
152
},
123
153
"description": "The patch this one was forked from, and its creator. Preserved even when the source is later deleted."
124
154
},
125
155
"inputRef": {
126
156
"type": "object",
127
157
"required": [
128
158
"instanceId",
129
159
"audioInput"
130
160
],
131
161
"properties": {
132
162
"audioInput": {
133
163
"type": "string",
134
164
"maxLength": 64,
135
165
"minLength": 1
136
166
},
137
167
"instanceId": {
138
168
"type": "string",
139
169
"maxLength": 64,
140
170
"minLength": 1
141
171
}
142
172
}
143
173
},
144
174
"position": {
145
175
"type": "object",
146
176
"required": [
147
177
"x",
148
178
"y"
149
179
],
150
180
"properties": {
151
181
"x": {
152
182
"type": "integer"
153
183
},
154
184
"y": {
155
185
"type": "integer"
156
186
}
157
187
}
158
188
},
159
189
"midiRoute": {
160
190
"type": "object",
161
191
"required": [
162
192
"instanceId",
163
193
"midiInput"
164
194
],
165
195
"properties": {
166
196
"from": {
167
197
"ref": "#noteOutputRef",
168
198
"type": "ref",
169
199
"description": "The note output these notes leave. Absent where they come from the player."
170
200
},
171
201
"midiInput": {
172
202
"type": "string",
173
203
"maxLength": 64,
174
-
"minLength": 1
204
+
"minLength": 1,
205
+
"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."
175
206
},
176
207
"instanceId": {
177
208
"type": "string",
178
209
"maxLength": 64,
179
210
"minLength": 1
180
211
}
181
212
},
182
-
"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
+
"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."
183
214
},
184
215
"moduleRef": {
185
216
"type": "object",
186
217
"required": [
187
218
"moduleId",
188
219
"versionKey",
189
220
"authorDid"
190
221
],
191
222
"properties": {
192
223
"moduleId": {
193
224
"type": "string",
194
225
"maxLength": 128,
195
226
"minLength": 1
196
227
},
197
228
"authorDid": {
198
229
"type": "string",
199
230
"format": "did"
200
231
},
201
232
"versionKey": {
202
233
"type": "string",
203
234
"maxLength": 128,
204
-
"minLength": 1
235
+
"minLength": 1,
236
+
"description": "The pinned version's record key, which is also the `versionKey` that version carries. A reader fetches the module record at this key."
205
237
}
206
238
},
207
239
"description": "A pin to one exact published version of a module. Resolving it fetches that record, whoever authored it."
208
240
},
209
241
"noteEvent": {
210
242
"type": "object",
211
243
"required": [
212
244
"note"
213
245
],
214
246
"properties": {
215
247
"at": {
216
248
"type": "integer",
217
249
"minimum": 0,
218
250
"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."
219
251
},
220
252
"hold": {
221
253
"type": "integer",
222
254
"minimum": 1,
223
255
"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."
224
256
},
225
257
"note": {
226
258
"type": "integer",
227
259
"maximum": 127,
228
260
"minimum": 0,
229
261
"description": "The MIDI note number. 60 is middle C."
230
262
},
231
263
"step": {
232
264
"type": "integer",
233
265
"minimum": 0,
234
266
"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."
235
267
},
236
268
"length": {
237
269
"type": "integer",
238
270
"minimum": 1,
239
271
"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."
272
+
},
273
+
"velocity": {
274
+
"type": "integer",
275
+
"maximum": 127,
276
+
"minimum": 1,
277
+
"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."
240
278
}
241
279
},
242
-
"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."
280
+
"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."
243
281
},
244
282
"outputRef": {
245
283
"type": "object",
246
284
"required": [
247
285
"instanceId",
248
286
"audioOutput"
249
287
],
250
288
"properties": {
251
289
"instanceId": {
252
290
"type": "string",
253
291
"maxLength": 64,
254
292
"minLength": 1
255
293
},
256
294
"audioOutput": {
257
295
"type": "string",
258
296
"maxLength": 64,
259
297
"minLength": 1
260
298
}
261
299
}
262
300
},
263
301
"connection": {
264
302
"type": "object",
265
303
"required": [
266
304
"from",
267
305
"to"
268
306
],
269
307
"properties": {
270
308
"to": {
271
309
"ref": "#inputRef",
272
310
"type": "ref"
273
311
},
274
312
"from": {
275
313
"ref": "#outputRef",
276
314
"type": "ref"
277
315
}
278
316
},
279
317
"description": "An audio connection between two module instances, naming the declared ports at each end."
280
318
},
281
319
"resolution": {
282
320
"type": "object",
283
321
"required": [
284
322
"value"
285
323
],
286
324
"properties": {
287
325
"unit": {
288
326
"type": "string",
289
327
"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.",
290
328
"knownValues": [
291
329
"normal",
292
330
"triplet"
293
331
]
294
332
},
295
333
"value": {
296
334
"type": "string",
297
335
"description": "The note value one step is worth. A bar is four beats.",
298
336
"knownValues": [
299
337
"bar",
300
338
"1/2",
301
339
"1/4",
302
340
"1/8",
303
341
"1/16",
304
342
"1/32",
305
343
"1/64",
306
344
"1/128"
307
345
]
308
346
}
309
347
},
310
348
"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."
311
349
},
312
350
"midiControl": {
313
351
"type": "object",
314
352
"required": [
315
353
"parameter",
316
354
"controller"
317
355
],
318
356
"properties": {
319
357
"parameter": {
320
358
"type": "string",
321
359
"maxLength": 64,
322
360
"minLength": 1,
323
361
"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."
324
362
},
325
363
"controller": {
326
364
"type": "integer",
327
365
"maximum": 127,
328
366
"minimum": 0,
329
367
"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."
330
368
}
331
369
},
332
370
"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."
333
371
},
334
372
"notePattern": {
335
373
"type": "object",
336
374
"required": [
337
375
"bars",
338
376
"resolution"
339
377
],
340
378
"properties": {
341
379
"bars": {
342
380
"type": "integer",
343
381
"maximum": 8,
344
382
"minimum": 1,
345
383
"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."
346
384
},
347
385
"active": {
348
386
"type": "integer",
349
387
"minimum": 0,
350
388
"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."
351
389
},
352
390
"events": {
353
391
"type": "array",
354
392
"items": {
355
393
"ref": "#noteEvent",
356
394
"type": "ref"
357
395
},
358
396
"maxLength": 2048,
359
397
"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."
360
398
},
361
399
"alternates": {
362
400
"type": "array",
363
401
"items": {
364
402
"ref": "#alternatePattern",
365
403
"type": "ref"
366
404
},
367
405
"maxLength": 7,
368
406
"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."
369
407
},
370
408
"resolution": {
371
409
"ref": "#resolution",
372
410
"type": "ref",
373
411
"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."
374
412
}
375
413
},
376
414
"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."
377
415
},
378
416
"noteOutputRef": {
379
417
"type": "object",
380
418
"required": [
381
419
"instanceId",
382
420
"noteOutput"
383
421
],
384
422
"properties": {
385
423
"instanceId": {
386
424
"type": "string",
387
425
"maxLength": 64,
388
426
"minLength": 1
389
427
},
390
428
"noteOutput": {
391
429
"type": "string",
392
430
"maxLength": 64,
393
431
"minLength": 1
394
432
}
395
433
}
396
434
},
397
435
"moduleInstance": {
398
436
"type": "object",
399
437
"required": [
400
438
"instanceId",
401
439
"module",
402
440
"voiceScope"
403
441
],
404
442
"properties": {
443
+
"glide": {
444
+
"ref": "#glide",
445
+
"type": "ref",
446
+
"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."
447
+
},
405
448
"module": {
406
449
"ref": "#moduleRef",
407
450
"type": "ref"
408
451
},
409
452
"unison": {
410
453
"type": "integer",
411
454
"maximum": 6,
412
455
"minimum": 1,
413
456
"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."
414
457
},
415
458
"enabled": {
416
459
"type": "boolean",
417
460
"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."
418
461
},
419
462
"position": {
420
463
"ref": "#position",
421
464
"type": "ref",
422
465
"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."
423
466
},
424
467
"instanceId": {
425
468
"type": "string",
426
469
"maxLength": 64,
427
470
"minLength": 1
428
471
},
429
472
"voiceScope": {
430
473
"enum": [
431
474
"perNote",
432
475
"perPatch"
433
476
],
434
477
"type": "string",
435
478
"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."
436
479
},
437
480
"notePattern": {
438
481
"ref": "#notePattern",
439
482
"type": "ref",
440
483
"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."
441
484
},
442
485
"midiControls": {
443
486
"type": "array",
444
487
"items": {
445
488
"ref": "#midiControl",
446
489
"type": "ref"
447
490
},
448
491
"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."
449
492
},
450
493
"parameterValues": {
451
494
"type": "array",
452
495
"items": {
453
496
"ref": "#parameterValue",
454
497
"type": "ref"
455
498
}
456
499
},
457
500
"sampleSlotFills": {
458
501
"type": "array",
459
502
"items": {
460
503
"ref": "#sampleSlotFill",
461
504
"type": "ref"
462
505
},
463
506
"description": "Samples this instance supplies for the module's declared slots. A fill lives here, in the patch, so writing one never touches the module."
464
507
}
465
508
},
466
509
"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."
467
510
},
468
511
"parameterValue": {
469
512
"type": "object",
470
513
"required": [
471
514
"id"
472
515
],
473
516
"properties": {
474
517
"id": {
475
518
"type": "string",
476
519
"maxLength": 64,
477
520
"minLength": 1
478
521
},
479
522
"value": {
480
-
"type": "unknown",
481
-
"description": "The value this patch sets the parameter to. A number that is not a whole number is carried as its decimal string — \"0.5\", not 0.5 — because the ATproto data model has no floating-point type and a PDS refuses one. A whole number is an ordinary integer, and a reader turns such a string back into a number. 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."
523
+
"type": "string",
524
+
"maxLength": 200,
525
+
"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."
482
526
},
483
527
"useDefault": {
484
528
"type": "boolean",
485
529
"description": "Set where the patch explicitly defers to the module's default rather than recording a value."
486
530
}
487
531
},
488
532
"description": "A value for one of the module's exposed parameters, or an explicit fall-back to the module's declared default."
489
533
},
490
534
"sampleSlotFill": {
491
535
"type": "object",
492
536
"required": [
493
537
"slotId",
494
538
"blob",
495
539
"ownerDid"
496
540
],
497
541
"properties": {
498
542
"blob": {
499
543
"type": "blob",
500
544
"accept": [
501
545
"audio/wav"
502
546
],
503
547
"maxSize": 2097152
504
548
},
505
549
"slotId": {
506
550
"type": "string",
507
551
"maxLength": 64,
508
552
"minLength": 1
509
553
},
510
554
"ownerDid": {
511
555
"type": "string",
512
556
"format": "did"
513
557
}
514
558
}
515
559
},
516
560
"alternatePattern": {
517
561
"type": "object",
518
562
"required": [
519
563
"bars"
520
564
],
521
565
"properties": {
522
566
"bars": {
523
567
"type": "integer",
524
568
"maximum": 8,
525
569
"minimum": 1,
526
570
"description": "How long this loop is, in bars of four beats."
527
571
},
528
572
"events": {
529
573
"type": "array",
530
574
"items": {
531
575
"ref": "#noteEvent",
532
576
"type": "ref"
533
577
},
534
578
"maxLength": 2048,
535
579
"description": "The notes in this loop."
536
580
}
537
581
},
538
582
"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."
539
583
}
540
584
},
541
585
"$type": "com.atproto.lexicon.schema",
542
586
"lexicon": 1,
543
587
"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."
544
588
}