From b58244626976bbd440b0d8542fc4d7338252b397 Mon Sep 17 00:00:00 2001 From: b1rdmania <102524336+b1rdmania@users.noreply.github.com> Date: Mon, 29 Dec 2025 12:13:31 +0000 Subject: [PATCH] Remove volume slider and description text from player MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cleaner UI - metadata already tells the story. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- index.html | 10 ---------- src/main.ts | 9 ++------- 2 files changed, 2 insertions(+), 17 deletions(-) diff --git a/index.html b/index.html index bd887c9..bd85cff 100644 --- a/index.html +++ b/index.html @@ -1112,11 +1112,6 @@ -
- - -
-
diff --git a/src/main.ts b/src/main.ts index 1374b58..ae49d4c 100644 --- a/src/main.ts +++ b/src/main.ts @@ -31,7 +31,6 @@ class MotifApp { private preGenSupport!: HTMLElement; private generatedBlock!: HTMLElement; private playPauseBtn!: HTMLButtonElement; - private motifVolumeSlider!: HTMLInputElement; private detailsToggle!: HTMLElement; private previewBtn!: HTMLButtonElement; private previewStopBtn!: HTMLButtonElement; @@ -122,7 +121,6 @@ class MotifApp { this.preGenSupport = document.getElementById('preGenSupport')!; this.generatedBlock = document.getElementById('generatedBlock')!; this.playPauseBtn = document.getElementById('playPauseBtn') as HTMLButtonElement; - this.motifVolumeSlider = document.getElementById('motifVolume') as HTMLInputElement; this.detailsToggle = document.getElementById('detailsToggle')!; this.previewBtn = document.getElementById('previewBtn') as HTMLButtonElement; this.previewStopBtn = document.getElementById('previewStopBtn') as HTMLButtonElement; @@ -172,9 +170,6 @@ class MotifApp { // Motif this.motifBtn.addEventListener('click', () => this.handleMotif()); this.playPauseBtn.addEventListener('click', () => void this.handlePlayPause()); - this.motifVolumeSlider.addEventListener('input', () => { - this.motifEngine.setVolume(parseFloat(this.motifVolumeSlider.value)); - }); // Preview inside selected source only this.previewBtn.addEventListener('click', () => void this.handlePreviewToggle()); @@ -523,7 +518,7 @@ class MotifApp { // Generate a variation using the procedural role-mapping mode await this.motifEngine.generateFromMIDI(this.currentMIDI.events, 'procedural'); - this.motifEngine.setVolume(parseFloat(this.motifVolumeSlider.value) || 0.8); + this.motifEngine.setVolume(0.8); await this.motifEngine.play(); @@ -830,7 +825,7 @@ class MotifApp { this.stopPreview(); await unlockAudio(); - this.motifEngine.setVolume(parseFloat(this.motifVolumeSlider.value) || 0.8); + this.motifEngine.setVolume(0.8); await this.motifEngine.play(); if (this.motifResumeProgress > 0) this.motifEngine.seek(this.motifResumeProgress); this.isMotifPlaying = true;