at.atmosynth.patch

atmosynth.at

Schema Diff

+221 -3

From

CID
bafyreid2jeqzuw3...
Indexed At
2026-09-06 19:07 UTC
View this version

To

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

Compatibility Analysis

Breaking Changes Detected

9 breaking changes, 62 non-breaking changes.

Breaking Changes (9)
  • RequiredEdgeAdded RequiredEdgeAdded { vertex_id: "at.atmosynth.patch#noteEvent", src: "at.atmosynth.patch#noteEvent", tgt: "at.atmosynth.patch#noteEvent.note", kind: "prop", name: Some("note") }
  • RequiredEdgeAdded RequiredEdgeAdded { vertex_id: "at.atmosynth.patch#noteOutputRef", src: "at.atmosynth.patch#noteOutputRef", tgt: "at.atmosynth.patch#noteOutputRef.instanceId", kind: "prop", name: Some("instanceId") }
  • RequiredEdgeAdded RequiredEdgeAdded { vertex_id: "at.atmosynth.patch#noteOutputRef", src: "at.atmosynth.patch#noteOutputRef", tgt: "at.atmosynth.patch#noteOutputRef.noteOutput", kind: "prop", name: Some("noteOutput") }
  • RequiredEdgeAdded RequiredEdgeAdded { vertex_id: "at.atmosynth.patch#notePattern", src: "at.atmosynth.patch#notePattern", tgt: "at.atmosynth.patch#notePattern.bars", kind: "prop", name: Some("bars") }
  • RequiredEdgeAdded RequiredEdgeAdded { vertex_id: "at.atmosynth.patch#notePattern", src: "at.atmosynth.patch#notePattern", tgt: "at.atmosynth.patch#notePattern.resolution", kind: "prop", name: Some("resolution") }
  • RequiredEdgeAdded RequiredEdgeAdded { vertex_id: "at.atmosynth.patch#resolution", src: "at.atmosynth.patch#resolution", tgt: "at.atmosynth.patch#resolution.value", kind: "prop", name: Some("value") }
  • RequiredEdgeAdded RequiredEdgeAdded { vertex_id: "at.atmosynth.patch#alternatePattern", src: "at.atmosynth.patch#alternatePattern", tgt: "at.atmosynth.patch#alternatePattern.bars", kind: "prop", name: Some("bars") }
  • 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 (62)
  • AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#alternatePattern" }
  • AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#alternatePattern.bars" }
  • AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#alternatePattern.events" }
  • AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#alternatePattern.events:items" }
  • 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#midiRoute.from" }
  • AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#moduleInstance.glide" }
  • AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#moduleInstance.notePattern" }
  • AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#moduleInstance.unison" }
  • AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#noteEvent" }
  • AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#noteEvent.at" }
  • AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#noteEvent.hold" }
  • AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#noteEvent.length" }
  • AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#noteEvent.note" }
  • AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#noteEvent.step" }
  • AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#noteEvent.velocity" }
  • AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#noteOutputRef" }
  • AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#noteOutputRef.instanceId" }
  • AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#noteOutputRef.noteOutput" }
  • AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#notePattern" }
  • AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#notePattern.active" }
  • AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#notePattern.alternates" }
  • AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#notePattern.alternates:items" }
  • AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#notePattern.bars" }
  • AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#notePattern.events" }
  • AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#notePattern.events:items" }
  • AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#notePattern.resolution" }
  • AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#resolution" }
  • AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#resolution.unit" }
  • AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch#resolution.value" }
  • AddedVertex AddedVertex { vertex_id: "at.atmosynth.patch:body.tempo" }
  • AddedEdge AddedEdge { src: "at.atmosynth.patch#alternatePattern", tgt: "at.atmosynth.patch#alternatePattern.events", kind: "prop", name: Some("events") }
  • AddedEdge AddedEdge { src: "at.atmosynth.patch#alternatePattern.events", tgt: "at.atmosynth.patch#alternatePattern.events:items", kind: "items", name: None }
  • AddedEdge AddedEdge { src: "at.atmosynth.patch#alternatePattern.events:items", tgt: "at.atmosynth.patch#noteEvent", kind: "ref", name: None }
  • 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#midiRoute", tgt: "at.atmosynth.patch#midiRoute.from", kind: "prop", name: Some("from") }
  • AddedEdge AddedEdge { src: "at.atmosynth.patch#midiRoute.from", tgt: "at.atmosynth.patch#noteOutputRef", kind: "ref", name: None }
  • 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", tgt: "at.atmosynth.patch#moduleInstance.notePattern", kind: "prop", name: Some("notePattern") }
  • AddedEdge AddedEdge { src: "at.atmosynth.patch#moduleInstance", tgt: "at.atmosynth.patch#moduleInstance.unison", kind: "prop", name: Some("unison") }
  • AddedEdge AddedEdge { src: "at.atmosynth.patch#moduleInstance.glide", tgt: "at.atmosynth.patch#glide", kind: "ref", name: None }
  • AddedEdge AddedEdge { src: "at.atmosynth.patch#moduleInstance.notePattern", tgt: "at.atmosynth.patch#notePattern", kind: "ref", name: None }
  • AddedEdge AddedEdge { src: "at.atmosynth.patch#noteEvent", tgt: "at.atmosynth.patch#noteEvent.at", kind: "prop", name: Some("at") }
  • AddedEdge AddedEdge { src: "at.atmosynth.patch#noteEvent", tgt: "at.atmosynth.patch#noteEvent.hold", kind: "prop", name: Some("hold") }
  • AddedEdge AddedEdge { src: "at.atmosynth.patch#noteEvent", tgt: "at.atmosynth.patch#noteEvent.length", kind: "prop", name: Some("length") }
  • AddedEdge AddedEdge { src: "at.atmosynth.patch#noteEvent", tgt: "at.atmosynth.patch#noteEvent.step", kind: "prop", name: Some("step") }
  • AddedEdge AddedEdge { src: "at.atmosynth.patch#noteEvent", tgt: "at.atmosynth.patch#noteEvent.velocity", kind: "prop", name: Some("velocity") }
  • AddedEdge AddedEdge { src: "at.atmosynth.patch#notePattern", tgt: "at.atmosynth.patch#notePattern.active", kind: "prop", name: Some("active") }
  • AddedEdge AddedEdge { src: "at.atmosynth.patch#notePattern", tgt: "at.atmosynth.patch#notePattern.alternates", kind: "prop", name: Some("alternates") }
  • AddedEdge AddedEdge { src: "at.atmosynth.patch#notePattern", tgt: "at.atmosynth.patch#notePattern.events", kind: "prop", name: Some("events") }
  • AddedEdge AddedEdge { src: "at.atmosynth.patch#notePattern.alternates", tgt: "at.atmosynth.patch#notePattern.alternates:items", kind: "items", name: None }
  • AddedEdge AddedEdge { src: "at.atmosynth.patch#notePattern.alternates:items", tgt: "at.atmosynth.patch#alternatePattern", kind: "ref", name: None }
  • AddedEdge AddedEdge { src: "at.atmosynth.patch#notePattern.events", tgt: "at.atmosynth.patch#notePattern.events:items", kind: "items", name: None }
  • AddedEdge AddedEdge { src: "at.atmosynth.patch#notePattern.events:items", tgt: "at.atmosynth.patch#noteEvent", kind: "ref", name: None }
  • AddedEdge AddedEdge { src: "at.atmosynth.patch#notePattern.resolution", tgt: "at.atmosynth.patch#resolution", kind: "ref", name: None }
  • AddedEdge AddedEdge { src: "at.atmosynth.patch#resolution", tgt: "at.atmosynth.patch#resolution.unit", kind: "prop", name: Some("unit") }
  • AddedEdge AddedEdge { src: "at.atmosynth.patch:body", tgt: "at.atmosynth.patch:body.tempo", kind: "prop", name: Some("tempo") }

Migration Guidance

Added Elements

  • AddedVertex { vertex_id: "at.atmosynth.patch#alternatePattern" }
  • AddedVertex { vertex_id: "at.atmosynth.patch#alternatePattern.bars" }
  • AddedVertex { vertex_id: "at.atmosynth.patch#alternatePattern.events" }
  • AddedVertex { vertex_id: "at.atmosynth.patch#alternatePattern.events:items" }
  • 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#midiRoute.from" }
  • AddedVertex { vertex_id: "at.atmosynth.patch#moduleInstance.glide" }
  • AddedVertex { vertex_id: "at.atmosynth.patch#moduleInstance.notePattern" }
  • AddedVertex { vertex_id: "at.atmosynth.patch#moduleInstance.unison" }
  • AddedVertex { vertex_id: "at.atmosynth.patch#noteEvent" }
  • AddedVertex { vertex_id: "at.atmosynth.patch#noteEvent.at" }
  • AddedVertex { vertex_id: "at.atmosynth.patch#noteEvent.hold" }
  • AddedVertex { vertex_id: "at.atmosynth.patch#noteEvent.length" }
  • AddedVertex { vertex_id: "at.atmosynth.patch#noteEvent.note" }
  • AddedVertex { vertex_id: "at.atmosynth.patch#noteEvent.step" }
  • AddedVertex { vertex_id: "at.atmosynth.patch#noteEvent.velocity" }
  • AddedVertex { vertex_id: "at.atmosynth.patch#noteOutputRef" }
  • AddedVertex { vertex_id: "at.atmosynth.patch#noteOutputRef.instanceId" }
  • AddedVertex { vertex_id: "at.atmosynth.patch#noteOutputRef.noteOutput" }
  • AddedVertex { vertex_id: "at.atmosynth.patch#notePattern" }
  • AddedVertex { vertex_id: "at.atmosynth.patch#notePattern.active" }
  • AddedVertex { vertex_id: "at.atmosynth.patch#notePattern.alternates" }
  • AddedVertex { vertex_id: "at.atmosynth.patch#notePattern.alternates:items" }
  • AddedVertex { vertex_id: "at.atmosynth.patch#notePattern.bars" }
  • AddedVertex { vertex_id: "at.atmosynth.patch#notePattern.events" }
  • AddedVertex { vertex_id: "at.atmosynth.patch#notePattern.events:items" }
  • AddedVertex { vertex_id: "at.atmosynth.patch#notePattern.resolution" }
  • AddedVertex { vertex_id: "at.atmosynth.patch#resolution" }
  • AddedVertex { vertex_id: "at.atmosynth.patch#resolution.unit" }
  • AddedVertex { vertex_id: "at.atmosynth.patch#resolution.value" }
  • AddedVertex { vertex_id: "at.atmosynth.patch:body.tempo" }

Constraint Changes

  • ConstraintAdded ConstraintAdded { vertex_id: "at.atmosynth.patch#parameterValue.value", sort: "maxLength", value: "200" }

Additional Notes

  • Breaking: RequiredEdgeAdded { vertex_id: "at.atmosynth.patch#noteEvent", src: "at.atmosynth.patch#noteEvent", tgt: "at.atmosynth.patch#noteEvent.note", kind: "prop", name: Some("note") }
  • Breaking: RequiredEdgeAdded { vertex_id: "at.atmosynth.patch#notePattern", src: "at.atmosynth.patch#notePattern", tgt: "at.atmosynth.patch#notePattern.bars", kind: "prop", name: Some("bars") }
  • Breaking: RequiredEdgeAdded { vertex_id: "at.atmosynth.patch#notePattern", src: "at.atmosynth.patch#notePattern", tgt: "at.atmosynth.patch#notePattern.resolution", kind: "prop", name: Some("resolution") }
  • Breaking: RequiredEdgeAdded { vertex_id: "at.atmosynth.patch#resolution", src: "at.atmosynth.patch#resolution", tgt: "at.atmosynth.patch#resolution.value", kind: "prop", name: Some("value") }
  • Breaking: RequiredEdgeAdded { vertex_id: "at.atmosynth.patch#alternatePattern", src: "at.atmosynth.patch#alternatePattern", tgt: "at.atmosynth.patch#alternatePattern.bars", kind: "prop", name: Some("bars") }
  • Breaking: RequiredEdgeAdded { vertex_id: "at.atmosynth.patch#noteOutputRef", src: "at.atmosynth.patch#noteOutputRef", tgt: "at.atmosynth.patch#noteOutputRef.instanceId", kind: "prop", name: Some("instanceId") }
  • Breaking: RequiredEdgeAdded { vertex_id: "at.atmosynth.patch#noteOutputRef", src: "at.atmosynth.patch#noteOutputRef", tgt: "at.atmosynth.patch#noteOutputRef.noteOutput", kind: "prop", name: Some("noteOutput") }
  • Breaking: KindChanged { vertex_id: "at.atmosynth.patch#parameterValue.value", old_kind: "unknown", new_kind: "string" }
  • Non-breaking: AddedEdge { src: "at.atmosynth.patch#alternatePattern", tgt: "at.atmosynth.patch#alternatePattern.events", kind: "prop", name: Some("events") }
  • Non-breaking: AddedEdge { src: "at.atmosynth.patch#alternatePattern.events", tgt: "at.atmosynth.patch#alternatePattern.events:items", kind: "items", name: None }
  • Non-breaking: AddedEdge { src: "at.atmosynth.patch#alternatePattern.events:items", tgt: "at.atmosynth.patch#noteEvent", kind: "ref", name: None }
  • 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#midiRoute", tgt: "at.atmosynth.patch#midiRoute.from", kind: "prop", name: Some("from") }
  • Non-breaking: AddedEdge { src: "at.atmosynth.patch#midiRoute.from", tgt: "at.atmosynth.patch#noteOutputRef", kind: "ref", name: None }
  • 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", tgt: "at.atmosynth.patch#moduleInstance.notePattern", kind: "prop", name: Some("notePattern") }
  • Non-breaking: AddedEdge { src: "at.atmosynth.patch#moduleInstance", tgt: "at.atmosynth.patch#moduleInstance.unison", kind: "prop", name: Some("unison") }
  • 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#moduleInstance.notePattern", tgt: "at.atmosynth.patch#notePattern", kind: "ref", name: None }
  • Non-breaking: AddedEdge { src: "at.atmosynth.patch#noteEvent", tgt: "at.atmosynth.patch#noteEvent.at", kind: "prop", name: Some("at") }
  • Non-breaking: AddedEdge { src: "at.atmosynth.patch#noteEvent", tgt: "at.atmosynth.patch#noteEvent.hold", kind: "prop", name: Some("hold") }
  • Non-breaking: AddedEdge { src: "at.atmosynth.patch#noteEvent", tgt: "at.atmosynth.patch#noteEvent.length", kind: "prop", name: Some("length") }
  • Non-breaking: AddedEdge { src: "at.atmosynth.patch#noteEvent", tgt: "at.atmosynth.patch#noteEvent.step", kind: "prop", name: Some("step") }
  • Non-breaking: AddedEdge { src: "at.atmosynth.patch#noteEvent", tgt: "at.atmosynth.patch#noteEvent.velocity", kind: "prop", name: Some("velocity") }
  • Non-breaking: AddedEdge { src: "at.atmosynth.patch#notePattern", tgt: "at.atmosynth.patch#notePattern.active", kind: "prop", name: Some("active") }
  • Non-breaking: AddedEdge { src: "at.atmosynth.patch#notePattern", tgt: "at.atmosynth.patch#notePattern.alternates", kind: "prop", name: Some("alternates") }
  • Non-breaking: AddedEdge { src: "at.atmosynth.patch#notePattern", tgt: "at.atmosynth.patch#notePattern.events", kind: "prop", name: Some("events") }
  • Non-breaking: AddedEdge { src: "at.atmosynth.patch#notePattern.alternates", tgt: "at.atmosynth.patch#notePattern.alternates:items", kind: "items", name: None }
  • Non-breaking: AddedEdge { src: "at.atmosynth.patch#notePattern.alternates:items", tgt: "at.atmosynth.patch#alternatePattern", kind: "ref", name: None }
  • Non-breaking: AddedEdge { src: "at.atmosynth.patch#notePattern.events", tgt: "at.atmosynth.patch#notePattern.events:items", kind: "items", name: None }
  • Non-breaking: AddedEdge { src: "at.atmosynth.patch#notePattern.events:items", tgt: "at.atmosynth.patch#noteEvent", kind: "ref", name: None }
  • Non-breaking: AddedEdge { src: "at.atmosynth.patch#notePattern.resolution", tgt: "at.atmosynth.patch#resolution", kind: "ref", name: None }
  • Non-breaking: AddedEdge { src: "at.atmosynth.patch#resolution", tgt: "at.atmosynth.patch#resolution.unit", kind: "prop", name: Some("unit") }
  • Non-breaking: AddedEdge { src: "at.atmosynth.patch:body", tgt: "at.atmosynth.patch:body.tempo", kind: "prop", name: Some("tempo") }
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 +
          "tempo": {
31 +
            "type": "integer",
32 +
            "maximum": 300,
33 +
            "minimum": 20,
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 +
          },
30 36
          "types": {
31 37
            "type": "array",
32 38
            "items": {
33 39
              "type": "string",
34 40
              "knownValues": [
35 41
                "Lead",
36 42
                "Pad",
37 43
                "Bass",
38 44
                "Plucked",
39 45
                "Percussion",
40 46
                "Keys",
41 47
                "Brass",
42 48
                "Strings",
43 49
                "Vocal",
44 50
                "SFX"
45 51
              ]
46 52
            },
47 53
            "description": "Zero or more of the ten fixed types. A patch may carry several."
48 54
          },
49 55
          "output": {
50 56
            "ref": "#outputRef",
51 57
            "type": "ref",
52 58
            "description": "Which instance reaches the audio output."
53 59
          },
54 60
          "createdAt": {
55 61
            "type": "string",
56 62
            "format": "datetime"
57 63
          },
58 64
          "forkedFrom": {
59 65
            "ref": "#lineage",
60 66
            "type": "ref"
61 67
          },
62 68
          "connections": {
63 69
            "type": "array",
64 70
            "items": {
65 71
              "ref": "#connection",
66 72
              "type": "ref"
67 73
            }
68 74
          },
69 75
          "description": {
70 76
            "type": "string",
71 77
            "maxLength": 3000
72 78
          },
73 79
          "midiRouting": {
74 80
            "type": "array",
75 81
            "items": {
76 82
              "ref": "#midiRoute",
77 83
              "type": "ref"
78 84
            },
79 85
            "description": "Which module instances receive MIDI input."
80 86
          },
81 87
          "moduleInstances": {
82 88
            "type": "array",
83 89
            "items": {
84 90
              "ref": "#moduleInstance",
85 91
              "type": "ref"
86 92
            }
87 93
          },
88 94
          "descriptionVersion": {
89 95
            "type": "integer",
90 96
            "minimum": 1,
91 97
            "description": "Version of the patch description this record follows."
92 98
          }
93 99
        }
94 100
      },
95 101
      "description": "A patch, held in its creator's own repository."
96 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 +
    },
97 133
    "lineage": {
98 134
      "type": "object",
99 135
      "required": [
100 136
        "uri",
101 137
        "creatorDid"
102 138
      ],
103 139
      "properties": {
104 140
        "uri": {
105 141
          "type": "string",
106 142
          "format": "at-uri"
107 143
        },
108 144
        "patchId": {
109 145
          "type": "string",
110 146
          "maxLength": 128
111 147
        },
112 148
        "creatorDid": {
113 149
          "type": "string",
114 150
          "format": "did"
115 151
        }
116 152
      },
117 153
      "description": "The patch this one was forked from, and its creator. Preserved even when the source is later deleted."
118 154
    },
119 155
    "inputRef": {
120 156
      "type": "object",
121 157
      "required": [
122 158
        "instanceId",
123 159
        "audioInput"
124 160
      ],
125 161
      "properties": {
126 162
        "audioInput": {
127 163
          "type": "string",
128 164
          "maxLength": 64,
129 165
          "minLength": 1
130 166
        },
131 167
        "instanceId": {
132 168
          "type": "string",
133 169
          "maxLength": 64,
134 170
          "minLength": 1
135 171
        }
136 172
      }
137 173
    },
138 174
    "position": {
139 175
      "type": "object",
140 176
      "required": [
141 177
        "x",
142 178
        "y"
143 179
      ],
144 180
      "properties": {
145 181
        "x": {
146 182
          "type": "integer"
147 183
        },
148 184
        "y": {
149 185
          "type": "integer"
150 186
        }
151 187
      }
152 188
    },
153 189
    "midiRoute": {
154 190
      "type": "object",
155 191
      "required": [
156 192
        "instanceId",
157 193
        "midiInput"
158 194
      ],
159 195
      "properties": {
196 +
        "from": {
197 +
          "ref": "#noteOutputRef",
198 +
          "type": "ref",
199 +
          "description": "The note output these notes leave. Absent where they come from the player."
200 +
        },
160 201
        "midiInput": {
161 202
          "type": "string",
162 203
          "maxLength": 64,
163 204
          "minLength": 1
164 205
        },
165 206
        "instanceId": {
166 207
          "type": "string",
167 208
          "maxLength": 64,
168 209
          "minLength": 1
169 210
        }
170 -
      }
211 +
      },
212 +
      "description": "Where one instance's notes come from. `instanceId` and `midiInput` name the MIDI input they arrive at; `from` names the note output they leave. **A route with no `from` comes from the player** — the on-screen keys, the computer keyboard and every MIDI device at once — which is what every route written before note sources existed says, and what it goes on saying."
171 213
    },
172 214
    "moduleRef": {
173 215
      "type": "object",
174 216
      "required": [
175 217
        "moduleId",
176 218
        "versionKey",
177 219
        "authorDid"
178 220
      ],
179 221
      "properties": {
180 222
        "moduleId": {
181 223
          "type": "string",
182 224
          "maxLength": 128,
183 225
          "minLength": 1
184 226
        },
185 227
        "authorDid": {
186 228
          "type": "string",
187 229
          "format": "did"
188 230
        },
189 231
        "versionKey": {
190 232
          "type": "string",
191 233
          "maxLength": 128,
192 234
          "minLength": 1
193 235
        }
194 236
      },
195 237
      "description": "A pin to one exact published version of a module. Resolving it fetches that record, whoever authored it."
196 238
    },
239 +
    "noteEvent": {
240 +
      "type": "object",
241 +
      "required": [
242 +
        "note"
243 +
      ],
244 +
      "properties": {
245 +
        "at": {
246 +
          "type": "integer",
247 +
          "minimum": 0,
248 +
          "description": "The tick of the loop this note is struck at, counted from its start at 96 ticks to the beat. Ticks rather than steps of the grid, because a note is at a moment and the grid is a guide over it: 96 is divided exactly by every grid this description offers, so a note keeps its moment however the grid is changed."
249 +
        },
250 +
        "hold": {
251 +
          "type": "integer",
252 +
          "minimum": 1,
253 +
          "description": "How many ticks this note is held for. Counted in ticks rather than in seconds for the reason the start is: a phrase written at 90 is the same phrase, held notes and all, at 140. A note is cut off by the loop's end and by the next note of its own pitch, since the same pitch overlapping itself is one voice rather than two."
254 +
        },
255 +
        "note": {
256 +
          "type": "integer",
257 +
          "maximum": 127,
258 +
          "minimum": 0,
259 +
          "description": "The MIDI note number. 60 is middle C."
260 +
        },
261 +
        "step": {
262 +
          "type": "integer",
263 +
          "minimum": 0,
264 +
          "description": "Which step of the grid this note is on, counted from the start of the loop. The older way of saying where a note is, read from every pattern published before a note carried a tick and written by none."
265 +
        },
266 +
        "length": {
267 +
          "type": "integer",
268 +
          "minimum": 1,
269 +
          "description": "How many steps of the grid this note is held for, where its start is written as a step. Absent is one, which is what every pattern written before notes had a length says."
270 +
        },
271 +
        "velocity": {
272 +
          "type": "integer",
273 +
          "maximum": 127,
274 +
          "minimum": 1,
275 +
          "description": "How hard this note is struck, on the MIDI scale. It is part of what is played rather than how it is listened to — a phrase is written with its accents in it, and a loop where every note lands identically is a loop nobody wrote. Optional permanently: a note that says nothing is struck at 100, which is what every pattern written before a note could say says, and a note struck at 100 writes no field. Nought is not offered, since a note that could never be heard is a note taken off the loop rather than one written onto it."
276 +
        }
277 +
      },
278 +
      "description": "One note struck at one moment of the loop, held from it, and struck as hard as it says. It is written one of two ways: a note written now says the tick it is at and how many ticks it is held for, and a note written while the grid was part of what a note was says the step of that grid and how many of those steps it was held for. Both are read; the first is written."
279 +
    },
197 280
    "outputRef": {
198 281
      "type": "object",
199 282
      "required": [
200 283
        "instanceId",
201 284
        "audioOutput"
202 285
      ],
203 286
      "properties": {
204 287
        "instanceId": {
205 288
          "type": "string",
206 289
          "maxLength": 64,
207 290
          "minLength": 1
208 291
        },
209 292
        "audioOutput": {
210 293
          "type": "string",
211 294
          "maxLength": 64,
212 295
          "minLength": 1
213 296
        }
214 297
      }
215 298
    },
216 299
    "connection": {
217 300
      "type": "object",
218 301
      "required": [
219 302
        "from",
220 303
        "to"
221 304
      ],
222 305
      "properties": {
223 306
        "to": {
224 307
          "ref": "#inputRef",
225 308
          "type": "ref"
226 309
        },
227 310
        "from": {
228 311
          "ref": "#outputRef",
229 312
          "type": "ref"
230 313
        }
231 314
      },
232 315
      "description": "An audio connection between two module instances, naming the declared ports at each end."
233 316
    },
317 +
    "resolution": {
318 +
      "type": "object",
319 +
      "required": [
320 +
        "value"
321 +
      ],
322 +
      "properties": {
323 +
        "unit": {
324 +
          "type": "string",
325 +
          "description": "Three of them into the time of two, or not. Absent is normal. A dotted grid is not offered: it does not divide a bar evenly, so it would leave a pattern whose steps do not line up with its own loop.",
326 +
          "knownValues": [
327 +
            "normal",
328 +
            "triplet"
329 +
          ]
330 +
        },
331 +
        "value": {
332 +
          "type": "string",
333 +
          "description": "The note value one step is worth. A bar is four beats.",
334 +
          "knownValues": [
335 +
            "bar",
336 +
            "1/2",
337 +
            "1/4",
338 +
            "1/8",
339 +
            "1/16",
340 +
            "1/32",
341 +
            "1/64",
342 +
            "1/128"
343 +
          ]
344 +
        }
345 +
      },
346 +
      "description": "One note value, as a length and what that length is multiplied by. The same vocabulary the player's own musical time is counted in."
347 +
    },
234 348
    "midiControl": {
235 349
      "type": "object",
236 350
      "required": [
237 351
        "parameter",
238 352
        "controller"
239 353
      ],
240 354
      "properties": {
241 355
        "parameter": {
242 356
          "type": "string",
243 357
          "maxLength": 64,
244 358
          "minLength": 1,
245 359
          "description": "The id of the exposed parameter this control moves. One parameter is moved by at most one controller; one controller may move several parameters."
246 360
        },
247 361
        "controller": {
248 362
          "type": "integer",
249 363
          "maximum": 127,
250 364
          "minimum": 0,
251 365
          "description": "The control change number. Five are spoken for by MIDI itself and cannot be bound: 64, the sustain pedal, and 6, 38, 100 and 101, which carry registered-parameter traffic."
252 366
        }
253 367
      },
254 368
      "description": "One MIDI control change bound to one of the module's exposed parameters. The controller's 0 to 127 sweeps the parameter across the range the module declares, or, where the module declares a closed value set instead, across those values in order. A control is read from every input on every channel, like every other MIDI message here: there is nothing to configure."
255 369
    },
370 +
    "notePattern": {
371 +
      "type": "object",
372 +
      "required": [
373 +
        "bars",
374 +
        "resolution"
375 +
      ],
376 +
      "properties": {
377 +
        "bars": {
378 +
          "type": "integer",
379 +
          "maximum": 8,
380 +
          "minimum": 1,
381 +
          "description": "How long the first loop is, in bars of four beats. There is no time signature anywhere here, and 4/4 is what a bar means to everyone who has not been told otherwise. Each loop keeps its own length: one may be four bars and the next five."
382 +
        },
383 +
        "active": {
384 +
          "type": "integer",
385 +
          "minimum": 0,
386 +
          "description": "Which loop is played, counting the one written here as zero. Absent is the first. It is in the record because it is what a visitor opening the patch hears — unlike stopping a loop, which is how a browser is listening and is written nowhere. Every loop counts from the same downbeat and wraps at its own length whether or not it is the one being heard, so switching between them reveals where the other had got to rather than starting it."
387 +
        },
388 +
        "events": {
389 +
          "type": "array",
390 +
          "items": {
391 +
            "ref": "#noteEvent",
392 +
            "type": "ref"
393 +
          },
394 +
          "maxLength": 2048,
395 +
          "description": "The notes in the first loop. A moment carrying no note is a rest; a note starting outside the loop's length is not played."
396 +
        },
397 +
        "alternates": {
398 +
          "type": "array",
399 +
          "items": {
400 +
            "ref": "#alternatePattern",
401 +
            "type": "ref"
402 +
          },
403 +
          "maxLength": 7,
404 +
          "description": "The loops after the first. Absent while the sequencer holds a single pattern, which is what every sequencer written before there could be more than one says."
405 +
        },
406 +
        "resolution": {
407 +
          "ref": "#resolution",
408 +
          "type": "ref",
409 +
          "description": "The grid every loop on this sequencer is drawn and snapped to. It is a guide and not a part of what is played: it decides where a note being put down lands, and changing it moves nothing already written, so a loop may hold a note no line of the current grid passes through."
410 +
        }
411 +
      },
412 +
      "description": "The loops one sequencer holds, and the grid they are written on. A loop is a whole number of bars and the notes in it are counted in ticks of the beat, so a pattern means the same thing at any tempo — what a tick is worth in seconds is the player's tempo's business and not the pattern's. The first loop is written here, where a pattern has always been written; any after it are alternates."
413 +
    },
414 +
    "noteOutputRef": {
415 +
      "type": "object",
416 +
      "required": [
417 +
        "instanceId",
418 +
        "noteOutput"
419 +
      ],
420 +
      "properties": {
421 +
        "instanceId": {
422 +
          "type": "string",
423 +
          "maxLength": 64,
424 +
          "minLength": 1
425 +
        },
426 +
        "noteOutput": {
427 +
          "type": "string",
428 +
          "maxLength": 64,
429 +
          "minLength": 1
430 +
        }
431 +
      }
432 +
    },
256 433
    "moduleInstance": {
257 434
      "type": "object",
258 435
      "required": [
259 436
        "instanceId",
260 437
        "module",
261 438
        "voiceScope"
262 439
      ],
263 440
      "properties": {
441 +
        "glide": {
442 +
          "ref": "#glide",
443 +
          "type": "ref",
444 +
          "description": "Whether the notes this instance plays slide into one another, and how. It lives here, in the patch, beside the unison and for the unison's reason: how a line slides is a decision about this use of the module, and forks with the patch. The player's own glide is a setting of their browser and says nothing about this one, so a loop written to slide slides for everyone who opens the patch, and a loop that does not is never made monophonic by the player's. Optional permanently: an instance that says nothing has no glide, which is what every record written before this field existed says."
445 +
        },
264 446
        "module": {
265 447
          "ref": "#moduleRef",
266 448
          "type": "ref"
267 449
        },
450 +
        "unison": {
451 +
          "type": "integer",
452 +
          "maximum": 6,
453 +
          "minimum": 1,
454 +
          "description": "How many voices each note this instance plays is sounded by, detuned narrowly against each other and centred on the note. It lives here, in the patch, for the reason the pattern above it does: how a loop is voiced is a decision about this use of the module. The player's own unison is a setting of their browser and says nothing about this one, so a loop written thick stays thick for everyone who opens the patch. Optional permanently: an instance that says nothing plays one voice per note, which is what every record written before this field existed says."
455 +
        },
268 456
        "enabled": {
269 457
          "type": "boolean",
270 458
          "description": "Whether this instance does its work. An instance that is switched off makes no sound of its own, and anything reaching its audio inputs leaves its audio outputs unaltered. Optional permanently: an instance that says nothing is on, which is what every record written before this field existed says."
271 459
        },
272 460
        "position": {
273 461
          "ref": "#position",
274 462
          "type": "ref",
275 463
          "description": "Where the creator placed this instance in the patch's arrangement, so the arrangement travels with the patch and a fork inherits it. Optional permanently, and the only field in either description that exists for presentation."
276 464
        },
277 465
        "instanceId": {
278 466
          "type": "string",
279 467
          "maxLength": 64,
280 468
          "minLength": 1
281 469
        },
282 470
        "voiceScope": {
283 471
          "enum": [
284 472
            "perNote",
285 473
            "perPatch"
286 474
          ],
287 475
          "type": "string",
288 476
          "description": "Whether this instance is built once for each sounding note or once for the whole patch. One of the two, always: the choice is made when the module is added, from what the module is, and is the creator's to move afterwards. There is no third value and no leaving it out — an instance that said nothing left the answer to be worked out afresh every time the patch was played, which is a decision nobody could see and nobody could change."
289 477
        },
478 +
        "notePattern": {
479 +
          "ref": "#notePattern",
480 +
          "type": "ref",
481 +
          "description": "The pattern this instance loops, where its module is a sequencer. It lives here, in the patch, for the reason a sample slot fill and a control binding do: what is played is a decision about this use of the module, and writing one never touches the module's record. Absent on every instance whose module is not a note source."
482 +
        },
290 483
        "midiControls": {
291 484
          "type": "array",
292 485
          "items": {
293 486
            "ref": "#midiControl",
294 487
            "type": "ref"
295 488
          },
296 489
          "description": "Which MIDI control changes move this instance's parameters while it is played. A binding lives here, in the patch, because which knob moves what is a decision about this use of the module and not about the module."
297 490
        },
298 491
        "parameterValues": {
299 492
          "type": "array",
300 493
          "items": {
301 494
            "ref": "#parameterValue",
302 495
            "type": "ref"
303 496
          }
304 497
        },
305 498
        "sampleSlotFills": {
306 499
          "type": "array",
307 500
          "items": {
308 501
            "ref": "#sampleSlotFill",
309 502
            "type": "ref"
310 503
          },
311 504
          "description": "Samples this instance supplies for the module's declared slots. A fill lives here, in the patch, so writing one never touches the module."
312 505
        }
313 506
      },
314 507
      "description": "One use of one module version. A patch may use the same module more than once; each instance is separately addressable and carries its own parameter values and slot fills."
315 508
    },
316 509
    "parameterValue": {
317 510
      "type": "object",
318 511
      "required": [
319 512
        "id"
320 513
      ],
321 514
      "properties": {
322 515
        "id": {
323 516
          "type": "string",
324 517
          "maxLength": 64,
325 518
          "minLength": 1
326 519
        },
327 520
        "value": {
328 -
          "type": "unknown",
329 -
          "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."
521 +
          "type": "string",
522 +
          "maxLength": 200,
523 +
          "description": "The value this patch sets the parameter to, always as text. A number is its decimal form — \"0.5\", and \"2\" for a whole one — because the ATproto data model has no floating-point type and a string is the only type that carries both a number and a word. Where the module declares a closed set of values instead, this is one of those strings, and a label that looks like a number stays the label it is: the module's own description says which of the two this parameter is."
330 524
        },
331 525
        "useDefault": {
332 526
          "type": "boolean",
333 527
          "description": "Set where the patch explicitly defers to the module's default rather than recording a value."
334 528
        }
335 529
      },
336 530
      "description": "A value for one of the module's exposed parameters, or an explicit fall-back to the module's declared default."
337 531
    },
338 532
    "sampleSlotFill": {
339 533
      "type": "object",
340 534
      "required": [
341 535
        "slotId",
342 536
        "blob",
343 537
        "ownerDid"
344 538
      ],
345 539
      "properties": {
346 540
        "blob": {
347 541
          "type": "blob",
348 542
          "accept": [
349 543
            "audio/wav"
350 544
          ],
351 545
          "maxSize": 2097152
352 546
        },
353 547
        "slotId": {
354 548
          "type": "string",
355 549
          "maxLength": 64,
356 550
          "minLength": 1
357 551
        },
358 552
        "ownerDid": {
359 553
          "type": "string",
360 554
          "format": "did"
361 555
        }
362 556
      }
557 +
    },
558 +
    "alternatePattern": {
559 +
      "type": "object",
560 +
      "required": [
561 +
        "bars"
562 +
      ],
563 +
      "properties": {
564 +
        "bars": {
565 +
          "type": "integer",
566 +
          "maximum": 8,
567 +
          "minimum": 1,
568 +
          "description": "How long this loop is, in bars of four beats."
569 +
        },
570 +
        "events": {
571 +
          "type": "array",
572 +
          "items": {
573 +
            "ref": "#noteEvent",
574 +
            "type": "ref"
575 +
          },
576 +
          "maxLength": 2048,
577 +
          "description": "The notes in this loop."
578 +
        }
579 +
      },
580 +
      "description": "One of the loops after the first on a sequencer. It has its own length and its own notes, and shares the grid written beside the first."
363 581
    }
364 582
  },
365 583
  "$type": "com.atproto.lexicon.schema",
366 584
  "lexicon": 1,
367 585
  "description": "A synth patch: which modules it uses, how they are wired, what their parameters are set to, and how it is played. A patch plus the module records it pins is everything needed to reproduce it."
368 586
}

Compare Other Versions

Lexicon Garden

@