asdfang / HarmonizeMe

Web app to make chordal harmony to accompany a user sung input
https://asdfang.pythonanywhere.com
0 stars 0 forks source link

HarmonizeMe

Web app to make chordal harmony to accompany a user sung input!

Slightly stable (ON CHROME ONLY -- make sure https:// is in the URL): https://asdfang.pythonanywhere.com/
Might take a long time when you click to harmonize on a first try; if that happens, graciously try a second time please!


If you want to install and run it locally, follow these instructions:
Using a virtual environment is recommended! Be it virtualenv or conda!

Install dependencies:
python 2.7.13
flask 0.12.1 -- pip install flask==0.12.1
librosa 0.4.2 -- pip install librosa==0.4.2
aubio 0.4.5 -- pip install aubio==0.4.5

numpy, scipy, matplotlib get installed with librosa:
numpy 1.12.1 -- pip install numpy==1.12.1
scipy 0.17.0 -- pip install scipy==0.17.0
matplotlib 2.0.0
Issues with numpy and scipy occured with hosting, so those versions might be necessary.
Leaving matplotlib as is should be fine.

IF RUNNING ON LOCAL, MODIFY flask_run.py:
1) Comment out the 2 lines below "# for server", and 2) uncomment the two lines below "# for local" to change paths for UPLOAD_FOLDER and DATABASE.
Running the flask app on local after cloning repo:

-- Setting up flask:
cd HarmonzieMeApp/flaskapp/
export FLASK_APP="flask_run.py"
-- Seting up database (do this only once, database.db will pop up):
chmod +x sqlite.py
./sqlite.py
flask run

Then go to 127.0.0.1:5000/ on Chrome.

(Old files at HarmonizeMeOldFiles: https://github.com/asdfang/HarmonizeMeOldFiles/)