From: will Date: Sun, 7 Apr 2024 19:28:54 +0000 (+0100) Subject: fixed the textual display X-Git-Url: https://git.ozva.co.uk/?a=commitdiff_plain;ds=sidebyside;p=note-remover fixed the textual display --- diff --git a/note-remover.html b/note-remover.html index b588a46..f772862 100644 --- a/note-remover.html +++ b/note-remover.html @@ -198,25 +198,26 @@ 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); } @@ -323,4 +324,4 @@

(c) William Greenwood 2023

- \ No newline at end of file +