Skip to content

Commit

Permalink
fix clicking when low cut set to 0
Browse files Browse the repository at this point in the history
don't process band 0, since that's just the DC offset,
so it by definition does not have a phase, and processing it just introduces
jumps in the waveform, heard as constant periodic clicking
  • Loading branch information
micsthepick committed Aug 14, 2020
1 parent e1c4dee commit bc37cd5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vocalrediso.jsfx
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ phaseWhigh = slider9*$pi/180;
cosine = cos(rotation);
sine = sin(rotation);
// fill strengthBuffer and phaseWBuffer
bandIndex = 0;
loop(SIZE,
bandIndex = 1;
loop(SIZE-1,
bandIndex >= lowBin && bandIndex < highBin ?
(
// only set values for the appropriate frequency range
Expand Down

0 comments on commit bc37cd5

Please sign in to comment.