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.
npm install @hameee/audio-visualizer-js
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);
- Audio spectrum visualization
- Timing-based animation effects
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
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.