> For the complete documentation index, see [llms.txt](https://docs.songs-tools.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.songs-tools.com/protocol/protocol-modules/wrapped-song-module.md).

# Wrapped Song Module

## Wrapped Song Factory

The `WrappedSongFactory` contract is responsible for creating new wrapped songs. It interacts with the `ProtocolModule` to ensure that all necessary conditions are met before a wrapped song is created. This contract also manages the initialization of new wrapped songs and keeps track of the songs created by each owner.

{% embed url="<https://github.com/gordo-labs/songs-protocol/blob/main/contracts/protocol/NonUpgradable/WrappedSongFactory.sol>" %}

## Wrapped Song Smart Account Model

The `WrappedSongSmartAccount` contract represents the smart account for a wrapped song. It manages the song's state, including its release status, authenticity, and associated distributor wallet. This contract also handles the financial operations related to the wrapped song, such as receiving payments and distributing earnings.

{% embed url="<https://github.com/gordo-labs/songs-protocol/blob/main/contracts/protocol/NonUpgradable/WrappedSongSmartAccount.sol>" %}

## Wrapped Song Token Management

The `WSTokensManagement` contract manages the creation and distribution of song-related tokens, including both NFTs and fungible shares. It allows for the creation of song concept NFTs, the minting of participation NFTs, and the exchange of NFTs for fungible shares. This contract also handles the setting and retrieval of token URIs.

{% embed url="<https://github.com/gordo-labs/songs-protocol/blob/main/contracts/protocol/NonUpgradable/WSTokensManagement.sol>" %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.songs-tools.com/protocol/protocol-modules/wrapped-song-module.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
