Try it out on the web: Demo
Audio Vectorscope is a web-based application that provides real-time visualization of audio signals using a vectorscope display. It's built with modern vanilla JavaScript, HTML, and CSS, showcasing best practices in modular development without relying on external libraries.
A vectorscope is a specialized oscilloscope used in audio applications. Unlike a traditional oscilloscope, which plots signal versus time, a vectorscope shows an X-Y plot of two signals to reveal their relationship. In this application, it displays the relationship between the left and right channels of a stereo audio signal.
- Real-time audio visualization using a vectorscope display
- VU meters for Left, Right, Mid, and Side channels
- Adjustable input gain
- Customizable color themes (Default, Dark, Light)
- Blur effect control for the vectorscope display
- Responsive design that maintains a 1:1 aspect ratio
- Modular code structure for better maintainability
- Adherence to StandardJS linting rules
- A modern web browser (Chrome, Firefox, Safari, Edge)
- Node.js and npm (for development and running the local server)
-
Clone the repository:
git clone https://github.com/yourusername/audio-vectorscope.git
-
Navigate to the project directory:
cd audio-vectorscope
-
Install dependencies:
npm install
-
Start the local development server:
npm start
-
Open your web browser and visit
http://localhost:8080
(or the port specified by http-server).
- Once the application is loaded in your browser, you'll see the vectorscope display and controls.
- Click the "Start Analyzing" button to begin audio analysis.
- Grant microphone permissions when prompted by your browser.
- Adjust the input gain using the slider if needed.
- Experiment with different color themes and blur effects using the provided controls.
- Observe the VU meters and vectorscope display to analyze your audio signal.
audio-vectorscope/
│
├── index.html
├── styles.css
├── js/
│ ├── main.js
│ ├── vectorscope.js
│ ├── utils.js
│ ├── audio.js
│ ├── ui.js
│ └── overlay.js
├── package.json
├── README.md
└── LICENSE
- Use modern vanilla JavaScript (ES6+)
- Follow StandardJS linting rules
- Use 2 spaces for indentation
- Omit semicolons at the end of statements (as per StandardJS)
- Create modular, encapsulated functions
- Use clear naming conventions
- Write comprehensive JSDoc comments for all functions
- Separate concerns by using multiple files for different functionalities
Contributions to the Audio Vectorscope project are welcome. Please ensure your code adheres to the project's coding standards and passes all linting checks.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
This project is licensed under the MIT License. See the LICENSE file for details.