MaxMsp External for Myo

romaindumaine's icon

Hello Max/Msp users,

I'm currently working on an MaxMsp external for Myo and was wondering what features would interesting to have.
I was thinking to send the values through Osc/Midi which I guess would the most obvious features to have.
But maybe I could include other features, I'm open to any suggestions.

At the moment, I only receive the accelerometers values, and will work on different sensors use on the Myo. However it is not possible at the moment to read the EEG values on the muscles...

If you are interested to try the "alpha" stage of the external get in touch with me dumaine.romain@gmail.com

You can see the slow progress at https://www.facebook.com/Terzai

To Do list:
- Integrate the Myo library in the External itself
- Trigger the output values from a bang
- Osc integration
- Midi integration

Andrew Rogers's icon

Hi Romain,

I know this post is from a few months ago but the videos and screenshots on your facebook page look promising. I'm a college lecturer in music technology and I develop Android apps in my spare time, it's been a while since I've played with Max (I've used Pure Data a fair amount though) and recently an ex-student has been in touch because he's just got hold of a Myo and wants in integrate it into Max. I was wondering if I could ask a few things about how you are writing the external? I see you're writing in C++, is this personal preference or is there a specific reason I should look out for (I'm much more comfortable in Java)? Also you mention problems with the EEG values, is this to do with the Myo SDK or are there other problems? I'm guessing you probably won't be comfortable with sharing the source but any information you could give me would be of great help, happy to do a bit of alpha testing too. Also if I can help in any way with the project please let me know, I'm always looking for something to sink my teeth into!

Thanks
Andrew Rogers

dsiwiak's icon

Hi Romain,
I am also working with getting values from my Myos in to Max/MSP. I've been all over the forums to get data other than accelerometer. I'd love a copy of your external. dianasiwiak [at] gmail [dot] com
Cheers! Diana

Yot Magnet's icon

Hi,

I would also be interested of using the Myo with max/msp.
If there any external I would be pleased.

Thanks
J

bennid's icon

Hi Romain,
I'd be super glad to test this alpha,...
on the sdk list here : https://developer.thalmic.com/docs/api_reference/platform/script-reference.html#script-api-scriptapi ,
there's a bunch of interesting features to get osc from, and basic YAW, gyro, accel,roll, pitch would be great yet...
Perhaps getting osc in Myo, to trig the vibration and get reaction from max patch might be a plus !

bennid's icon

Hi Romain,
I also found this you may already know:
https://github.com/samyk/myo-osc

Best regards.

Salsa_the_hutt's icon

@Bennid and all!

I've been using the myo-osc since yesterday and I can get all the data in max while running this thru the terminal on Osx Mavericks.

It seems to be veryveryvery sensible. The data flow is quite insane.

bennid's icon

Hi there

I 'm finishing a patch to (auto)scale the thing and smooth a little...
almost finished, i promise to post once main work will be done

@Salsa_the_hutt: ( check that you clean the 00:00:00:00:00 with zl.filter or unpack with $ as a first argument )

jaysus's icon

Hi Romain

I'd be interested in testing out your external.

Thanks

Jay

bennid's icon

Hi Dears,
Here's a maxpatch, an ongoing work to scale and work with myo, (needs to be managed overflow's limit)
please modify it and post any remark or advice,
I used Samy's CPP stuff https://github.com/samyk/myo-osc
Thx

Myoscbeta1.3.maxpat
Max Patch
webe's icon

Hey Bennid,

I'm also working on a patch using samyk's myo-osc. I like the way you made the auto-scaling feature, it's way more elegant then my complicated first attempt.
I modified it a bit, so one does not have to unlock the gesture recognition by double-tapping every time.

Has anyone tried using js to connect to the websocket via https://github.com/logotype/myodaemon ?

Zancudo's icon

If you are using Max in 64bit mode you can use Baptiste's object for MYO
https://github.com/bcaramiaux/Myo-maxpd

webe's icon

Thank you for the info, Zancudo.

Max crashes for me as soon as I send a bang to the myomax external.
Would love to test this out!

webe's icon

Ok, so the myomax from bcaramiaux works for me, but it only displays EMG Data.
I'm really bad with CPP but am currently trying to build an external that also provides Gyro and Quaternation data.

Any help is welcome!

bkshepard's icon

I've downloaded the Myo-maxpd compiled Max objects (myomax.mxo, myomax.maxhelp) and placed them in ~/Documents/Max 7/Library/Myo-maxpd. When I try to create a myomax object, I get the following in the Max Console:

myomax: unable to load object bundle executable
2016-02-18 14:29:01.881 Max[1528:533278] Error loading /Users/~/Documents/Max 7/Library/Myo-maxpd/myomax.mxo/Contents/MacOS/myomax: dlopen(/Users/~/Documents/Max 7/Library/Myo-maxpd/myomax.mxo/Contents/MacOS/myomax, 262): Library not loaded: @rpath/myo.framework/Versions/A/myo
Referenced from: /Users/~/Documents/Max 7/Library/Myo-maxpd/myomax.mxo/Contents/MacOS/myomax
Reason: image not found

Am I missing something? Do I need to put them somewhere else? I'm running Max 7.1.0 in 64-bit on Max OS X 10.11.3.
Thanks!

Zancudo's icon

New object available from the amazing Jules Francoise

bkshepard's icon

Wow, that looks great. Thanks for the tip Zancudo. I'm having the same problem with the myo.mxo object, though. When I put it in the Library or Packages folder, I get a message that "myo: unable to load object bundle executable." Should I put it somewhere else? I'm running Max 7 in 64 bit.

webe's icon

Wow! So eager to try this.
Vibration feedback is something I was just about to assemble! Thanks!

bkshepard's icon

Finally got it to work by reinstalling Max. I have two computers that I had configured exactly the same way. It worked on one, but not the other. Anyway, it's great now.

What does RSSI stand for?

Zancudo's icon
bkshepard's icon

Thanks Z!

PereVicalet's icon

Excuse me @Bkshepart, so you say you solved problem installing Max another time? I've got same problem, Mas is unable to load object. I've made it, and it says same thing. What do you suggest? Thank you very much.

All the best,

Pere.

bkshepard's icon

Hi Pere,
Apologies for the delay, I just now saw your post. I don't why it worked, but I reinstalled Max and then went to the "Get Info" for Max and toggled "Open in 32-bit mode" on and then back off. After that, it all worked just fine.

Rodrigo's icon

So I've just started playing with this and it's quite promising/exciting!

At the moment I'm purely using an absolute sum of the EEG data to instantly trigger 'fist' gestures and the latency is fantastic (much faster than the internal gesture recognition).

Does anyone know if it's possible to turn off the haptic feedback from the gesture recognition on the myo external? I've turned off all the silly things from the Myo Connect app, but I still get little buzzes from the external (doesn't happen if Max isn't open).