Language…
12 users online:  Donut, dotCoockie, DPBOX, Golden Yoshi, masl, Rauf, Shomi, signature_steve, Sweetdude,  Telinc1, timothy726, zAce08xZ - Guests: 254 - Bots: 355
Users: 64,795 (2,377 active)
Latest user: mathew

[SOLVED] Unstable music volume for PSwitch - AddMusicK 1.06

I'm trying to change the P-Switch's sound effect to the one from Super Mario Bros. 3 All-Stars from this pack: https://www.smwcentral.net/?p=section&a=details&id=18816


In AddMusicK I replaced the "global songs" .txt file number 6, the pswitch one, to the one from the custom sound pack.

When I get in game, the P Switch song is the correct one, the one from SMB3 All-Stars, but there is a weird volume fade in and out. The volume starts at a normal loudness, then goes a bit quiet, then goes louder again etc. until the P-Switch duration is over.

Here is a video showcasing the issue: https://www.youtube.com/watch?v=M43y_bjC86o&feature=youtu.be

I checked to see if all the samples were loaded with a "!" in the Addmusic_list.txt and they all are.

I am also using the SMB3 All-Stars fortress music during the level. This one works fine all throughout though.

I am using Higan emulator through RetroArch.

Edit:
I managed to solve my issue after reasearching how music is stored in text files. My issue was actually in the text file I used. It contained some weird changes in volumes using the "qXX" code in the section where the music notes are written. I managed to correct the issue myself by editing the volume values of this code. The song now sounds like I want it to. :)
Fanatical like a Demon
I had problems with this too and I think everyone should know this (will probably post this in amk notes sticky thread). In amk, global songs do not use the #louder velocity table, they instead uses the smw velocity table. Giv this a try yourself, insert the Toad's House as a local song, edit the text and change #amk 2 to #amk 1 or add #option smwvtable and you'll replicate how it sounds like as a global song. The reason this happens is bc from my understanding amk deals with the velocity table in a weird way. Basically, to disable it, it enables the louder velocity table and then disables it again so it inserts the command twice. To fix this, add $fa $06 $01 to every song you want to use as a global song. This ensures the correct velocity table is used that the text uses. This command was found by FungFuFirby looking into amk's asm.
Major thanks to Suika Ibuki for layout!
I'm open for music requests, just DM me on discord and we can further discuss there.
SMAS Soundtrack Status: 100% finished
YI Soundtrack Status: 100%
YI Unsampled Soundtrack Status: 100%
NSMB Soundtrack Status: 7.89%
Killer Instinct Soundtrack Status: 14.63%
SPC Thread
From our family to you, keep your pants dry, your dreams wet, and remember, hugs not drugs.