File size: 242 Bytes
cbce075
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
import numpy as np
import matplotlib.pyplot as plt
import librosa

def felguk_viz(y, sr):
    D = librosa.stft(y)
    D_db = librosa.amplitude_to_db(np.abs(D), ref=np.max)
    librosa.display.specshow(D_db, sr=sr, x_axis='time', y_axis='log')