# ch.indiemusi.alpha.song

> Published by [indiemusi.ch](https://lexicon.garden/identity/did:plc:lcmrbur2pydmpelfcs7fjbdx)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:lcmrbur2pydmpelfcs7fjbdx/ch.indiemusi.alpha.song)
- [Documentation](https://lexicon.garden/lexicon/did:plc:lcmrbur2pydmpelfcs7fjbdx/ch.indiemusi.alpha.song/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:lcmrbur2pydmpelfcs7fjbdx/ch.indiemusi.alpha.song/examples)

## Definitions

### `ch.indiemusi.alpha.song`

**Type**: `record`

A song or musical work: the melody, lyrics, and arrangement created by composers and authors

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `iswc` | `string` | No | ISWC (International Standard Musical Work Code) with which the song is registered at a collecting society |
| `title` | `string` | Yes |  |
| `interestedParties` | `array` | Yes | List of interested parties (authors, composers, publishers) associated with this song |

### `ch.indiemusi.alpha.song#interestedParty`

**Type**: `object`

An interested party associated with the song (author, composer, publisher)

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `did` | `string` (did) | No |  |
| `ipi` | `string` | No |  |
| `name` | `string` | No |  |
| `role` | `string` | No | Role of the interested party (e.g., 'author', 'composer', 'publisher') |
| `publishingOwner` | `ref` → `ch.indiemusi.alpha.actor.publishingOwner` | No |  |
| `collectingSociety` | `string` | No |  |
| `mechanicalRoyaltiesPercentage` | `integer` | No | Percentage of mechanical royalties allocated to this interested party, 10000 = 100% |
| `performanceRoyaltiesPercentage` | `integer` | No | Percentage of performance royalties allocated to this interested party, 10000 = 100% |

## Raw Schema

```json
{
  "id": "ch.indiemusi.alpha.song",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "title",
          "interestedParties"
        ],
        "properties": {
          "iswc": {
            "type": "string",
            "maxLength": 13,
            "description": "ISWC (International Standard Musical Work Code) with which the song is registered at a collecting society"
          },
          "title": {
            "type": "string",
            "maxLength": 255
          },
          "interestedParties": {
            "type": "array",
            "items": {
              "ref": "#interestedParty",
              "type": "ref"
            },
            "minLength": 1,
            "description": "List of interested parties (authors, composers, publishers) associated with this song"
          }
        }
      },
      "description": "A song or musical work: the melody, lyrics, and arrangement created by composers and authors"
    },
    "interestedParty": {
      "type": "object",
      "properties": {
        "did": {
          "type": "string",
          "format": "did"
        },
        "ipi": {
          "type": "string",
          "maxLength": 11
        },
        "name": {
          "type": "string",
          "maxLength": 255
        },
        "role": {
          "type": "string",
          "maxLength": 255,
          "description": "Role of the interested party (e.g., 'author', 'composer', 'publisher')"
        },
        "publishingOwner": {
          "ref": "ch.indiemusi.alpha.actor.publishingOwner",
          "type": "ref"
        },
        "collectingSociety": {
          "type": "string",
          "maxLength": 255
        },
        "mechanicalRoyaltiesPercentage": {
          "type": "integer",
          "description": "Percentage of mechanical royalties allocated to this interested party, 10000 = 100%"
        },
        "performanceRoyaltiesPercentage": {
          "type": "integer",
          "description": "Percentage of performance royalties allocated to this interested party, 10000 = 100%"
        }
      },
      "description": "An interested party associated with the song (author, composer, publisher)"
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
