From fe0c9f671b5cc46eaae7a0335c9a3e32ff481dd7 Mon Sep 17 00:00:00 2001 From: Jason Yoder Date: Tue, 31 Mar 2026 15:49:31 -0400 Subject: [PATCH 1/2] Fixes index issue --- src/mediaComp/models/SoundExplorer.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mediaComp/models/SoundExplorer.py b/src/mediaComp/models/SoundExplorer.py index a4067ae..aae3ff1 100644 --- a/src/mediaComp/models/SoundExplorer.py +++ b/src/mediaComp/models/SoundExplorer.py @@ -258,7 +258,7 @@ def __init__(self, sound:Sound): self.current_pixel_position: int = 0 # Debug flag - self.debug: bool = False # Enable debug for testing + self.debug: bool = True # Enable debug for testing # Main parts of the GUI self.sound_frame: Optional[tk.Tk] = None @@ -838,8 +838,8 @@ def update_index_values(self): except Exception: sel = None self.index_value.config(state='normal') - # self.index_value.delete(0, tk.END) - # self.index_value.insert(0, str(cur_frame)) + self.index_value.delete(0, tk.END) + self.index_value.insert(0, str(cur_frame)) # Restore selection if user had selected text try: if sel is not None: @@ -854,7 +854,7 @@ def update_index_values(self): # Try to update the value at the current sample index try: - sample = self.sound.getSample(cur_frame - self.base).getValue() + sample = self.sound.getSampleValueAt(cur_frame - self.base) self.sample_value.config(state='normal') self.sample_value.delete(0, tk.END) self.sample_value.insert(0, f"{sample:.0f}") From cb0d5ae325369482228aeb421ec2fd0f2ce0e496 Mon Sep 17 00:00:00 2001 From: Jason Yoder Date: Tue, 31 Mar 2026 18:20:47 -0400 Subject: [PATCH 2/2] Sets debug to false --- src/mediaComp/models/SoundExplorer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mediaComp/models/SoundExplorer.py b/src/mediaComp/models/SoundExplorer.py index aae3ff1..a9fd990 100644 --- a/src/mediaComp/models/SoundExplorer.py +++ b/src/mediaComp/models/SoundExplorer.py @@ -258,7 +258,7 @@ def __init__(self, sound:Sound): self.current_pixel_position: int = 0 # Debug flag - self.debug: bool = True # Enable debug for testing + self.debug: bool = False # Enable debug for testing # Main parts of the GUI self.sound_frame: Optional[tk.Tk] = None