Skip to content

Commit

Permalink
Version 3.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
hvianna committed Apr 3, 2021
2 parents f7bf39e + 6e0b898 commit 057ee6f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
5 changes: 5 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Changelog
=========

## version 3.2.1 (2021-04-03)

+ Fixes an undefined property error.


## version 3.2.0 (2021-04-03)

### Added: {docsify-ignore}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "audiomotion-analyzer",
"description": "High-resolution real-time graphic audio spectrum analyzer JavaScript module with no dependencies.",
"version": "3.2.0",
"version": "3.2.1",
"main": "./src/audioMotion-analyzer.js",
"module": "./src/audioMotion-analyzer.js",
"types": "./src/index.d.ts",
Expand Down
13 changes: 5 additions & 8 deletions src/audioMotion-analyzer.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
* audioMotion-analyzer
* High-resolution real-time graphic audio spectrum analyzer JS module
*
* @version 3.2.0
* @version 3.2.1
* @author Henrique Avila Vianna <hvianna@gmail.com> <https://henriquevianna.com>
* @license AGPL-3.0-or-later
*/

const VERSION = '3.2.0';
const VERSION = '3.2.1';

// internal constants
const TAU = 2 * Math.PI,
Expand Down Expand Up @@ -1450,6 +1450,8 @@ export default class AudioMotionAnalyzer {
*/
_calcBars() {

const bars = this._bars = []; // initialize object property

if ( ! this._ready )
return;

Expand All @@ -1460,9 +1462,7 @@ export default class AudioMotionAnalyzer {
maxFreq = this._maxFreq,
minFreq = this._minFreq;

let minLog,
logWidth,
bars = [];
let minLog, logWidth;

if ( ! this._isOctaveBands ) {
// Discrete frequencies or area fill modes
Expand Down Expand Up @@ -1565,9 +1565,6 @@ export default class AudioMotionAnalyzer {
} );
}

// update bars
this._bars = bars;

// save these for scale generation
this._minLog = minLog;
this._logWidth = logWidth;
Expand Down

0 comments on commit 057ee6f

Please sign in to comment.