Open JamesOwers opened 8 years ago
I've had a crack at diagnosing - struggled with the generators. Running np.array(list(c)).shape
returns (3, 2, 66)
i.e. c is a generator that produces lists of lists ('shape' (2,66)). Is this as expected or is something going wrong upstream? I'm afraid I've run out of time trying to pick through NSGT_sliced.forward
.
The list of lists is on purpose, because the output is not necessarily rectangular (only with —matrixform it is).
I would suggest that you start with a set of trusty command line options, like
myinput.wav —output=myoutput.h5 --fmin=80 --fmax=14000 --bins=202 --scale=log --real --matrixform --reducedform=2 --fps=100 --downmix-after
and --plot, if you like
Am 15.06.2016 um 17:49 schrieb James Owers notifications@github.com:
I've had a crack at diagnosing - struggled with the generators. Running np.array(list(c)).shape returns (3, 2, 66) i.e. c is a generator that produces lists of lists ('shape' (2,66)). Is this as expected or is something going wrong upstream? I'm afraid I've run out of time trying to pick through NSGT_sliced.forward.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/grrrr/nsgt/issues/15#issuecomment-226230976, or mute the thread https://github.com/notifications/unsubscribe/AAJ-JisjRSf-5mS_qIsH7wOibQVIqd7Vks5qMB8jgaJpZM4I2Yv8.
Ok, thanks for the tip. I can get it to run with just the argument --matrixform
added. The documented help for this is simply "Use regular time division over frequency bins (matrix form)"; have you any clues as to why running without this doesn't work? Is there a bug here or is this simply expected?
Observing
c
created on line 108, I see it generates objects of dimension 1 x 66 (a 2d array) therefore the function complains that the index [2] is out of range. This error may well be due to my misunderstanding of arguments.If it helps, here is info about the wav file being input:
Seeing as the default for
--sr
is 44100 I thought it would be fine to run with no additional args set.