Psc2
Psc2 copied to clipboard
code used for collaborative musical improvisation with ML models
Psc2
psc is a señor swesearcher in google brain, and is experimenting with using machine learning models (including generative models for music) as part of the live performance. most of the code used will be available in this repo.
if you want to see the code i use for my talks, you can see it here.
NEW: i built a web app to make it easier for you to try out this idea! check it out here.
the white paper explaining the solo setting is available here.
if you want the full-blown system, continue reading.
Installation
-
Install SuperCollider
-
Clone this repo.
-
Create a virtualenv and activate it. We need Python2 (and not Python3) because
pyoscis not compatible with Python3. This step is optional but recommended:virtualenv --system-site-packages -p python2 venv source venv/bin/activate cd Psc2 pip install -r requirements.txtIf the last command does not work, then:
-
Download Melody RNN
attention_rnnmodel here, and update thebase_models_pathparameter inPsc2/modes/mlsplainer.py. -
Download DrumKit RNN model (for NeurIPS demo) here.
-
Open SuperCollider, open
Psc2/server.scand run the main group (enclosed in parentheses). -
From the root directory, run:
python setup.py install -
Start the python server:
python Psc2/server.py