Coder Social home page Coder Social logo

jabogithub / psc2 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from psc-g/psc2

0.0 1.0 0.0 6.05 MB

code used for collaborative musical improvisation with ML models

License: Apache License 2.0

Python 76.58% SuperCollider 19.30% HTML 3.07% CSS 1.05%

psc2's Introduction

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

  1. Install SuperCollider

  2. Clone this repo.

  3. Create a virtualenv and activate it. We need Python2 (and not Python3) because pyosc is 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.txt
    

    If the last command does not work, then:

    1. pip install absl-py

    2. pip install pyosc.

    3. pip install tensorflow Full instructions here.

    4. pip install magenta Full instructions here.

  4. Download Melody RNN attention_rnn model here, and update the base_models_path parameter in Psc2/modes/mlsplainer.py.

  5. Download DrumKit RNN model (for NeurIPS demo) here.

  6. Open SuperCollider, open Psc2/server.sc and run the main group (enclosed in parentheses).

  7. From the root directory, run:

    python setup.py install
    
  8. Start the python server:

    python Psc2/server.py
    

psc2's People

Contributors

psc-g avatar korymath avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.