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>