Music from Mentalab

Creating Music With Mentalab Explore [EEGSynth]

One of Mentalab’s collaborators, Dr. Stephen Whitmarsh, is currently using Mentalab Explore to create music.

That’s right – you read that correctly; Dr. Whitmarsh is using brain waves to create sound waves, and we can’t wait to show you his results!

This original and creative application is developed using EEGsynth, an open-source Python codebase that provides a real-time interface between (open-hardware) devices for electrophysiological recordings (e.g. EEG, EMG and ECG) and analogue and digital devices (e.g. MIDI, OSC and analogue synthesizers).

synthesiser and eeg
Dr. Whitmarsh connects the output of the Mentalab Explore device to a synthesiser.

EEGsynth was developed in 2014 as a tool for the art-science collective 1+1=3.

Dr. Whitmarsh kindly gave us permission to share a blog post he wrote for the EEGSynth project, describing how they integrated Mentalab Explore with EEGSynth.

As Stephen says:

An EEGsynth HQ isn’t much without EEG, and sadly, after many years of service, both mine and Robert’s OpenBCI Cyton boards have stopped working. Record In Peace, my friends. It was therefore serendipitous that right when our old systems ended their life-cycle, we were contacted by Mentalab.

The remainder of this article is taken from Stephen’s post.

Mentalab Explore wireless EEG

Mentalab put out their first product in 2020: the Explore, a high-quality, 8-channel, wireless (Bluetooth) EEG device. I won’t repeat the specs here, but they are very impressive.

Maybe most impressive is just how small and light weight it is! Just look at it!

Dr. Whitmarsh holds Mentalab Explore
Dr. Whitmarsh was impressed with how small the Mentalab Explore device is.

The quality of the EEG with the wet electrodes is of laboratory quality, and I was able to record very pronounced alpha activity as soon as the cap was set up.

It is so light weight that in combination with the neoprene cap and silver-chloride sintered electrodes, the signal also seems very robust while moving (within reason). It’s comfortable as well, and quick and easy to set up.

I’ll report more about the dry electrode setup that they provide in a future post, as some improvements are still being made, and I haven’t had the chance to do proper tests (I am also partial to wet electrodes, which are still the gold standard).

Lastly, what is very important for the research community, is that Mentalab provides open–source APIs in Python, Java, C++, and MATLAB.

Lab Streaming Layer

The EEGsynth supports a range of ExG devices thanks to a library of custom-made device drivers. Making them is not trivial, however (I can’t), and we have relied on the work done by the FieldTrip team.

However, EEG companies that aim for real-time applications (i.e. BCI), are increasingly supporting lab streaming layer (LSL), which is a general data interface for real-time streaming of ExG data.

Mentalab supports pushing ExG data through LSL, either by command line (Python), or with their GUI (currently in beta). This means that I could acquire the data in realtime with only a single command, and only had to update my EEGsynth patch (from my previous Harmonics patch).

In the end it was surprisingly easy to integrate the Mentalab Explore in our pipeline, thanks to the fact that two years ago, Robert implemented LSL into the EEGsynth for another project (in which it was never used).

Everything just came together!

A first EEGsynth patch

In a first EEGsynth patch, I acquired the data from the Mental Explore via Bluetooth and pushed it to LSL on my laptop, processed it, and used it to control my Eurorack system.

The purpose of the patch was to showcase different ways by which the EEGsynth can control hardware and software developed within the BBDMI project.

I used MIDI pitchbend messages send to the Endorphines Shuttle Control to control my Eurorack, and control the EEGsynth parameters (frequency bands) from within the modular Eurorack system using MIDI faders from the AtoV DIY project.

At the same time OSC signals were send to my desktop computer via WiFi, on which I ran either a Max4Live or Pure Data patch to create control voltages to control my Eurorack via the Expert Sleepers ES-9 (as DC-coupled audio).

A quick run-through of the LSLbandpower EEGsynth patch.

But I still needed test subjects! This was a great opportunity to invite some of my new colleagues from the BBDMI project to try out the new setup.

Much more to come!

In short, Paris HQ is back!

Next I will work on finishing an audio-video setup so that I can better record – and hopefully live stream – EEGsynth performances: I imagine having people over regularly, and recording “EEGsynth sessions”, as I was used to doing on location.

The cosiness and intimacy compared to most venues, strange rooms at conferences, will help the EEG performer to relax and explore the sonic embodiment and experiences deeper.

paris-hq
The new and improved Paris HQ.

Also, the time and energy saved preparing, deconstructing, travelling, and reconstructing the setup at venues will allow much more actual performing, and with much less hassle and stress.

And finally, the huge improvement in EEG quality and comfort thanks to the Mentalab Explore will really bring the project to the next level, opening up many new paradigms, and a greater connection between music and brain states.


Since January 2022, EEGsynth has also been part of the Brain Body Digital Music Instrument (BBDMI) project, which is funded by a prestigious French Research Agency grant.

The project is led by MSH Paris Nord with partners:

We are  happy to discuss your ideas and provide guidance on how to use our application code. If you’d like to learn more, please contact us at