This Max for Live device connects DDSP's timbre transfer capabilities with Ableton Live, using Google Drive's API for file sharing and Google Colab for processing.
- Supports five instruments: Violin, Trumpet, Flute, Flute2, & Tenor Saxophone
- Uses Google Colab's GPU for processing
- Integrates with Google Drive for file transfer
-
Install Python and pip if not already installed.
-
Install required packages:
pip install -r requirements.txt -
Set up Google Drive API:
- Follow these instructions to get an API key.
- Save the API key as
client_secrets.jsonin the same folder asdrive-sync.py.
-
Initialize the Google Drive folder:
python drive-sync.py --init TrueThis creates a 'M4L-Timbre-Transfer-Folder' in your Google Drive root.
-
Open the notebook in Google Colab.
-
In Colab:
- Set runtime to GPU: Runtime > Change runtime type > GPU
- Run all cells
- The last cell starts a loop looking for files to process
- PyDrive - for Google Drive access
- PythonOsc - for patch -> python script communication
- DDSP (Timbre Transfer Demo Notebook) - The original notebook can be changed, and requires changes for this too.
- The M4L device sends OSC messages to the Python script with settings and audio files.
- Files are uploaded to Google Drive.
- The Colab notebook processes the files.
- Processed audio is sent back to the M4L device.
- Only works with WAV files in non-temporary folders.
- Keep your Google Drive API key private.
- Google Colab sessions may timeout; restart if necessary.
Feel free to extend the project. Some ideas:
- Windows support
- Display spectral images from the notebook
- Improve Ableton Live integration
- Bug fixes and optimizations
[Specify your license here]