mirror of
https://github.com/lewismoten/data-over-audio.git
synced 2026-03-23 02:51:17 +08:00
control amplitude threshold via UI
This commit is contained in:
6
index.js
6
index.js
@@ -38,7 +38,11 @@ function handleWindowLoad() {
|
||||
FREQUENCY_DURATION = parseInt(event.target.value);
|
||||
bitSampleCount = 0;
|
||||
samplesPerBit.length = 0;
|
||||
})
|
||||
});
|
||||
document.getElementById('amplitude-threshold-text').addEventListener('input', (event) => {
|
||||
FREQUENCY_THRESHOLD = parseInt(event.target.value);
|
||||
});
|
||||
|
||||
|
||||
// wire up events
|
||||
sendButton.addEventListener('click', handleSendButtonClick);
|
||||
|
||||
Reference in New Issue
Block a user