diff options
Diffstat (limited to 'tools/mq_editor/index.html')
| -rw-r--r-- | tools/mq_editor/index.html | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/mq_editor/index.html b/tools/mq_editor/index.html index 22f8ff9..b51a988 100644 --- a/tools/mq_editor/index.html +++ b/tools/mq_editor/index.html @@ -85,6 +85,8 @@ <label>Threshold (dB):</label> <input type="number" id="threshold" value="-60" step="any"> + <label style="margin-left:16px;"><input type="checkbox" id="integratePhase" checked> Integrate phase</label> + <label style="margin-left:16px;">Keep:</label> <input type="range" id="keepPct" min="1" max="100" value="100" style="width:100px; vertical-align:middle;"> <span id="keepPctLabel" style="margin-left:4px;">100%</span> @@ -336,7 +338,8 @@ const keepCount = Math.max(1, Math.ceil(extractedPartials.length * parseInt(keepPct.value) / 100)); const partialsToUse = extractedPartials.slice(0, keepCount); setStatus(`Synthesizing ${keepCount}/${extractedPartials.length} partials (${keepPct.value}%)...`, 'info'); - const pcm = synthesizeMQ(partialsToUse, sampleRate, duration); + const integratePhase = document.getElementById('integratePhase').checked; + const pcm = synthesizeMQ(partialsToUse, sampleRate, duration, integratePhase); // Build STFT cache for synth signal (for FFT comparison via key 'a') if (viewer) { |
