GERSHWIN is a music generator software that takes lyrical and genre input and outputs a melody in audio and visual form (sheet music). GERSHWIN works by taking the lyrical input, counting the number of syllables, and connecting each syllable to a note or chord tied specifically to the determined major or minor key. The output of notes will adhere to standard music convention (so it won't sound like random notes strung together) and a specific genre of music (jazz, pop, R&B, and rock). Artists and music enthusiasts can use this program to get inspiration for song creation.
For more information about this project, check out our website!
All unattributed code has been written by Annie Chu, Madi Wyatt, Eriel Wiston, and Joanna Mei.
The CMU Pronunciation Dictionary - Used to count lyric syllables
music21 - Used to generate notes
MuseScore - Used to produce sheet music
TiMidity++ - Used to play MIDI track
NLTK - Used for sentiment analysis of lyrics
Download relevant python packages:
pip install -r requirements.txt
Download MuseScore python library:
sudo snap install musescore
or
install AppImage on the MuseScore website
Download MIDI Player Timidity:
sudo apt-get install timidity
In order to run GERSHWIN, make sure all applicable software has been downloaded, then run the following file in the terminal using:
python framework.py