This commit is contained in:
Dragon Fire
2024-04-04 23:03:58 -04:00
parent f6747b9dd2
commit 05ce50dec4
+3 -3
View File
@@ -52,11 +52,11 @@ module.exports = class MorseCommand extends Command {
const processedScript = this.processScript(str);
const data = [];
const sampleFreq = 8000;
const dotSecs = 0.065;
const dotSecs = 0.06;
const dotSamples = Math.floor(dotSecs * sampleFreq);
const dashSecs = 0.185;
const dashSecs = 0.18;
const dashSamples = Math.floor(dashSecs * sampleFreq);
const breakSecs = 0.5;
const breakSecs = 0.75;
const breakSamples = Math.floor(breakSecs * sampleFreq);
let skip = false;
for (let cIndex = 0; cIndex < processedScript.length; cIndex++) {