Musical applications
shivasongster
Philadelphia
My primary interest in getting involved with this project was to see about potential musical applications. I've seen some demos by Michael O'Bannon and others who work in this field, and I understand that the EEG levels are very low, difficult to map, and hard to predict, so at best we'd be talking generative music - not playing Mary Had A Little Lamb! But I think OpenBCI is an important step toward mind-music interfacing.
If you have similar interests, please contact me or perhaps we can have a dedicated section of the forum for this. I have rudimentary Arduino skills, have worked with some audio boards, and I have a long history of interaction with MIDI sequencers/controllers, including more recently the Percussa Audiocubes. I also work in the healthcare sphere (electronic health records), so am trying to strum up some interest in projects from that angle as well.
I also run the site MINDSPEAK.COM which is very much interested in publishing articles or stories related to this type of work, and implications for all facets of life beyond music.
If you have similar interests, please contact me or perhaps we can have a dedicated section of the forum for this. I have rudimentary Arduino skills, have worked with some audio boards, and I have a long history of interaction with MIDI sequencers/controllers, including more recently the Percussa Audiocubes. I also work in the healthcare sphere (electronic health records), so am trying to strum up some interest in projects from that angle as well.
I also run the site MINDSPEAK.COM which is very much interested in publishing articles or stories related to this type of work, and implications for all facets of life beyond music.
Comments
I'm totally into hacking EEG (my site: http://eeghacker.blogspot.com) and I'm totally into hacking musical electronics (my other site: http://synthhacker.blogspot.com), but I've yet to find the best way to mash the two together.
The problem is that EEG signals are so difficult to control consciously. So, anything recognizable as melodies or chord progressions or controllable rhythm seem impossible (to me).
One avenue that might work would be music that is more in the vein of droning noise soundscapes. Something might be able to work there...though an engaging and artful mapping from EEG signals (1-80 Hz...though mostly 1-20 Hz) to audio (20-20,000 Hz...though mostly 50-8,000Hz) is still not obvious.
I'd love to see other's thoughts on this...especially demos!
Chip
For now we may be working on some similar problems of integrating brainwaves and auditory signals. I have some experience mating MaxMSP and Pd and other EEG systems like biosemi & neuroscan.
In addition to my other EEG work, I've been looking at different algorithms for making EEG signals audible (besides just speeding up the playback speed) so that one can "hear" their brain. While I have plenty of tools myself for doing this, I'm having difficulty with how help others figure out how to do this.
One of the hurdles that I've identified is to convert a text file (like the log file produced by my OpenBCI GUI) into an audio format like WAV. I use Matlab, so it's not a problem for me. But, if you don't have $3K to buy Matlab, what tools are out there to generate a WAV file from a text file?
I had hoped that Audacity would be able to read in a WAV file, but it does not. Audacity does have an "Import Raw" feature, but it requires a binary file, not a text file.
Do you know of any free software that'll generate WAV files from text files?
Chip
Perhaps the most accessible option I can think of for the less computationally inclined would be PureData (Pd - http://puredata.info/) which is a free alternative to MaxMSP. They are both graphical programming environments and were originally designed with electronic musicians in mind. You connect programming modules that act like effect boxes with patch cords. I've written text files from Max/Pd, so I'm sure reading them would be easy enough, as well as recording and playing waves. I also have some hope that if the openBCI board does not have a way to integrate time stamping/event markers at the hardware level that I could do it in Max/Pd by reading in the raw EEG data stream and combining it with the .wav I record from a piezo mounted on my subject's drum head. This solution would also work well for someone interested in 'audifying' the EEG signal in real time rather than reading in data after it is recorded.
First of all, of course Audacity can read and create Wav files. If you need help here, I can be of assistance. It also has a native format, and an option for RAW.
However, Audacity is not the best editor out there. So depending on what you are trying to do, there are other tools that might be better. How are you trying to create the audio file? What are the the inputs? What type of connection are you using? Do you that a soundcard or audio interface?
Looking forward to getting my board... Should be soon, right?
The Brainbay package that Chip has used on one of his posts, also supports this capability.
http://www.shifz.org/brainbay/manuals/BrainBay-user_manual.pdf
http://eeghacker.blogspot.com/2013/11/brainbay-eeg-visualization-software.html
http://eeghacker.blogspot.com/2014/05/eeg-as-wav-files-go-spectrograms.html
Of course, brainwaves are too low frequency for hearing directly. Luckily, most audio programs let you play them back faster (such as by telling your audio program to use a faster sample rate). I recommend playing them back at something near 50x the original speed. It might not sound "musical", but I do find it interesting.
Chip
http://createdigitalmusic.com/2014/05/play-russian-folk-instrument-mind-turn-seashell-patterns-likes-generative-art/
Chip
I am a computer scientist and I would love to help. I got a few ideas of what might be done, but I need my openBCI set to test them. Even though I know next to nothing about music making I got many friends that does. Anyway, if an arrengment comes up be sure to check me in^^
Soundmachines BI1brainterface is an exploration and performance tool for musician, producers, actors, body performers and coreographers who wants to connect their mental and emotional sphere directly with the performance.
https://vimeo.com/112444161
https://github.com/jfrey-xx/OpenBCI_Python/tree/dev his branch with OSC driver
What is OSC? http://opensoundcontrol.org/introduction-osc
OSC allows input of EEG (or other) data into a number of audio and video performance apps such as PureData, VVVV, MAX, etc.
His twitter post and photo:
Found this good comparison and strengths of the various performance apps / languages:
http://vvvv.org/forum/comparison-vvvv-maxmsp-pd-and-processing
VVVV is free for non-commercial use. PD is free, but apparently development has slowed. Max is great, but expensive.
William
String quartet (motif compositions by Eduardo Miranda)
http://joeleaton.co.uk/bci-research/
http://joeleaton.co.uk/bcmi-research/real-time-notation/
http://joeleaton.co.uk/bcmi-research/compositions/ / (4 videos)
http://joeleaton.co.uk/bcmi-research/music-therapy/
Joybeat, BCI controlled drum machine
http://joeleaton.co.uk/project/joybeat/
https://twitter.com/TANKAjoel
1st International Workshop on Brain Computer Music Interfacing (BCMI)
http://cmr.soc.plymouth.ac.uk/bcmi2015/
----
Guide to Brain-Computer Music Interfacing, edited by Eduardo R. Miranda and Julien Castet
http://www.springer.com/us/book/9781447165835
http://www.amazon.com/Guide-Brain-Computer-Interfacing-Eduardo-Miranda/dp/1447165837
Interfacing (BCMI) tools. The text focuses on how these tools enable the
extraction of meaningful control information from brain signals, and
discusses how to design effective generative music techniques that
respond to this information. Features: reviews important techniques for
hands-free interaction with computers, including event-related
potentials with P300 waves; explores questions of semiotic
brain-computer interfacing (BCI), and the use of machine learning to dig
into relationships among music and emotions; offers tutorials on signal
extraction, brain electric fields, passive BCI, and applications for
genetic algorithms, along with historical surveys; describes how BCMI
research advocates the importance of better scientific understanding of
the brain for its potential impact on musical creativity; presents broad
coverage of this emerging, interdisciplinary area, from hard-core EEG
analysis to practical musical applications.
http://www.ouunpo.com/eegsynth/
https://github.com/eegsynth/eegsynth
http://www.oneplusoneisthree.org/
http://robertoostenveld.nl/
These guys need to do a post on our Communities page(!)