asgervelling / music-theory-python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

music-theory-python

Run debug environment with hot reloading:

python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
export FLASK_APP=app.py
flask run

Build and run in a container: docker-compose up --build

Server is now running on localhost:5000

curl http://127.0.0.1:5000/chords/Dmaj9/degrees
>>> ["1", "3", "5", "Δ", "9"]

curl http://127.0.0.1:5000/chords/Dmaj9/midi
>>> [62, 66, 69, 73, 76]

About


Languages

Language:Python 80.7%Language:JavaScript 10.1%Language:HTML 4.2%Language:CSS 3.5%Language:Dockerfile 1.6%