Companion code to the preprint "Setting the rhythm scene: deep learning-based drum loop generation from arbitrary language cues"
First ensure you have the required libraries installed:
keras
numpy
torch
transformers
Unpack the pre-trained model:
$ tar xvfz trained_words2drums.tar.gz
Add any word or phrase to inputs.txt
, the script will generate one drum pattern per line:
$ python3 words2drums.py
If you have any questions, please contact the author at ignacio.tripodi (at) colorado.edu.
Citations:
I. J. Tripodi, “Setting the rhythm scene: deep learning-based drum loop generation from arbitrary language cues.” arXiv, Sep. 20, 2022. doi: 10.48550/arXiv.2209.10016.