From 64fec848fe5bbb6b5e13aa6faf8e59ffd5e8b175 Mon Sep 17 00:00:00 2001
From: "gpt-engineer-app[bot]"
<159125892+gpt-engineer-app[bot]@users.noreply.github.com>
Date: Sun, 21 Dec 2025 15:18:54 +0000
Subject: [PATCH] Changes
---
src/components/MiniOscilloscope.tsx | 2 +-
src/components/Oscilloscope.tsx | 219 ++++++++++++++--------------
2 files changed, 113 insertions(+), 108 deletions(-)
diff --git a/src/components/MiniOscilloscope.tsx b/src/components/MiniOscilloscope.tsx
index 2333b5c..d19ef0c 100644
--- a/src/components/MiniOscilloscope.tsx
+++ b/src/components/MiniOscilloscope.tsx
@@ -157,7 +157,7 @@ export function MiniOscilloscope() {
return (
diff --git a/src/components/Oscilloscope.tsx b/src/components/Oscilloscope.tsx
index d60afde..3783fc5 100644
--- a/src/components/Oscilloscope.tsx
+++ b/src/components/Oscilloscope.tsx
@@ -247,7 +247,7 @@ export function Oscilloscope() {
const canGenerate = audioData !== null && originalFile !== null && !isExporting && !isLoading;
return (
-
+
{/* Header */}
@@ -258,130 +258,135 @@ export function Oscilloscope() {
- {/* Controls Row */}
-
- {/* Left Column: Audio Input */}
-
+ {/* Audio Input Row */}
+
+
-
- {/* Microphone Toggle */}
-
-
-
- {isMicActive && (
-
-
- Real-time input active
-
-
-
- )}
-
- {/* Right Column: Control Panel */}
-
-
+ {/* Microphone Toggle */}
+
+
- {/* Oscilloscope Display */}
-
-
{
- setIsPlaying(false);
- setCurrentTime(0);
- setSeekPosition(0);
- }}
- onSeek={handleSeek}
- liveSettings={liveSettings}
- />
-
- {/* Audio Playback Controls */}
- {audioData && originalFile && (
-
- {/* Play/Pause and Time Display */}
+ {isMicActive && (
+
+ Real-time input active
+
-
-
- {formatTime(currentTime)} / {formatTime(audioData.duration)}
-
-
- {/* Progress Bar */}
-
- handleSeek(value[0] / 100)}
- max={100}
- step={0.1}
- className="cursor-pointer"
- />
+
+ )}
+
+
+
+ {/* Main Content: Display + Controls Side by Side */}
+
+ {/* Oscilloscope Display */}
+
+
{
+ setIsPlaying(false);
+ setCurrentTime(0);
+ setSeekPosition(0);
+ }}
+ onSeek={handleSeek}
+ liveSettings={liveSettings}
+ />
+
+ {/* Audio Playback Controls */}
+ {audioData && originalFile && (
+
+ {/* Play/Pause and Time Display */}
+
+
+
+
+ {formatTime(currentTime)} / {formatTime(audioData.duration)}
+
+
+ {/* Progress Bar */}
+
+ handleSeek(value[0] / 100)}
+ max={100}
+ step={0.1}
+ className="cursor-pointer"
+ />
+
-
- )}
+ )}
+
+
+ {/* Control Panel */}
+
+
+
+
{/* Microphone Calibration */}
{showMicCalibration && isMicActive && (