Coder Social home page Coder Social logo

biofedback / breathing-through-max Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jacksongoode/breathing-through-max

0.0 0.0 0.0 14.18 MB

A system to track your rate of breath and sonify it through Max MSP. It emphasizes tenants of biofeedback as a responsive system for stress relief.

License: GNU General Public License v3.0

Python 1.48% Max 98.52%

breathing-through-max's Introduction

Breathing through Max

Description

A system to track your rate of breath and sonify it in real-time through Max MSP. It emphasizes tenants of biofeedback and can serve as a responsive system for stress relief. Please see the associated blog post for more information.

Instructions

Setup for data playback (from prerecorded data)

  1. Extract package zips from inside the "package" folder and move to the "/Documents/Max 8/Packages" directory located in the user directory
  2. Open the Max patch
  3. Load the "data.txt" file in the "csvloader" sub-patch (this may take a minute)
  4. Start the metro to iterate through the data with button labeled "play"

Setup for real time streaming:

  1. Install python-osc (Python 3.5+ required) with "pip install python-osc"
  2. Install SensorLog from the iOS App Store (no current equivalent for Android at the moment)
  3. Edit the message boxes for the directory of python, the sensorlog.py, local ip, and port information
  4. Click "run py host", and check to see if script is running in console
    • Errors from the python file will also appear in the Max console
  5. Make sure the SensorLog app reflects the ip and port you have entered
  6. From SensorLog, enable the following:
    • logging rate: "100Hz"
    • log format: ", and csv"
    • mode: "client"
    • protocol: "ump"
    • ip and port as above
    • accelerometer: enable
  7. Finally, enable "log to stream" and make sure it connects
    • The Max console will also print "Now streaming data..." if data has been received

breathing-through-max's People

Contributors

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