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

Display linkage #101

Open
bmcfee opened this issue Dec 1, 2018 · 0 comments
Open

Display linkage #101

bmcfee opened this issue Dec 1, 2018 · 0 comments

Comments

@bmcfee
Copy link
Owner

bmcfee commented Dec 1, 2018

Description

Feature extractors and task transformers sometimes obscure certain parameters that are necessary for faithful visual reproduction of a transform. It wouldn't be hard to add a display method to each class which knows how to correctly render its own output and set parameters accordingly.

For example, spectral feature extractors could automatically call librosa.display.specshow with appropriate settings.

Similarly, task transformers could automatically call jams.display.display or the appropriate mir_eval.display function directly to plot their outputs (assuming inversion is possible). When inversion is not directly possible, they could have sensible default visualizations (eg as heatmaps with proper time axes).

Example

>>> T = pumpp.feature.Mel('mel')
>>> data = T.transform(filename='foo.mp3')
>>> T.display(data)

should plot the mel spectrogram contained in data.

@bmcfee bmcfee added this to the 0.4.1 milestone Dec 1, 2018
@bmcfee bmcfee removed this from the 0.4.1 milestone Jul 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant