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 the patch's time signature. Where `sixteenths` is present it is the length and this is the whole bars that covers, rounded up.",
          "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"
        },
        "sixteenths": {
          "description": "How long this loop is, in sixteenth notes, where it is not a whole number of bars. It keeps its length when the time signature changes. Optional permanently: absent is `bars` of the patch's bar.",
          "maximum": 2048,
          "minimum": 1,
          "type": "integer"
        },
        "swing": {
          "description": "How this loop swings. Each loop swings for itself. Optional permanently: a loop that says nothing is played straight.",
          "ref": "#swing",
          "type": "ref"
        }
      },
      "required": [
        "bars"
      ],
      "type": "object"
    },
    "bendPoint": {
      "description": "One point of a note's bend: how far from its pitch the note is at a moment of it.",
      "properties": {
        "at": {
          "description": "The tick of the note this point is at, counted from the note's own start at 96 ticks to the beat, so a phrase bent at one tempo is bent the same way at another.",
          "minimum": 0,
          "type": "integer"
        },
        "value": {
          "description": "How far the note is bent here, in semitones, from -96 to 96, written as its decimal text, as every number in this description that need not be whole is. Upwards is positive.",
          "type": "string"
        }
      },
      "required": [
        "at",
        "value"
      ],
      "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"
    },
    "lane": {
      "description": "One automation lane: a line drawn over a whole number of bars, or of sixteenths where it says so, counted from the downbeat the loops share and going round at its own length, so a point in bar 3 of a four-bar lane is heard in bar 3 of every four.",
      "properties": {
        "bars": {
          "description": "How long this lane is, in bars of the patch's time signature. Where `sixteenths` is present it is the length and this is the whole bars that covers, rounded up.",
          "maximum": 64,
          "minimum": 1,
          "type": "integer"
        },
        "name": {
          "description": "What the creator called this lane. Optional permanently: a lane that says nothing is called by its place.",
          "maxGraphemes": 32,
          "maxLength": 320,
          "minLength": 1,
          "type": "string"
        },
        "points": {
          "description": "The points, in order of `at`, one to a tick. Before the first point the lane is at the first point's value and after the last at the last's; a lane with no points is at nothing.",
          "items": {
            "ref": "#lanePoint",
            "type": "ref"
          },
          "maxLength": 512,
          "type": "array"
        },
        "resolution": {
          "description": "The grid this lane's points are drawn and snapped to. It is a guide and not a part of what is played: changing it moves no point already written. Optional permanently: absent is sixteenths.",
          "ref": "#resolution",
          "type": "ref"
        },
        "sixteenths": {
          "description": "How long this lane is, in sixteenth notes, where it is not a whole number of bars. It keeps its length when the time signature changes. Optional permanently: absent is `bars` of the patch's bar.",
          "maximum": 16384,
          "minimum": 1,
          "type": "integer"
        }
      },
      "required": [
        "bars"
      ],
      "type": "object"
    },
    "lanePoint": {
      "description": "One point of an automation lane: a value at a moment.",
      "properties": {
        "at": {
          "description": "The tick of the lane this point is at, counted from its start at 96 ticks to the beat, and less than the lane's length.",
          "minimum": 0,
          "type": "integer"
        },
        "hold": {
          "description": "Whether the value is held until the next point, which is jumped to, rather than travelled to in a straight line. Optional permanently: absent is a straight line, and only `true` is written.",
          "type": "boolean"
        },
        "value": {
          "description": "The value here, a number from 0 to 1 written as its decimal text, as every number in this description that need not be whole is.",
          "type": "string"
        }
      },
      "required": [
        "at",
        "value"
      ],
      "type": "object"
    },
    "lineage": {
      "description": "One patch this one came from, how, and its creator. Preserved even when that patch is later deleted, because it is written here and not there.",
      "properties": {
        "creatorDid": {
          "format": "did",
          "type": "string"
        },
        "patchId": {
          "maxLength": 128,
          "type": "string"
        },
        "relation": {
          "description": "`fork`: this patch began as a copy of that one, and a patch is forked from one at most. `import`: that patch was put inside this one, each patch named once however often it was. A reader meeting another value still has a parent, and should say only that this patch came from it.",
          "knownValues": [
            "fork",
            "import"
          ],
          "maxLength": 32,
          "type": "string"
        },
        "uri": {
          "format": "at-uri",
          "type": "string"
        }
      },
      "required": [
        "relation",
        "uri",
        "creatorDid"
      ],
      "type": "object"
    },
    "main": {
      "description": "A patch, held in its creator's own repository.",
      "key": "tid",
      "record": {
        "properties": {
          "concertPitch": {
            "description": "The frequency A4 sounds at in this patch, in hertz, from 380 to 500, written as its decimal text — \"432\", \"415.3\" — as every number in this description that need not be whole is. Every note's frequency is tuned against it, which is what an oscillator a module does not drive itself and a module's note signal play at; under a `tuning` it anchors the tuning's reference key, which sounds where twelve-tone equal temperament puts it at this pitch. A sample is not retuned by it: its own reference pitch is a note rather than a frequency, and it plays as recorded. Optional permanently: a patch that says nothing is tuned to 440, which is what every patch written before the field existed says.",
            "maxLength": 32,
            "type": "string"
          },
          "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"
          },
          "inputRouting": {
            "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.",
            "items": {
              "ref": "#inputRoute",
              "type": "ref"
            },
            "type": "array"
          },
          "lineage": {
            "description": "The patches this one came from: the one it was forked from, if it was, and every one imported into it. Only the direct ones — each of those names its own — so the whole of where a patch came from is read by following these upward. The modules it pins and the samples it fills are not repeated here: they are already in its instances. Optional permanently: a patch that says nothing came from nothing but its modules. A patch written before this field existed may say its fork as `forkedFrom` instead, `{uri, creatorDid, patchId?}`, which a reader treats as a lineage of relation `fork`; it is never written again.",
            "items": {
              "ref": "#lineage",
              "type": "ref"
            },
            "maxLength": 64,
            "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 and automation blocks each arranger or scenes block chooses the loops or lanes of. A sequencer or an automation block 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 and every automation block the lane.",
            "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, a beat being a quarter note whatever the time signature says. 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"
          },
          "timeSignature": {
            "description": "How many of which note one bar of this patch is. Every length here counted in bars — a loop, a section, an automation lane — is counted in this bar, so a loop of four bars is twelve beats in 3/4. Optional permanently: a patch that says nothing is in 4/4, which is what every patch written before the field existed says.",
            "ref": "#timeSignature",
            "type": "ref"
          },
          "tuning": {
            "description": "Which pitch each key of this patch sounds at, as a Scala .scl file and its .kbm key map say it. Every frequency a key is played at comes from it — an oscillator a module does not drive itself, a module's note signal, and a sample, which sounds at its key what an oscillator at that key would — and a pitch bend is applied after it, in twelve-tone semitones. The concert pitch is still the one frequency here: the tuning's reference key sounds where twelve-tone equal temperament puts it at the patch's concert pitch. A key the map sends nowhere sounds nothing. Optional permanently: a patch that says nothing is in twelve-tone equal temperament, which is what every patch written before the field existed says.",
            "ref": "#tuning",
            "type": "ref"
          },
          "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"
        },
        "lane": {
          "description": "Which of `lanes` plays, counting the first as zero. Choosing a lane 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": 7,
          "minimum": 0,
          "type": "integer"
        },
        "lanes": {
          "description": "The automation lanes this instance holds, where its module is an automation block: each so many bars or sixteenths of values from nothing to one, played in time with the loops. One plays at a time, as one of a sequencer's loops does, and an arranger or a scenes block wired to the block's pattern input chooses which. 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 automation block.",
          "items": {
            "ref": "#lane",
            "type": "ref"
          },
          "maxLength": 8,
          "type": "array"
        },
        "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"
        },
        "noteLength": {
          "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.",
          "maximum": 10000,
          "minimum": 1,
          "type": "integer"
        },
        "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"
        },
        "bend": {
          "description": "How this note is bent while it is held, as the hand that played it bent it with a wheel or a finger: points in order of `at`, one to a tick, joined by straight lines. Before the first point the note is at the first point's value and after the last it stays at the last's; nothing at or after `hold` is heard, since a note let go is bent no further. Optional permanently: a note that says nothing is played at the pitch it is written at, which is what every pattern written before a note could be bent says, and an unbent note writes no field.",
          "items": {
            "ref": "#bendPoint",
            "type": "ref"
          },
          "maxLength": 256,
          "type": "array"
        },
        "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 next note of its own pitch, since the same pitch overlapping itself is one voice rather than two. The next is counted round the loop: a note may run past the loop's end and on into the next time round, as a key held over the end of the loop does, as far as the first note of its pitch there and never longer than the loop.",
          "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, or of sixteenths where it says so, 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 the patch's time signature (`timeSignature`), which is 4/4 where it says none. Each loop keeps its own length: one may be four bars and the next five. Where `sixteenths` is present it is the length and this is the whole bars that covers, rounded up, so a reader that knows only bars plays the loop with a silent tail rather than refusing it.",
          "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"
        },
        "sixteenths": {
          "description": "How long the first loop is, in sixteenth notes, where it is not a whole number of bars: three beats is twelve. It is a length in the beat rather than the bar, so a loop that says it keeps its length when the time signature changes. Optional permanently: absent is `bars` of the patch's bar, which is what every loop written before a loop could end inside a bar says.",
          "maximum": 2048,
          "minimum": 1,
          "type": "integer"
        },
        "swing": {
          "description": "How the first loop swings. Optional permanently: a loop that says nothing is played straight, which is what every loop written before a loop could swing says.",
          "ref": "#swing",
          "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, or one automation block whose lanes, 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 or automation block, 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. `bar` is one bar of the patch's time signature; every other value is a note, the same length in any bar.",
          "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": 10485760,
          "type": "blob"
        },
        "name": {
          "description": "What the creator calls this sample — Kick, Snare, Open hat — so a kit's pads are told apart by what each plays. It lives on the fill because it is a name for the sample that fills the slot: replaced with the sample, and gone with it. Optional permanently: a fill that says nothing is called by its slot, which is what every record written before a sample could be named says.",
          "maxGraphemes": 32,
          "maxLength": 320,
          "minLength": 1,
          "type": "string"
        },
        "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 of the patch's time signature — a beat being the note its lower number names — 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 the patch's time signature.",
          "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, or the automation block.",
          "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, or which of the automation block's lanes. 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"
    },
    "swing": {
      "description": "Every second eighth or sixteenth of a loop played late. The notes stay at the ticks they are written at, and the swing is applied as the loop is played: each pair of notes counted from the loop's start is heard with its second note `amount` percent of the way through the pair rather than half of it, and a note between two lines moves in proportion, so nothing changes order. A pair the loop's end cuts short is played straight. A reader meeting a value or an amount it does not swing by plays the loop straight.",
      "properties": {
        "amount": {
          "description": "Where the second note of each pair is heard, in percent of the pair. Fifty would be straight, which is written as no swing at all; seventy-five is a dotted note and the note after it.",
          "maximum": 75,
          "minimum": 51,
          "type": "integer"
        },
        "value": {
          "description": "The note whose every second one is played late: eighths, whose pairs are each a beat, or sixteenths, whose pairs are each half of one.",
          "knownValues": [
            "1/8",
            "1/16"
          ],
          "type": "string"
        }
      },
      "required": [
        "amount",
        "value"
      ],
      "type": "object"
    },
    "timeSignature": {
      "description": "A time signature as it is printed over a stave: how many beats one bar holds, over the note a beat is. The tempo counts quarter notes whatever the lower number is; what the two decide is how long a bar is, and so where every bar line falls.",
      "properties": {
        "denominator": {
          "description": "The note a beat is: 2 a half, 4 a quarter, 8 an eighth, 16 a sixteenth. The lower number.",
          "enum": [
            2,
            4,
            8,
            16
          ],
          "type": "integer"
        },
        "numerator": {
          "description": "How many beats one bar holds: the upper number.",
          "maximum": 32,
          "minimum": 1,
          "type": "integer"
        }
      },
      "required": [
        "numerator",
        "denominator"
      ],
      "type": "object"
    },
    "tuning": {
      "description": "A tuning: its degrees, each an interval above its first note, and which degree each key plays.",
      "properties": {
        "degrees": {
          "description": "The tuning's degrees above its first, which is the unison and is not written, exactly as Scala writes a pitch: a value with a point in it is cents (\"701.955\", \"-3.5\", \"1200.\"), and anything else a ratio of whole numbers above nothing (\"3/2\", or \"2\" for 2/1), which is kept as text so that it stays exact. The last is the period, the interval after which the degrees repeat, and is above the unison.",
          "items": {
            "maxLength": 32,
            "type": "string"
          },
          "maxLength": 128,
          "minLength": 1,
          "type": "array"
        },
        "keys": {
          "description": "Which degree each key plays: a .kbm file. Optional permanently: absent is the map Scala assumes without one, in which every key plays the next degree, key 60 plays the first and key 69 is the reference.",
          "ref": "#tuningKeys",
          "type": "ref"
        },
        "name": {
          "description": "What the tuning is called: a .scl file's description line.",
          "maxLength": 200,
          "type": "string"
        }
      },
      "required": [
        "degrees"
      ],
      "type": "object"
    },
    "tuningKeys": {
      "description": "A key map, as a Scala .kbm file says it, except that it names no frequency: the reference key sounds where twelve-tone equal temperament puts it at the patch's concert pitch.",
      "properties": {
        "first": {
          "description": "The lowest key that sounds.",
          "maximum": 127,
          "minimum": 0,
          "type": "integer"
        },
        "last": {
          "description": "The highest key that sounds.",
          "maximum": 127,
          "minimum": 0,
          "type": "integer"
        },
        "map": {
          "description": "The degree each key of one repetition plays, from the middle key up, `size` of them: 0 is the unison, the number of degrees the period, and -1 a key that sounds nothing.",
          "items": {
            "minimum": -1,
            "type": "integer"
          },
          "maxLength": 128,
          "type": "array"
        },
        "middle": {
          "description": "The key that plays the first degree, the unison, and where the map's repetitions are counted from.",
          "maximum": 127,
          "minimum": 0,
          "type": "integer"
        },
        "periodDegree": {
          "description": "The degree one repetition of the map spans, its formal octave: each repetition up plays every key's degree that far above the last.",
          "minimum": 1,
          "type": "integer"
        },
        "reference": {
          "description": "The key the concert pitch anchors: it sounds where twelve-tone equal temperament puts it at the patch's concert pitch. It must play a degree.",
          "maximum": 127,
          "minimum": 0,
          "type": "integer"
        },
        "size": {
          "description": "How many keys one repetition of the map spans. 0 is a linear map, in which every key plays the next degree and the degrees repeat at their period; `map` is then empty and `periodDegree` is not read.",
          "maximum": 128,
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "size",
        "first",
        "last",
        "middle",
        "reference",
        "periodDegree"
      ],
      "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
bafyreicrguzej2zbzqtmkde4mi5h23on3ztahp76pjva5ddeiqj3l252x4
Indexed At
2026-10-08 17:25 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

@