Skip to content

Commit

Permalink
Weird nbsp issue again
Browse files Browse the repository at this point in the history
  • Loading branch information
devongovett committed Mar 30, 2013
1 parent 3d1fed7 commit 50a7636
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/fft.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,10 @@ var FFT = (function() {
input[i + 3][0] = e1[0];
input[i + 3][1] = e1[1];
} else {
input[i + 1][0] = e1[0];
input[i + 1][1] = e1[1];
input[i + 3][0] = e2[0];
input[i + 3][1] = e2[1];
input[i + 1][0] = e1[0];
input[i + 1][1] = e1[1];
input[i + 3][0] = e2[0];
input[i + 3][1] = e2[1];
}
}

Expand Down
8 changes: 4 additions & 4 deletions src/filter_bank.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,10 @@ var FilterBank = (function() {
if(i >= trans)
overlap[mid + 4 * shortLen + i - length] = (buf[shortLen * 7 + i] * shortWindows[shortLen - 1 - i]) + (buf[shortLen * 8 + i] * shortWindows[i]);

overlap[mid + 5 * shortLen + i - length] = (buf[shortLen * 9 + i] * shortWindows[shortLen - 1 - i]) + (buf[shortLen * 10 + i] * shortWindows[i]);
overlap[mid + 6 * shortLen + i - length] = (buf[shortLen * 11 + i] * shortWindows[shortLen - 1 - i]) + (buf[shortLen * 12 + i]*shortWindows[i]);
overlap[mid + 7 * shortLen + i - length] = (buf[shortLen * 13 + i] * shortWindows[shortLen - 1 - i]) + (buf[shortLen * 14 + i]*shortWindows[i]);
overlap[mid + 8 * shortLen + i - length] = (buf[shortLen * 15 + i] * shortWindows[shortLen - 1 - i]);
overlap[mid + 5 * shortLen + i - length] = (buf[shortLen * 9 + i] * shortWindows[shortLen - 1 - i]) + (buf[shortLen * 10 + i] * shortWindows[i]);
overlap[mid + 6 * shortLen + i - length] = (buf[shortLen * 11 + i] * shortWindows[shortLen - 1 - i]) + (buf[shortLen * 12 + i]*shortWindows[i]);
overlap[mid + 7 * shortLen + i - length] = (buf[shortLen * 13 + i] * shortWindows[shortLen - 1 - i]) + (buf[shortLen * 14 + i]*shortWindows[i]);
overlap[mid + 8 * shortLen + i - length] = (buf[shortLen * 15 + i] * shortWindows[shortLen - 1 - i]);
}

for (var i = 0; i < mid; i++) {
Expand Down

0 comments on commit 50a7636

Please sign in to comment.