Skip to content

adanlbenito/iil-python-tools

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

105 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Structure

  • iipyper: python package for easy MIDI, OSC, event loops
  • notochord: python package for defining+training pytorch RNN models
    • notebooks: jupyter notebooks
    • scripts: helper scripts for training, data preprocessing etc
  • examples:
    • iipyper: basic usage for iipyper
    • notochord: interactive MIDI apps with notochord and SuperCollider
    • bela: Bela examples in C++, Pure Data and so on
    • faust: Faust examples
    • tidalcycles TidalCycles examples
    • puredata: Pure Data examples

Setup

conda env create -f environment.yml
conda activate iil-python-tools
pip install -e notochord
pip install -e iipyper

notochord

Train a model

python notochord/scripts/lakh_prep.py --data_path /path/to/midi/files --dest_path /path/to/data/storage
python notochord/train.py --data_dir /path/to/data/storage --log_dir /path/for/tensorboard logs --model_dir /path/for/checkpoints train

Run OSC app

python examples/notochord/server.py --checkpoint /path/to/my/model.ckpt

step through examples/notochord/generate.scd in SuperCollider IDE

Develop

add new dependencies to environment.yml, then run:

conda env update -f environment.yml

About

Simple Python app to host a Pytorch model and send/receive OSC messages

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Python 100.0%