at.atmosynth.patch
Schema Diff
+7 -1
Compatibility Analysis
Backward Compatible
Backward compatible. 2 non-breaking changes.
Non-Breaking Changes (2)
- AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#moduleInstance.noteLength" }
- AddedEdge AddedEdge { src: "at.atmosynth.patch#moduleInstance", tgt: "at.atmosynth.patch#moduleInstance.noteLength", kind: "prop", name: Some("noteLength") }
Migration Guidance
Added Elements
AddedVertex { vertex_id: "at.atmosynth.patch#moduleInstance.noteLength" }
Additional Notes
- Non-breaking: AddedEdge { src: "at.atmosynth.patch#moduleInstance", tgt: "at.atmosynth.patch#moduleInstance.noteLength", kind: "prop", name: Some("noteLength") }
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
-
"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.",
175
+
"description": "What reaches the input of each sequencer, each note range, each transpose, each pitch assignment and each one-shot: which note sources a sequencer hears, to record from and — unless it says otherwise (`thru`) — to pass on to whatever it plays; which a note range hears, to pass on what falls inside its range (`noteRange`); which a transpose or a pitch assignment hears, to pass on at another pitch (`transpose`, `assignedNote`); and which a one-shot hears, to pass on lasting one length (`noteLength`). A sequencer with nothing wired here records nothing, and the others pass nothing on. Optional permanently: a patch that says nothing has nothing wired into any of them, which is what every patch written before the input existed says.",
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
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
269
"from": {
270
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
271
"maxLength": 200,
272
272
"type": "string"
273
273
},
274
274
"parameter": {
275
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.",
276
276
"maxLength": 64,
277
277
"minLength": 1,
278
278
"type": "string"
279
279
},
280
280
"to": {
281
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
282
"maxLength": 200,
283
283
"type": "string"
284
284
}
285
285
},
286
286
"required": [
287
287
"parameter",
288
288
"controller"
289
289
],
290
290
"type": "object"
291
291
},
292
292
"midiRoute": {
293
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.",
294
294
"properties": {
295
295
"from": {
296
296
"description": "The note output these notes leave. Absent where they come from the player.",
297
297
"ref": "#noteOutputRef",
298
298
"type": "ref"
299
299
},
300
300
"instanceId": {
301
301
"maxLength": 64,
302
302
"minLength": 1,
303
303
"type": "string"
304
304
},
305
305
"midiInput": {
306
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.",
307
307
"maxLength": 64,
308
308
"minLength": 1,
309
309
"type": "string"
310
310
}
311
311
},
312
312
"required": [
313
313
"instanceId",
314
314
"midiInput"
315
315
],
316
316
"type": "object"
317
317
},
318
318
"moduleInstance": {
319
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.",
320
320
"properties": {
321
321
"assignedNote": {
322
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.",
323
323
"maximum": 127,
324
324
"minimum": 0,
325
325
"type": "integer"
326
326
},
327
327
"enabled": {
328
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.",
329
329
"type": "boolean"
330
330
},
331
331
"glide": {
332
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.",
333
333
"ref": "#glide",
334
334
"type": "ref"
335
335
},
336
336
"instanceId": {
337
337
"maxLength": 64,
338
338
"minLength": 1,
339
339
"type": "string"
340
340
},
341
341
"midiControls": {
342
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.",
343
343
"items": {
344
344
"ref": "#midiControl",
345
345
"type": "ref"
346
346
},
347
347
"type": "array"
348
348
},
349
349
"module": {
350
350
"ref": "#moduleRef",
351
351
"type": "ref"
352
352
},
353
353
"name": {
354
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.",
355
355
"maxGraphemes": 32,
356
356
"maxLength": 320,
357
357
"minLength": 1,
358
358
"type": "string"
359
359
},
360
+
"noteLength": {
361
+
"description": "How many milliseconds every note this instance passes on lasts, where its module is a one-shot, however briefly or long whatever played it held it: a pad tapped in front of a drum plays the drum's whole hit. When the length is up the note is let go of and its sound follows its own release. Only how long a note lasts changes: each still starts when it was struck, at its own pitch and the strength it was played with. It lives here, in the patch, for the reason a note range does. Absent on every instance whose module is not a one-shot; on a one-shot, absent is 100 milliseconds.",
362
+
"maximum": 10000,
363
+
"minimum": 1,
364
+
"type": "integer"
365
+
},
360
366
"notePattern": {
361
367
"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.",
362
368
"ref": "#notePattern",
363
369
"type": "ref"
364
370
},
365
371
"noteRange": {
366
372
"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.",
367
373
"ref": "#noteRange",
368
374
"type": "ref"
369
375
},
370
376
"parameterValues": {
371
377
"items": {
372
378
"ref": "#parameterValue",
373
379
"type": "ref"
374
380
},
375
381
"type": "array"
376
382
},
377
383
"position": {
378
384
"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.",
379
385
"ref": "#position",
380
386
"type": "ref"
381
387
},
382
388
"sampleSlotFills": {
383
389
"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.",
384
390
"items": {
385
391
"ref": "#sampleSlotFill",
386
392
"type": "ref"
387
393
},
388
394
"type": "array"
389
395
},
390
396
"scene": {
391
397
"description": "Which of `scenes` is playing, counting the first as zero. Choosing a scene is an edit like choosing a sequencer's loop, so it is written here, and the patch opens on it. Optional permanently: absent is the first, and a reader plays one past the last as the last.",
392
398
"maximum": 25,
393
399
"minimum": 0,
394
400
"type": "integer"
395
401
},
396
402
"sceneLaunch": {
397
403
"description": "When a scene chosen on this instance takes over, and where the loops it names start. Optional permanently: absent is on the next bar, from their first step.",
398
404
"ref": "#sceneLaunch",
399
405
"type": "ref"
400
406
},
401
407
"scenes": {
402
408
"description": "The scenes this instance switches between, where its module is a scenes block: which loop each sequencer wired to it plays in each. It lives here for the reason a song does. Absent on every instance whose module is not a scenes block.",
403
409
"items": {
404
410
"ref": "#scene",
405
411
"type": "ref"
406
412
},
407
413
"maxLength": 26,
408
414
"type": "array"
409
415
},
410
416
"song": {
411
417
"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.",
412
418
"ref": "#song",
413
419
"type": "ref"
414
420
},
415
421
"thru": {
416
422
"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.",
417
423
"type": "boolean"
418
424
},
419
425
"transpose": {
420
426
"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.",
421
427
"maximum": 127,
422
428
"minimum": -127,
423
429
"type": "integer"
424
430
},
425
431
"unison": {
426
432
"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.",
427
433
"maximum": 6,
428
434
"minimum": 1,
429
435
"type": "integer"
430
436
},
431
437
"voiceScope": {
432
438
"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.",
433
439
"enum": [
434
440
"perNote",
435
441
"perPatch"
436
442
],
437
443
"type": "string"
438
444
}
439
445
},
440
446
"required": [
441
447
"instanceId",
442
448
"module",
443
449
"voiceScope"
444
450
],
445
451
"type": "object"
446
452
},
447
453
"moduleRef": {
448
454
"description": "A pin to one exact published version of a module. Resolving it fetches that record, whoever authored it.",
449
455
"properties": {
450
456
"authorDid": {
451
457
"format": "did",
452
458
"type": "string"
453
459
},
454
460
"moduleId": {
455
461
"maxLength": 128,
456
462
"minLength": 1,
457
463
"type": "string"
458
464
},
459
465
"versionKey": {
460
466
"description": "The pinned version's record key, which is also the `versionKey` that version carries. A reader fetches the module record at this key.",
461
467
"maxLength": 128,
462
468
"minLength": 1,
463
469
"type": "string"
464
470
}
465
471
},
466
472
"required": [
467
473
"moduleId",
468
474
"versionKey",
469
475
"authorDid"
470
476
],
471
477
"type": "object"
472
478
},
473
479
"noteEvent": {
474
480
"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.",
475
481
"properties": {
476
482
"at": {
477
483
"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.",
478
484
"minimum": 0,
479
485
"type": "integer"
480
486
},
481
487
"hold": {
482
488
"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.",
483
489
"minimum": 1,
484
490
"type": "integer"
485
491
},
486
492
"length": {
487
493
"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.",
488
494
"minimum": 1,
489
495
"type": "integer"
490
496
},
491
497
"note": {
492
498
"description": "The MIDI note number. 60 is middle C.",
493
499
"maximum": 127,
494
500
"minimum": 0,
495
501
"type": "integer"
496
502
},
497
503
"probability": {
498
504
"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.",
499
505
"maximum": 100,
500
506
"minimum": 1,
501
507
"type": "integer"
502
508
},
503
509
"step": {
504
510
"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.",
505
511
"minimum": 0,
506
512
"type": "integer"
507
513
},
508
514
"velocity": {
509
515
"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.",
510
516
"maximum": 127,
511
517
"minimum": 1,
512
518
"type": "integer"
513
519
}
514
520
},
515
521
"required": [
516
522
"note"
517
523
],
518
524
"type": "object"
519
525
},
520
526
"noteOutputRef": {
521
527
"properties": {
522
528
"instanceId": {
523
529
"maxLength": 64,
524
530
"minLength": 1,
525
531
"type": "string"
526
532
},
527
533
"noteOutput": {
528
534
"maxLength": 64,
529
535
"minLength": 1,
530
536
"type": "string"
531
537
}
532
538
},
533
539
"required": [
534
540
"instanceId",
535
541
"noteOutput"
536
542
],
537
543
"type": "object"
538
544
},
539
545
"notePattern": {
540
546
"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.",
541
547
"properties": {
542
548
"active": {
543
549
"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.",
544
550
"minimum": 0,
545
551
"type": "integer"
546
552
},
547
553
"alternates": {
548
554
"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.",
549
555
"items": {
550
556
"ref": "#alternatePattern",
551
557
"type": "ref"
552
558
},
553
559
"maxLength": 7,
554
560
"type": "array"
555
561
},
556
562
"bars": {
557
563
"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.",
558
564
"maximum": 8,
559
565
"minimum": 1,
560
566
"type": "integer"
561
567
},
562
568
"events": {
563
569
"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.",
564
570
"items": {
565
571
"ref": "#noteEvent",
566
572
"type": "ref"
567
573
},
568
574
"maxLength": 2048,
569
575
"type": "array"
570
576
},
571
577
"name": {
572
578
"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.",
573
579
"maxGraphemes": 32,
574
580
"maxLength": 320,
575
581
"minLength": 1,
576
582
"type": "string"
577
583
},
578
584
"resolution": {
579
585
"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.",
580
586
"ref": "#resolution",
581
587
"type": "ref"
582
588
}
583
589
},
584
590
"required": [
585
591
"bars",
586
592
"resolution"
587
593
],
588
594
"type": "object"
589
595
},
590
596
"noteRange": {
591
597
"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.",
592
598
"properties": {
593
599
"highest": {
594
600
"description": "The highest note passed on, at or above the lowest. Absent is the highest there is.",
595
601
"maximum": 127,
596
602
"minimum": 0,
597
603
"type": "integer"
598
604
},
599
605
"lowest": {
600
606
"description": "The lowest note passed on. Absent is the lowest there is.",
601
607
"maximum": 127,
602
608
"minimum": 0,
603
609
"type": "integer"
604
610
}
605
611
},
606
612
"type": "object"
607
613
},
608
614
"outputRef": {
609
615
"properties": {
610
616
"audioOutput": {
611
617
"maxLength": 64,
612
618
"minLength": 1,
613
619
"type": "string"
614
620
},
615
621
"instanceId": {
616
622
"maxLength": 64,
617
623
"minLength": 1,
618
624
"type": "string"
619
625
}
620
626
},
621
627
"required": [
622
628
"instanceId",
623
629
"audioOutput"
624
630
],
625
631
"type": "object"
626
632
},
627
633
"parameterValue": {
628
634
"description": "A value for one of the module's exposed parameters, or an explicit fall-back to the module's declared default.",
629
635
"properties": {
630
636
"id": {
631
637
"maxLength": 64,
632
638
"minLength": 1,
633
639
"type": "string"
634
640
},
635
641
"useDefault": {
636
642
"description": "Set where the patch explicitly defers to the module's default rather than recording a value.",
637
643
"type": "boolean"
638
644
},
639
645
"value": {
640
646
"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.",
641
647
"maxLength": 200,
642
648
"type": "string"
643
649
}
644
650
},
645
651
"required": [
646
652
"id"
647
653
],
648
654
"type": "object"
649
655
},
650
656
"patternRoute": {
651
657
"description": "One sequencer whose loops an arranger or a scenes block chooses.",
652
658
"properties": {
653
659
"from": {
654
660
"description": "The arranger, or the scenes block.",
655
661
"maxLength": 64,
656
662
"minLength": 1,
657
663
"type": "string"
658
664
},
659
665
"instanceId": {
660
666
"description": "The sequencer, at its pattern input.",
661
667
"maxLength": 64,
662
668
"minLength": 1,
663
669
"type": "string"
664
670
}
665
671
},
666
672
"required": [
667
673
"from",
668
674
"instanceId"
669
675
],
670
676
"type": "object"
671
677
},
672
678
"position": {
673
679
"properties": {
674
680
"x": {
675
681
"type": "integer"
676
682
},
677
683
"y": {
678
684
"type": "integer"
679
685
}
680
686
},
681
687
"required": [
682
688
"x",
683
689
"y"
684
690
],
685
691
"type": "object"
686
692
},
687
693
"resolution": {
688
694
"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.",
689
695
"properties": {
690
696
"unit": {
691
697
"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.",
692
698
"knownValues": [
693
699
"normal",
694
700
"triplet"
695
701
],
696
702
"type": "string"
697
703
},
698
704
"value": {
699
705
"description": "The note value one step is worth. A bar is four beats.",
700
706
"knownValues": [
701
707
"bar",
702
708
"1/2",
703
709
"1/4",
704
710
"1/8",
705
711
"1/16",
706
712
"1/32",
707
713
"1/64",
708
714
"1/128"
709
715
],
710
716
"type": "string"
711
717
}
712
718
},
713
719
"required": [
714
720
"value"
715
721
],
716
722
"type": "object"
717
723
},
718
724
"sampleSlotFill": {
719
725
"properties": {
720
726
"blob": {
721
727
"accept": [
722
728
"audio/wav"
723
729
],
724
730
"maxSize": 2097152,
725
731
"type": "blob"
726
732
},
727
733
"ownerDid": {
728
734
"format": "did",
729
735
"type": "string"
730
736
},
731
737
"slotId": {
732
738
"maxLength": 64,
733
739
"minLength": 1,
734
740
"type": "string"
735
741
}
736
742
},
737
743
"required": [
738
744
"slotId",
739
745
"blob",
740
746
"ownerDid"
741
747
],
742
748
"type": "object"
743
749
},
744
750
"scene": {
745
751
"description": "One scene: which loop each sequencer wired to the scenes block plays while it is the scene playing. It lasts until another scene is chosen.",
746
752
"properties": {
747
753
"loops": {
748
754
"description": "Which loop each sequencer plays in this scene. A sequencer wired to the scenes block with no entry here rests while it plays.",
749
755
"items": {
750
756
"ref": "#sectionLoop",
751
757
"type": "ref"
752
758
},
753
759
"maxLength": 64,
754
760
"type": "array"
755
761
},
756
762
"name": {
757
763
"description": "What the creator called this scene. Optional permanently: a scene that says nothing is called by its letter.",
758
764
"maxGraphemes": 32,
759
765
"maxLength": 320,
760
766
"minLength": 1,
761
767
"type": "string"
762
768
}
763
769
},
764
770
"type": "object"
765
771
},
766
772
"sceneLaunch": {
767
773
"description": "When a scene chosen takes over, and where its loops start.",
768
774
"properties": {
769
775
"quantize": {
770
776
"description": "Where a scene chosen takes over: `none` at once, or on the next beat, bar, two bars or four bars, counted from the downbeat the loops count from. Optional permanently: absent is `bar`.",
771
777
"knownValues": [
772
778
"none",
773
779
"beat",
774
780
"bar",
775
781
"2bars",
776
782
"4bars"
777
783
],
778
784
"type": "string"
779
785
},
780
786
"restart": {
781
787
"description": "Whether the loops a scene names start from their first step where it takes over, or carry on from where they already were. Optional permanently: absent is from their first step, so only `false` is written.",
782
788
"type": "boolean"
783
789
}
784
790
},
785
791
"type": "object"
786
792
},
787
793
"section": {
788
794
"description": "One section of a song: how long it is, and which loop each arranged sequencer plays for that long.",
789
795
"properties": {
790
796
"bars": {
791
797
"description": "How long this section is, in bars of four beats.",
792
798
"maximum": 64,
793
799
"minimum": 1,
794
800
"type": "integer"
795
801
},
796
802
"loops": {
797
803
"description": "Which loop each sequencer plays for this section. A sequencer wired to the arranger with no entry here rests for the section.",
798
804
"items": {
799
805
"ref": "#sectionLoop",
800
806
"type": "ref"
801
807
},
802
808
"maxLength": 64,
803
809
"type": "array"
804
810
},
805
811
"name": {
806
812
"description": "What the creator called this section. Optional permanently: a section that says nothing is called by its place.",
807
813
"maxGraphemes": 32,
808
814
"maxLength": 320,
809
815
"minLength": 1,
810
816
"type": "string"
811
817
}
812
818
},
813
819
"required": [
814
820
"bars"
815
821
],
816
822
"type": "object"
817
823
},
818
824
"sectionLoop": {
819
825
"properties": {
820
826
"instanceId": {
821
827
"description": "The sequencer.",
822
828
"maxLength": 64,
823
829
"minLength": 1,
824
830
"type": "string"
825
831
},
826
832
"loop": {
827
833
"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.",
828
834
"maximum": 7,
829
835
"minimum": 0,
830
836
"type": "integer"
831
837
}
832
838
},
833
839
"required": [
834
840
"instanceId",
835
841
"loop"
836
842
],
837
843
"type": "object"
838
844
},
839
845
"song": {
840
846
"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.",
841
847
"properties": {
842
848
"end": {
843
849
"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`.",
844
850
"knownValues": [
845
851
"stop",
846
852
"loop",
847
853
"hold"
848
854
],
849
855
"type": "string"
850
856
},
851
857
"sections": {
852
858
"description": "The sections, in the order they are played.",
853
859
"items": {
854
860
"ref": "#section",
855
861
"type": "ref"
856
862
},
857
863
"maxLength": 64,
858
864
"type": "array"
859
865
}
860
866
},
861
867
"type": "object"
862
868
}
863
869
},
864
870
"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.",
865
871
"id": "at.atmosynth.patch",
866
872
"lexicon": 1
867
873
}