forgot to add title to graphs

This commit is contained in:
Alexandre 2024-05-27 22:43:41 +02:00
parent 7f5f410fd8
commit d0f20b74e8
2 changed files with 3 additions and 0 deletions

View File

@ -263,6 +263,9 @@ def get_freq(song_name, offset, step, songlen, data):
if(True):
plt.plot([t/1000 for t in range(len(data))], frequencies)
plt.grid()
plt.xlabel("Time (s)")
plt.ylabel("Dominant frequency (Hz)")
plt.title("Dominant frequencies at peaks")
plt.show()
return frequencies

BIN
tetris_4.wav Executable file

Binary file not shown.