This commit is contained in:
incandenza 2024-06-03 16:23:04 +02:00
commit 57800a200d

View file

@ -17,8 +17,6 @@ import math
from scipy.interpolate import interp1d
import matplotlib.pyplot as plt
def plotting_stuffs():
plt.figure(figsize=(15, 17))
@ -86,7 +84,12 @@ duration = int(math.ceil(librosa.get_duration(y=wave, sr=sr)))
frames = duration * fps
print("RMS SIZE: " + str(len(rms[0])))
print("Rms min/max: " + str(rms.min()) + "/" + str(rms.max()))
print("CEN SIZE: " + str(len(cent[0])))
print("Cent min/max: " + str(cent.min()) + "/" + str(cent.max()))
print("TOTAL FRAMES: " + str(frames))
print("Audio duration in secs: " + str(duration))
#
# sr.len /22050 = duration
# rms.len * 30 = duration