Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clamp MUS volume commands #226

Merged
merged 2 commits into from Jan 6, 2021
Merged

Clamp MUS volume commands #226

merged 2 commits into from Jan 6, 2021

Conversation

Clownacy
Copy link
Contributor

@Clownacy Clownacy commented Jan 6, 2021

As documented here, the MUS format allows for values above 127 to be present in files. Supposedly, the original DMX library would clamp them back down to 127. Without this behaviour, the song "Smells like Burning Corpse" from Final Doom has extremely loud instruments.

https://doomwiki.org/wiki/MUS

The MUS format allows for values above 127 to be present in files.
Supposedly, the original DMX library would clamp them back down to
127. Without this behaviour, the song "Smells like Burning Corpse"
from Final Doom has extremely loud instruments.
@psi29a
Copy link
Member

psi29a commented Jan 6, 2021

Cool, thanks for this. Yeah, I noticed that you have been working on your own doom game in a blog post where you have been using wildmidi. :D

@psi29a
Copy link
Member

psi29a commented Jan 6, 2021

Could you perhaps add in comments as to why we clamp to 127, perhaps referencing this ticket? That way people can read why it is the way it is.

@sezero sezero merged commit 692e48a into Mindwerks:master Jan 6, 2021
@sezero
Copy link
Contributor

sezero commented Jan 6, 2021

Thanks.

sezero added a commit to sezero/hheretic that referenced this pull request Jan 7, 2021
https://doomwiki.org/wiki/MUS

The MUS format allows for values above 127 to be present in files.
Supposedly, the original DMX library would clamp them back down to
127. Without this behaviour, the song "Smells like Burning Corpse"
from Final Doom has extremely loud instruments.

Patch by Clownacy (Mindwerks/wildmidi#226)

git-svn-id: svn://svn.code.sf.net/p/hhexen/code/trunk/hheretic@617 989aa981-fe4f-0410-aa6a-c19d413bcdcd
sezero added a commit to sezero/hhexen that referenced this pull request Jan 7, 2021
https://doomwiki.org/wiki/MUS

The MUS format allows for values above 127 to be present in files.
Supposedly, the original DMX library would clamp them back down to
127. Without this behaviour, the song "Smells like Burning Corpse"
from Final Doom has extremely loud instruments.

Patch by Clownacy (Mindwerks/wildmidi#226)

git-svn-id: svn://svn.code.sf.net/p/hhexen/code/trunk/hhexen@617 989aa981-fe4f-0410-aa6a-c19d413bcdcd
@psi29a
Copy link
Member

psi29a commented Jan 8, 2021

Cool, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants