Musical Silencer 1.1

For high-res texture/sprite projects, sprite-fix patches, music add-ons, music randomizers, and other graphic/sound-only projects.
Forum rules
The Projects forums are only for projects. If you are asking questions about a project, either find that project's thread, or start a thread in the General section instead.

Got a cool project idea but nothing else? Put it in the project ideas thread instead!

Projects for any Doom-based engine (especially 3DGE) are perfectly acceptable here too.

Please read the full rules for more details.
Post Reply
User avatar
Pixel Eater
 
 
Posts: 667
Joined: Wed Aug 02, 2017 12:31 am
Location: In between the Moon and you, between the buried and me.

Musical Silencer 1.1

Post by Pixel Eater »

New version with volume controls by m8f 8-)
Musical Silencer 1.1.pk3
(1.17 KiB) Downloaded 227 times
Lets you mute the music without losing your preferred volume. Handy if you want to keep listening to background music uninterrupted.
It can be toggled by key press during the game and there's a custom menu which can be used during the title screen.

The default keys are now based on the numpad and are -/+ and * for mute.
Spoiler: Backup version
Last edited by Pixel Eater on Sun Mar 10, 2019 6:10 pm, edited 1 time in total.
User avatar
namsan
Posts: 147
Joined: Sat Mar 31, 2012 4:27 am
Preferred Pronouns: He/Him
Location: Japan

Re: Musical Silencer

Post by namsan »

Small but nice mod.
I sometimes feel like "wow, this level's song is so annoying and repetitive..." when I'm playing Doom, but with your mod I can easily mute it.
User avatar
Pixel Eater
 
 
Posts: 667
Joined: Wed Aug 02, 2017 12:31 am
Location: In between the Moon and you, between the buried and me.

Re: Musical Silencer

Post by Pixel Eater »

I'm weirdly fine with repetitive music, I just can't handle when it clashes with what I'm already listening to. Sometimes it's a song that's inspired me to play Doom in the first place (Zep's Black Mountain Side makes me need some KDITD) and I just wanted to play along to it.

Btw I immediately kicked myself for not naming this 'Mute-till-later'. Oh well :lol:
User avatar
m8f
 
 
Posts: 1445
Joined: Fri Dec 29, 2017 4:15 am
Preferred Pronouns: He/Him
Operating System Version (Optional): Manjaro Linux
Location: Siberia (UTC+7)
Contact:

Re: Musical Silencer

Post by m8f »

I propose adding the following to the keyconf:

Code: Select all

alias readmusic           "snd_musicvolume $mute_muslevel"
alias restoremusic_silent "test $mute_music readmusic; mute_music false"

alias echomusicvolume     "eval * 100 $snd_musicvolume readable_muslevel; echo Music Volume: $readable_muslevel"

alias increasemusicvolume "restoremusic_silent; eval + $snd_musicvolume 0.05 snd_musicVolume; echomusicvolume"
alias decreasemusicvolume "restoremusic_silent; eval - $snd_musicvolume 0.05 snd_musicVolume; echomusicvolume"

AddKeySection "Musical Silencer" "MusicalSilencerKeys"

AddMenuKey "Toggle Music"          "mutemusic"
AddMenuKey "Increase Music Volume" "increasemusicvolume"
AddMenuKey "Decrease Music Volume" "decreasemusicvolume" 
and a CVar for this to work:

Code: Select all

user int readable_muslevel;
So there are keys to increase/decrease the music volume. Changing music volume via these keys unmutes the music automatically.

Also, it's recommended not to leave controls in menudef without their keyconf AddMenuKey counterpart.
User avatar
Pixel Eater
 
 
Posts: 667
Joined: Wed Aug 02, 2017 12:31 am
Location: In between the Moon and you, between the buried and me.

Re: Musical Silencer 1.1

Post by Pixel Eater »

That's really cool m8f- I've added that straight in :)

I tacked on a thing to keep it muted when the user is dropping the volume too, just in case they were muting due to super loud speakers. That way they can get to safety first before unmuting.
bLUEbYTE
Posts: 159
Joined: Fri Nov 15, 2019 4:28 am
Graphics Processor: Intel with Vulkan/Metal Support
Location: Australia

Re: Musical Silencer 1.1

Post by bLUEbYTE »

Really useful mod! Went straight into my global autoloads.
I'm gaming with a controller, so I just assigned the start button to toggle music on/off.
Many thanks!
Post Reply

Return to “Graphic/Audio Patches”