mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-05 13:53:12 +02:00
Fix
This commit is contained in:
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user