Giter VIP home page Giter VIP logo

p5js-transfer-learning-supercollider's Introduction

p5js-transfer-learning-supercollider

This is a minimal example of how to combine ml5js, p5js and SuperCollider. It uses an express-server and socket.io/ to listen for messages from the p5js-sketch. The sketch uses ml5js applying transfer-learning for classification of the content of your webcam. The predicted class is send to the server. The server uses osc to send the predicted class to SuperCollider.

The idea is to use p5js and machine learning (ml5js) to trigger different sounds played via SuperCollider. However, since many different applications, such as DAWs, support the OSC protocol, you can exchange SuperCollider with many other applications.

Installation

  1. Install SuperCollider
  2. Install nodejs
  3. Run node install

Usage

  1. Start SuperCollider and open sc/firework.scd,
  2. Boot the SuperCollider server by executing the first line, i.e. s.boot
  3. Execute the first and last code block to add the Synth and to listen to incoming OSC messages
  4. Run node socketServer.js to start the express webserver and to establish the websocket connections
  5. Go to http://localhost:3000/
  6. Gather data for your two classes by clicking the buttons class1 and class2
  7. Train, i.e. fine-tune the model by clicking train.
  8. After training the the p5js-sketch sends the prediction to the webserver which sends the message to SuperCollider.

p5js-transfer-learning-supercollider's People

Contributors

bzoennchen avatar

Stargazers

 avatar Christophe Lengelé avatar

Watchers

 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.