# at.atmosynth.sample

> A sample, held in its creator's own repository.

- Kind: record
- Record key: tid
- Authority: atmosynth.at
- Lexicon: 1
- Published by [atmosynth.at](https://lexicon.garden/identity/did:plc:fzjkahpwapmoqxybwdjb6ysf), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:fzjkahpwapmoqxybwdjb6ysf/at.atmosynth.sample)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:fzjkahpwapmoqxybwdjb6ysf/at.atmosynth.sample/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:fzjkahpwapmoqxybwdjb6ysf/at.atmosynth.sample/analytics)

## Record (`at.atmosynth.sample`)

Type: record · key tid

### Properties

- `audio` (blob, required): The recording, in this record's own account.
  - Constraints: maxSize: 52428800, accept: audio/wav, audio/flac
- `beats` (integer): How many beats a loop lasts, where `tempo` alone would leave it to rounding. Optional.
  - Constraints: minimum: 1
- `createdAt` (string · datetime, required)
- `description` (string)
  - Constraints: maxLength: 3000
- `key` (ref): The key a melodic loop or take is in. Optional.
  - Reference: `at.atmosynth.defs#key`
- `kind` (string): `oneShot`: a single hit or note, played from a key. `loop`: a whole number of beats meant to repeat. `recording`: a longer take. Optional: absent says nothing of how it is meant to be used.
  - Constraints: maxLength: 32, knownValues: oneShot | loop | recording
- `license` (ref)
  - Reference: `at.atmosynth.defs#license`
- `lineage` (array)
  - Constraints: maxLength: 64
  - `items` (ref)
    - Reference: `at.atmosynth.defs#lineage`
- `name` (string, required): What its creator calls it.
  - Constraints: minLength: 1, maxLength: 200
- `rootNote` (integer): The note a one-shot was recorded at, as a MIDI note number, so a key plays it at its own pitch. Optional.
  - Constraints: minimum: 0, maximum: 127
- `seconds` (string): How long it lasts, in seconds, as decimal text, so a listing can say so without fetching it.
  - Constraints: maxLength: 32
- `tags` (array): Freely created tags, lower-cased on write.
  - Constraints: maxLength: 32
  - `items` (string)
    - Constraints: maxLength: 128
- `tempo` (string): The tempo it was played at, in beats per minute from 20 to 999, as decimal text, from which a clip can be warped to an arrangement's. Optional: absent where it has none.
  - Constraints: maxLength: 32

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A sample, held in its creator's own repository.",
      "key": "tid",
      "record": {
        "properties": {
          "audio": {
            "accept": [
              "audio/wav",
              "audio/flac"
            ],
            "description": "The recording, in this record's own account.",
            "maxSize": 52428800,
            "type": "blob"
          },
          "beats": {
            "description": "How many beats a loop lasts, where `tempo` alone would leave it to rounding. Optional.",
            "minimum": 1,
            "type": "integer"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "description": {
            "maxLength": 3000,
            "type": "string"
          },
          "key": {
            "description": "The key a melodic loop or take is in. Optional.",
            "ref": "at.atmosynth.defs#key",
            "type": "ref"
          },
          "kind": {
            "description": "`oneShot`: a single hit or note, played from a key. `loop`: a whole number of beats meant to repeat. `recording`: a longer take. Optional: absent says nothing of how it is meant to be used.",
            "knownValues": [
              "oneShot",
              "loop",
              "recording"
            ],
            "maxLength": 32,
            "type": "string"
          },
          "license": {
            "ref": "at.atmosynth.defs#license",
            "type": "ref"
          },
          "lineage": {
            "items": {
              "ref": "at.atmosynth.defs#lineage",
              "type": "ref"
            },
            "maxLength": 64,
            "type": "array"
          },
          "name": {
            "description": "What its creator calls it.",
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "rootNote": {
            "description": "The note a one-shot was recorded at, as a MIDI note number, so a key plays it at its own pitch. Optional.",
            "maximum": 127,
            "minimum": 0,
            "type": "integer"
          },
          "seconds": {
            "description": "How long it lasts, in seconds, as decimal text, so a listing can say so without fetching it.",
            "maxLength": 32,
            "type": "string"
          },
          "tags": {
            "description": "Freely created tags, lower-cased on write.",
            "items": {
              "maxLength": 128,
              "type": "string"
            },
            "maxLength": 32,
            "type": "array"
          },
          "tempo": {
            "description": "The tempo it was played at, in beats per minute from 20 to 999, as decimal text, from which a clip can be warped to an arrangement's. Optional: absent where it has none.",
            "maxLength": 32,
            "type": "string"
          }
        },
        "required": [
          "name",
          "audio",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "description": "A recording published to be found and used: a one-shot, a loop or a longer take, with what is known of its time and pitch. A recording used only inside an arrangement is a blob of that arrangement and needs no record; this is for sharing one.",
  "id": "at.atmosynth.sample",
  "lexicon": 1
}
```
