]> OzVa Git service - note-remover/commitdiff
fixed the textual display main
authorwill <greenwoodw50@gmail.com>
Sun, 7 Apr 2024 19:28:54 +0000 (20:28 +0100)
committerwill <greenwoodw50@gmail.com>
Sun, 7 Apr 2024 19:28:54 +0000 (20:28 +0100)
note-remover.html

index b588a467d27a577ddbc9dcbee7d1723ec1641762..f7728627640198909bd1c9d48febcceee184673e 100644 (file)
 
             let string = "FilterCurve:";
             for (let i = 0; i < fPoints.length; i++) {
-                string += `f${i}="${fPoints[i]}" `
+                string += `f${i}="${fPoints[i]}" `;
             }
             string += 'FilterLength="8191" InterpolateLin="0" InterpolationMethod="B-spline" '
             for (let i = 0; i < aPoints.length; i++) {
-                string += `v${i}="${aPoints[i]}" `
+                string += `v${i}="${aPoints[i]}" `;
             }
+            document.getElementById("textual").innerHTML = string;
             document.getElementById("stats").innerHTML = `Generated ${aPoints.length} points. Will work with Audacity?: ${aPoints.length <= 200} (max. 200 points)`;
 
             const file = new File([string], 'filter.txt', {
                 type: 'text/plain',
             });
-            const link = document.createElement('a')
-            const url = URL.createObjectURL(file)
-            link.href = url
-            link.download = file.name
-            document.body.appendChild(link)
-            link.click()
-            document.body.removeChild(link)
-            window.URL.revokeObjectURL(url)
+            const link = document.createElement('a');
+            const url = URL.createObjectURL(file);
+            link.href = url;
+            link.download = file.name;
+            document.body.appendChild(link);
+            link.click();
+            document.body.removeChild(link);
+            window.URL.revokeObjectURL(url);
         }
         </script>
     </head>
         <p>(c) William Greenwood 2023</p>
     
 
-</body></html>
\ No newline at end of file
+</body></html>