Exemple #1
0
 def show_spectrogram(s):
     s /= np.atleast_2d(np.max(s, axis=0))
     s_range = np.max(s) - np.min(s)
     s = utils.smoothstep(s,
                          min_edge=np.min(s) + s_range / 3,
                          max_edge=np.max(s) - s_range / 10)
     if show_ncomps is None:
         spec.plot(s, cmap)
     else:
         spec.plot(s[:show_ncomps, :], cmap)
def show_spectrogram(s, cmap):
    s /= np.atleast_2d(np.max(s, axis=0))
    s_range = np.max(s) - np.min(s)
    s = utils.smoothstep(s,
                         min_edge=np.min(s) + s_range / 3,
                         max_edge=np.max(s) - s_range / 10)
    spec.plot(s, cmap)