Skip to content

andreafailla/pix2beats

Repository files navigation

pix2beats

Streamlit App Python 3.9 License GNU

A web app to create music from images.

What is this?

Pix2Beats is a Streamlit web app that allows you to create music from images.

How does it work?

The idea is that images are made of pixels, and pixels can be represented as numbers. Therefore, we can use these numeric values to obtain waveforms and, consequently, music.

Then, Pix2Beats applies a series of transformations to this signal (eg, apply effects, add harmonies, etc.) to obtain a more pleasant sound. This latter step, which is much common in music production, is carried out by leveraging Spotify's pedalboard API

How do I use it?

You can use the app by clicking on the Streamlit badge above. Alternatively, you can run the app locally by cloning this repository and running the following commands:

pip install -r requirements.txt
streamlit run ui.py

Credits

Some ideas and code are adapted from this very nice article by V. Murcia, as well as from this interactive crash course from the Streamlit team. Background image by Will Porada on Unsplash.

About

A web app to create music from images

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages