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

Fault(?) on tfr.pitchgram #24

Open
denisb411 opened this issue Aug 14, 2017 · 1 comment
Open

Fault(?) on tfr.pitchgram #24

denisb411 opened this issue Aug 14, 2017 · 1 comment

Comments

@denisb411
Copy link

image

@bzamecnik
Copy link
Owner

In case you provide time-domain signal as a numpy array, not reading it from an audio file, you have to specify the sample_rate manually. Default value is None, that's why you get error while dividing an integer by None.

Example:

x_pitchgram = tfr.pitchgram(tfr.SignalFrames(X[1], sample_rate=44100))

On the other hand SignalFrames.__init__() should raise an error in case sample_rate is not specified.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants