Add min/max value range to audio value sources
Add min_value and max_value fields to AudioValueSource so audio brightness can be mapped to a configurable range (e.g. silence = 30% brightness floor instead of fully black). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -160,6 +160,32 @@
|
||||
<span id="value-source-smoothing-display">0.3</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="label-row">
|
||||
<label for="value-source-audio-min-value" data-i18n="value_source.audio_min_value">Min Value:</label>
|
||||
<button type="button" class="hint-toggle" onclick="toggleHint(this)" title="?" data-i18n-aria-label="aria.hint">?</button>
|
||||
</div>
|
||||
<small class="input-hint" style="display:none" data-i18n="value_source.audio_min_value.hint">Output when audio is silent (e.g. 0.3 = 30% brightness floor)</small>
|
||||
<div class="range-with-value">
|
||||
<input type="range" id="value-source-audio-min-value" min="0" max="1" step="0.01" value="0"
|
||||
oninput="document.getElementById('value-source-audio-min-value-display').textContent = this.value">
|
||||
<span id="value-source-audio-min-value-display">0</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="label-row">
|
||||
<label for="value-source-audio-max-value" data-i18n="value_source.audio_max_value">Max Value:</label>
|
||||
<button type="button" class="hint-toggle" onclick="toggleHint(this)" title="?" data-i18n-aria-label="aria.hint">?</button>
|
||||
</div>
|
||||
<small class="input-hint" style="display:none" data-i18n="value_source.audio_max_value.hint">Output at maximum audio level</small>
|
||||
<div class="range-with-value">
|
||||
<input type="range" id="value-source-audio-max-value" min="0" max="1" step="0.01" value="1"
|
||||
oninput="document.getElementById('value-source-audio-max-value-display').textContent = this.value">
|
||||
<span id="value-source-audio-max-value-display">1</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Adaptive Time of Day fields -->
|
||||
|
||||
Reference in New Issue
Block a user