TimeViewers / signalworks

MIT License
3 stars 2 forks source link

Cleanup spectrogram and wave #28

Closed j9ac9k closed 4 years ago

j9ac9k commented 4 years ago

This merge requests adds some docstrings, adds some customization to the spectrogram calculation (by allowing for pre-emphasis, and making the normalization of the signal be an optional parameter).

Furthermore, instead of manually specifying limits based on dtypes, I'm now using np.iinfo and np.finfo as needed. For spectrogram clipping, i made use to np.finfo.eps so more data is preserved.