Releases: hvianna/audioMotion-analyzer
Releases · hvianna/audioMotion-analyzer
version 2.0.0
What's new: 😷
Added:
- New
lineWidth
andfillAlpha
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'soptions
, 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 readsfalse
(instead ofundefined
) when the analyzer is not in fullscreen (potentially breaking change);- Setting one of the callback functions to
undefined
withsetOptions()
now properly unregisters the callback (potentially breaking change);
API breaking changes:
audioCtx
,analyzer
,canvas
andcanvasCtx
objects are now read-only (canvasCtx
properties may be safely modified while inside the callback foronCanvasDraw
);frame
andtime
properties are not exposed anymore, as they are intended for internal use only;registerGradient()
method now enforces thename
argument being a non-emptystring
(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
- 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
- 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
Minor cleanup to optimize npm package size.
version 1.0.0
First stable release.
version 1.0.0-rc.1
Release Candidate for v1.0.0 - first public release.