AuraSynth is a browser-native synthesizer and real-time spectrum visualizer built using modern Web APIs. It converts digital signals into sound frequencies and renders live HTML5 Canvas audio spectrums with a cyber-neon rack design.
- 🔊 Web Audio Synthesis: Real-time tone synthesis supporting four core waveforms (Sine, Square, Sawtooth, Triangle).
- 📊 Dynamic Spectrum Analyzer: 60fps real-time frequency bar visualization via
AnalyserNodeand HTML5 Canvas 2D. - 🎛️ Low-Pass Filter & Dynamics: Adjustable cutoff frequencies (
BiquadFilterNode) and volume attenuation. - 🎹 Interactive Piano Keys: Mouse-triggerable octave keyboard for interactive playing.
- ⚡ One-Touch Presets: Built-in arpeggio and sub-bass drop triggers for fast audio testing.
- HTML5: Modular rack layout & Canvas 2D render context.
- CSS3: Cyber dark theme, custom ranges, flexbox/grid containers, and glow keyframes.
- Vanilla JavaScript: Zero external dependencies; powered by standard Web APIs.
- Web Audio API:
AudioContext,OscillatorNode,BiquadFilterNode,GainNode, andAnalyserNode.
git clone [https://github.com/theinsidecoder/web-audio-visualizer.git](https://github.com/theinsidecoder/web-audio-visualizer.git)
cd aurasynth
2. Run locally
Open index.html in any modern web browser:
Bash
# macOS
open index.html
# Windows
start index.html
Note: Modern browsers require a user interaction (such as clicking the AUDIO OFF / POWER button) before audio can play due to browser autoplay policies.
📁 Directory Structure
Plaintext
aurasynth/
├── index.html # Rack layout, controls, and canvas container
├── style.css # Cyberpunk studio theme, typography & responsive layouts
├── app.js # Web Audio API audio graph & Canvas visualizer loop
└── README.md # Documentation
📜 License
Distributed under the MIT License. Feel free to use and modify it in your own audio projects.
---
## 🧠 How This Project Works (In Simple Words)
Think of **AuraSynth** as a **sound factory** connected to a **live camera**:
```text
[🎹 Keyboard / Button]
│
▼
[🌊 OscillatorNode] ──► [🎛️ BiquadFilter] ──► [🔊 MasterGain]
(Generates Sound Wave) (Shapes Frequency) (Volume Level)
│
▼
[🖥️ Computer Speakers] ◄────────────────────── [📊 AnalyserNode]
(Measures Audio Frequencies)
│
▼
[🎨 Canvas Visualizer]
(Draws Equalizer Bars)