muda
muda copied to clipboard
Old jams BackgroundNoise lacking start and stop
Hello!
I am reproducing a paper by Salomon & Bello, and need to make transformations according to the jams files in UrbanSound8K-JAMS, for which I am using muda.replay()
.
It seems that they used a previous version of Background noise which didn't use start and stop parameters, probably prior to this commit. I am thinking of just setting a default value for the case where there is no start and stop in the status, something like this:
try:
start = state['start']
stop = state['stop']
except KeyError:
start = 0
stop = len(mudabox._audio['y'])
I will post if this works fine latter on. Would appreciate some feedback on this.
Just thought about it again and I think the best is just to downgrade to an old version. I will leave this here anyways in case someone else stumbles with this issue.
Thanks for noting that! I agree that rolling back is probably the easiest solution here.
Hello! Thanks for your kind response! In the end I opted for making a fork and rolling back only the background.py file. I will leave the link here in case it is useful for anyone. link