control amplitude threshold via UI

This commit is contained in:
Lewis Moten
2024-05-01 22:10:38 -04:00
parent ad6e0d5197
commit d9be475a0f
2 changed files with 6 additions and 1 deletions

View File

@@ -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);