Page 1 of 1

OSC Streaming on MindMonitor

Posted: Wed Jun 05, 2024 12:46 pm
by mindmonitorquestions
I'm working as a research assistant and helping use the Muse as part of a study. Any help on the following two questions would be appreciated!:

1. I'm trying to modify the OSC receiver (https://github.com/Enigma644/MindMonitorPython) to output the alpha band FFT for each individual electrode as well as blink artifacts. Is there code that does this? Right now I'm only getting raw eeg data for each electrode.

2. Is there a way to pause the streaming so that I don't need to reconnect the OSC each time I press marker 2?

Thanks

Re: OSC Streaming on MindMonitor

Posted: Wed Jun 05, 2024 1:45 pm
by James
For the simple example this line controls the dispatch handler:
dispatcher.map("/muse/eeg", eeg_handler)

You can change the osc path to "/muse/elements/alpha_absolute" to get Alpha. Also look at the audio feedback example as that does all the absolute waves.

You can pause streaming in Mind Monitor by just pressing the stream button again to toggle it off, or just taking out the marker handler if you don't want it to pause on #2.

Re: OSC Streaming on MindMonitor

Posted: Wed Jun 05, 2024 4:25 pm
by mindmonitorquestions
thank you! The pausing with streaming works great.

However, when I dispatch /muse/elements/alpha_absolute (using the same code as eeg_handler) I only get one value out. Is that because /muse/elements/alpha_absolute only passes one argument? In the archived museio available data page it's unclear but makes it seem like there are four floats for the alpha absolute element.

Thanks

Re: OSC Streaming on MindMonitor

Posted: Wed Jun 05, 2024 4:56 pm
by James
You can toggle it between sending an average or one value for each electrode in Mind Monitor settings.

Re: OSC Streaming on MindMonitor

Posted: Thu Jun 06, 2024 10:01 am
by mindmonitorquestions
It worked! Thanks