From b7bdf772adb98c52e8d0f92be7a2271c793e3a36 Mon Sep 17 00:00:00 2001 From: Henrique Vianna Date: Sun, 12 May 2024 15:44:41 -0300 Subject: [PATCH] Bump version; update changelog. --- Changelog.md | 17 +++++++++++++++++ package.json | 2 +- src/audioMotion-analyzer.js | 4 ++-- 3 files changed, 20 insertions(+), 3 deletions(-) diff --git a/Changelog.md b/Changelog.md index baa0371..ef91b32 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,6 +1,23 @@ Changelog ========= +## version 4.5.0 (2024-05-12) + +### Added: + ++ [`fadePeaks`](README.md#fadepeaks-boolean) - peaks fade out instead of falling down - thanks **@TF3RDL** for this [idea](https://codepen.io/TF3RDL/pen/MWLzPoO); ++ [`gravity`](README.md#gravity-number) - customize peak drop acceleration; ++ [`peakFadeTime`](README.md#peakfadetime-number) - customize peak fade-out time; ++ [`peakHoldTime`](README.md#peakholdtime-number) - customize peak hold time; ++ UMD module export - allows using the module via _require()_ and provides a global variable for easier usage in the browser - thanks **@shahkashani** for the suggestion ([#71](https://github.com/hvianna/audioMotion-analyzer/issues/71) and [#72](https://github.com/hvianna/audioMotion-analyzer/issues/72)); + **see the [Usage](README.md#usage) section for more details.** + +The new gravity equation restores the original peak drop behavior and decay curve (using the default value) of versions 1.0.0 through 3.4.0. +Check out the [peak drop analysis tool](/tools/peak-drop.html) for more information on the evolution of the equation and to compare different values of `gravity`. + +As usual, you can interact with all the new properties in the [fluid demo](/demo/fluid.html). + + ## version 4.4.0 (2024-01-26) ### Added: diff --git a/package.json b/package.json index 4e7a6de..3c1444c 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "audiomotion-analyzer", "description": "High-resolution real-time graphic audio spectrum analyzer JavaScript module with no dependencies.", - "version": "4.5.0-beta.0", + "version": "4.5.0", "main": "./dist/index.js", "module": "./src/audioMotion-analyzer.js", "types": "./src/index.d.ts", diff --git a/src/audioMotion-analyzer.js b/src/audioMotion-analyzer.js index a38eab0..cc7d902 100644 --- a/src/audioMotion-analyzer.js +++ b/src/audioMotion-analyzer.js @@ -2,12 +2,12 @@ * audioMotion-analyzer * High-resolution real-time graphic audio spectrum analyzer JS module * - * @version 4.5.0-beta.0 + * @version 4.5.0 * @author Henrique Avila Vianna * @license AGPL-3.0-or-later */ -const VERSION = '4.5.0-beta.0'; +const VERSION = '4.5.0'; // internal constants const PI = Math.PI,