-
Notifications
You must be signed in to change notification settings - Fork 33
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
Fixed background state #40
Conversation
Pinging back on this -- looks like we have enough issues to push out a point release in the immediate future. Any interest in finishing this one up so we can include it? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you rebase this off master, and add some test code to verify that the proposed changes are working as expected?
muda/deformers/background.py
Outdated
|
||
with psf.SoundFile(str(filename), mode='r') as soundf: | ||
|
||
n_target = int(np.ceil(n_samples * soundf.samplerate / sr)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sr
should be explicitly cast here as float(sr)
to ensure floating-point division in legacy python
Hey, yeah, I will make sure I get to this soon. It won't happen today, but probably tomorrow. |
Yo, added some tests. |
Thanks! This looks like you merged master though. Could you rebase instead to keep the commit log clean? |
Added start and stop indices of noise source files to background state
b84bbff
to
b411078
Compare
Cleaned up history |
Thanks! |
Added start and stop indices of the noise source files to background state. This is in response to Issue #39