13 lines
404 B
Python
13 lines
404 B
Python
# import scipy.signal as sg
|
|
# import pysndfile.sndio as snd
|
|
#
|
|
# snd_data,samples,_ = snd.read('./outputs/sunflowers-Alex-150-normal-589.aiff')
|
|
# samples_per_seg = 3*int(samples*150/(3*1000))
|
|
# # samples/(len(snd_data)*1000.0)
|
|
# len(snd_data)
|
|
# samples_per_seg/2
|
|
#
|
|
# len(sg.spectrogram(snd_data,nperseg=samples_per_seg,noverlap=samples_per_seg/3)[2])
|
|
#
|
|
# from spectro_gen import generate_aiff_spectrogram
|