diff --git a/index.html b/index.html index 6592a9a..a714dd1 100644 --- a/index.html +++ b/index.html @@ -10,6 +10,7 @@
Bit Duration: ms
+ Amplitude Threshold:

Sent

diff --git a/index.js b/index.js index 17f8788..618d7ee 100644 --- a/index.js +++ b/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);