Git Product home page Git Product logo

bit-box-remote-instruments's Introduction

Remote Instruments for BitBox

Play BitBox instruments from your phone using websockets. A fun companion for BitBox.

Notes

The Theremin instrument depends on the device Accelerometer which is only made available in Chrome on Android, and then only when the page is loaded from a secure connection, thus the goofy self-signed cert.

iPhones should be able to play the drums, but I've had reports that this doesn't work and I've not had the time (or an iPhone) to investigate.

Instructions

Clone, install, start

If you haven't already, clone BitBox to your local machine (link above). Then, clone this repo to your local machine, install modules and start it up:

> cd path/to/bit-box-remote-instruments
> npm i
> npm start

This should start the websocket server.

Accept self-signed cert in your browser.

Before the BitBox WebSocketInput component can connect to the websocket server, you have to accept the self-signed cert.

The server's public address will be output when it starts. Navigate to that address (not on localhost), and tell Chrome you're really okay with this shady certificate. When you're done with that you should see a page with a QR code on it. You have to do this before pointing the WebSocktInput at the socket server (next step).

Launch BitBox

Get BitBox running in a browser window as described in the BitBox readme.

Load the "sockets" pre-defined program in from the drop-down box or set up your own program with the WebSocketInput plugin.

Configure the WebSocketInput plugin to point to the address where the websocket server is running (use wss:// for the scheme instead of https://). If it connects correctly, you should see "incoming request" log out in the terminal where you started the socket server (the one from this repo).

Connect instruments

On your phone, use a QR code reader to read the code on the page you opened above or type in the address displayed. You should see the same page. Select one of the instruments, and start mashing the buttons that appear. If everything is working you should hear BitBox make some noise.

bit-box-remote-instruments's People

Contributors

visum avatar

Watchers

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