Max msp connection

michielmichiel Nederland
Hello,

I am trying to receive data from the openBCI hardware in max/msp, I was wondering if anyone has experience with this? It seems max can recognise the dongle but not receive data from it. Maybe there is a way to use the GUI as an intermediary?

Kind regards,

Michiel 

Comments

  • yes, the easiest way to do it is to use OpenBCI_GUI. set it up to read data from the hardware like normal (serial or wifi) and then pass selected data on to maxmsp from the networking widget.  osc protocol is recommended because then just receive it all in max with [udpreceive 12345]

    another option, if you have the wifishield, is to install this firmware on the shield... https://github.com/redFrik/OpenBCI_WIFI/tree/OpenSoundControl  it'll make the hardware send out osc directly.  max examples can be found in the extras folder.

    and the third option (which is probably not a viable one) is to write your own parser in max and decode the serial data.  just mentioning it because it's possible (and interesting) and the documentation is good... https://docs.openbci.com/Hardware/03-Cyton_Data_Format

    hope that helped,
    _f
  • retiututretiutut Louisiana, USA
    edited July 2019
    @michiel Use the OpenBCI_GUI and OSC. I will be sharing patches soon in a community post and on GitHub. Also, I've already implemented direct Ganglion support using Node for Max (a flavor of NodeJS). I should be able to directly implement Cyton via NodeJS also. Of course, you need Max 8 to use Node for Max.


    Huge Example: 

    My EMG slideshow has a subpatch named BCMap (Brain-Computer-Machine Analysis Protocol), which simply accepts and formats data from the OpenBCI_GUI, which handles the heavy processing. I will be cleaning up and releasing BCMap by itself very soon. Please credit and share if you end up using this!
  • michielmichiel Nederland
    @redFrik and @retiutut
    Thanks so much! I'm receiving data in max now, so I can start playing with it :)

  • michielmichiel Nederland
    @retiutut thanks again for sharing your max project with me, it seems there are many OSC objects my version does not have or recognise... 

    Right now I am receiving data that I can use, my concern is I don't really know how to interpret it. This is what I receive in max with udpreceive: (for 16 channel time series)
    182 438307488;
    190 476427344;
    189 476428688;
    190 476435184;
    And so on.

    Any help is greatly appreciated :)

    Cheers
  • retiututretiutut Louisiana, USA
    Please share what version of Max you are using...
  • michielmichiel Nederland
    I'm using 8.06!
  • retiututretiutut Louisiana, USA
    edited July 2019
    You can find the CNMAT externals for Max/MSP (which are used in BCMap) and ODOT (OSC) objects here:

  • retiututretiutut Louisiana, USA
    edited August 2019
    ""I'm using 8.06!""

    @michiel Very nice! Also, using Node for Max (available in Max 8 only), we can connect to the boards directly without using the OpenBCI_GUI. The only downside is that all of the signal processing will need to be done in NodeJS or Max. When we stream OSC from the GUI, all of the data can be filtered/processed.



    Next steps for OpenBCI+Max/MSP:
    - create networking widget guide explaining data outputs from OSC
    - create a tutorial for connecting GUI to Max/MSP
    - expand OpenBCI_Node4Max repo to include Cyton
Sign In or Register to comment.