Grass Cutters Together: the project as of moon-sweepers f3666f0
A clean start for the shared repository: the Unity project (Assets, Packages, ProjectSettings), ArtSource, Docs and Tools as they stood at f3666f0 in the old local repository, with its generated prefabs and scene brought up to date. Images, audio, models and binaries go through Git LFS (.gitattributes). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
15
Tools/audio/finalize_music2.py
Normal file
15
Tools/audio/finalize_music2.py
Normal file
@ -0,0 +1,15 @@
|
||||
"""Stage 18 music: the new raw takes from eleven_batch_music2.sh -> seamless loops in Assets/Audio, levelled like the old ones."""
|
||||
import os
|
||||
import finalize_farm as F
|
||||
|
||||
NEW = (("music_game3_loop", "farm_music_game3", "music_game_loop", 0), ("music_game4_loop", "farm_music_game4", "music_game_loop", 0),
|
||||
("music_game5_loop", "farm_music_game5", "music_game_loop", 0), ("music_night2_loop", "farm_music_night2", "music_game_loop", -3),
|
||||
("music_storm_loop", "farm_music_storm", "music_game_loop", -1))
|
||||
|
||||
if __name__ == "__main__":
|
||||
for out, name, old, offset in NEW:
|
||||
x = F.M.raw(name + ".mp3")
|
||||
score, s, e = F.find_loop(x)
|
||||
e_i, beat, chord = F.refine(x, s, e)
|
||||
print(f" {name}: score {score:.3f}, beats {beat:.3f}, chords {chord:.3f}, {s:.2f}s to {e_i / F.SR:.2f}s = {(e_i - int(s * F.SR)) / F.SR:.1f}s")
|
||||
F.to_lufs(out, F.join(x, int(s * F.SR), e_i, 1.5), F.lufs(os.path.join(F.AUDIO, old + ".wav")) + offset)
|
||||
Reference in New Issue
Block a user