y-brehm / waveAlign

Python repo for audio loudness matching in order to end the loudness war between DJs.
3 stars 0 forks source link

Issue/30/optimize caching #48

Closed y-brehm closed 3 weeks ago

y-brehm commented 1 month ago

With this PR, the caching mechanism now saves additional peak and lufs information if the input and output folders are the same (no output folder specified). If input and output folders are specified, no cache is written. The reason for this is the huge number of edge cases we would have to handle. These would make the code very complicated and hard to read, while providing only marginal performance benefits.

Also, this PR introduces dataclasses instead of dicts for internal cache handling.