You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To silence the warning, I edited that to initialize the other entries to a very small value instead of 0, changing that line above the warning to be:
hz_nonneg[hz <= 0] = 1.e-15;
I don't know if that's the preferred fix or not, as I haven't fully checked to see how it affects the remaining code, but it seems to work OK to get rid of that warning. And the resulting midi files, on the ones that I checked, were identical with or without the fix.
Otherwise, this script and the Melodia plugin work fantastically! Great job with it!
The text was updated successfully, but these errors were encountered:
Melodia indicates unvoiced frames with non-positive (negative or zero) values. The hz2midi function sets these to 0 before taking the log, which will return -Inf, and then resets these values to 0 again after taking the log. This is the intended behavior. I could probably achieve the same result more elegantly so as to avoid the warning, but the overall functionality is correct.
Otherwise, this script and the Melodia plugin work fantastically! Great job with it!
Regardless of the source audio, I get the following warning:
In this code block:
To silence the warning, I edited that to initialize the other entries to a very small value instead of 0, changing that line above the warning to be:
I don't know if that's the preferred fix or not, as I haven't fully checked to see how it affects the remaining code, but it seems to work OK to get rid of that warning. And the resulting midi files, on the ones that I checked, were identical with or without the fix.
Otherwise, this script and the Melodia plugin work fantastically! Great job with it!
The text was updated successfully, but these errors were encountered: