DrMarc / slab

python classes for working with sounds and conducting psychoacoustic experiments
MIT License
22 stars 7 forks source link

spectrogram window size #60

Closed OleBialas closed 2 years ago

OleBialas commented 2 years ago

I think that the code to compute the step size for the spectrogram is missing a conversion from time to samples: https://github.com/DrMarc/slab/blob/dd50114884914eca98508bc033cb3963f9c3b36a/slab/sound.py#L1030

DrMarc commented 2 years ago

@OleBialas, yes, you are correct. It should be window_n_samples instead of window_dur in this line. Could you correct and send a pull requests?