muda icon indicating copy to clipboard operation
muda copied to clipboard

Old jams BackgroundNoise lacking start and stop

Open grudloff opened this issue 4 years ago • 3 comments

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.

grudloff avatar May 30 '20 23:05 grudloff

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.

grudloff avatar May 31 '20 02:05 grudloff

Thanks for noting that! I agree that rolling back is probably the easiest solution here.

bmcfee avatar Jun 05 '20 19:06 bmcfee

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

grudloff avatar Jun 12 '20 14:06 grudloff