Skip to content

Commit

Permalink
Increase window size for better resolution in low frequencies
Browse files Browse the repository at this point in the history
  • Loading branch information
sdegueldre committed Jul 16, 2019
1 parent d3c267d commit 8865cbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ let rightSamples;
}
})();

const halfWinsize = 2048;
const halfWinsize = 4096;
function getFrame(time){
let left = leftSamples.slice(Math.max(0, ~~(time*samplingRate) - halfWinsize), Math.max(2*halfWinsize, ~~(time*samplingRate) + halfWinsize));
let right = rightSamples.slice(Math.max(0, ~~(time*samplingRate) - halfWinsize), Math.max(2*halfWinsize, ~~(time*samplingRate) + halfWinsize));
Expand Down

0 comments on commit 8865cbe

Please sign in to comment.