Search found 17 matches

by banjo
Sat Sep 17, 2022 2:05 pm
Forum: Mind Monitor
Topic: Python-OSC, how to share blinks/jaw clenches with other functions?
Replies: 2
Views: 441

Re: Python-OSC, how to share blinks/jaw clenches with other functions?

Thx James! Your suggestion helped me to hammer out a working version, including it below for anyone to use. It is just a proof of concept, so has no scoring system or other features expected of a real game. # Very simple Pong game with infinite lives # Scoring system to be implemented by the reader ...
by banjo
Sat Sep 17, 2022 4:37 am
Forum: Mind Monitor
Topic: Python-OSC, how to share blinks/jaw clenches with other functions?
Replies: 2
Views: 441

Python-OSC, how to share blinks/jaw clenches with other functions?

This is most probably more a Python related question than directly related to MindMonitor or Python-OSC, but as I've not found an answer on the web, I thought I'd ask here. Below is skeletal code for a very simple Pong-game which I'm ultimately trying to control with blinks and jaw clenches instead ...
by banjo
Tue Jul 12, 2022 7:24 am
Forum: Mind Monitor
Topic: Anyone selling an AUX electrode for Muse 2016?
Replies: 0
Views: 1290

Anyone selling an AUX electrode for Muse 2016?

Hi, I know it is possible to do it yourself as per https://mind-monitor.com/forums/viewtopic.php?p=2343#p2343, but then I need to purchase soldering equipment and learn how to use it... So, if anyone has an AUX electrode for Muse 2016 for sale, pls contact me. I'm located in Finland. I'm for my Mast...
by banjo
Sun Feb 13, 2022 12:46 pm
Forum: Mind Monitor
Topic: Recording detailed brain wave data through Python-OSC
Replies: 14
Views: 3447

Re: Recording detailed brain wave data through Python-OSC

Great point, appreciating your tips :-) I'll do something alike your proposal. Right now I have separate handlers for the different waves, just to get things going and understand what I'm doing, but I'll probably replace those with one handler (similar to abs_handler), and incorporate more error han...
by banjo
Sun Feb 13, 2022 12:11 pm
Forum: Mind Monitor
Topic: Recording detailed brain wave data through Python-OSC
Replies: 14
Views: 3447

Re: Recording detailed brain wave data through Python-OSC

Python doesn't have nulls, so probably best to just have a separate boolean for alphaReceived, betaReceived etc and only write once you have them all. That'd be one solution, another would perhaps be using Python's sum function for summing up the numbers in the list. If the list numbers are initial...
by banjo
Sun Feb 13, 2022 11:29 am
Forum: Mind Monitor
Topic: Recording detailed brain wave data through Python-OSC
Replies: 14
Views: 3447

Re: Recording detailed brain wave data through Python-OSC

They're sent from the Muse SDK async in order, but you can start recording mid stream so make sure you check for nulls for your first line. Thx for the warning, will incorporate this. I initialized the global list with -1, so it should be easy to check. I though need to replace -1 with -100 or some...
by banjo
Sun Feb 13, 2022 9:59 am
Forum: Mind Monitor
Topic: Recording detailed brain wave data through Python-OSC
Replies: 14
Views: 3447

Re: Recording detailed brain wave data through Python-OSC

Aah, ok.
I just thought that every tenth of a second (10 Hz), I will receive the five waves which all have been measured at exactly the same time by Muse. But nevertheless, I guess it doesn't matter in the end.
by banjo
Sun Feb 13, 2022 7:20 am
Forum: Mind Monitor
Topic: Recording detailed brain wave data through Python-OSC
Replies: 14
Views: 3447

Re: Recording detailed brain wave data through Python-OSC

Thx! I have a much better understanding now. Then just buffer the received values for each wave in global variables and write everything to CSV when you get Alpha, which with OSC absolute data will happen at 10Hz. Interesting that Alpha would be the tail, when I stream (using the code in my topic ab...
by banjo
Sat Feb 12, 2022 2:44 pm
Forum: Mind Monitor
Topic: Recording detailed brain wave data through Python-OSC
Replies: 14
Views: 3447

Recording detailed brain wave data through Python-OSC

So I'm struggling a bit to record similar data through Python-OSC as is saved in the CSV-files in Dropbox. Specifically I'm looking for these: Delta_TP9,Delta_AF7,Delta_AF8,Delta_TP10,Theta_TP9,Theta_AF7,Theta_AF8,Theta_TP10,Alpha_TP9,Alpha_AF7,Alpha_AF8,Alpha_TP10,Beta_TP9,Beta_AF7,Beta_AF8,Beta_TP...
by banjo
Sun Feb 06, 2022 3:26 pm
Forum: Mind Monitor
Topic: Mind Monitor Python OSC Examples
Replies: 28
Views: 7132

Re: Mind Monitor Python OSC Examples

Thx James, everything's working now!
Upgraded Python from 3.6.3 to 3.10.2 and of course needed to reinstall the different modules, that helped.