control Processing.org 'templates' with Cyton EEG data?

roguetheoryroguetheory London
edited October 2018 in Software
I was wondering if there was a very simple and basic way to control/manipulate any of the processing.org templates using the Cyton 8 channel and EEG headband data?

Comments

  • wjcroftwjcroft Mount Shasta, CA
    Rogue, hi.

    By 'templates' did you mean the examples on this page?


    One possible way you could do this, is to use the Networking Widget in OpenBCI_GUI, to output a data stream in OSC, Open Sound Control format. The data is not actually 'sound' but the EEG waveform. Such a stream could be received by another Processing program using the OSC library.


    So, for example, you could modify a Processing.org example program to read such a stream and control something on the screen. Or do other actions.

    Regards,

    William

  • Hi William,

    Thank you for the very informative feedback and to answer your question, yes that is exactly what I meant!

    I'm a 100% novice to this arena, therefore could you kindly point me to a specific area you'd recommend within that link you provided
    on where the best place to start may be.

    Thank you!
  • wjcroftwjcroft Mount Shasta, CA
    Here is one example from the search link above, controlling a Processing program by sending OSC from a phone app. In your case you will be sending OSC that contains EEG.


    You will also need to learn a bit about DSP, Digital Signal Processing. The OSC stream that you send from the GUI (and receive with Processing), can be setup to send an array of 125 float values, representing the amplitude of the EEG at each 1 Hz frequency 'bin'. See this document,


    So for example, with your Processing program, you could monitor the value at 10 Hz (at array[10]), and use that to control something on the screen. 10 Hz is the alpha center frequency and increases when eyes are closed or in a meditative state.

    Regards,

    William

Sign In or Register to comment.