BCI-Controlled AI Music Improvisation in Max/MSP
Hello all,
Greeting! I am a composer from Taiwan.
I would like to share my recent project that I have been working since 2025. This project focuses on the interaction between AI music improvisation (based on Somax2 of Max/MSP) and EEG (using Ultracortex). Here is the short demo of my work:

In this experiment, EEG signals are captured through the headset and used to estimate different mental and affective states, including arousal/valence and concentration. The EEG data are first sonified in Max/MSP, transforming brain activity into sound. These resulting sounds then interact with the parameters of Somax2 in real time, creating a continuous musical dialogue between brain activity, sound, and machine improvisation.
I have been experimenting with an Affective State widget for the OpenBCI GUI (v6.0.0-beta.1) and would really appreciate some feedback from the community! As I am not from coding background, so I created Arousal/Valence detection widget with help of Claude and ChatGPT to see if this is possible to work out...I have attached the photo of the widget in this post! [] (https://openbci.com/forum/uploads/editor/1r/hx9zyd3h6cbq.png "")
Comments
Hi Sammaaly,
Wow, very impressive! Innovative the way you combine the initial sonification with Somax2. I like the jazzy brain-riffs !
Our GUI developer, Richard @retiutut, is also a Max/MSP user. He may have further comments on your GUI widget, do you have a Github or source code repository?
I happened to find your bio online, for those interested in your other composing,
https://archive.ncafroc.org.tw/composer/composer_file?id=4028b7828d0cc097018d216cd7f81311&lang=en
And your Youtube channel,
https://www.youtube.com/channel/UC10moIapJ1hxFOWAttDXtIg
Our 'Community' page is currently getting some maintenance, but you might consider posting there as well once it comes back.
https://openbci.com/community/
https://docs.openbci.com/GettingStarted/Community/Community/
NeuroTechX has a Slack, with thousands of members, that is another place to post BCI projects:
https://neurotechx.com/ [click on the Community tab, then select Slack]
Best regards, William