GithubHelp home page GithubHelp logo

tesla-vibro's Introduction

Tesla Vibro Prosthetic and Clojure Client

This is a simple Weavrs prosthetic and associated Clojure client for interrogating Weavrs. We've targetted Clojure because that gets us bridged to MaxMSP (via our net.loadbang package) or into Overtone. The prosthetic is designed to run inside the Philter Phactory prosthetic runner (a Django-nonrel application) and hence in Google App Engine; symlink its prosthetic directory into the runner with name tesla so that the URL's in the Clojure test code work.

The prosthetic itself has a pretty simple data model: a table of Weavrs which we've seen (and which are registered to use the prosthetic) and a table of locations that the Weavrs visit (actually, just the street_address field at the moment). A new location is added if the polled location from a Weavr changes from the last one seen.

There's a bit of Django MVC machinery which lets us interrogate the data store: we can list all the Weavrs we've seen, and for any Weavr we can fetch its last known location. Both calls return a JSON structure. The Clojure code uses an asynchronous HTTP client and a JSON parser to unpack the result.

Usage

Clojure

This package loads most of what it needs from Maven repositories via Leiningen, but there are one or two packages not in global repos, so they need to be checked out of GitHub and built locally:

  • Our SoundCloud for Clojure package: build and install this into the local repository via lein install

  • net.loadbang OSC library: our Java OSC library. This needs to be built and (locally) installed via Maven. This library in turn has a dependency on net.loadbang.lib (see its README file).

There is one configuration file for the SoundCloud authentication: see the README.md for that project for details.

Notes

2012-05-11

We're no longer using Overtone, since it can't render non-realtime or without a sound card. Accordingly, we've built a "pure" SuperCollider program that runs as an OSC server, and send it high-level OSC commands to sequence DTMF tones and control signals, and to render out audio files (see directory /sc/).

2012-04-16

We're currently playing with feeding Weavr location strings into a Morse code generator in Overtone (see scratch.clj), as a dry run for synthesising real control signals for the prosthetic hardware. The Morse generator is a separate GitHub project and isn't in any public repositories at the moment, so check out that project and do a Leiningen install to get a local repository version to link against. (The Morse isn't recorded to disk; we do have some disk-recording code but need to hack the Morse generator's ugens a little to make buffer capture work.)

tesla-vibro's People

Contributors

cassiel 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.