@hameee/audio-visualizer-js
v0.1.2
Published
This NPM package provides a set of tools for visualizing audio data in web-based applications. Users can leverage this library to develop web-based audio players or visualization apps.
Downloads
5
Readme
Audio Visualizer JS
This NPM package provides a set of tools for visualizing audio data in web-based applications. Users can leverage this library to develop web-based audio players or visualization apps.
Installation
npm install @hameee/audio-visualizer-js
Usage
import { startAudioContext } from './node_modules/@hameee/audio-visualizer-js/index.mjs';
// Declare the audioContext variable
let audioContext;
// Define the handler function starting the audio context and removing the event listener
const handleAudioContextStart = () => {
startAudioContext(audioContext);
document.removeEventListener('click', handleAudioContextStart);
};
// Add an event listener
document.addEventListener('click', handleAudioContextStart);
Features
- Audio spectrum visualization
- Timing-based animation effects
Contributing
Contributions are welcome! If you find a bug or have a feature request, please open an issue. If you'd like to contribute code, please follow these steps:
- Fork the repository
- Create a new branch (
git checkout -b feature/my-feature
) - Make your changes and commit them (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin feature/my-feature
) - Create a new Pull Request
License
This project is licensed under the ISC License.
Please let me know if you have any other questions or if you'd like me to modify the README further.