justinsalamon / scaper

A library for soundscape synthesis and augmentation
BSD 3-Clause "New" or "Revised" License
384 stars 56 forks source link

LUFS calculation can give very low values for very short sound events #13

Closed justinsalamon closed 6 years ago

justinsalamon commented 7 years ago

For events < ~0.5 seconds the LUFS calculation seems wrong (very low, fixed). Potential solution: if event is shorter than some threshold X, duplicate event (concatenate audio to self) prior to computing LUFS --> seems to give consistent values (tested on longer sounds vs concatenated versions of those sounds).

justinsalamon commented 6 years ago

Fixed by #28