example/stretcher/soundtouch.js
function() {
            var seq;
            var seek;

            if (this.bAutoSeqSetting) {
                seq = AUTOSEQ_C + AUTOSEQ_K * this._tempo;
                seq = this.checkLimits(seq, AUTOSEQ_AT_MAX, AUTOSEQ_AT_MIN);
                this.sequenceMs = Math.floor(seq + 0.5);
            }

            if (this.bAutoSeekSetting) {
                seek = AUTOSEEK_C + AUTOSEEK_K * this._tempo;
                seek = this.checkLimits(seek, AUTOSEEK_AT_MAX, AUTOSEEK_AT_MIN);
                this.seekWindowMs = Math.floor(seek + 0.5);
            }

            // Update seek window lengths
            this.seekWindowLength = Math.floor(
                (this.sampleRate * this.sequenceMs) / 1000
            );
            this.seekLength = Math.floor(
                (this.sampleRate * this.seekWindowMs) / 1000
            );
        }
function() {
            var seq;
            var seek;

            if (this.bAutoSeqSetting) {
                seq = AUTOSEQ_C + AUTOSEQ_K * this._tempo;
                seq = this.checkLimits(seq, AUTOSEQ_AT_MAX, AUTOSEQ_AT_MIN);
                this.sequenceMs = Math.floor(seq + 0.5);
            }

            if (this.bAutoSeekSetting) {
                seek = AUTOSEEK_C + AUTOSEEK_K * this._tempo;
                seek = this.checkLimits(seek, AUTOSEEK_AT_MAX, AUTOSEEK_AT_MIN);
                this.seekWindowMs = Math.floor(seek + 0.5);
            }

            // Update seek window lengths
            this.seekWindowLength = Math.floor(
                (this.sampleRate * this.sequenceMs) / 1000
            );
            this.seekLength = Math.floor(
                (this.sampleRate * this.seekWindowMs) / 1000
            );
        }
function ( ) { var seq ; var seek ; if ( this . bAutoSeqSetting ) { seq = AUTOSEQ_C + AUTOSEQ_K * this . _tempo ; seq = this . checkLimits ( seq , AUTOSEQ_AT_MAX , AUTOSEQ_AT_MIN ) ; this . sequenceMs = Math . floor ( seq + 0.5 ) ; } if ( this . bAutoSeekSetting ) { seek = AUTOSEEK_C + AUTOSEEK_K * this . _tempo ; seek = this . checkLimits ( seek , AUTOSEEK_AT_MAX , AUTOSEEK_AT_MIN ) ; this . seekWindowMs = Math . floor ( seek + 0.5 ) ; } // Update seek window lengths this . seekWindowLength = Math . floor ( ( this . sampleRate * this . sequenceMs ) / 1000 ) ; this . seekLength = Math . floor ( ( this . sampleRate * this . seekWindowMs ) / 1000 ) ; }
Calculates processing sequence length according to tempo setting
Calculates processing sequence length according to tempo setting