Giter VIP home page Giter VIP logo

max-rnbo-cljs's Introduction

-*- mode: org; mode: visual-line; -*-

max-rnbo-cljs

Introduction

This is a starter project for Cycling ‘74’s RNBO for Max using ClojureScript and Figwheel Main instead of raw Javascript. We’ve rewritten the boilerplate JS, replaced async with Clojure channels, and so on.

The Figwheel project is in net.cassiel.max-rnbo. In that directory, use Leiningen and lein fig:build to launch a development environment and browser page - or, use your favourite editor with Clojure support.

Max RNBO export: target resources/public/export. The boilerplate code in rnbo_device.cljs fetches from here.

We are making extensive use of Clojure’s core.async in place of callbacks; this also deals with JS promises.

Audio Buffers

We are loading demo audio buffers via the property device.dataBufferDescriptions: this gives us files or URLs as appropriate, or an entry with no file or URL for something like a groove~ object with no associated buffer in the RNBO patcher. We could also make use of the dependencies.json file to tell us about files and URLs (it has no entries unless one of those exists), but since we can only access audio files if they have been copied across into the exports, in which case we know the paths, this doesn’t get us any further information.

We assume a JSON endpoint which will map these “empty” buffer instances to URLs for fetching files. At some stage we want these buffers to be truly dynamic, so that we can replace the audio while the patcher is running.

max-rnbo-cljs's People

Contributors

cassiel avatar

Stargazers

 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.