From ffe433508af77aac30f79200d281b4326173af75 Mon Sep 17 00:00:00 2001 From: ZoRo Date: Fri, 27 Aug 2021 09:48:11 +0100 Subject: Fixed input data bug --- Build/index.html | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) (limited to 'Build/index.html') diff --git a/Build/index.html b/Build/index.html index 1a571f7..df0ba28 100644 --- a/Build/index.html +++ b/Build/index.html @@ -23,8 +23,9 @@ script.src = "index.js"; script.onload = function() { console.log("Emscripten boilerplate loaded."); - run_dft = Module.cwrap("dft", [],[['float'],['float'],'number','number']); - run_fft= Module.cwrap("fft_1",[],[['float'],['float'],'number','number']); + run_dft = Module.cwrap("dft", [],[['float'],['float'],'number','number']); + run_fft_shuffle = Module.cwrap("ffti_shuffle_1", [],[['float'],['float'],'number']); + run_fft = Module.cwrap("fft_1", [],[['float'],['float'],'number','number']); @@ -48,7 +49,7 @@ } function checkArr(inputData,errorOutput) { - var strArr = inputDataI.value; + var strArr = inputData.value; strArr = strArr.replace(/ +(?= )/g,''); var splArr = strArr.split(" "); @@ -87,21 +88,22 @@ for(let i=0,j=0;i