1.0.7 • Published 3 years ago

audio-visualiser v1.0.7

Weekly downloads
4
License
MIT
Repository
github
Last release
3 years ago

<audio-visualiser>

FFT Audio Analyser visuals ready for retina displays.

Note: Uses ResizeObserver. Polyfill it on your end.

API

Inputs

MethodDescriptionRelated media event
set analyserSet analyser to read data from.
start()Start the visuals drawing loop.play
stop()Stop the visuals drawing loop.pause / ended
AttributeDescription
colorSets the color of the visual.

Usage

Install audio-visualiser via npm or import it in your ES module supported browser with import 'https://unpkg.com/audio-visualiser?module';

Create an AnalyserNode and connect it to by calling the setter analyser on the instance of the custom element. document.querySelector('audio-visualiser').analyser = yourAnalyserNode;. For a little live demo of this you can check out https://enjikaka.github.io/audio-visualiser/. Open dev tools or view-source to see how the tag is set up to the analyser via createMediaElementSource.

1.0.2

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.1

5 years ago

1.0.0

5 years ago