From Brainwaves to Sound Waves - EEG into Music Converter - Web App Development - Part 7
Channel: BioniChaos
Date: 20/12/2023

Hello everyone! In this video, I delve into the fascinating world of converting EEG data into music. I start from scratch, addressing the challenges of mapping frequencies to musical notes. Using Python, I explore various libraries and methods, including interpolation functions, to transform EEG frequencies into harmonious sounds.


Throughout the video, I troubleshoot and optimize the code, ensuring efficient mapping of EEG frequencies to musical notes. I demonstrate how changes in EEG data affect the musical output and provide insights into scaling factors and their impact on the conversion process.


Additionally, I integrate this functionality into a Flask web application, showcasing how to load EEG data, convert it to music, and potentially serve it through a web interface. The video covers the intricacies of creating MIDI files from EEG data and discusses browser compatibility issues related to playing MIDI files.


Timestamps:


00:00 - Introduction and Project Overview
00:20 - Initial Code Setup and Challenges
01:05 - Addressing Code Errors and Optimizations
02:00 - EEG to Music Conversion Logic
03:00 - Scaling Factors in Frequency Mapping
04:00 - Integrating Conversion into Flask App
05:00 - Finalizing MIDI File Creation
06:00 - Debugging and Enhancing the Web Interface
07:00 - Completing the Music Conversion Function
08:00 - Running and Testing the Flask Application
09:00 - Resolving Final Errors and Playback Issues
10:00 - Successful Conversion and Future Steps


I use GitHub Copilot and ChatGPT for development. 
The tools I develop are available on https://bionichaos.com 
You can support my work on https://patreon.com/bionichaos