Skip to content

Commit

Permalink
Fixed issue with flush reading array out of bounds (#3)
Browse files Browse the repository at this point in the history
* Fixed issue with flush reading array out of bounds

* updated minor version number

* ran build commands
  • Loading branch information
samfoucart authored and velochy committed Jul 12, 2019
1 parent a7873bd commit 2f40479
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion dist/AudioTempoChanger.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/AudioTempoChanger.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/AudioTempoChanger.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/AudioTempoChanger.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/test.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/test.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "audio-tempo-changer.js",
"version": "0.2.0",
"version": "0.2.1",
"description": "Portable pure-JS implementation of a phase vocoder for changing audio tempo",
"main": "dist/AudioTempoChanger.js",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion src/audio_tempo_changer.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@

// Clear the now-made-future tempo changes (if any)
var ci = changes.length-1;
while(out_time<=changes[ci].out_time && ci>=0) { changes.pop(); ci--; }
while(ci > 0 && out_time <= changes[ci].out_time) { changes.pop(); ci--; }

// Add a tempo change reflecting current state
changes.push({
Expand Down

0 comments on commit 2f40479

Please sign in to comment.