AudioCommons / timbral_models

Python scripts for modelling timbral attributes
Apache License 2.0
78 stars 26 forks source link

Pull request to fix issue #12 for 0 values in np.log10() #13

Open olivecha opened 3 years ago

olivecha commented 3 years ago

This issue caused errors when processing sounds with silent segments.

Because the logarithm is used to weight the samples, it is my understanding that replacing log(0) values with 0 would not reduce the model's accuracy.