allMagResponse = {
const points = [];
const allMagResponse = new Float32Array(responses[0].magResponse.length);
for (let i = 0; i < allMagResponse.length; i++) {
allMagResponse[i] = 1;
}
for (let bandI = 0; bandI < responses.length; bandI++) {
for (let i = 0; i < responses[bandI].magResponse.length; i++) {
allMagResponse[i] *= responses[bandI].magResponse[i];
}
}
for (let i = 0; i < allMagResponse.length; i++) {
const dbResponse = 20.0 * Math.log(allMagResponse[i]) / Math.LN10;
points.push({ freq: responses[0].freqHz[i], db: dbResponse, band: 'combined' });
}
return points;
}