IMPORTANT
Melody is a library type mod.
It does not perform any actions on its own and serves exclusively as a dependency for other mods that utilize its functionality.
About the Modification
Melody is a client-side library for Minecraft based on OpenAL, designed for playing background music. It allows using OpenAL independently of the game's main sound system.
With this library, you can asynchronously load audio files from various sources, including network resources. OGG and WAV formats are supported, but developers can extend the list of compatible file types.
Since Melody was created for convenient playback of musical compositions in menus or the game world, it does not support positional sounds (with specific source in 3D space). The library works only with two-dimensional audio - perfect for musical accompaniment.
To understand the principles of creating audio sources ready for playback, study Melody's source code on GitHub.