Skip to content

Commit

Permalink
remove commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
Tarek committed Oct 26, 2023
1 parent ef9f51e commit 46474fe
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/lenses/SpectrogramLens/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,23 +166,15 @@ const SpectrogramLens: Lens = ({ columns, urls, values }) => {
return;
}

//console.log(JSON.stringify((buffer.getChannelData(0).slice(start, end)))
//const slice = buffer.getChannelData(0).slice(start, end);
const arr = buffer.getChannelData(0).slice(start, end);
console.log(Math.max(...arr), Math.min(...arr));
const frequenciesData = await worker(
FFT_SAMPLES,
backend.windowFunc,
backend.alpha,
width,
FFT_SAMPLES,
arr
buffer.getChannelData(0).slice(start, end)
);

console.log(frequenciesData);
console.log(frequenciesData.length);
console.log(frequenciesData[0].length);

setIsComputing(false);

// Get the canvas render context 2D
Expand Down Expand Up @@ -216,7 +208,6 @@ const SpectrogramLens: Lens = ({ columns, urls, values }) => {
const widthScale = d3.scaleLinear([0, width], [0, frequenciesData.length]);

let drawData = [];
//let colorScale: chroma.Scale<chroma.Color>;

let min = 0;
let max = 0;
Expand Down

0 comments on commit 46474fe

Please sign in to comment.