at.atmosynth.patch

atmosynth.at

{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "alternatePattern": {
      "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.",
      "properties": {
        "bars": {
          "description": "How long this loop is, in bars of four beats.",
          "maximum": 8,
          "minimum": 1,
          "type": "integer"
        },
        "events": {
          "description": "The notes in this loop.",
          "items": {
            "ref": "#noteEvent",
            "type": "ref"
          },
          "maxLength": 2048,
          "type": "array"
        },
        "name": {
          "description": "What the creator called this loop. Optional permanently: a loop that says nothing is called by its place.",
          "maxGraphemes": 32,
          "maxLength": 320,
          "minLength": 1,
          "type": "string"
        }
      },
      "required": [
        "bars"
      ],
      "type": "object"
    },
    "connection": {
      "description": "An audio connection between two module instances, naming the declared ports at each end.",
      "properties": {
        "from": {
          "ref": "#outputRef",
          "type": "ref"
        },
        "to": {
          "ref": "#inputRef",
          "type": "ref"
        }
      },
      "required": [
        "from",
        "to"
      ],
      "type": "object"
    },
    "glide": {
      "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.",
      "properties": {
        "fromLast": {
          "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.",
          "type": "boolean"
        },
        "ms": {
          "description": "How long a note takes to reach the next, in milliseconds.",
          "maximum": 5000,
          "minimum": 1,
          "type": "integer"
        },
        "rate": {
          "description": "Or: how long, as a note value at the tempo. The same vocabulary the grid is written in.",
          "knownValues": [
            "bar",
            "1/2",
            "1/4",
            "1/8",
            "1/16",
            "1/32",
            "1/64",
            "1/128"
          ],
          "type": "string"
        }
      },
      "type": "object"
    },
    "inputRef": {
      "properties": {
        "audioInput": {
          "maxLength": 64,
          "minLength": 1,
          "type": "string"
        },
        "instanceId": {
          "maxLength": 64,
          "minLength": 1,
          "type": "string"
        }
      },
      "required": [
        "instanceId",
        "audioInput"
      ],
      "type": "object"
    },
    "inputRoute": {
      "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.",
      "properties": {
        "from": {
          "description": "The note output these notes leave: a keyboard's, a sequencer's or a note range's.",
          "ref": "#noteOutputRef",
          "type": "ref"
        },
        "instanceId": {
          "description": "The sequencer or the note range, at its input.",
          "maxLength": 64,
          "minLength": 1,
          "type": "string"
        }
      },
      "required": [
        "from",
        "instanceId"
      ],
      "type": "object"
    },
    "lineage": {
      "description": "The patch this one was forked from, and its creator. Preserved even when the source is later deleted.",
      "properties": {
        "creatorDid": {
          "format": "did",
          "type": "string"
        },
        "patchId": {
          "maxLength": 128,
          "type": "string"
        },
        "uri": {
          "format": "at-uri",
          "type": "string"
        }
      },
      "required": [
        "uri",
        "creatorDid"
      ],
      "type": "object"
    },
    "main": {
      "description": "A patch, held in its creator's own repository.",
      "key": "tid",
      "record": {
        "properties": {
          "connections": {
            "items": {
              "ref": "#connection",
              "type": "ref"
            },
            "type": "array"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "description": {
            "maxLength": 3000,
            "type": "string"
          },
          "descriptionVersion": {
            "description": "Version of the patch description this record follows.",
            "minimum": 1,
            "type": "integer"
          },
          "forkedFrom": {
            "ref": "#lineage",
            "type": "ref"
          },
          "inputRouting": {
            "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.",
            "items": {
              "ref": "#inputRoute",
              "type": "ref"
            },
            "type": "array"
          },
          "midiRouting": {
            "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.",
            "items": {
              "ref": "#midiRoute",
              "type": "ref"
            },
            "type": "array"
          },
          "moduleInstances": {
            "items": {
              "ref": "#moduleInstance",
              "type": "ref"
            },
            "type": "array"
          },
          "name": {
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "output": {
            "description": "Which instance reaches the audio output.",
            "ref": "#outputRef",
            "type": "ref"
          },
          "patternRouting": {
            "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.",
            "items": {
              "ref": "#patternRoute",
              "type": "ref"
            },
            "type": "array"
          },
          "tags": {
            "description": "Freely created tags, lower-cased on write so one hashtag matches one set of patches.",
            "items": {
              "maxLength": 128,
              "type": "string"
            },
            "type": "array"
          },
          "tempo": {
            "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.",
            "maximum": 300,
            "minimum": 20,
            "type": "integer"
          },
          "types": {
            "description": "Zero or more of the ten fixed types. A patch may carry several.",
            "items": {
              "knownValues": [
                "Lead",
                "Pad",
                "Bass",
                "Plucked",
                "Percussion",
                "Keys",
                "Brass",
                "Strings",
                "Vocal",
                "SFX"
              ],
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "descriptionVersion",
          "name",
          "description",
          "moduleInstances",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "midiControl": {
      "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.",
      "properties": {
        "controller": {
          "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.",
          "maximum": 127,
          "minimum": 0,
          "type": "integer"
        },
        "from": {
          "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.",
          "maxLength": 200,
          "type": "string"
        },
        "parameter": {
          "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.",
          "maxLength": 64,
          "minLength": 1,
          "type": "string"
        },
        "to": {
          "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.",
          "maxLength": 200,
          "type": "string"
        }
      },
      "required": [
        "parameter",
        "controller"
      ],
      "type": "object"
    },
    "midiRoute": {
      "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.",
      "properties": {
        "from": {
          "description": "The note output these notes leave. Absent where they come from the player.",
          "ref": "#noteOutputRef",
          "type": "ref"
        },
        "instanceId": {
          "maxLength": 64,
          "minLength": 1,
          "type": "string"
        },
        "midiInput": {
          "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.",
          "maxLength": 64,
          "minLength": 1,
          "type": "string"
        }
      },
      "required": [
        "instanceId",
        "midiInput"
      ],
      "type": "object"
    },
    "moduleInstance": {
      "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.",
      "properties": {
        "assignedNote": {
          "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.",
          "maximum": 127,
          "minimum": 0,
          "type": "integer"
        },
        "enabled": {
          "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.",
          "type": "boolean"
        },
        "glide": {
          "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.",
          "ref": "#glide",
          "type": "ref"
        },
        "instanceId": {
          "maxLength": 64,
          "minLength": 1,
          "type": "string"
        },
        "midiControls": {
          "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.",
          "items": {
            "ref": "#midiControl",
            "type": "ref"
          },
          "type": "array"
        },
        "module": {
          "ref": "#moduleRef",
          "type": "ref"
        },
        "name": {
          "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.",
          "maxGraphemes": 32,
          "maxLength": 320,
          "minLength": 1,
          "type": "string"
        },
        "notePattern": {
          "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.",
          "ref": "#notePattern",
          "type": "ref"
        },
        "noteRange": {
          "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.",
          "ref": "#noteRange",
          "type": "ref"
        },
        "parameterValues": {
          "items": {
            "ref": "#parameterValue",
            "type": "ref"
          },
          "type": "array"
        },
        "position": {
          "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.",
          "ref": "#position",
          "type": "ref"
        },
        "sampleSlotFills": {
          "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.",
          "items": {
            "ref": "#sampleSlotFill",
            "type": "ref"
          },
          "type": "array"
        },
        "scene": {
          "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.",
          "maximum": 25,
          "minimum": 0,
          "type": "integer"
        },
        "sceneLaunch": {
          "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.",
          "ref": "#sceneLaunch",
          "type": "ref"
        },
        "scenes": {
          "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.",
          "items": {
            "ref": "#scene",
            "type": "ref"
          },
          "maxLength": 26,
          "type": "array"
        },
        "song": {
          "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.",
          "ref": "#song",
          "type": "ref"
        },
        "thru": {
          "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.",
          "type": "boolean"
        },
        "transpose": {
          "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.",
          "maximum": 127,
          "minimum": -127,
          "type": "integer"
        },
        "unison": {
          "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.",
          "maximum": 6,
          "minimum": 1,
          "type": "integer"
        },
        "voiceScope": {
          "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.",
          "enum": [
            "perNote",
            "perPatch"
          ],
          "type": "string"
        }
      },
      "required": [
        "instanceId",
        "module",
        "voiceScope"
      ],
      "type": "object"
    },
    "moduleRef": {
      "description": "A pin to one exact published version of a module. Resolving it fetches that record, whoever authored it.",
      "properties": {
        "authorDid": {
          "format": "did",
          "type": "string"
        },
        "moduleId": {
          "maxLength": 128,
          "minLength": 1,
          "type": "string"
        },
        "versionKey": {
          "description": "The pinned version's record key, which is also the `versionKey` that version carries. A reader fetches the module record at this key.",
          "maxLength": 128,
          "minLength": 1,
          "type": "string"
        }
      },
      "required": [
        "moduleId",
        "versionKey",
        "authorDid"
      ],
      "type": "object"
    },
    "noteEvent": {
      "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.",
      "properties": {
        "at": {
          "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.",
          "minimum": 0,
          "type": "integer"
        },
        "hold": {
          "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.",
          "minimum": 1,
          "type": "integer"
        },
        "length": {
          "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.",
          "minimum": 1,
          "type": "integer"
        },
        "note": {
          "description": "The MIDI note number. 60 is middle C.",
          "maximum": 127,
          "minimum": 0,
          "type": "integer"
        },
        "probability": {
          "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.",
          "maximum": 100,
          "minimum": 1,
          "type": "integer"
        },
        "step": {
          "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.",
          "minimum": 0,
          "type": "integer"
        },
        "velocity": {
          "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.",
          "maximum": 127,
          "minimum": 1,
          "type": "integer"
        }
      },
      "required": [
        "note"
      ],
      "type": "object"
    },
    "noteOutputRef": {
      "properties": {
        "instanceId": {
          "maxLength": 64,
          "minLength": 1,
          "type": "string"
        },
        "noteOutput": {
          "maxLength": 64,
          "minLength": 1,
          "type": "string"
        }
      },
      "required": [
        "instanceId",
        "noteOutput"
      ],
      "type": "object"
    },
    "notePattern": {
      "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.",
      "properties": {
        "active": {
          "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.",
          "minimum": 0,
          "type": "integer"
        },
        "alternates": {
          "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.",
          "items": {
            "ref": "#alternatePattern",
            "type": "ref"
          },
          "maxLength": 7,
          "type": "array"
        },
        "bars": {
          "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.",
          "maximum": 8,
          "minimum": 1,
          "type": "integer"
        },
        "events": {
          "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.",
          "items": {
            "ref": "#noteEvent",
            "type": "ref"
          },
          "maxLength": 2048,
          "type": "array"
        },
        "name": {
          "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.",
          "maxGraphemes": 32,
          "maxLength": 320,
          "minLength": 1,
          "type": "string"
        },
        "resolution": {
          "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.",
          "ref": "#resolution",
          "type": "ref"
        }
      },
      "required": [
        "bars",
        "resolution"
      ],
      "type": "object"
    },
    "noteRange": {
      "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.",
      "properties": {
        "highest": {
          "description": "The highest note passed on, at or above the lowest. Absent is the highest there is.",
          "maximum": 127,
          "minimum": 0,
          "type": "integer"
        },
        "lowest": {
          "description": "The lowest note passed on. Absent is the lowest there is.",
          "maximum": 127,
          "minimum": 0,
          "type": "integer"
        }
      },
      "type": "object"
    },
    "outputRef": {
      "properties": {
        "audioOutput": {
          "maxLength": 64,
          "minLength": 1,
          "type": "string"
        },
        "instanceId": {
          "maxLength": 64,
          "minLength": 1,
          "type": "string"
        }
      },
      "required": [
        "instanceId",
        "audioOutput"
      ],
      "type": "object"
    },
    "parameterValue": {
      "description": "A value for one of the module's exposed parameters, or an explicit fall-back to the module's declared default.",
      "properties": {
        "id": {
          "maxLength": 64,
          "minLength": 1,
          "type": "string"
        },
        "useDefault": {
          "description": "Set where the patch explicitly defers to the module's default rather than recording a value.",
          "type": "boolean"
        },
        "value": {
          "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.",
          "maxLength": 200,
          "type": "string"
        }
      },
      "required": [
        "id"
      ],
      "type": "object"
    },
    "patternRoute": {
      "description": "One sequencer whose loops an arranger or a scenes block chooses.",
      "properties": {
        "from": {
          "description": "The arranger, or the scenes block.",
          "maxLength": 64,
          "minLength": 1,
          "type": "string"
        },
        "instanceId": {
          "description": "The sequencer, at its pattern input.",
          "maxLength": 64,
          "minLength": 1,
          "type": "string"
        }
      },
      "required": [
        "from",
        "instanceId"
      ],
      "type": "object"
    },
    "position": {
      "properties": {
        "x": {
          "type": "integer"
        },
        "y": {
          "type": "integer"
        }
      },
      "required": [
        "x",
        "y"
      ],
      "type": "object"
    },
    "resolution": {
      "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.",
      "properties": {
        "unit": {
          "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.",
          "knownValues": [
            "normal",
            "triplet"
          ],
          "type": "string"
        },
        "value": {
          "description": "The note value one step is worth. A bar is four beats.",
          "knownValues": [
            "bar",
            "1/2",
            "1/4",
            "1/8",
            "1/16",
            "1/32",
            "1/64",
            "1/128"
          ],
          "type": "string"
        }
      },
      "required": [
        "value"
      ],
      "type": "object"
    },
    "sampleSlotFill": {
      "properties": {
        "blob": {
          "accept": [
            "audio/wav"
          ],
          "maxSize": 2097152,
          "type": "blob"
        },
        "ownerDid": {
          "format": "did",
          "type": "string"
        },
        "slotId": {
          "maxLength": 64,
          "minLength": 1,
          "type": "string"
        }
      },
      "required": [
        "slotId",
        "blob",
        "ownerDid"
      ],
      "type": "object"
    },
    "scene": {
      "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.",
      "properties": {
        "loops": {
          "description": "Which loop each sequencer plays in this scene. A sequencer wired to the scenes block with no entry here rests while it plays.",
          "items": {
            "ref": "#sectionLoop",
            "type": "ref"
          },
          "maxLength": 64,
          "type": "array"
        },
        "name": {
          "description": "What the creator called this scene. Optional permanently: a scene that says nothing is called by its letter.",
          "maxGraphemes": 32,
          "maxLength": 320,
          "minLength": 1,
          "type": "string"
        }
      },
      "type": "object"
    },
    "sceneLaunch": {
      "description": "When a scene chosen takes over, and where its loops start.",
      "properties": {
        "quantize": {
          "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`.",
          "knownValues": [
            "none",
            "beat",
            "bar",
            "2bars",
            "4bars"
          ],
          "type": "string"
        },
        "restart": {
          "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.",
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "section": {
      "description": "One section of a song: how long it is, and which loop each arranged sequencer plays for that long.",
      "properties": {
        "bars": {
          "description": "How long this section is, in bars of four beats.",
          "maximum": 64,
          "minimum": 1,
          "type": "integer"
        },
        "loops": {
          "description": "Which loop each sequencer plays for this section. A sequencer wired to the arranger with no entry here rests for the section.",
          "items": {
            "ref": "#sectionLoop",
            "type": "ref"
          },
          "maxLength": 64,
          "type": "array"
        },
        "name": {
          "description": "What the creator called this section. Optional permanently: a section that says nothing is called by its place.",
          "maxGraphemes": 32,
          "maxLength": 320,
          "minLength": 1,
          "type": "string"
        }
      },
      "required": [
        "bars"
      ],
      "type": "object"
    },
    "sectionLoop": {
      "properties": {
        "instanceId": {
          "description": "The sequencer.",
          "maxLength": 64,
          "minLength": 1,
          "type": "string"
        },
        "loop": {
          "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.",
          "maximum": 7,
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "instanceId",
        "loop"
      ],
      "type": "object"
    },
    "song": {
      "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.",
      "properties": {
        "end": {
          "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`.",
          "knownValues": [
            "stop",
            "loop",
            "hold"
          ],
          "type": "string"
        },
        "sections": {
          "description": "The sections, in the order they are played.",
          "items": {
            "ref": "#section",
            "type": "ref"
          },
          "maxLength": 64,
          "type": "array"
        }
      },
      "type": "object"
    }
  },
  "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.",
  "id": "at.atmosynth.patch",
  "lexicon": 1
}

Validate Record

Validate a record against at.atmosynth.patch

Validation Options
Treat any remaining unresolved references as valid

Metadata

DID
did:plc:fzjkahpwapmoqxybwdjb6ysf
CID
bafyreibgn42564hzlfvlhyynyxpx2f5q4ysnhgrnxgb5uzjcb2jf6ubk2q
Indexed At
2026-09-28 20:02 UTC
AT-URI
at://did:plc:fzjkahpwapmoqxybwdjb6ysf/com.atproto.lexicon.schema/at.atmosynth.patch

Version History (20 versions)

Similar Lexicons

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

  • A reusable synth module: Web Audio nodes wired together, with declared audio and MIDI boundaries, exposed parameters, automation and sample slots. Each published version is its own record; records sharing a moduleId for…

  • net.anisota.lab.synth recordnot from the namespace authority

    A multitrack composition made in the Anisota Lab's Synth studio and saved to the owner's library. The piece is stored as compact musical event data (not audio), so it can be reloaded into the synth, replayed and edited.…

Lexicon Garden

@