code: function(overlapInMsec) {
              var newOvl;
  
              // TODO assert(overlapInMsec >= 0);
              newOvl = (this.sampleRate * overlapInMsec) / 1000;
              if (newOvl < 16) newOvl = 16;
  
              // must be divisible by 8
              newOvl -= newOvl % 8;
  
              this.overlapLength = newOvl;
  
              this.pRefMidBuffer = new Float32Array(this.overlapLength * 2);
              this.pMidBuffer = new Float32Array(this.overlapLength * 2);
          }
docs: Calculates overlapInMsec period length in samples.