Skip to content

Latest commit

 

History

History
65 lines (45 loc) · 2.65 KB

README.md

File metadata and controls

65 lines (45 loc) · 2.65 KB

musical_python

Creating music though LSTM Recurrent Neural Networks.

Installation and setup

python -m pip install --upgrade pip
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt

Starting Django Server

  • Compile the abc2midi executable to convert abc notation files to midi
# change to top directory (`musical_python/`)
cd abcmidi
make
mv abc2midi ../
cd ..
chmod u+rwx abc2midi
  • Migrate and start Django server
python manage.py migrate
python manage.py runserver

The application can now be accessed on the localhost.

Important Note: To make sure the midi files are playable, the http://www.midijs.net/lib/midi.js file must be allowed to run on the browser.

Optional

Midi web scraping information: Pop music midi files are available in the data folder but to download midi files from other genres, use python scrap_midi/ ./scrap_freemidi_org.py <genre> <Headless State 1/0>

Note: Only for Chrome users:

For web scraping midi files with selenium, download ChromeDriver for the appropriate Chrome version here https://sites.google.com/a/chromium.org/chromedriver/downloads and save it to the scrap_midi folder.

The author not be responsible for any issues with Copyright Infrigements that might come with downloading of midi files.

Acknowledgements and References