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 YOUR 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.

Musical Silencer 1.1

Postby Pixel Eater » Tue Feb 05, 2019 7:50 pm

New version with volume controls by m8f 8-)

Musical Silencer 1.1.pk3
(1.17 KiB) Downloaded 56 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 7:10 pm, edited 1 time in total.
User avatar
Pixel Eater
I sense evil I fear it here today, Like a bad dream that never goes away -MBerry
 
 
 
Joined: 02 Aug 2017
Location: In between the Moon and you, between the buried and me.

Re: Musical Silencer

Postby namsan » Wed Feb 06, 2019 10:14 am

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
namsan
Loves English but hates Revenants
 
Joined: 31 Mar 2012
Location: Japan
Discord: Namsan#8146

Re: Musical Silencer

Postby Pixel Eater » Wed Feb 06, 2019 9:37 pm

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
Pixel Eater
I sense evil I fear it here today, Like a bad dream that never goes away -MBerry
 
 
 
Joined: 02 Aug 2017
Location: In between the Moon and you, between the buried and me.

Re: Musical Silencer

Postby m8f » Sun Mar 10, 2019 9:47 am

I propose adding the following to the keyconf:
Code: Select allExpand view
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 allExpand view
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
m8f
the dreamer
 
 
 
Joined: 29 Dec 2017
Discord: m8f#0629
Github ID: mmaulwurff

Re: Musical Silencer 1.1

Postby Pixel Eater » Sun Mar 10, 2019 7:19 pm

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.
User avatar
Pixel Eater
I sense evil I fear it here today, Like a bad dream that never goes away -MBerry
 
 
 
Joined: 02 Aug 2017
Location: In between the Moon and you, between the buried and me.


Return to Graphic/Audio Patches

Who is online

Users browsing this forum: No registered users and 3 guests