tone-stream 1.14.0 → 1.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/utils.js +2 -2
- package/package.json +1 -1
package/lib/utils.js
CHANGED
|
@@ -119,9 +119,9 @@ const gen_binary_tones_from_text = (text, tone_duration, zero_freq, one_freq, sa
|
|
|
119
119
|
const samples_per_tone = Math.round(tone_duration * sampleRate / 1000)
|
|
120
120
|
|
|
121
121
|
const binaries = text.split("").map(asciiToBinary).join("").split("")
|
|
122
|
-
console.log("binaries", binaries)
|
|
122
|
+
//console.log("binaries", binaries)
|
|
123
123
|
const freqs = binaries.map(binary => binary == '0' ? zero_freq : one_freq)
|
|
124
|
-
console.log("freqs", freqs)
|
|
124
|
+
//console.log("freqs", freqs)
|
|
125
125
|
|
|
126
126
|
var last = null
|
|
127
127
|
for (var i=0 ; i<freqs.length; i++) {
|