Skip to content

Commit

Permalink
chore: Disable waveform normalization
Browse files Browse the repository at this point in the history
  • Loading branch information
bclswl0827 committed Dec 3, 2024
1 parent 3d0b1cf commit 06e1159
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions frontend/src/src/workers/handleSetCharts.worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ export const api = {
) => {
const timestamp = bufferData[0];
const channelData = Array.from(bufferData).slice(1);
const normalizedData = getNormalizedData(channelData, 0);
// const normalizedData = getNormalizedData(channelData, 0);

if (filterEnabled) {
return Array.from(
getFilteredCounts(Float32Array.from(normalizedData), {
getFilteredCounts(Float32Array.from(channelData), {
poles,
lowFreqCorner,
highFreqCorner,
Expand All @@ -30,10 +30,7 @@ export const api = {
).map((value, index) => [timestamp + (1000 / sampleRate) * index, value]);
}

return normalizedData.map((value, index) => [
timestamp + (1000 / sampleRate) * index,
value
]);
return channelData.map((value, index) => [timestamp + (1000 / sampleRate) * index, value]);
},
getLabelAxisValues: (bufferData: Float64Array[]) => {
const channelData = [];
Expand Down

0 comments on commit 06e1159

Please sign in to comment.