Skip to content

Constellatia is a simple audio visualizer built in Python.

Notifications You must be signed in to change notification settings

huang0h/constellatia

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

constellatia

Constellatia is a simple audio visualizer built in Python, inspired by the stars and space in general.

Demo: https://youtu.be/4_a7V3886Vs

You'll need to install pygame, scipy, and pydub in order for the visualizer to run.

How to use

Simply run python main.py in the constellatia directory to start the visualizer. You can determine what audio is played/visualized by setting FILENAME to the path to an audio file. Currently, it runs immediately after processing, and will automatically stop after playing through the song.

This repo comes with some songs in the audio folder:

as well as two test files, one of a sine wave and one of a square wave.

You can configure the visualizer before running by editing the config variables at the top of the file.

note: WINDOW_SIZE refers to the number of samples that are processed at a time (in other words, how many dots make up the wavy stuff), NOT the size of the visualizer - SCREEN_WIDTH and SCREEN_HEIGHT determine that. Controls:

  • p: pause/unpause the visualizer and music
  • q: quit the visualizer
  • r: start/stop recording

I HIGHLY discourage recording right now, since the current setup is super janky and I'm still working on it. It will absolutely destroy your memory if you record for more than ~40 seconds. However, if you do want to record, make sure the imgs folder is empty; otherwise, frames from previous recordings might get mixed in. You can start recording right away by setting RECORDING = True, or press r to toggle recordings as you like.

About

Constellatia is a simple audio visualizer built in Python.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages