Try it out on the web: Demo
This Spectrum Analyzer is a web-based application that visualizes the frequency spectrum of audio inputs in real-time. It offers an interactive and customizable display of audio frequencies, ideal for musicians, sound engineers, or anyone interested in audio analysis.
- Real-time frequency analysis of audio inputs
- Logarithmic frequency display
- Peak and RMS spectrum visualization
- Identification and display of dominant frequencies with corresponding note names
- Adjustable settings for RMS window, slope weighting, and threshold
- Customizable color interface
- Ensure that Node.js is installed on your system.
- Clone this repository or download it.
- Open a terminal in the project directory.
- Run the following command to install dependencies:
npm install
- Start the server with the command:
npm start
- Open a web browser and navigate to
http://localhost:8080
(or the port displayed in the console). - Allow the browser to access your microphone when prompted.
- Use the controls at the bottom of the screen to adjust the display.
- RMS Window: Adjusts the smoothing of the RMS spectrum.
- Slope Weighting: Changes the weighting of higher frequencies.
- Threshold: Determines at what intensity frequencies are considered significant.
- Color Settings: Customize colors for peak spectrum, RMS spectrum, and labels.
- HTML5 Canvas for visualization
- Web Audio API for audio analysis
- JavaScript ES6+ for logic and interactivity
This project is licensed under the MIT License. See the LICENSE file for details.
Contributions are welcome! Please open an issue to discuss major changes before submitting a pull request.