Giter Site home page Giter Site logo

go-muse's Introduction

gomuse

Golang libraries for reading and processing data from a Muse EEG headset. Requires the Muse SDK for muse-io.

Includes:

  • Running an OSC server to convert the streams into channels.
  • Adds low-level processing of these channels for things like connection status.

To come:

  • Simple UIs for displaying realtime data, using go-sound
  • Connection quality detection to avoid needing MuseLab.
  • More complex signal processing.
  • Machine learning integration for feature detection.

Provided is a sample application (server.go) which runs an OSC processor and forwards events to a web socket which JS clients can then use to alter a site. To run the example, which increases an image each time a blink is detected, do the following:

  1. Connect your device to the desired OSC port (example uses a device named 'Muse', port = 5000):
    • muse-io.exe --device Muse --osc osc.udp://localhost:5000
  2. Run the server (example is using windows):
    • go build server.go && server.exe
  3. Open http://localhost:8888/file/viz.html in a browser.

Note that these can all be done independently (e.g. to reconnect your Muse, to make changes to the server, or to reset the html state) although restarting the server tends to require a browser refresh too.

Additionally, there is currently no detection of bad connection to the Muse device - please use MuseLab's connection strength visualizer for that for now. This can eventually be added to the server too.

Sample application image from the Tardis Wiki.

go-muse's People

Contributors

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