GithubHelp home page GithubHelp logo

silky / node-socket-accelerometer-fun Goto Github PK

View Code? Open in Web Editor NEW

This project forked from old-stuff/node-socket-accelerometer-fun

0.0 2.0 0.0 316 KB

Generate Inclusive Interfaces that Communicate via OSC

License: GNU General Public License v2.0

node-socket-accelerometer-fun's Introduction

#interface.js

###About

Node, Sockets, OSC, Inclusive Design, Code Generation... Cool!

Soooo... this is the start of a much larger idea for json based generative osc interfaces. That being said I would really like to develop this code to be modular, allowing for parts to be taken from it to be used in other projects. To accomplish this I will most likely use Fluid Infusion.

Things are going to be super rough for now... I am primarily building this as a test for a school project, and it is going to look absolutely nothing like what I am envisioning... but I have been iterating around this idea for a while, so it may as well exist as a single package.

In its current state the application will serve a responsive canvas based web application. The web app will track the placement of up to 5 fingers as well as the accelerometer data of a mobile device, send those to node with socket.io, and then send it out over localhost using node-osc.

###OSC Api

The api is pretty simple. It will send osc messages over local host to port 3333. The messages you can receive are as follow

####Finger /[fingernumber]/state i ~ state of finger... 1 for on and 0 for off

/[fingernumber]/position f f ~ x and y co-ordinates of the finger

finger number can be "one", "two", "three", "four", "five

####Tilt /alpha f ~ value for accelerometer alpha

/beta f ~ value for accelerometer beta

/gamma f ~ value for accelerometer gamma

###Examples This project comes with a dsp example written in chuck, it can be found at dsp/chuck/dsp.ck If you would like to launch both chuck and the node server at once you can run start.sh

$ ./start.sh

###Licensing

Interface.js is distributed under the terms the MIT or GPL2 Licenses. Choose the license that best suits your project. The text of the MIT and GPL licenses are at the root directory.

node-socket-accelerometer-fun's People

Contributors

mylesborins avatar

Watchers

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