audiomotion-analyzer 3.6.0 → 3.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -3
- package/package.json +1 -1
- package/src/audioMotion-analyzer.js +2 -2
- package/src/index.d.ts +2 -2
- package/Changelog.md +0 -292
package/README.md
CHANGED
|
@@ -939,7 +939,8 @@ Use this method inside your callback function to create additional visual effect
|
|
|
939
939
|
|
|
940
940
|
Registers a custom color gradient.
|
|
941
941
|
|
|
942
|
-
`name` must be a non-empty *string* that will be used
|
|
942
|
+
`name` must be a non-empty *string* that will be used to select this gradient, via the [`gradient`](#gradient-string) property.
|
|
943
|
+
`options` must be an object as shown below:
|
|
943
944
|
|
|
944
945
|
```js
|
|
945
946
|
const options = {
|
|
@@ -947,12 +948,21 @@ const options = {
|
|
|
947
948
|
dir: 'h', // add this property to create a horizontal gradient (optional)
|
|
948
949
|
colorStops: [ // list your gradient colors in this array (at least 2 entries are required)
|
|
949
950
|
'red', // colors may be defined in any valid CSS format
|
|
950
|
-
{ pos: .6, color: '#ff0' }, // use an object to adjust the
|
|
951
|
+
{ pos: .6, color: '#ff0' }, // use an object to adjust the offset (0 to 1) of a colorStop
|
|
951
952
|
'hsl( 120, 100%, 50% )' // colors may be defined in any valid CSS format
|
|
952
953
|
]
|
|
953
954
|
}
|
|
954
955
|
|
|
955
|
-
audioMotion.registerGradient( '
|
|
956
|
+
audioMotion.registerGradient( 'myGradient', options );
|
|
957
|
+
```
|
|
958
|
+
|
|
959
|
+
!> In TypeScript projects make sure to import the `GradientOptions` definition and use it as the type of your object, like so:
|
|
960
|
+
|
|
961
|
+
```js
|
|
962
|
+
import AudioMotionAnalyzer, { GradientOptions } from 'audiomotion-analyzer'
|
|
963
|
+
|
|
964
|
+
const options: GradientOptions = {
|
|
965
|
+
⋮
|
|
956
966
|
```
|
|
957
967
|
|
|
958
968
|
Additional information about [gradient color-stops](https://developer.mozilla.org/en-US/docs/Web/API/CanvasGradient/addColorStop).
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "audiomotion-analyzer",
|
|
3
3
|
"description": "High-resolution real-time graphic audio spectrum analyzer JavaScript module with no dependencies.",
|
|
4
|
-
"version": "3.6.
|
|
4
|
+
"version": "3.6.1",
|
|
5
5
|
"main": "./src/audioMotion-analyzer.js",
|
|
6
6
|
"module": "./src/audioMotion-analyzer.js",
|
|
7
7
|
"types": "./src/index.d.ts",
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
* audioMotion-analyzer
|
|
3
3
|
* High-resolution real-time graphic audio spectrum analyzer JS module
|
|
4
4
|
*
|
|
5
|
-
* @version 3.6.
|
|
5
|
+
* @version 3.6.1
|
|
6
6
|
* @author Henrique Avila Vianna <hvianna@gmail.com> <https://henriquevianna.com>
|
|
7
7
|
* @license AGPL-3.0-or-later
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
const VERSION = '3.6.
|
|
10
|
+
const VERSION = '3.6.1';
|
|
11
11
|
|
|
12
12
|
// internal constants
|
|
13
13
|
const TAU = 2 * Math.PI,
|
package/src/index.d.ts
CHANGED
package/Changelog.md
DELETED
|
@@ -1,292 +0,0 @@
|
|
|
1
|
-
Changelog
|
|
2
|
-
=========
|
|
3
|
-
|
|
4
|
-
## version 3.6.0 (2021-10-10)
|
|
5
|
-
|
|
6
|
-
### Added: <!-- {docsify-ignore} -->
|
|
7
|
-
|
|
8
|
-
+ [`alphaBars`](README.md#alphabars-boolean) effect, which is similar to `lumiBars` but preserves bars' amplitudes and also works on discrete frequencies mode and radial visualization;
|
|
9
|
-
+ [`outlineBars`](README.md#outlinebars-boolean) effect, which extends the usage of `lineWidth` and `fillAlpha` to octave bands modes;
|
|
10
|
-
+ [`isAlphaBars`](README.md#isalphabars-boolean-read-only) and [`isOutlineBars`](README.md#isoutlinebars-boolean-read-only) read-only properties.
|
|
11
|
-
|
|
12
|
-
### Changed: <!-- {docsify-ignore} -->
|
|
13
|
-
|
|
14
|
-
+ `showLeds` and `isLedDisplay` **have been deprecated** in favor of [`ledBars`](README.md#ledbars-boolean) and [`isLedBars`](README.md#isledbars-boolean-read-only), for consistent naming of effects.
|
|
15
|
-
|
|
16
|
-
### Fixed: <!-- {docsify-ignore} -->
|
|
17
|
-
|
|
18
|
-
+ [`getEnergy()`](README.md#getenergy-preset-startfreq-endfreq-) would not accept a fractionary initial frequency.
|
|
19
|
-
|
|
20
|
-
### Improved: <!-- {docsify-ignore} -->
|
|
21
|
-
|
|
22
|
-
+ Regenerate the current gradient if/when it is re-registered [(#21)](https://github.com/hvianna/audioMotion-analyzer/issues/21);
|
|
23
|
-
+ The [fluid demo](/demo/fluid.html) now shows the status of read-only flags, for better visualization of interactions between different properties.
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
## version 3.5.1 (2021-09-10)
|
|
27
|
-
|
|
28
|
-
+ Removed named tuples from the TS type definitions file, for improved compatibility [(#20)](https://github.com/hvianna/audioMotion-analyzer/issues/20).
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
## version 3.5.0 (2021-07-15)
|
|
32
|
-
|
|
33
|
-
### Added: <!-- {docsify-ignore} -->
|
|
34
|
-
|
|
35
|
-
+ [`getBars()`](README.md#getbars) method, which provides real-time analyzer data;
|
|
36
|
-
+ [`useCanvas`](README.md#usecanvas-boolean) property to disable rendering to the canvas - thanks **@davay42** for [suggesting this feature](https://github.com/hvianna/audioMotion-analyzer/issues/19);
|
|
37
|
-
+ A tool to view/debug the generated octave bands - see the `/tools` folder.
|
|
38
|
-
|
|
39
|
-
### Improved: <!-- {docsify-ignore} -->
|
|
40
|
-
|
|
41
|
-
+ Fine-tuned generation of octave bands;
|
|
42
|
-
+ Improved FFT data interpolation;
|
|
43
|
-
+ Improved peak rendering when changing visualization modes;
|
|
44
|
-
+ Added a simple piano keyboard to the test tones section of the "fluid" demo;
|
|
45
|
-
+ Added search funcionality to the documentation website.
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
## version 3.4.0 (2021-05-29)
|
|
49
|
-
|
|
50
|
-
### Added: <!-- {docsify-ignore} -->
|
|
51
|
-
|
|
52
|
-
+ [`fsElement`](README.md#fselement-htmlelement-object) constructor option, for easily handling fullscreen on any element.
|
|
53
|
-
|
|
54
|
-
### Fixed and improved: <!-- {docsify-ignore} -->
|
|
55
|
-
|
|
56
|
-
+ Fixed radial analyzer too wide in vertical containers;
|
|
57
|
-
+ Fixed out of bounds bar in mode 0 (discrete frequencies) with `mirror` set to -1;
|
|
58
|
-
+ Improved fullscreen rendering in portrait orientation displays;
|
|
59
|
-
+ Improved font size adjustment for scale labels and FPS display on vertical containers.
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
## version 3.3.0 (2021-05-03)
|
|
63
|
-
|
|
64
|
-
### Added: <!-- {docsify-ignore} -->
|
|
65
|
-
|
|
66
|
-
+ New horizontal mirroring effect; see [`mirror`](README.md#mirror-number) property - thanks **@lexterror** for [suggesting this feature](https://github.com/hvianna/audioMotion-analyzer/issues/16).
|
|
67
|
-
|
|
68
|
-
### Improvements: <!-- {docsify-ignore} -->
|
|
69
|
-
|
|
70
|
-
+ `colorStops` type definition updated for improved compatibility ([see #17](https://github.com/hvianna/audioMotion-analyzer/pull/17)) - props to [@Staijn1](https://github.com/Staijn1).
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
## version 3.2.1 (2021-04-03)
|
|
74
|
-
|
|
75
|
-
+ Fixes an undefined property error.
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
## version 3.2.0 (2021-04-03)
|
|
79
|
-
|
|
80
|
-
### Added: <!-- {docsify-ignore} -->
|
|
81
|
-
|
|
82
|
-
+ [`getEnergy()`](README.md#getenergy-preset-startfreq-endfreq-) method - see it in action on [this pen](https://codepen.io/hvianna/pen/poNmVYo) - thanks **@Staijn1** for [suggesting this feature](https://github.com/hvianna/audioMotion.js/issues/12#issuecomment-733045035);
|
|
83
|
-
+ [`setLedParams()`](README.md#setledparams-params-) method, which allows you to customize the look of the LEDs - you can try it in the [fluid demo](https://audiomotion.dev/demo/fluid.html);
|
|
84
|
-
+ [`connectSpeakers`](README.md#connectspeakers-boolean) constructor option - thanks **@evoyy** for the [suggestion](https://github.com/hvianna/audioMotion-analyzer/issues/13);
|
|
85
|
-
+ [`connectedTo`](README.md#connectedto-array-read-only) read only property.
|
|
86
|
-
|
|
87
|
-
### Improvements: <!-- {docsify-ignore} -->
|
|
88
|
-
|
|
89
|
-
+ When passing an AudioNode in the `source` property of constructor, it's no longer necessary to explicitly provide the `audioCtx`, as it will be inferred from the source node - thanks [@evoyy](https://github.com/evoyy) for this idea;
|
|
90
|
-
+ Disconnecting the output from the speakers no longer prevents the analyzer from working on Chromium-based browsers;
|
|
91
|
-
+ Expose the `GradientOptions` TypeScript interface for user scripts (props to [@Staijn1](https://github.com/Staijn1));
|
|
92
|
-
+ Improved the look of the LEDs effect in very small containers (like in the [multi-instance demo](https://audiomotion.dev/demo/multi.html)), especially when `loRes` is active;
|
|
93
|
-
+ Refactored some code for improved legibility, performance and file size (still below 20kB minified! :sunglasses:);
|
|
94
|
-
+ Added compatibility with *standardized-audio-context* library - thanks [@richclingman](https://github.com/richclingman) for reporting this issue.
|
|
95
|
-
|
|
96
|
-
### Changed: <!-- {docsify-ignore} -->
|
|
97
|
-
|
|
98
|
-
+ `energy` and `peakEnergy` properties have been **deprecated and will be removed in the next major release** - use `getEnergy()` and `getEnergy('peak')` instead;
|
|
99
|
-
+ FPS display font size is now scaled relatively to the canvas height;
|
|
100
|
-
+ `pixelRatio` is now correctly reported for HiDPI devices with screen height <= 1080px.
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
## version 3.1.0 (2021-02-27)
|
|
104
|
-
|
|
105
|
-
### Added: <!-- {docsify-ignore} -->
|
|
106
|
-
|
|
107
|
-
+ TypeScript definition file (props to [@alex-greff](https://github.com/alex-greff)).
|
|
108
|
-
|
|
109
|
-
### Improvements: <!-- {docsify-ignore} -->
|
|
110
|
-
|
|
111
|
-
+ Generate only the currently selected gradient on mode/gradient changes.
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
## version 3.0.0 (2020-11-28)
|
|
115
|
-
|
|
116
|
-
### BREAKING CHANGES: <!-- {docsify-ignore} -->
|
|
117
|
-
|
|
118
|
-
+ The `analyzer` object is no longer exposed - use the new [`connectInput()`](README.md#connectinput-source-) method to connect all audio sources and [`connectOutput()`](README.md#connectoutput-node-) to connect the analyzer output to other nodes;
|
|
119
|
-
+ `audioSource` property has been renamed to [`connectedSources`](README.md#connectedsources-array), which now returns an **array** of all connected audio sources;
|
|
120
|
-
+ `binToFreq()` and `freqToBin()` methods have been removed;
|
|
121
|
-
+ `connectAudio()` method has been replaced by [`connectInput()`](README.md#connectinput-source-), which now accepts either an HTML media element or any instance of AudioNode;
|
|
122
|
-
+ `dataArray` property is no longer exposed;
|
|
123
|
-
+ `showScale` property has been renamed to [`showScaleX`](README.md#showscalex-boolean);
|
|
124
|
-
+ `version` is now a **static** property and should always be accessed as [`AudioMotionAnalyzer.version`](README.md#audiomotionanalyzerversion-string-read-only).
|
|
125
|
-
|
|
126
|
-
### New features: <!-- {docsify-ignore} -->
|
|
127
|
-
|
|
128
|
-
+ Dual channel (stereo) analyzer option;
|
|
129
|
-
+ Built-in volume control;
|
|
130
|
-
+ New methods for easy connection/disconnection of input and output nodes:
|
|
131
|
-
+ [`connectInput()`](README.md#connectinput-source-)
|
|
132
|
-
+ [`disconnectInput()`](README.md#disconnectinput-node-)
|
|
133
|
-
+ [`connectOutput()`](README.md#connectoutput-node-)
|
|
134
|
-
+ [`disconnectOutput()`](README.md#disconnectoutput-node-)
|
|
135
|
-
+ New properties:
|
|
136
|
-
+ [`isOctaveBands`](README.md#isoctavebands-boolean-read-only) (read only)
|
|
137
|
-
+ [`isLedDisplay`](README.md#isleddisplay-boolean-read-only) (read only)
|
|
138
|
-
+ [`isLumiBars`](README.md#islumibars-boolean-read-only) (read only)
|
|
139
|
-
+ [`stereo`](README.md#stereo-boolean)
|
|
140
|
-
+ [`splitGradient`](README.md#splitgradient-boolean)
|
|
141
|
-
+ [`volume`](README.md#volume-number)
|
|
142
|
-
|
|
143
|
-
### Improvements: <!-- {docsify-ignore} -->
|
|
144
|
-
|
|
145
|
-
+ Automatically unlock/resume the AudioContext on first user click, so you don't need to handle this in your code anymore;
|
|
146
|
-
+ Improved FFT data interpolation on low frequencies (especially noticeable in 1/12th and 1/24th octave bands);
|
|
147
|
-
+ Corrected initial amplitude of line / area graph.
|
|
148
|
-
|
|
149
|
-
### Fixed: <!-- {docsify-ignore} -->
|
|
150
|
-
|
|
151
|
-
+ A compatibility issue that could cause `reflexRatio` not to work in some environments.
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
## version 2.5.0 (2020-10-07)
|
|
155
|
-
|
|
156
|
-
### Improvements: <!-- {docsify-ignore} -->
|
|
157
|
-
|
|
158
|
-
+ Behavior of the [`onCanvasResize`](README.md#oncanvasresize-function) callback is now consistent across different browsers. Changes worth of note:
|
|
159
|
-
1. on fullscreen changes, **only a `'fschange'` *reason* will be reported** to the callback function - no more redundant `'resize'` calls;
|
|
160
|
-
2. the callback function is now executed **only when canvas dimensions effectively change** from the previous state - for example,
|
|
161
|
-
setting [`loRes`](README.md#lores-boolean) or [`width`](README.md#width-number) to the same value they already have won't trigger a callback;
|
|
162
|
-
+ Canvas dimensions are now properly updated whenever the container element is resized, not only on window resize;
|
|
163
|
-
+ [`audioSource`](README.md#audiosource-mediaelementaudiosourcenode-object) now returns the first audio source connected via [`connectAudio()`](README.md#connectaudio-element-)
|
|
164
|
-
method, if no source was provided during instantiation;
|
|
165
|
-
+ Size of scale labels on both axes is now scaled relatively to the canvas height;
|
|
166
|
-
+ Added a [new demo](https://audiomotion.dev/demo) with only the minimal code required to use audioMotion-analyzer;
|
|
167
|
-
+ Demo scripts are now loaded as native ES6 modules and no longer require bundling. See the [README file](demo/README.md) for instructions on running the demos locally.
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
## version 2.4.0 (2020-07-18)
|
|
171
|
-
|
|
172
|
-
### Added: <!-- {docsify-ignore} -->
|
|
173
|
-
|
|
174
|
-
+ New **Radial** visualization - see [`radial`](README.md#radial-boolean) and [`spinSpeed`](README.md#spinspeed-number) properties and try them in the [demos](https://audiomotion.dev/demo)! - thanks **@inglesuniversal** for [suggesting this feature](https://github.com/hvianna/audioMotion.js/issues/6);
|
|
175
|
-
+ [`showScaleY`](README.md#showscaley-boolean) property for displaying the level (dB) scale on the analyzer's vertical axis;
|
|
176
|
-
+ [`energy`](README.md#energy-number-read-only) and [`peakEnergy`](README.md#peakenergy-number-read-only) read-only properties;
|
|
177
|
-
+ [Known issues](README.md#known-issues) section added to the documentation.
|
|
178
|
-
|
|
179
|
-
### Changed: <!-- {docsify-ignore} -->
|
|
180
|
-
|
|
181
|
-
+ [`setOptions()`](README.md#setoptions-options-) called with no argument now **resets all configuration options to their default values** (it used to raise an error);
|
|
182
|
-
+ The LED effect code has been refactored to improve appearance and compatibility with other (future) effects;
|
|
183
|
-
+ "Unlit" LEDs are no longer displayed in **overlay mode** - see the notice in [`showBgColor`](README.md#showbgcolor-boolean) documentation;
|
|
184
|
-
+ Canvas `fillStyle` and `strokeStyle` properties are now set with the current gradient before calling the [`onCanvasDraw`](README.md#oncanvasdraw-function) callback function;
|
|
185
|
-
+ Updated all [demos](https://audiomotion.dev/demo) with more straightforward access to configuration options.
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
## version 2.3.0 (2020-06-08)
|
|
189
|
-
|
|
190
|
-
### Added: <!-- {docsify-ignore} -->
|
|
191
|
-
|
|
192
|
-
+ [`binToFreq()`](README.md#bintofreq-bin-) and [`freqToBin()`](README.md#freqtobin-frequency-rounding-) methods;
|
|
193
|
-
+ [`reflexBright`](README.md#reflexbright-number) property, which allows to adjust the brightness of the reflected image.
|
|
194
|
-
|
|
195
|
-
### Changed: <!-- {docsify-ignore} -->
|
|
196
|
-
|
|
197
|
-
+ Reverted the change to `reflexAlpha` introduced in [v2.2.1](https://github.com/hvianna/audioMotion-analyzer/releases/tag/2.2.1)
|
|
198
|
-
+ Removed the forced black layer off the reflection background.
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
## version 2.2.1 (2020-05-31)
|
|
202
|
-
|
|
203
|
-
### Changed: <!-- {docsify-ignore} -->
|
|
204
|
-
|
|
205
|
-
+ ~~Improved the Reflex effect in [`overlay`](README.md#overlay-boolean) mode - the [`reflexAlpha`](README.md#reflexalpha-number) property is
|
|
206
|
-
now used to adjust the opacity of a dark layer applied *over* the reflection area, which prevents undesired transparency of the reflection itself
|
|
207
|
-
and creates a consistent effect, whether overlay mode is on or off~~ **(reverted in v2.3.0)**;
|
|
208
|
-
|
|
209
|
-
+ The package source code has been moved from the `dist` to the `src` folder.
|
|
210
|
-
|
|
211
|
-
### Fixed: <!-- {docsify-ignore} -->
|
|
212
|
-
|
|
213
|
-
+ Prevent showing leds below the 0 level, when both reflex and overlay are active.
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
## version 2.2.0 (2020-05-19)
|
|
217
|
-
|
|
218
|
-
### Added: <!-- {docsify-ignore} -->
|
|
219
|
-
|
|
220
|
-
+ New [`overlay`](README.md#overlay-boolean) and [`bgAlpha`](README.md#bgalpha-number) properties allow displaying the analyzer over other contents.
|
|
221
|
-
[Check out the new demo!](https://audiomotion.dev/demo/overlay.html)
|
|
222
|
-
|
|
223
|
-
### Changed: <!-- {docsify-ignore} -->
|
|
224
|
-
|
|
225
|
-
+ Corrected the documentation for the [`registerGradient()`](README.md#registergradient-name-options-) method, which stated the `bgColor` property was required (it has always been optional).
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
## version 2.1.0 (2020-04-06)
|
|
229
|
-
|
|
230
|
-
### Added: <!-- {docsify-ignore} -->
|
|
231
|
-
|
|
232
|
-
+ Customizable Reflex effect - see [`reflexRatio`](README.md#reflexratio-number) and try it in the [demo](https://audiomotion.dev/demo/fluid.html).
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
## version 2.0.0 (2020-03-24)
|
|
236
|
-
|
|
237
|
-
### Added: <!-- {docsify-ignore} -->
|
|
238
|
-
|
|
239
|
-
+ New [`lineWidth`](README.md#linewidth-number) and [`fillAlpha`](README.md#fillalpha-number) properties for [mode 10](README.md#mode-number) customization, so it can now work as an area graph (default), a line graph or a combination of both;
|
|
240
|
-
+ New [`barSpace`](README.md#barspace-number) property for customizable bar spacing in octave bands modes;
|
|
241
|
-
+ You can now provide an external AudioContext via `audioCtx` property in the [constructor's `options`](README.md#constructor), allowing you to share the same context among different instances;
|
|
242
|
-
+ Custom [error codes](README.md#custom-errors);
|
|
243
|
-
+ New [`version`](README.md#version-string-read-only) property;
|
|
244
|
-
|
|
245
|
-
### Changed: <!-- {docsify-ignore} -->
|
|
246
|
-
|
|
247
|
-
+ Increased default spacing between bars in octave bands modes - to get the previous look, set [`barSpace`](README.md#barspace-number) to **1**;
|
|
248
|
-
+ Improved accuracy when positioning the X-axis scale labels in octave bands modes;
|
|
249
|
-
+ Slightly improved vertical usage of canvas when the LED effect is active (removed the black line at the bottom of the screen);
|
|
250
|
-
+ Canvas context is now saved before calling the user callback function and restored afterwards, to avoid undesirable changes;
|
|
251
|
-
+ Several functions were refactored for improved legibility, memory usage and performance;
|
|
252
|
-
+ Improved documentation and demos;
|
|
253
|
-
|
|
254
|
-
### Fixed: <!-- {docsify-ignore} -->
|
|
255
|
-
|
|
256
|
-
+ The multi-instance demo should now work on browsers other than Firefox (it now uses a shared audio context);
|
|
257
|
-
+ `isFullscreen` property now correctly reads `false` (instead of `undefined`) when the analyzer is not in fullscreen (*potentially breaking change*);
|
|
258
|
-
+ Setting one of the callback functions to `undefined` with `setOptions()` now properly unregisters the callback (*potentially breaking change*);
|
|
259
|
-
|
|
260
|
-
### API breaking changes: <!-- {docsify-ignore} -->
|
|
261
|
-
|
|
262
|
-
+ `audioCtx`, `analyzer`, `canvas` and `canvasCtx` objects are now read-only (`canvasCtx` properties may be safely modified while inside the callback for `onCanvasDraw`);
|
|
263
|
-
+ `frame` and `time` properties are not exposed anymore, as they are intended for internal use only;
|
|
264
|
-
+ `registerGradient()` method now enforces the `name` argument being a non-empty `string` (throws an [error](README.md#custom-errors) otherwise);
|
|
265
|
-
+ Errors now return a custom object and some error messages have changed - use the new [`code` property](README.md#custom-errors) to identify errors in a reliable way.
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
## version 1.2.0 (2019-12-19)
|
|
269
|
-
|
|
270
|
-
+ Improves the look of bars at lower frequencies in octave bands modes (especially 1/12th and 1/24th);
|
|
271
|
-
+ Minor tweak to the "Rainbow" gradient to make cyan and blue shades a little more balanced.
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
## version 1.1.0 (2019-12-08)
|
|
275
|
-
|
|
276
|
-
+ 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;
|
|
277
|
-
+ New **Luminance Bars** option (`lumiBars: <boolean>`) for octave bands modes, which displays analyzer bars always at full-height, with varying luminance instead.
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
## version 1.0.1 (2019-10-22)
|
|
281
|
-
|
|
282
|
-
+ Minor cleanup to optimize npm package size.
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
## version 1.0.0 (2019-10-07)
|
|
286
|
-
|
|
287
|
-
+ First stable release.
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
## version 1.0.0-rc.1 (2019-10-05)
|
|
291
|
-
|
|
292
|
-
+ Release candidate for v1.0.0
|