Skip to content

Commit

Permalink
Update changelog; bump version for beta release.
Browse files Browse the repository at this point in the history
  • Loading branch information
hvianna committed May 8, 2022
1 parent 2fbdf96 commit 08efdc9
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 8 deletions.
34 changes: 29 additions & 5 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,35 @@
Changelog
=========

## version 4.0.0-beta.0 (2022-05-08)

### 🚨BREAKING CHANGES: <!-- {docsify-ignore} -->

+ Removed deprecated properties:
+ ~`energy`~ - use `getEnergy()` instead
+ ~`isLedDisplay`~ - use `isLedBars` instead
+ ~`peakEnergy`~ - use `getEnergy('peak')` instead
+ ~`showLeds`~ - use `ledBars` instead

+ `getBars()` elements now contain an extra `freq` property (potentially breaking in TypeScript projects), which represents the bar's center frequency.
The range of each bar has also changed from version 3.6.0, with frequencies that were previously at the lower edge (`freqLo`) now placed at the center.

### Added: <!-- {docsify-ignore} -->

+ [`ansiBands`](README.md#ansibands-boolean) property, to use ANSI/IEC preferred frequencies for the octave bands - thanks [**@jonathan-annett** for suggesting this](https://github.com/hvianna/audioMotion.js/issues/28);
+ [`linearAmplitude`](README.md#linearamplitude-boolean) property, to use linear values instead of dB for bar amplitudes - thanks [**@TF3RDL** for the idea](https://github.com/hvianna/audioMotion-analyzer/issues/30);
+ [`noteLabels`](README.md#notelabels-boolean) property, to show musical note labels instead of frequency values on the X axis.

### Changed and improved: <!-- {docsify-ignore} -->

+ Optimized generation of octave bands, with more accurate bands range and center frequencies;
+ Frequency labels on the X axis now show slightly different values depending on whether the analyzer is set to use the equal-tempered scale
(default) or the ANSI standard bands (`ansiBands` == true), to properly match the octave bands center frequencies;
+ [`maxFreq`] is now capped to half the AudioContext's sample rate (Nyquist frequency);
+ Code optimizations, minor fixes and clean-up;
+ Updated demos.


## version 3.6.0 (2021-10-10)

### Added: <!-- {docsify-ignore} -->
Expand Down Expand Up @@ -285,8 +314,3 @@ and creates a consistent effect, whether overlay mode is on or off~~ **(reverted
## version 1.0.0 (2019-10-07)

+ First stable release.


## version 1.0.0-rc.1 (2019-10-05)

+ Release candidate for v1.0.0
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.6.0",
"version": "4.0.0-beta.0",
"main": "./src/audioMotion-analyzer.js",
"module": "./src/audioMotion-analyzer.js",
"types": "./src/index.d.ts",
Expand Down
4 changes: 2 additions & 2 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.6.0
* @version 4.0.0-beta.0
* @author Henrique Avila Vianna <hvianna@gmail.com> <https://henriquevianna.com>
* @license AGPL-3.0-or-later
*/

const VERSION = '3.6.0';
const VERSION = '4.0.0-beta.0';

// internal constants
const TAU = 2 * Math.PI,
Expand Down

0 comments on commit 08efdc9

Please sign in to comment.