Skip to content

A minimal python script for turning .mp3 files into an arrangement of box meshes

License

Notifications You must be signed in to change notification settings

lukewarm-h2o/WaveformMesh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

WaveformMesh

A minimal python script for turning .mp3 files into an arrangement of box meshes

Usage

Start by providing an mp3 file path to the audio_path variable near the bottom of the main.py script, then you can run the script to generate the box-grid representation.

to adjust the look of the output you can adjust:

  • num_points sets the total number of samples/boxes
  • num_rows set the number of rows to arrange the boxes into (calculates square dimensions by default)
  • box_positions.append([x * 10, y * 10, 0]) chage the *10 scale to space boxes tighter or further
  • scales.append([10, 10, 1 + z * 100]) chages the scale of the individual boxes (z = Waveform Amplitude)

Note

meshes use right hand coordinate system with +z = up

About

A minimal python script for turning .mp3 files into an arrangement of box meshes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages