Skip to content

Latest commit

Β 

History

History
59 lines (45 loc) Β· 1.94 KB

File metadata and controls

59 lines (45 loc) Β· 1.94 KB

Audio Spaceship Visualizer

Visualizer Screenshot

A standalone React application that creates an immersive, audio-reactive 3D Visualizer. The application uses the Web Audio API to analyze microphone input in real-time and Three.js to visualize that data as a starfield and asteroid belt that reacts to bass, mid, and treble frequencies.

πŸš€ Features

  • Real-time Audio Analysis: converting microphone input into frequency data (Bass, Mid, Treble).
  • 3D Particle System: A moving starfield that accelerates based on audio volume.
  • Reactive Asteroids: 3D Icosahedrons that rotate, scale, and change color based on specific frequency bands.
  • Cockpit Overlay: A static overlay to simulate a spaceship view.
  • Responsive: Full-screen canvas that resizes dynamically with the browser window.

πŸ› οΈ Tech Stack

  • Frontend: React (Vite)
  • 3D Graphics: Three.js
  • Deployment: Nginx on Ubuntu

πŸ“¦ Installation & Local Development

  1. Clone the repository (or navigate to your folder):

    cd visualizer
  2. Install Dependencies:

    npm install

    Note: This project requires three and standard React dependencies.

  3. Run Locally:

    npm run dev

    Open http://localhost:5173/ in your browser.


visualizer/
β”œβ”€β”€ dist/               # Compiled production code (Upload THIS to server)
β”œβ”€β”€ public/             # Static assets
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ App.css         # Global styles & Fullscreen resets
β”‚   β”œβ”€β”€ App.jsx         # Main React Component wrapper
β”‚   β”œβ”€β”€ main.jsx        # Entry point
β”‚   └── Visualizer.jsx  # CORE LOGIC: Audio + Three.js
β”œβ”€β”€ index.html          # HTML Entry + Google Analytics
β”œβ”€β”€ package.json        # Dependencies
└── vite.config.js      # Build configuration