Closed drscotthawley closed 1 year ago
after checking on the audio: yea so far it throws that error no matter what sort of numpy array (bounded between -1 and 1) I throw in.
I am using stereo arrays, e.g. audio.shape = 2, 65536]
. But according to the docs, Limiter supports stereo, yes?
right now my only solution is to remove Limiter
from the list. :-(
Does it occur for all audios you give it, or just a few specific ones? If possible, please share an audio where it fails
Does the problem go away if you pass threshold_mode="absolute"
to the limiter?
Looking at the code, I am imagine that it will fail on digital silence 🤔 I guess I forgot to test it on that
I hope I'm not feeding it silence but i can check: My code I have before that is automatically set to keep "re-drawing" a new sample of audio until it gets something that's not silence. So if there's silence going into to the limiter that means my other code is failing too. :-/
I could reproduce the error message you saw by feeding it digital silence. I proposed a patch for that here: https://github.com/iver56/audiomentations/pull/254
Have a look if you want. If digital silence was not the problem, I would be grateful for more information on how to reproduce the bug
Thanks for adding that patch! I will work on this today. ...
Thanks for adding that patch! I will work on this today. ...
Great! Any interesting findings?
If the patch didn't fix it, please reopen the issue
Hi Iver (et al)! I'm really enjoying
audiomentations
.One problem I'm having is that the
limiter
will die with the following message:My usage is that I'm just invoking it with almost all the defaults in place, as
, and then calling it with
I'm not sure exactly if there's a problem with the audio that I'm passing in. I'll try to do some more checking on that. In the meantime, any suggestions on how to best prevent this?