# sh.diffuse.output.track

> Published by [toko.spaces-alpha.bsky.network](https://lexicon.garden/identity/did:plc:3blaxu6ttk4nllr5rt4wmfmp)

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:3blaxu6ttk4nllr5rt4wmfmp/sh.diffuse.output.track)
- [Documentation](https://lexicon.garden/lexicon/did:plc:3blaxu6ttk4nllr5rt4wmfmp/sh.diffuse.output.track/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:3blaxu6ttk4nllr5rt4wmfmp/sh.diffuse.output.track/examples)

## Definitions

### `sh.diffuse.output.track`

**Type**: `record`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `id` | `string` | Yes |  |
| `uri` | `string` | Yes | This is a 'semi-permanent' URI. Tracks are typically cached so you can't, for example, use an URL that expires in several hours. |
| `kind` | `string` | No |  |
| `tags` | `ref` → `#tags` | No |  |
| `stats` | `ref` → `#stats` | No |  |
| `createdAt` | `string` (datetime) | No |  |
| `ephemeral` | `boolean` | No |  |
| `updatedAt` | `string` (datetime) | No |  |

### `sh.diffuse.output.track#tags`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `bpm` | `integer` | No |  |
| `asin` | `string` | No |  |
| `date` | `string` | No |  |
| `disc` | `ref` → `#count` | No |  |
| `isrc` | `array` | No |  |
| `work` | `string` | No |  |
| `year` | `integer` | No |  |
| `album` | `string` | No |  |
| `media` | `string` | No |  |
| `moods` | `array` | No |  |
| `title` | `string` | No |  |
| `track` | `ref` → `#count` | No |  |
| `artist` | `string` | No |  |
| `genres` | `array` | No |  |
| `labels` | `array` | No |  |
| `mixers` | `array` | No |  |
| `artists` | `array` | No |  |
| `barcode` | `string` | No |  |
| `gapless` | `boolean` | No |  |
| `writers` | `array` | No |  |
| `arranger` | `array` | No |  |
| `djmixers` | `array` | No |  |
| `remixers` | `array` | No |  |
| `albumsort` | `string` | No |  |
| `composers` | `array` | No |  |
| `engineers` | `array` | No |  |
| `lyricists` | `array` | No |  |
| `peakLevel` | `integer` | No |  |
| `producers` | `array` | No |  |
| `titlesort` | `string` | No |  |
| `artistsort` | `string` | No |  |
| `conductors` | `array` | No |  |
| `publishers` | `array` | No |  |
| `albumartist` | `string` | No |  |
| `compilation` | `boolean` | No |  |
| `releasedate` | `string` | No |  |
| `technicians` | `array` | No |  |
| `albumartists` | `array` | No |  |
| `averageLevel` | `integer` | No |  |
| `composersort` | `string` | No |  |
| `originaldate` | `string` | No |  |
| `originalyear` | `integer` | No |  |
| `releasetypes` | `array` | No |  |
| `releasestatus` | `string` | No |  |
| `catalognumbers` | `array` | No |  |
| `releasecountry` | `string` | No |  |
| `albumartistsort` | `string` | No |  |

### `sh.diffuse.output.track#count`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `no` | `integer` | Yes |  |
| `of` | `integer` | No |  |

### `sh.diffuse.output.track#stats`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `codec` | `string` | No | Compression algorithm |
| `bitrate` | `integer` | No | Bits per second |
| `duration` | `integer` | No | Duration in milliseconds |
| `lossless` | `boolean` | No | Is track lossless |
| `albumGain` | `integer` | No | Album gain in dB |
| `container` | `string` | No | Encoding format |
| `trackGain` | `integer` | No | Track gain in dB |
| `sampleRate` | `integer` | No | Samples per second |
| `spectralFlux` | `integer` | No | Average spectral flux scaled by 1000, measuring how quickly the spectrum changes over time in the track's spectrogram |
| `bitsPerSample` | `integer` | No | Bit depth |
| `spectralSpread` | `integer` | No | Average spectral spread in Hz, the standard deviation of the spectrum around its centroid, derived from the track's spectrogram |
| `spectralRolloff` | `integer` | No | Average spectral rolloff in Hz, the frequency below which 85% of the spectral energy is contained, derived from the track's spectrogram |
| `numberOfChannels` | `integer` | No | Number of audio channels |
| `spectralCentroid` | `integer` | No | Average spectral centroid in Hz, the perceptual brightness of the track derived from its spectrogram |
| `spectralFlatness` | `integer` | No | Average spectral flatness on a 0-1000 scale (0 = fully tonal, 1000 = fully noisy), derived from the track's spectrogram |

## Raw Schema

```json
{
  "id": "sh.diffuse.output.track",
  "defs": {
    "main": {
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "id",
          "uri"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "uri": {
            "type": "string",
            "description": "This is a 'semi-permanent' URI. Tracks are typically cached so you can't, for example, use an URL that expires in several hours."
          },
          "kind": {
            "enum": [
              "audiobook",
              "miscellaneous",
              "music",
              "placeholder",
              "podcast",
              "stream"
            ],
            "type": "string"
          },
          "tags": {
            "ref": "#tags",
            "type": "ref"
          },
          "stats": {
            "ref": "#stats",
            "type": "ref"
          },
          "createdAt": {
            "type": "string",
            "format": "datetime"
          },
          "ephemeral": {
            "type": "boolean"
          },
          "updatedAt": {
            "type": "string",
            "format": "datetime"
          }
        }
      }
    },
    "tags": {
      "type": "object",
      "properties": {
        "bpm": {
          "type": "integer"
        },
        "asin": {
          "type": "string"
        },
        "date": {
          "type": "string"
        },
        "disc": {
          "ref": "#count",
          "type": "ref"
        },
        "isrc": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "work": {
          "type": "string"
        },
        "year": {
          "type": "integer"
        },
        "album": {
          "type": "string"
        },
        "media": {
          "type": "string"
        },
        "moods": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "title": {
          "type": "string"
        },
        "track": {
          "ref": "#count",
          "type": "ref"
        },
        "artist": {
          "type": "string"
        },
        "genres": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "labels": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "mixers": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "artists": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "barcode": {
          "type": "string"
        },
        "gapless": {
          "type": "boolean"
        },
        "writers": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "arranger": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "djmixers": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "remixers": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "albumsort": {
          "type": "string"
        },
        "composers": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "engineers": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "lyricists": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "peakLevel": {
          "type": "integer"
        },
        "producers": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "titlesort": {
          "type": "string"
        },
        "artistsort": {
          "type": "string"
        },
        "conductors": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "publishers": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "albumartist": {
          "type": "string"
        },
        "compilation": {
          "type": "boolean"
        },
        "releasedate": {
          "type": "string"
        },
        "technicians": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "albumartists": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "averageLevel": {
          "type": "integer"
        },
        "composersort": {
          "type": "string"
        },
        "originaldate": {
          "type": "string"
        },
        "originalyear": {
          "type": "integer"
        },
        "releasetypes": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "releasestatus": {
          "type": "string"
        },
        "catalognumbers": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "releasecountry": {
          "type": "string"
        },
        "albumartistsort": {
          "type": "string"
        }
      }
    },
    "count": {
      "type": "object",
      "required": [
        "no"
      ],
      "properties": {
        "no": {
          "type": "integer"
        },
        "of": {
          "type": "integer"
        }
      }
    },
    "stats": {
      "type": "object",
      "properties": {
        "codec": {
          "type": "string",
          "description": "Compression algorithm"
        },
        "bitrate": {
          "type": "integer",
          "description": "Bits per second"
        },
        "duration": {
          "type": "integer",
          "description": "Duration in milliseconds"
        },
        "lossless": {
          "type": "boolean",
          "description": "Is track lossless"
        },
        "albumGain": {
          "type": "integer",
          "description": "Album gain in dB"
        },
        "container": {
          "type": "string",
          "description": "Encoding format"
        },
        "trackGain": {
          "type": "integer",
          "description": "Track gain in dB"
        },
        "sampleRate": {
          "type": "integer",
          "description": "Samples per second"
        },
        "spectralFlux": {
          "type": "integer",
          "description": "Average spectral flux scaled by 1000, measuring how quickly the spectrum changes over time in the track's spectrogram"
        },
        "bitsPerSample": {
          "type": "integer",
          "description": "Bit depth"
        },
        "spectralSpread": {
          "type": "integer",
          "description": "Average spectral spread in Hz, the standard deviation of the spectrum around its centroid, derived from the track's spectrogram"
        },
        "spectralRolloff": {
          "type": "integer",
          "description": "Average spectral rolloff in Hz, the frequency below which 85% of the spectral energy is contained, derived from the track's spectrogram"
        },
        "numberOfChannels": {
          "type": "integer",
          "description": "Number of audio channels"
        },
        "spectralCentroid": {
          "type": "integer",
          "description": "Average spectral centroid in Hz, the perceptual brightness of the track derived from its spectrogram"
        },
        "spectralFlatness": {
          "type": "integer",
          "description": "Average spectral flatness on a 0-1000 scale (0 = fully tonal, 1000 = fully noisy), derived from the track's spectrogram"
        }
      }
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
