Giter Site home page Giter Site logo

muselsl2's Introduction

MuseLSL2

This is a light reimplementation of muse-lsl with a few improvements:

  • Fixed timestamps correctness.
  • Uses mne-lsl, which is an upgraded version of the LSL interface.
  • Viewer also shows PPG and related channels.
  • Fixed timeout issue and disconnection (to be confirmed)

By default, MuseLSL2 streams all channels (including gyroscope, accelerometer, and the signal form the Auxiliary port "AUX", which can be used to add an additional electrode). Note that without an additional electrode, the AUX channel will just pick up noise and should be discarded.

Usage

Install with:

pip install https://github.com/DominiqueMakowski/MuseLSL2/zipball/main

Power up Muse EEG headset, Open console, run:

MuseLSL2 find

Once you have the mac address of your device, run for instance (but replace the address):

MuseLSL2 stream --address 00:55:DA:B5:E8:CF

In a new console, while streaming, run:

MuseLSL2 view

Record

Best is to record the streams using Lab Recorder.

muselsl2's People

Contributors

dominiquemakowski avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

hlc1209

muselsl2's Issues

Can't find Quartz on macOS

If I run MuseLSL2 view I get the following error:

/Users/mmm/Projects/pulse_[2024-04]/venv/lib/python3.9/site-packages/urllib3/__init__.py:35: NotOpenSSLWarning: urllib3 v2 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'LibreSSL 2.8.3'. See: https://github.com/urllib3/urllib3/issues/3020
  warnings.warn(
Traceback (most recent call last):
  File "/Users/mmm/Projects/pulse_[2024-04]/venv/bin/MuseLSL2", line 33, in <module>
    sys.exit(load_entry_point('MuseLSL2==0.2', 'console_scripts', 'MuseLSL2')())
  File "/Users/mmm/Projects/pulse_[2024-04]/venv/lib/python3.9/site-packages/MuseLSL2/__main__.py", line 59, in main
    cli = CLI(args.command)
  File "/Users/mmm/Projects/pulse_[2024-04]/venv/lib/python3.9/site-packages/MuseLSL2/cli.py", line 9, in __init__
    getattr(self, command)()
  File "/Users/mmm/Projects/pulse_[2024-04]/venv/lib/python3.9/site-packages/MuseLSL2/cli.py", line 61, in view
    from .view import view
  File "/Users/mmm/Projects/pulse_[2024-04]/venv/lib/python3.9/site-packages/MuseLSL2/view.py", line 14, in <module>
    from vispy import app, gloo, visuals
  File "/Users/mmm/Projects/pulse_[2024-04]/venv/lib/python3.9/site-packages/vispy/__init__.py", line 27, in <module>
    from .util import config, set_log_level, keys, sys_info  # noqa
  File "/Users/mmm/Projects/pulse_[2024-04]/venv/lib/python3.9/site-packages/vispy/util/__init__.py", line 14, in <module>
    from . import fonts       # noqa
  File "/Users/mmm/Projects/pulse_[2024-04]/venv/lib/python3.9/site-packages/vispy/util/fonts/__init__.py", line 13, in <module>
    from ._triage import _load_glyph, list_fonts  # noqa, analysis:ignore
  File "/Users/mmm/Projects/pulse_[2024-04]/venv/lib/python3.9/site-packages/vispy/util/fonts/_triage.py", line 14, in <module>
    from ._quartz import _load_glyph, _list_fonts
  File "/Users/mmm/Projects/pulse_[2024-04]/venv/lib/python3.9/site-packages/vispy/util/fonts/_quartz.py", line 12, in <module>
    from ...ext.cocoapy import cf, ct, quartz, CFRange, CFSTR, CGGlyph, UniChar, \
  File "/Users/mmm/Projects/pulse_[2024-04]/venv/lib/python3.9/site-packages/vispy/ext/cocoapy.py", line 1288, in <module>
    quartz = cdll.LoadLibrary(util.find_library('quartz'))
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/ctypes/__init__.py", line 444, in LoadLibrary
    return self._dlltype(name)
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/ctypes/__init__.py", line 366, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: dlopen(Quartz.framework/Quartz, 0x0006): tried: 'Quartz.framework/Quartz' (no such file), '/System/Volumes/Preboot/Cryptexes/OSQuartz.framework/Quartz' (no such file), '/usr/lib/Quartz.framework/Quartz' (no such file, not in dyld cache), 'Quartz.framework/Quartz' (no such file)

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.