Skip to content

Releases: hvianna/audioMotion-analyzer

version 2.0.0

24 Mar 20:50
Compare
Choose a tag to compare

What's new: 😷

Added:

  • New lineWidth and fillAlpha properties for mode 10 customization, so it can now work as an area graph (default), a line graph or a combination of both;
  • New barSpace property for customizable bar spacing in octave bands modes;
  • You can now provide an external AudioContext via audioCtx property in the constructor's options, allowing you to share the same context among different instances;
  • Custom error codes;
  • New version property;

Changed:

  • Increased default spacing between bars in octave bands modes - to get the previous look, set barSpace to 1;
  • Improved accuracy when positioning the X-axis scale labels in octave bands modes;
  • Slightly improved vertical usage of canvas when the LED effect is active (removed the black line at the bottom of the screen);
  • Canvas context is now saved before calling the user callback function and restored afterwards, to avoid undesirable changes;
  • Several functions were refactored for improved legibility, memory usage and performance;
  • Improved documentation and demos;

Fixed:

  • The multi-instance demo should now work on browsers other than Firefox (it now uses a shared audio context);
  • isFullscreen property now correctly reads false (instead of undefined) when the analyzer is not in fullscreen (potentially breaking change);
  • Setting one of the callback functions to undefined with setOptions() now properly unregisters the callback (potentially breaking change);

API breaking changes:

  • audioCtx, analyzer, canvas and canvasCtx objects are now read-only (canvasCtx properties may be safely modified while inside the callback for onCanvasDraw);
  • frame and time properties are not exposed anymore, as they are intended for internal use only;
  • registerGradient() method now enforces the name argument being a non-empty string (throws an error otherwise);
  • Errors now return a custom object and some error messages have changed - use the new code property to identify errors in a reliable way.

version 1.2.0

19 Dec 21:51
Compare
Choose a tag to compare
  • Improves the look of bars at lower frequencies in octave bands modes (especially 1/12th and 1/24th);
  • Minor tweak to the "Rainbow" gradient to make cyan and blue shades a little more balanced.

version 1.1.0

08 Dec 18:07
Compare
Choose a tag to compare
  • New Area fill visualization mode (mode: 10), which uses the same full-frequency data of the discrete frequencies mode, but generates a brighter filled shape;
  • New Luminance Bars option (lumiBars: <boolean>) for octave bands modes, which displays analyzer bars always at full-height, with varying luminance instead.

version 1.0.1

22 Oct 19:05
Compare
Choose a tag to compare

Minor cleanup to optimize npm package size.

version 1.0.0

07 Oct 20:27
Compare
Choose a tag to compare

First stable release.

version 1.0.0-rc.1

05 Oct 22:12
Compare
Choose a tag to compare
version 1.0.0-rc.1 Pre-release
Pre-release

Release Candidate for v1.0.0 - first public release.