From a570e4d571ccdd205f140ed294aa182c13d7bc2a Mon Sep 17 00:00:00 2001 From: skal Date: Wed, 28 Jan 2026 12:04:44 +0100 Subject: feat(editor): Add audio playback and redo functionality Enhances the spectrogram editor with audio playback capabilities and a redo button. - : Added 'Listen Original' and 'Listen Generated' buttons, and a 'Redo' button. - : Added styling for the new buttons. - : Implemented JavaScript IDCT, Hanning window, and for audio synthesis. - Connected playback buttons to audio functionality. - Fully implemented logic. --- tools/editor/style.css | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'tools/editor/style.css') diff --git a/tools/editor/style.css b/tools/editor/style.css index c02eb4a..7243ee3 100644 --- a/tools/editor/style.css +++ b/tools/editor/style.css @@ -55,3 +55,25 @@ h1, h2 { #redoButton:hover { background-color: #4cae4c; } + +/* New styles for playback buttons */ +#listenOriginalButton, +#listenGeneratedButton { + background-color: #5bc0de; + color: white; + border: none; + border-radius: 4px; + margin-top: 5px; +} + +#listenOriginalButton:hover, +#listenGeneratedButton:hover { + background-color: #31b0d5; +} + +hr { + border: 0; + height: 1px; + background-color: #ccc; + margin: 20px 0; +} \ No newline at end of file -- cgit v1.2.3