supercolliderjs-browser
Tools for communicating between remote javascript clients (primarily web browsers) and supercollider.js
Last updated 5 years ago by crucialfelix .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install supercolliderjs-browser 
SYNC missed versions from official npm registry.

supercollider.js for web browsers

Tools for communicating between remote javascript clients (primarily web browsers) and supercollider.js

Work in progress.

Initially this just supports websockets and the API quark. This was part of supercollider.js but I'm moving it into its own package. This reduces the dependencies and responsibilities of supercollider.js and will let this package focus on the browser and other remote javascript clients.

SuperCollider is an environment and programming language for real time audio synthesis and algorithmic composition. It provides an interpreted object-oriented language which functions as a network client to a state of the art, realtime sound synthesis server.

https://supercollider.github.io/

Documentation

http://supercolliderjs.readthedocs.org/en/latest/

Features

  • Call API endpoints in SuperCollider from a browser using JavaScript and a websocket/OSC bridge

Example

// the webserver has routes defined to serve these:
<script src="/socket.io/socket.io.js"></script>
<script src="/static/js/scapi.js"></script>
<script>
  var sc = new SCApi("localhost", 4040);
  sc.call("server.boot", ["default"], function() {
    // server is booted now
    sc.call("group.new", [], function(groupID) {
      // spawn synths into this group
      sc.call("synth.new", ["scarysound", 100.0, 666.0, 7], function(synthID) {
        // enable things on the page to send control changes to the scarysound
      });
    });
  });
</script>

Contribute

License

The project is licensed under the MIT license.

Current Tags

  • 0.1.0                                ...           latest (5 years ago)

1 Versions

  • 0.1.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 2
Dependencies (10)
Dev Dependencies (3)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |