In version 1.4.0, I changed the song handling logic, so now they are stored not in LUA code, but in binary files.
After you download this file, go to your Garry's Mod folder, then to the "garrysmod/addons" folder. Inside it, you can create a folder with any Latin name (for example, "duck_piano_rock"). Then, inside that folder, create the following subfolders: "data_static/duck_instrument/songs".
Inside the songs folder, I recommend creating another folder with a unique Latin name (e.g. your nickname or the song author's nickname) and placing the downloaded file inside it.
The final path to the file should look something like this:
`data_static/duck_instrument/songs/inabakumori/rainy_boots.dat`
If you want to add a cover art for your song, you need to specify its name when creating the song on the website (for example, "inabakumori/rainy_boots.png"). The file itself must be a PNG image with a resolution of 64x64 pixels (larger size doesn't make sense).
Place this file in your addon folder. Inside it, create the following folders:
`materials/deadduck/instruments/song_covers`
Then, following the path you specified on the site, create the folder "inabakumori" (in our example) and put the file `rainy_boots.png` inside it.
Yes, they will! Support for the old song format has been preserved.
However, I strongly recommend updating your addon and migrating your songs to the new format. This can be done without leaving Garry's Mod.
You need to disable all other piano addons (so that only the default songs and your own songs remain), start a Singleplayer game, and enter the console command `duck_piano_migrate`.
The command will automatically go through all songs in the old format and convert them to the new format. After that, you just need to move the files from the folder "data/duck_instrument/migrate/" to "addons/<your_addon_name>/data_static/duck_instrument/songs/".
Note that the command may not work correctly with song names that are not in Latin characters.