diff options
Diffstat (limited to 'tools/mq_editor/index.html')
| -rw-r--r-- | tools/mq_editor/index.html | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/tools/mq_editor/index.html b/tools/mq_editor/index.html index d44f19b..c1d7bc9 100644 --- a/tools/mq_editor/index.html +++ b/tools/mq_editor/index.html @@ -76,15 +76,8 @@ <button id="extractBtn" disabled>Extract Partials</button> <div class="params"> - <label>FFT Size:</label> - <select id="fftSize"> - <option value="1024">1024</option> - <option value="2048" selected>2048</option> - <option value="4096">4096</option> - </select> - <label>Hop:</label> - <input type="number" id="hopSize" value="512" min="64" max="2048" step="64"> + <input type="number" id="hopSize" value="256" min="64" max="1024" step="64"> <label>Threshold (dB):</label> <input type="number" id="threshold" value="-60" min="-80" max="-20" step="5"> @@ -109,9 +102,9 @@ const canvas = document.getElementById('canvas'); const status = document.getElementById('status'); - const fftSize = document.getElementById('fftSize'); const hopSize = document.getElementById('hopSize'); const threshold = document.getElementById('threshold'); + const fftSize = 1024; // Fixed // Load WAV file wavFile.addEventListener('change', async (e) => { @@ -145,7 +138,7 @@ setTimeout(() => { try { const params = { - fftSize: parseInt(fftSize.value), + fftSize: fftSize, hopSize: parseInt(hopSize.value), threshold: parseFloat(threshold.value), sampleRate: audioBuffer.sampleRate |
