Skip to content

A midi animation i had to make for a friend, unfortunately in nextjs.

Notifications You must be signed in to change notification settings

0xdilo/midi-animation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Interactive MIDI Visualization

A real-time 3D visualization of MIDI tracks using Three.js and React, featuring a gta san andreas inspired driving experience through a city. This project was created for a friend launching their own EP. The MIDI file contains two tracks: one for kicks and one for snares. The idea was to synchronize these tracks with the visuals. Code is a mess btw

๐ŸŽฎ How It Works

The application creates a synchronized audio-visual experience by:

  1. Loading a MIDI file on the server
  2. Streaming MIDI events to the client via WebSocket
  3. Translating MIDI events into visual effects:
    • Track 0: Controls neon light colors
    • Track 1: Triggers camera movements

๐ŸŽต MIDI Implementation

The visualization responds to two MIDI tracks:

  • Track 0: Changes the car's neon light colors
  • Track 1: Switches between normal and chase camera modes

๐Ÿ›  Setup

  1. Clone the repository:
git clone https://github.com/0xdilo/midi-animation.git
  1. Install dependencies:
npm install
  1. Run the development server:
npm run dev
  1. Open http://localhost:3000 in your browser

About

A midi animation i had to make for a friend, unfortunately in nextjs.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published