/3BodyMusic

A real-time interactive ambient music generator system with 3-body problem visualization.

Primary LanguageMax

3 Body Problem

Authors

Xuedan Gao, Shimiao Liu, Yilong Tang, Yifeng Yu

Introduction

Based on 3BodyProblem, we explore the mesmerizing chaos of the three-body problem by mapping the real-time trajectories of three celestial bodies into ambient music. Each body’s velocity and XY position are dynamically translated into various musical features, creating a unique sonic landscape that mirrors their movement through space. Users can actively influence the unfolding musical composition by adjusting the gravitational constant. This adjustment modifies the chaos inherent in the three-body motion, offering a tangible connection between user input and auditory output. Engage with this installation to experience a harmonious blend of physics and sound, where every change in the system brings a new wave of auditory exploration.

Features

  • physics simulation
  • multi-body gravitational interaction
  • reset and exit functions
  • pygame-based interface

Installation

  1. You must have:
  • pygame
  • numpy
  1. Clone project and run python3 main.py
  2. Open MAX/MSP and you may need to change the output routing (Like "From MAX2")
  3. Open Ableton Project and have fun!

Demo Video

3-Body Problem Interactive Music