-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
πΈ π normalize and tune volume of all sound files (#239)
* π¨ add script to list sound files LUFS (loudness measurement) * π¨ add `yarn start stats` script to output and track sfx LUFS * π¨ update formatting of loudness stats script output * π¨ update loudness stats script to include full stats * πΈ adjust loudness of all sound files - wont break people's ears now * β»οΈ refactor list-sounds script * π¨ add channels to sound stats * π rename `lufs.txt` to `stats.txt` * β»οΈ refactor list-sounds script again * π¨ add channel volume diff db to sound stats * βͺ revert volume changes to music - sounded very low quality in-game, we'll just use the volume property in sounds.json instead * π± split some sfx that are fake stereo into the single mono they actually are - amplify them to keep LUFS close * βοΈ tune dentata-snakes sounds - fix bounce sound source location bug * βοΈ tune bomb sounds * βοΈ tune finger-guns sounds * βοΈ tune friendliness-pellets sounds * βοΈ tune homing-vines sounds * βοΈ tune x-bullets sounds * β‘οΈ add cleanup check to homing-vines bullets * πΈ tune player hurt sound * π tune static noise sounds * π βοΈ fix bomb sound stuff - apparently stereo sounds ARE increased by volume in the playsound command. great. * π βοΈ fix dentata-snakes sound stuff * π fix music/other stereo sounds so they don't play super loud * πΈ increase volume of quiet sounds * π decrease volume of bossfight static * π± increase volume of dentata-snakes `impact`
- Loading branch information
1 parent
2fad8a6
commit 6b2ee9a
Showing
41 changed files
with
487 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ction/hostile/omega-flowey/attack/bomb/bullet/loop/stop_falling/as_player_once.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
stopsound @s hostile omega-flowey:attack.bomb.explode | ||
playsound omega-flowey:attack.bomb.explode hostile @s ~ ~ ~ 5 1 | ||
playsound omega-flowey:attack.bomb.explode hostile @s ~ ~ ~ 1 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
...flowey.entity/function/hostile/omega-flowey/attack/homing-vines/bullet/cleanup.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# runs every tick on the bullet AJ model, terminating if it's outside the arena bounds | ||
function omegaflowey.entity:shared/run_if_outside_arena_volume { command: \ | ||
"function omegaflowey.entity:hostile/omega-flowey/attack/homing-vines/bullet/terminate" \ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...s/omegaflowey/data/omegaflowey.entity/function/soul/soul_5/executor/play_music.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
function omegaflowey.entity:shared/run_as_active_player_or_spectator { command: \ | ||
'playsound omega-flowey:music.soul.5 record @s ~ ~ ~ 10 1' \ | ||
'execute at @s run playsound omega-flowey:music.soul.5 record @s ~ ~ ~ 1 1' \ | ||
} |
2 changes: 1 addition & 1 deletion
2
...omegaflowey/data/omegaflowey.entity/function/utils/damage/as_player/as_players.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
stopsound @s player minecraft:entity.player.hurt | ||
playsound omega-flowey:player.hurt player @s ~ ~ ~ 3 | ||
playsound omega-flowey:player.hurt player @s ~ ~ ~ 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
[CmdletBinding()] | ||
param( | ||
[string]$Path=".", | ||
[Parameter(mandatory=$false)] | ||
[string]$Out | ||
) | ||
|
||
# use `-path ./resourcepack/assets/omega-flowey/sounds` for this repo's omegaflowey sound files | ||
# use `-path ./tmp/vanilla-sounds-normalization` for some vanilla sound references | ||
|
||
$script:files = get-childitem -path $Path -filter "*.ogg" -recurse -file | ||
if($out -ne '') { | ||
out-file -filePath $out | ||
} | ||
|
||
foreach ($script:file in $files) { | ||
$relativePath = $file | resolve-path -relative -relativeBasePath $path | ||
|
||
$script:channels = ffprobe -i $file -show_entries stream=channels -select_streams a:0 -of compact=p=0:nk=1 -v 0 | ||
$script:channelsFormatted = "channels: ${channels}" | ||
|
||
$script:channelsVolumeDiffMax = "N/A" | ||
if($channels -eq 2) { | ||
$channelsVolumeDiffMax = ` | ||
( | ||
ffmpeg -i $file -filter_complex "stereotools=phasel=1[tmp];[tmp]pan=1c|c0=0.5*c0+0.5*c1,volumedetect" -f null - 2>&1 | ||
| grep max_volume | ||
).split('max_volume: ')[1] | ||
} | ||
$script:channelsVolumeDiffMaxFormatted = "channelsVolumeDiffMax: ${channelsVolumeDiffMax}" | ||
|
||
$script:lufs = ffmpeg -i $file -af ebur128=framelog=verbose -f null - 2>&1 | grep -e "Integrated loudness:" -A 8 | ||
$script:lufsFormatted = ((($lufs.split('\n').where{$_ -ne ''}) | foreach-object -membername trim) -join [environment]::newline) | ||
|
||
$script:statsLine = "# ${relativePath}$([environment]::newline)${channelsVolumeDiffMaxFormatted}$([environment]::newline)${channelsFormatted}$([environment]::newline)${lufsFormatted}$([environment]::newline)" | ||
if ($out -ne '') { | ||
$statsLine | out-file -filepath $out -append | ||
} else { | ||
echo $statsLine | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.