Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pitch contour sonification supports nans #379

Merged
merged 1 commit into from
Apr 4, 2024

Conversation

bmcfee
Copy link
Collaborator

@bmcfee bmcfee commented Apr 1, 2024

Fixes #332

This PR works be replacing nan-values by 0 in the frequency array prior to interpolation, thereby replicating the existing logic for unvoicing certain frames.

This now lets us use nan to represent unvoiced frames, which is the default behavior for (eg) librosa's pyin implementation.

I don't think we need specific additional tests here, as the change is minimal and pretty obvious when you see it.

@bmcfee bmcfee added this to the 0.8 milestone Apr 1, 2024
@bmcfee
Copy link
Collaborator Author

bmcfee commented Apr 4, 2024

Any objection to merging this?

@craffel
Copy link
Collaborator

craffel commented Apr 4, 2024

Looks good, thanks!

@craffel craffel merged commit 6b82dde into mir-evaluation:main Apr 4, 2024
8 checks passed
craffel pushed a commit that referenced this pull request May 13, 2024
* hacking toward display revisions, not yet finished but want to test on old builds before moving forward

* fixed #332, pitch contour sonification supports nans (#379)

* fixing up test fixtures

* correcting fixture names and paths for display

* fixing separation

* toward a working implementation of axes weakkeydict storage

* updated mpl regression tests for labeled intervals

* fixing up ticks and margins

* updated hierarchy fixtures

* revised separation display to use property cyclers

* working through some matplotlib hackery

* almost done modernizing mpl code...

* very nearly done modernizing

* docs and styling

* rewrote segments to use axvspans

* blacked tests

* skip segment with text plot tests on old matplotlib

* blacked tests

* skip certain tests when using old versions of freetype
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

sonify.pitch_contour should support nans
2 participants