Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimise & fix sonification (mir-evaluation#355)
* Added test for only sonifying those frequency bands which have energy * Moved the summation outside of the frequency loop to hopefully benefit from vector hardware acceleration * Corrected t_max parameter to match units when adjusting intervals, corrected off-by-one comparison of time centers vs. times, further optimised computations in time_frequency * Disabled diagnostics * Removed disabled diagnostics, added clarification to doc strings of the units expected for frequencies and times, reverted version to the already released version, per request * Added suggested optimisations to times and n_times and made truncation of gram when interpolating more explicit and hence meaningful & robust * Simplified to a single call to the interpolator * Removed diagnostics * Changed synthesis optimization threshold to be a function parameter specifying magnitude average, rather than sum. Added rounding of the sample interval computation to avoid precision loss and truncation leading to an off-by-one mismatch between gram and sample intervals. * Renamed variable to match changed metric * Corrected stupid typo * Changed to check that sonification occurs if one element in the frequency band exceeds the threshold
- Loading branch information