Skip to content

Creating artificial music though LSTM Recurrent Neural Networks

License

Notifications You must be signed in to change notification settings

SamSamhuns/musical_python

Repository files navigation

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

About

Creating artificial music though LSTM Recurrent Neural Networks

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •