From 564ac26c2e87d4d2d9fcbb27853a010eed683e25 Mon Sep 17 00:00:00 2001 From: Vadim Date: Wed, 3 Jan 2024 15:55:08 +0100 Subject: [PATCH] Added words to Plot --- src/Settings.py | 2 +- src/modules/plot.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Settings.py b/src/Settings.py index 24cc738..28c603b 100644 --- a/src/Settings.py +++ b/src/Settings.py @@ -1,5 +1,5 @@ class Settings: - APP_VERSION = "0.0.7" + APP_VERSION = "0.0.8" create_midi = True create_plot = False diff --git a/src/modules/plot.py b/src/modules/plot.py index 8c87519..895a314 100644 --- a/src/modules/plot.py +++ b/src/modules/plot.py @@ -236,6 +236,7 @@ def draw_words(transcribed_data, midi_notes): alpha=0.5, ) plt.gca().add_patch(rect) + plt.text(data.start + width/4, numpy.log10([note_frequency + half_frequency_range])[0], data.word, rotation=90) def snake(s):