Format of OSC message and how to Extract data from the OSC


#1

Hello members, I am seeking to know how I can extract human readable data from OSC sampled below. I am able to read the data (OSC) from any port (e.g. 5001) when sent by MuseLab. However, I am unable to get meaningful data from OSC. Below is a sample of how it looks;
b’\x00\x00\x008’
b’/muse/elements/alpha_relative\x00\x00\x00,ffff\x00\x00\x00\xff\xc0\x00\x00\xff\xc0\x00\x00\xff\xc0\x00\x00\xff\xc0\x00\x00’
b’\x00\x00\x008’
b’/muse/elements/alpha_relative\x00\x00\x00,ffff\x00\x00\x00\xff\xc0\x00\x00\xff\xc0\x00\x00\xff\xc0\x00\x00\xff\xc0\x00\x00’
b’\x00\x00\x008’
I wish to for instance get Absolute and Relative values, for each of the channels and for the different frequency bands. I am unable to extract them simply because I don’t understand the format of the OSC,

I have also used the second option of using Muse Player to write to a CSV (for instance). I wrote a simple python script to read from the CSV, but the reading is not synchronised and not real time.

Kindly advise.


#2

Here is a link to the OSC specification, however I would recommend using an open source OSC library than parsing it yourself.


#3

Thanks Enigma for your help. Let me try out the options you have given me.


#4

These examples, helped me achieve what I wanted. They are indeed direct!!


#5

Hi! I was reading that you have almost the same problem.

I would like to know if you could do this using windows 10 and muse-player (instate of “muse-IO”)

Greetings